Changeset f33756b for LFS/master.sh
- Timestamp:
- 10/05/2013 05:52:45 PM (11 years ago)
- Branches:
- ablfs
- Children:
- 6216d18c
- Parents:
- 3fed586
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
LFS/master.sh
r3fed586 rf33756b 114 114 #--------------------------------------------------------------------# 115 115 # 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 116 120 # Drop in the name of the target on a new line, and the previous target 117 121 # 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" 123 123 124 124 # If $pkg_tarball isn't empty, we've got a package... … … 127 127 LUSER_wrt_unpack "$pkg_tarball" 128 128 # 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" 130 130 # If using optimizations, write the instructions 131 131 [[ "$OPTIMIZE" = "2" ]] && wrt_optimize "$name" && wrt_makeflags "$name" … … 136 136 # The changingowner script must be run as root. 137 137 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" ;; 140 140 esac 141 141 … … 214 214 # iterations rebuilds 215 215 pkg_tarball=$(get_package_tarball_name $name) 216 pkg_version=$(get_package_version $pkg_tarball) 216 217 217 218 if [[ "$pkg_tarball" = "" ]] && [[ -n "$N" ]] ; then … … 239 240 # and not to use chroot. 240 241 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" ;; 243 244 esac 244 245 … … 255 256 case $name in 256 257 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" 258 259 ;; 259 260 * ) 260 [[ "$TEST" = "2" ]] || [[ "$TEST" = "3" ]] && CHROOT_wrt_test_log "${this_script}" 261 [[ "$TEST" = "2" ]] || [[ "$TEST" = "3" ]] && CHROOT_wrt_test_log "${this_script}" "$pkg_version" 261 262 ;; 262 263 esac … … 268 269 # and not to use chroot. 269 270 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" ;; 272 273 esac 273 274
Note:
See TracChangeset
for help on using the changeset viewer.