Changeset 4384929 for CLFS


Ignore:
Timestamp:
01/21/2014 09:36:12 PM (10 years ago)
Author:
Pierre Labastie <pierre@…>
Branches:
2.4, ablfs-more, legacy, new_features, trunk
Children:
2270ffd
Parents:
b97ed5b
Message:

Avoid clobbering suffixes like "-64bit" or "-n32" from install-logs names
in CLFS/master.sh. Reported by W. Harrington. Thanks.
Also correct a bug: log_new_files was called instead of touch_time_stamp.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • CLFS/master.sh

    rb97ed5b r4384929  
    513513
    514514    # Test if the stripping phase must be skipped.
    515     # Skip alsp temp-perl for iterative runs
     515    # Skip also temp-perl for iterative runs
    516516    case $this_script in
    517517      *stripping*) [[ "$STRIP" = "n" ]] && continue ;;
     
    519519    esac
    520520
    521     # Grab the name of the target, strip id number, XXX-script
    522     name=`echo $this_script | sed -e 's@[0-9]\{3\}-@@' \
    523                                   -e 's@temp-@@' \
    524                                   -e 's@-64bit@@' \
    525                                   -e 's@-64@@' \
    526                                   -e 's@64@@' \
    527                                   -e 's@n32@@' \
    528                                   -e 's,'$N',,'`
     521    # Grab the name of the target, strip id number, XXX-script.
     522    # name1 is partially stripped and should be used for logging files.
     523    # name is completely stripped and is used for grabbing
     524    # the package name.
     525    name1=`echo $this_script | sed -e 's@[0-9]\{3\}-@@' \
     526                                   -e 's,'$N',,'`
     527    name=`echo $name1 | sed -e 's@temp-@@' \
     528                            -e 's@-64bit@@' \
     529                            -e 's@-64@@' \
     530                            -e 's@64@@' \
     531                            -e 's@n32@@'`
    529532
    530533    # Find the version of the command files, if it corresponds with the building of
     
    580583      CHROOT_wrt_RemoveBuildDirs "$name"
    581584      if [ "${INSTALL_LOG}" = "y" ] && [ "x${N}" = "x" ] ; then
    582         CHROOT_wrt_LogNewFiles "$name"
     585        CHROOT_wrt_LogNewFiles "$name1"
    583586      fi
    584587    fi
     
    623626    bootscripttools="$bootscripttools $this_script"
    624627
    625     # Grab the name of the target, strip id number, XXX-script
    626     name=`echo $this_script | sed -e 's@[0-9]\{3\}-@@'\
    627                                   -e 's@-64bit@@' \
    628                                   -e 's@-64@@' \
    629                                   -e 's@64@@' \
    630                                   -e 's@n32@@'`
     628    # Grab the name of the target, strip id number, XXX-script.
     629    # name1 is partially stripped and should be used for logging files.
     630    # name is completely stripped and is used for grabbing
     631    # the package name.
     632    name1=`echo $this_script | sed -e 's@[0-9]\{3\}-@@'`
     633    name=`echo $name1 | sed -e 's@-64bit@@' \
     634                            -e 's@-64@@' \
     635                            -e 's@64@@' \
     636                            -e 's@n32@@'`
    631637    case $name in
    632638      *bootscripts*) name=bootscripts-cross-lfs ;;
     
    648654    if [ "$pkg_tarball" != "" ] ; then
    649655      if [ "${INSTALL_LOG}" = "y" ] ; then
    650         CHROOT_wrt_LogNewFiles "$name"
     656        CHROOT_wrt_TouchTimestamp
    651657      fi
    652658      CHROOT_Unpack "$pkg_tarball"
     
    660666      CHROOT_wrt_RemoveBuildDirs "$name"
    661667      if [ "${INSTALL_LOG}" = "y" ] ; then
    662         CHROOT_wrt_LogNewFiles "$name"
     668        CHROOT_wrt_LogNewFiles "$name1"
    663669      fi
    664670    fi
     
    703709
    704710    # Grab the name of the target, strip id number, XXX-script
    705     name=`echo $this_script | sed -e 's@[0-9]\{3\}-@@'\
    706                                   -e 's@-64bit@@' \
    707                                   -e 's@-64@@' \
    708                                   -e 's@64@@' \
    709                                   -e 's@n32@@'`
     711    # name1 is partially stripped and should be used for logging files.
     712    # name is completely stripped and is used for grabbing
     713    # the package name.
     714    name1=`echo $this_script | sed -e 's@[0-9]\{3\}-@@'`
     715    name=`echo $name1 | sed -e 's@-64bit@@' \
     716                            -e 's@-64@@' \
     717                            -e 's@64@@' \
     718                            -e 's@n32@@'`
    710719    case $name in
    711720      *network*) name=network-cross-lfs ;;
     
    726735    if [ "$pkg_tarball" != "" ] ; then
    727736      if [ "${INSTALL_LOG}" = "y" ] ; then
    728         CHROOT_wrt_LogNewFiles "$name"
     737        CHROOT_wrt_TouchTimestamp
    729738      fi
    730739      CHROOT_Unpack "$pkg_tarball"
     
    738747      CHROOT_wrt_RemoveBuildDirs "$name"
    739748      if [ "${INSTALL_LOG}" = "y" ] ; then
    740         CHROOT_wrt_LogNewFiles "$name"
     749        CHROOT_wrt_LogNewFiles "$name1"
    741750      fi
    742751    fi
     
    807816    if [ "$pkg_tarball" != "" ] ; then
    808817      if [ "${INSTALL_LOG}" = "y" ] ; then
    809         CHROOT_wrt_LogNewFiles "$name"
     818        CHROOT_wrt_TouchTimestamp
    810819      fi
    811820      CHROOT_Unpack "$pkg_tarball"
Note: See TracChangeset for help on using the changeset viewer.