Changeset f33756b for LFS/master.sh


Ignore:
Timestamp:
10/05/2013 05:52:45 PM (11 years ago)
Author:
Pierre Labastie <pierre@…>
Branches:
ablfs
Children:
6216d18c
Parents:
3fed586
Message:

merge trunk r3730:3732

File:
1 edited

Legend:

Unmodified
Added
Removed
  • LFS/master.sh

    r3fed586 rf33756b  
    114114    #--------------------------------------------------------------------#
    115115    #
     116    # Find the name of the tarball and the version of the package
     117    pkg_tarball=$(get_package_tarball_name $name)
     118    pkg_version=$(get_package_version $pkg_tarball)
     119
    116120    # Drop in the name of the target on a new line, and the previous target
    117121    # as a dependency. Also call the echo_message function.
    118     LUSER_wrt_target "${this_script}" "$PREV"
    119 
    120     # Find the version of the command files, if it corresponds with the building of
    121     # a specific package
    122     pkg_tarball=$(get_package_tarball_name $name)
     122    LUSER_wrt_target "${this_script}" "$PREV" "$pkg_version"
    123123
    124124    # If $pkg_tarball isn't empty, we've got a package...
     
    127127      LUSER_wrt_unpack "$pkg_tarball"
    128128      # If the testsuites must be run, initialize the log file
    129       [[ "$TEST" = "3" ]] && LUSER_wrt_test_log "${this_script}"
     129      [[ "$TEST" = "3" ]] && LUSER_wrt_test_log "${this_script}" "$pkg_version"
    130130      # If using optimizations, write the instructions
    131131      [[ "$OPTIMIZE" = "2" ]] &&  wrt_optimize "$name" && wrt_makeflags "$name"
     
    136136    # The changingowner script must be run as root.
    137137    case "${this_script}" in
    138       *changingowner)  wrt_RunAsRoot "$file" ;;
    139       *)               LUSER_wrt_RunAsUser "$file" ;;
     138      *changingowner)  wrt_RunAsRoot "$file" "$pkg_version" ;;
     139      *)               LUSER_wrt_RunAsUser "$file" "$pkg_version" ;;
    140140    esac
    141141
     
    214214    # iterations rebuilds
    215215    pkg_tarball=$(get_package_tarball_name $name)
     216    pkg_version=$(get_package_version $pkg_tarball)
    216217
    217218    if [[ "$pkg_tarball" = "" ]] && [[ -n "$N" ]] ; then
     
    239240    # and not to use chroot.
    240241    case "${this_script}" in
    241       *kernfs)  LUSER_wrt_target  "${this_script}" "$PREV" ;;
    242       *)        CHROOT_wrt_target "${this_script}" "$PREV" ;;
     242      *kernfs)  LUSER_wrt_target  "${this_script}" "$PREV" "$pkg_version" ;;
     243      *)        CHROOT_wrt_target "${this_script}" "$PREV" "$pkg_version" ;;
    243244    esac
    244245
     
    255256      case $name in
    256257        binutils | gcc | glibc | gmp | mpfr )
    257           [[ "$TEST" != "0" ]] && CHROOT_wrt_test_log "${this_script}"
     258          [[ "$TEST" != "0" ]] && CHROOT_wrt_test_log "${this_script}" "$pkg_version"
    258259          ;;
    259260        * )
    260           [[ "$TEST" = "2" ]] || [[ "$TEST" = "3" ]] && CHROOT_wrt_test_log "${this_script}"
     261          [[ "$TEST" = "2" ]] || [[ "$TEST" = "3" ]] && CHROOT_wrt_test_log "${this_script}" "$pkg_version"
    261262          ;;
    262263      esac
     
    268269    # and not to use chroot.
    269270    case "${this_script}" in
    270       *kernfs)  wrt_RunAsRoot  "$file" ;;
    271       *)        CHROOT_wrt_RunAsRoot "$file" ;;
     271      *kernfs)  wrt_RunAsRoot  "$file" "$pkg_version" ;;
     272      *)        CHROOT_wrt_RunAsRoot "$file" "$pkg_version" ;;
    272273    esac
    273274
Note: See TracChangeset for help on using the changeset viewer.