source:
contrib/jhalfs-paco.patch@
b2489fb
Last change on this file since b2489fb was a708b15, checked in by , 18 years ago | |
---|---|
|
|
File size: 21.8 KB |
-
LFS/master.sh
176 176 # Keep the script file name 177 177 this_script=`basename $file` 178 178 179 # If $this_script corresponds to a paco script, then skip it 180 case "${this_script}" in 181 *paco) continue ;; 182 esac 183 179 184 # We'll run the chroot commands differently than the others, so skip them in the 180 185 # dependencies and target creation. 181 186 case "${this_script}" in … … 183 188 *stripping*) [[ "${STRIP}" = "0" ]] && continue ;; 184 189 esac 185 190 191 # Install paco as the first package in ch6, before installing 192 # linux-libc-headers, except in iterartive builds 193 if [[ -z "$N" ]]; then 194 case $this_script in 195 *linux-libc-headers) 196 TMP_SCRIPT="$this_script" 197 this_script=`echo $this_script | sed -e 's/linux-libc-headers/a-paco/'` 198 wrt_paco_inst "$this_script" 199 this_script="$TMP_SCRIPT" ;; 200 esac 201 fi 202 186 203 # Grab the name of the target 187 204 name=`echo ${this_script} | sed -e 's@[0-9]\{3\}-@@'` 188 205 … … 235 252 # and not to use chroot. 236 253 case "${this_script}" in 237 254 *kernfs) wrt_run_as_root "${this_script}" "$file" ;; 238 *) wrt_run_as_chroot1 "${this_script}" "$file" ;; 255 *) wrt_paco_prep 256 wrt_run_as_chroot1 "${this_script}" "$file" 257 wrt_paco_log "$pkg_tarball" ;; 239 258 esac 240 259 241 260 # Remove the build directory(ies) except if the package build fails. … … 255 274 PREV=${this_script}${N} 256 275 # Set system_build envar for iteration targets 257 276 system_build=$chapter6 277 278 # Reinstalling paco after readsjusting the toolchain. 279 case "${this_script}" in 280 *readjusting) 281 TMP_SCRIPT="$this_script" 282 this_script=`echo ${this_script} | sed -e 's/readjusting/x-paco/'` 283 wrt_paco_inst "$this_script" 284 this_script="$TMP_SCRIPT" ;; 285 esac 286 258 287 done # end for file in chapter06/* 259 288 } 260 289 … … 315 344 else 316 345 wrt_run_as_chroot2 "$this_script" "$file" 317 346 fi 347 wrt_paco_log "lfs-sysconf" 318 348 ;; 349 *kernel) wrt_paco_prep 350 wrt_run_as_chroot2 "$this_script" "$file" 351 wrt_paco_log "$pkg_tarball" 352 ;; 353 *bootscripts) wrt_paco_prep 354 wrt_run_as_chroot2 "$this_script" "$file" 355 wrt_paco_log "$pkg_tarball" 356 ;; 319 357 *) wrt_run_as_chroot2 "$this_script" "$file" 358 wrt_paco_log "lfs-sysconf" 320 359 ;; 321 360 esac 322 361 -
LFS/lfs.xsl
32 32 <!-- Locale settings --> 33 33 <xsl:param name="lang" select="C"/> 34 34 35 <!-- Use paco? --> 36 <xsl:param name="use_paco" select="1"/> 37 35 38 <xsl:template match="/"> 36 39 <xsl:apply-templates select="//sect1"/> 37 40 </xsl:template> … … 200 203 <xsl:apply-templates/> 201 204 <xsl:text> || true
</xsl:text> 202 205 </xsl:when> 206 <!-- paco begin --> 207 <!-- General rule --> 208 <xsl:when test="$use_paco != '0' and 209 ancestor::chapter[@id != 'chapter-temporary-tools'] and 210 contains(string(),'make') and 211 contains(string(),'install')"> 212 <xsl:text>export LD_PRELOAD=/usr/lib/libpaco-log.so
</xsl:text> 213 <xsl:apply-templates/> 214 <xsl:text>
</xsl:text> 215 </xsl:when> 216 <!-- Linux-libc-headers --> 217 <xsl:when test="$use_paco != '0' and 218 ancestor::sect1[@id='ch-system-linux-libc-headers'] and 219 contains(string(),'install ')"> 220 <xsl:text>export LD_PRELOAD=/usr/lib/libpaco-log.so
</xsl:text> 221 <xsl:apply-templates/> 222 <xsl:text>
</xsl:text> 223 </xsl:when> 224 <!-- Unset LD_PRELOAD before second make in Zlib --> 225 <xsl:when test="$use_paco != '0' and 226 ancestor::sect1[@id='ch-system-zlib'] and 227 contains(string(),'make clean')"> 228 <xsl:text>unset LD_PRELOAD
</xsl:text> 229 <xsl:apply-templates/> 230 <xsl:text>
</xsl:text> 231 </xsl:when> 232 <!-- paco end --> 203 233 <!-- The rest of commands --> 204 234 <xsl:otherwise> 205 235 <xsl:apply-templates/> -
common/paco-build-hlfs.sh
1 #!/bin/sh 2 set -e 3 4 cd $PKGDIR 5 ./configure --sysconfdir=/etc \ 6 --enable-scripts \ 7 --disable-gpaco \ 8 --disable-static \ 9 --with-pic && 10 make && 11 make install && 12 make logme -
common/config
86 86 #--- Run farce testing 0(no)/1(yes) 87 87 RUN_FARCE=0 88 88 89 #==== PACO VARIABLES ==== 90 #--- Use paco? 0(no)/1(yes) 91 USE_PACO=1 92 PACO_VERSION=1.10.8 93 94 #--- Name of the Paco source package 95 PACO_FILE=paco-$PACO_VERSION.tar.* 96 89 97 #==== INTERNAL VARIABLES ==== 90 98 # Don't edit it unless you know what you are doing 91 99 … … 103 111 104 112 #--- farce report log directory 105 113 FARCELOGDIR=$LOGDIR/farce 114 115 #--- Variables needed by paco 116 PACO_INCLUDE=/ 117 PACO_EXCLUDE=/${SCRIPT_ROOT} 118 PACO_TMPFILE=/tmp/paco.tmp 119 LD_PRELOAD=/usr/lib/libpaco-log.so -
common/func_validate_configs.sh
84 84 inline_doc 85 85 86 86 # First internal variables, then the ones that change the book's flavour, and lastly system configuration variables 87 local -r hlfs_PARAM_LIST="BOOK BUILDDIR SRC_ARCHIVE GETPKG RUNMAKE MODEL GRSECURITY_HOST TEST OPTIMIZE REPORT COMPARE RUN_ICA RUN_FARCE ITERATIONS STRIP FSTAB CONFIG GETKERNEL KEYMAP PAGE TIMEZONE LANG LC_ALL"88 local -r clfs_PARAM_LIST="BOOK BUILDDIR SRC_ARCHIVE GETPKG RUNMAKE METHOD ARCH TARGET TEST OPTIMIZE REPORT COMPARE RUN_ICA RUN_FARCE ITERATIONS STRIP FSTAB BOOT_CONFIG CONFIG GETKERNEL KEYMAP VIMLANG PAGE TIMEZONE LANG"89 local -r lfs_PARAM_LIST="BOOK BUILDDIR SRC_ARCHIVE GETPKG RUNMAKE TEST OPTIMIZE REPORT COMPARE RUN_ICA RUN_FARCE ITERATIONS STRIP FSTAB CONFIG GETKERNEL VIMLANG PAGE TIMEZONE LANG"87 local -r hlfs_PARAM_LIST="BOOK BUILDDIR SRC_ARCHIVE USE_PACO GETPKG RUNMAKE MODEL GRSECURITY_HOST TEST OPTIMIZE REPORT COMPARE RUN_ICA RUN_FARCE ITERATIONS STRIP FSTAB CONFIG GETKERNEL KEYMAP PAGE TIMEZONE LANG LC_ALL" 88 local -r clfs_PARAM_LIST="BOOK BUILDDIR SRC_ARCHIVE USE_PACO GETPKG RUNMAKE METHOD ARCH TARGET TEST OPTIMIZE REPORT COMPARE RUN_ICA RUN_FARCE ITERATIONS STRIP FSTAB BOOT_CONFIG CONFIG GETKERNEL KEYMAP VIMLANG PAGE TIMEZONE LANG" 89 local -r lfs_PARAM_LIST="BOOK BUILDDIR SRC_ARCHIVE USE_PACO GETPKG RUNMAKE TEST OPTIMIZE REPORT COMPARE RUN_ICA RUN_FARCE ITERATIONS STRIP FSTAB CONFIG GETKERNEL VIMLANG PAGE TIMEZONE LANG" 90 90 91 91 local -r ERROR_MSG_pt1='The variable \"${L_arrow}${config_param}${R_arrow}\" value ${L_arrow}${BOLD}${!config_param}${R_arrow} is invalid,' 92 92 local -r ERROR_MSG_pt2=' check the config file ${BOLD}${GREEN}\<$(echo $PROGNAME | tr [a-z] [A-Z])/config\> or \<common/config\>${OFF}' … … 176 176 [[ "$GETPKG" = "1" ]] && validate_against_str "x0x x1x" 177 177 fi ;; 178 178 RUNMAKE) validate_against_str "x0x x1x" ;; 179 USE_PACO) validate_against_str "x0x x1x" ;; 179 180 REPORT) validate_against_str "x0x x1x" 180 181 if [[ "${!config_param}" = "1" ]]; then 181 182 if [[ `type -p bc` ]]; then -
common/paco-functions
1 #!/bin/bash 2 3 #----------------------------# 4 wrt_paco_inst() { # 5 #----------------------------# 6 7 # Not using Paco with uClibc, even if requested 8 if [ $PROGNAME = "hlfs" ]; then 9 if [ $MODEL = "uclibc" ]; then 10 USE_PACO=0 11 fi 12 fi 13 14 if [ $USE_PACO != 0 ]; then 15 paco_script="$1" 16 paco_file="chapter06/$paco_script" 17 chapter6="$chapter6 $paco_script" 18 19 # Copy the paco build script to the correct directory and make it executable 20 cp $JHALFSDIR/paco-build-$PROGNAME.sh $JHALFSDIR/${PROGNAME}-commands/$paco_file && 21 chmod +x $JHALFSDIR/${PROGNAME}-commands/$paco_file 22 23 # Write target, dependency and unpack 24 wrt_target "$paco_script" "$PREV" 25 wrt_unpack2 "$PACO_FILE" 26 27 # Run the script 28 wrt_run_as_chroot1 "${paco_script}" "${paco_file}" 29 30 # Clean up 31 wrt_remove_build_dirs "paco" 32 wrt_touch 33 34 # Override the PREV variable 35 PREV="$paco_script" 36 fi 37 } 38 39 40 #----------------------------------# 41 wrt_paco_prep() { # Export Paco variables 42 #----------------------------------# and remove tmpfile 43 44 # Not using Paco with uClibc, even if requested 45 if [ $PROGNAME = "hlfs" ]; then 46 if [ $MODEL = "uclibc" ]; then 47 USE_PACO=0 48 fi 49 fi 50 51 check_log_package 52 53 if [ $USE_PACO != 0 ] && [ $LOG_PACKAGE != 0 ]; then 54 ( 55 cat << EOF 56 @echo "export PACO_INCLUDE=$PACO_INCLUDE" >> envars && \\ 57 echo "export PACO_EXCLUDE=\$(SRC):$PACO_EXCLUDE" >> envars && \\ 58 echo "export PACO_TMPFILE=$PACO_TMPFILE" >> envars && \\ 59 rm -f \$(MOUNT_PT)$PACO_TMPFILE 60 EOF 61 ) >> $MKFILE.tmp 62 fi 63 } 64 65 66 #----------------------------------# 67 wrt_paco_log() { # If the tmpfile exist, then log the current package 68 #----------------------------------# and remove tempfile 69 local PACKAGE 70 71 PACKAGE=`echo $1 | sed -e 's/.tar.*//'` 72 73 # Not using Paco with uClibc, even if requested 74 if [ $PROGNAME = "hlfs" ]; then 75 if [ $MODEL = "uclibc" ]; then 76 USE_PACO=0 77 fi 78 fi 79 80 check_log_package 81 82 if [ $USE_PACO != 0 ]; then 83 if [ $LOG_PACKAGE != 0 ]; then 84 ( 85 cat << EOF 86 @if [ -e \$(MOUNT_PT)$PACO_TMPFILE ]; then \\ 87 \$(CHROOT1) 'paco -lp+ $PACKAGE < $PACO_TMPFILE' && \\ 88 rm -f \$(MOUNT_PT)$PACO_TMPFILE; \\ 89 fi; 90 EOF 91 ) >> $MKFILE.tmp 92 fi 93 wrt_paco_add_log 94 fi 95 } 96 97 98 #----------------------------------# 99 wrt_paco_add_log() { # 100 #----------------------------------# 101 # Some packages create files using bash redirection, which the LD_PRELOAD lib don't notice 102 # These rules will add the missing files to the proper logs. 103 # Most of these is not needed for HLFS, but they do no harm. 104 if [ $USE_PACO != 0 ]; then 105 case $this_script in 106 *glibc) 107 echo -e "\t@\$(CHROOT1) 'find /lib -type l | paco -lp+ $PACKAGE'" >> $MKFILE.tmp 108 echo -e "\t@\$(CHROOT1) 'find /etc/{nsswitch.conf,ld.so.conf} | paco -lp+ $PACKAGE'" >> $MKFILE.tmp 109 ;; 110 *ncurses) 111 LIBS="/usr/lib/{libcurses.so,libncurses.so,libform.so,libpanel.so,libmenu.so}" 112 echo -e "\t@\$(CHROOT1) 'find $LIBS | paco -lp+ $PACKAGE'" >> $MKFILE.tmp 113 ;; 114 *bash) 115 echo -e "\t@\$(CHROOT1) 'echo /bin/sh | paco -lp+ $PACKAGE'" >> $MKFILE.tmp 116 ;; 117 *flex) 118 echo -e "\t@\$(CHROOT1) 'echo /usr/bin/lex | paco -lp+ $PACKAGE'" >> $MKFILE.tmp 119 ;; 120 *shadow) 121 echo -e "\t@\$(CHROOT1) 'echo /etc/login.defs | paco -lp+ $PACKAGE'" >> $MKFILE.tmp 122 ;; 123 *hotplug) 124 echo -e "\t@\$(CHROOT1) 'echo /var/log/hotplug | paco -lp+ $PACKAGE'" >> $MKFILE.tmp 125 echo -e "\t@\$(CHROOT1) 'echo /var/run/usb | paco -lp+ $PACKAGE'" >> $MKFILE.tmp 126 ;; 127 *sysklogd) 128 echo -e "\t@\$(CHROOT1) 'echo /etc/syslog.conf | paco -lp+ $PACKAGE'" >> $MKFILE.tmp 129 ;; 130 *sysvinit) 131 echo -e "\t@\$(CHROOT1) 'echo /etc/inittab | paco -lp+ $PACKAGE'" >> $MKFILE.tmp 132 ;; 133 *udev) 134 echo -e "\t@\$(CHROOT1) 'find /lib/udev/devices | paco -lp+ $PACKAGE'" >> $MKFILE.tmp 135 echo -e "\t@\$(CHROOT1) 'echo /lib/firmware | paco -lp+ $PACKAGE'" >> $MKFILE.tmp 136 echo -e "\t@\$(CHROOT1) 'find /etc/udev/rules.d -type f | paco -lp+ $PACKAGE'" >> $MKFILE.tmp 137 ;; 138 *util-linux) 139 echo -e "\t@\$(CHROOT1) 'echo /var/lib/hwclock | paco -lp+ $PACKAGE'" >> $MKFILE.tmp 140 echo -e "\t@\$(CHROOT1) 'echo /etc/nologin.txt | paco -lp+ $PACKAGE'" >> $MKFILE.tmp 141 ;; 142 *vim) 143 echo -e "\t@\$(CHROOT1) 'echo /etc/vimrc | paco -lp+ $PACKAGE'" >> $MKFILE.tmp 144 ;; 145 # Rules below here will log configuration files created in LFS and HLFS 146 # They will end up in a log named {h}lfs-sysconf 147 *setclock) 148 echo -e "\t@\$(CHROOT2) 'echo /etc/sysconfig/clock | paco -lp+ $PACKAGE'" >> $MKFILE.tmp 149 ;; 150 *inputrc) 151 echo -e "\t@\$(CHROOT2) 'echo /etc/inputrc | paco -lp+ $PACKAGE'" >> $MKFILE.tmp 152 ;; 153 *profile) 154 echo -e "\t@\$(CHROOT2) 'echo /etc/profile | paco -lp+ $PACKAGE'" >> $MKFILE.tmp 155 ;; 156 *hostname) 157 echo -e "\t@\$(CHROOT2) 'echo /etc/sysconfig/network | paco -lp+ $PACKAGE'" >> $MKFILE.tmp 158 ;; 159 *localnet) 160 echo -e "\t@\$(CHROOT2) 'echo /etc/sysconfig/network | paco -lp+ $PACKAGE'" >> $MKFILE.tmp 161 ;; 162 *hosts) 163 echo -e "\t@\$(CHROOT2) 'echo /etc/hosts | paco -lp+ $PACKAGE'" >> $MKFILE.tmp 164 ;; 165 *network) 166 echo -e "\t@\$(CHROOT2) 'echo /etc/sysconfig/network-devices/ifconfig.eth0/ipv4 | paco -lp+ $PACKAGE'" >> $MKFILE.tmp 167 echo -e "\t@\$(CHROOT2) 'echo /etc/resolv.conf | paco -lp+ $PACKAGE'" >> $MKFILE.tmp 168 ;; 169 *fstab) 170 echo -e "\t@\$(CHROOT2) 'echo /etc/fstab | paco -lp+ $PACKAGE'" >> $MKFILE.tmp 171 ;; 172 *theend) # LFS 173 echo -e "\t@\$(CHROOT2) 'echo /etc/$PROGNAME-release | paco -lp+ $PACKAGE'" >> $MKFILE.tmp 174 ;; 175 *finished) # HLFS 176 echo -e "\t@\$(CHROOT2) 'echo /etc/$PROGNAME-release | paco -lp+ $PACKAGE'" >> $MKFILE.tmp 177 ;; 178 esac 179 fi 180 } 181 182 183 #----------------------------------# 184 check_log_package() { # 185 #----------------------------------# 186 # Maybe don't need this function, but it will avoid writing some 187 # unnecessary paco commands in the Makefile. 188 189 case $this_script in 190 *changingowner) LOG_PACKAGE=0 ;; 191 *creatingdirs) LOG_PACKAGE=0 ;; 192 *createfiles) LOG_PACKAGE=0 ;; 193 *pwdgroup) LOG_PACKAGE=0 ;; 194 *devices) LOG_PACKAGE=0 ;; 195 *strippingagain) LOG_PACKAGE=0 ;; 196 *readjusting) LOG_PACKAGE=0 ;; 197 *setclock) LOG_PACKAGE=0 ;; 198 *inputrc) LOG_PACKAGE=0 ;; 199 *profile) LOG_PACKAGE=0 ;; 200 *hostname) LOG_PACKAGE=0 ;; 201 *localnet) LOG_PACKAGE=0 ;; 202 *hosts) LOG_PACKAGE=0 ;; 203 *network) LOG_PACKAGE=0 ;; 204 *fstab) LOG_PACKAGE=0 ;; 205 *theend) LOG_PACKAGE=0 ;; 206 *finished) LOG_PACKAGE=0 ;; 207 *) LOG_PACKAGE=1 ;; 208 esac 209 } -
common/paco-build-lfs.sh
1 #!/bin/sh 2 set -e 3 4 cd $PKGDIR 5 ./configure --sysconfdir=/etc \ 6 --enable-scripts \ 7 --disable-gpaco && 8 make && 9 make install && 10 make logme -
common/common-functions
69 69 in the configuration file has the proper packages and patches for the 70 70 book version being processed. 71 71 72 ${BOLD} --no-paco${OFF} 73 dissables paco logging feature. 74 72 75 ${BOLD} -O, --optimize${OFF} 73 76 Optimize [0-2] 74 77 0 = no optimization … … 733 736 --stringparam lc_all $LC_ALL \ 734 737 --stringparam keymap $KEYMAP \ 735 738 --stringparam grsecurity_host $GRSECURITY_HOST \ 739 --stringparam use_paco $USE_PACO \ 736 740 -o ./${PROGNAME}-commands/ $XSL $BOOK/index.xml >>$LOGDIR/$LOG 2>&1 737 741 ;; 738 742 lfs) … … 744 748 --stringparam timezone $TIMEZONE \ 745 749 --stringparam page $PAGE \ 746 750 --stringparam lang $LANG \ 751 --stringparam use_paco $USE_PACO \ 747 752 -o ./${PROGNAME}-commands/ $XSL $BOOK/index.xml >>$LOGDIR/$LOG 2>&1 748 753 ;; 749 754 *) exit 1 ;; -
HLFS/hlfs.xsl
39 39 <xsl:param name="lang" select="C"/> 40 40 <xsl:param name="lc_all" select="C"/> 41 41 42 <!-- Use paco? --> 43 <xsl:param name="use_paco" select="1"/> 44 42 45 <xsl:template match="/"> 43 46 <xsl:apply-templates select="//sect1"/> 44 47 </xsl:template> … … 191 194 <!-- Fixing bootscripts installation --> 192 195 <xsl:when test="ancestor::sect1[@id='bootable-bootscripts'] and 193 196 string() = 'make install'"> 197 <!-- inserting LD_PRELOAD before installing bootscripts --> 198 <xsl:if test="$use_paco != '0' and $model != 'uclibc'"> 199 <xsl:text>export LD_PRELOAD=/usr/lib/libpaco-log.so
</xsl:text> 200 </xsl:if> 194 201 <xsl:text>make install
</xsl:text> 195 202 <xsl:text>cd ../blfs-bootscripts-&blfs-bootscripts-version;
</xsl:text> 196 203 </xsl:when> … … 257 264 <xsl:apply-templates/> 258 265 <xsl:text> || true
</xsl:text> 259 266 </xsl:when> 267 <!-- paco begin --> 268 <!-- General rule --> 269 <xsl:when test="$use_paco != '0' and $model != 'uclibc' and 270 ancestor::chapter[@id != 'chapter-temporary-tools'] and 271 contains(string(),'make') and 272 contains(string(),'install')"> 273 <xsl:text>export LD_PRELOAD=/usr/lib/libpaco-log.so
</xsl:text> 274 <xsl:apply-templates/> 275 <xsl:text>
</xsl:text> 276 </xsl:when> 277 <!-- Linux-libc-headers --> 278 <xsl:when test="$use_paco != '0' and $model != 'uclibc' and 279 ancestor::sect1[@id='ch-system-linux-libc-headers'] and 280 contains(string(),'install ')"> 281 <xsl:text>export LD_PRELOAD=/usr/lib/libpaco-log.so
</xsl:text> 282 <xsl:apply-templates/> 283 <xsl:text>
</xsl:text> 284 </xsl:when> 285 <!-- paco end --> 260 286 <!-- The rest of commands --> 261 287 <xsl:otherwise> 262 288 <xsl:apply-templates/> -
HLFS/master.sh
250 250 # Keep the script file name 251 251 this_script=`basename $file` 252 252 253 # If this script is *-paco, then skip it 254 case $this_script in 255 *paco ) continue ;; 256 esac 257 253 258 # Skip this script depending on jhalfs.conf flags set. 254 259 case $this_script in 255 260 # We'll run the chroot commands differently than the others, so skip them in the … … 259 264 *-stripping* ) [[ "$STRIP" = "0" ]] && continue ;; 260 265 esac 261 266 267 # Install paco as the first package in ch6, before installing 268 # linux-libc-headers, except in iterartive builds 269 if [[ -z "$N" ]]; then 270 case $this_script in 271 *linux-libc-headers) 272 TMP_SCRIPT="$this_script" 273 this_script=`echo $this_script | sed -e 's/linux-libc-headers/a-paco/'` 274 wrt_paco_inst "$this_script" 275 this_script="$TMP_SCRIPT" ;; 276 esac 277 fi 278 262 279 # Grab the name of the target 263 280 name=`echo $this_script | sed -e 's@[0-9]\{3\}-@@'` 264 281 … … 334 351 wrt_run_as_root "${this_script}" "${file}" 335 352 ;; 336 353 *) # The rest of Chapter06 354 wrt_paco_prep 337 355 wrt_run_as_chroot1 "${this_script}" "${file}" 356 wrt_paco_log "$pkg_tarball" 338 357 ;; 339 358 esac 340 359 # … … 367 386 PREV=${this_script}${N} 368 387 # Set system_build envar for iteration targets 369 388 system_build=$chapter6 389 390 # Reinstall paco after the toolchain has been readjusted. 391 case "${this_script}" in 392 *readjusting) 393 TMP_SCRIPT="$this_script" 394 this_script=`echo $this_script | sed -e 's/readjusting/x-paco/'` 395 wrt_paco_inst "$this_script" 396 this_script="$TMP_SCRIPT" ;; 397 esac 398 370 399 done # end for file in chapter06/* 371 400 372 401 } … … 426 455 else # Initialize the log and run the script 427 456 wrt_run_as_chroot2 "${this_script}" "${file}" 428 457 fi 458 wrt_paco_log "hlfs-sysconf" 429 459 ;; 460 *kernel) wrt_paco_prep 461 wrt_run_as_chroot2 "$this_script" "$file" 462 wrt_paco_log "$(get_package_tarball_name "linux")" 463 ;; 464 *bootscripts) wrt_paco_prep 465 wrt_run_as_chroot2 "$this_script" "$file" 466 wrt_paco_log "$(get_package_tarball_name "lfs-bootscripts")" 467 ;; 430 468 *) # All other scripts 431 469 wrt_run_as_chroot2 "${this_script}" "${file}" 470 wrt_paco_log "hlfs-sysconf" 432 471 ;; 433 472 esac 434 473 -
master.sh
149 149 150 150 --help | -h ) usage | more && exit ;; 151 151 152 --no-paco ) USE_PACO=0 ;; 153 152 154 --optimize | -O ) 153 155 test $# = 1 && eval "$exit_missing_arg" 154 156 shift … … 440 442 [[ $VERBOSITY > 0 ]] && echo "OK" 441 443 fi 442 444 # 445 # paco module 446 if [[ "$USE_PACO" = "1" ]]; then 447 [[ $VERBOSITY > 0 ]] && echo -n "Loading paco module..." 448 source $COMMON_DIR/paco-functions 449 [[ $? > 0 ]] && echo "$COMMON_DIR/paco-functions did not load.." && exit 2 450 [[ $VERBOSITY > 0 ]] && echo "OK" 451 fi 452 # 443 453 # optimize module 444 454 if [[ "$OPTIMIZE" != "0" ]]; then 445 455 [[ $VERBOSITY > 0 ]] && echo -n "Loading optimization module..." … … 486 496 if [[ "$PWD" != "$JHALFSDIR" ]]; then 487 497 cp $COMMON_DIR/{makefile-functions,progress_bar.sh} $JHALFSDIR/ 488 498 # 499 [[ $USE_PACO != "0" ]] && cp $COMMON_DIR/paco-build-$PROGNAME.sh $JHALFSDIR/ 500 # 489 501 [[ "$OPTIMIZE" != "0" ]] && cp optimize/opt_override $JHALFSDIR/ 490 502 # 491 503 if [[ "$COMPARE" != "0" ]] ; then
Note:
See TracBrowser
for help on using the repository browser.