source:
contrib/jhalfs-paco.patch@
5faab22
Last change on this file since 5faab22 was b9ec725, checked in by , 18 years ago | |
---|---|
|
|
File size: 21.9 KB |
-
LFS/master.sh
173 173 # Keep the script file name 174 174 this_script=`basename $file` 175 175 176 # If $this_script corresponds to a paco script, then skip it 177 case "${this_script}" in 178 *paco) continue ;; 179 esac 180 176 181 # We'll run the chroot commands differently than the others, so skip them in the 177 182 # dependencies and target creation. 178 183 case "${this_script}" in … … 180 185 *stripping*) [[ "${STRIP}" = "0" ]] && continue ;; 181 186 esac 182 187 188 # Install paco as the first package in ch6, before installing 189 # linux-libc-headers, except in iterartive builds 190 if [[ -z "$N" ]]; then 191 case $this_script in 192 *linux-libc-headers) 193 TMP_SCRIPT="$this_script" 194 this_script=`echo $this_script | sed -e 's/linux-libc-headers/a-paco/'` 195 wrt_paco_inst "$this_script" 196 this_script="$TMP_SCRIPT" ;; 197 esac 198 fi 199 183 200 # Grab the name of the target 184 201 name=`echo ${this_script} | sed -e 's@[0-9]\{3\}-@@'` 185 202 … … 223 240 # and not to use chroot. 224 241 case "${this_script}" in 225 242 *kernfs) wrt_run_as_root "${this_script}" "$file" ;; 226 *) wrt_run_as_chroot1 "${this_script}" "$file" ;; 243 *) wrt_paco_prep 244 wrt_run_as_chroot1 "${this_script}" "$file" 245 wrt_paco_log "$name" "$vrs" ;; 227 246 esac 228 247 229 248 # Remove the build directory(ies) except if the package build fails. … … 243 262 PREV=${this_script}${N} 244 263 # Set system_build envar for iteration targets 245 264 system_build=$chapter6 265 266 # Reinstalling paco after readsjusting the toolchain. 267 case "${this_script}" in 268 *readjusting) 269 TMP_SCRIPT="$this_script" 270 this_script=`echo ${this_script} | sed -e 's/readjusting/x-paco/'` 271 wrt_paco_inst "$this_script" 272 this_script="$TMP_SCRIPT" ;; 273 esac 274 246 275 done # end for file in chapter06/* 247 276 } 248 277 … … 303 332 else 304 333 wrt_run_as_chroot2 "$this_script" "$file" 305 334 fi 335 wrt_paco_log "lfs-sysconf" 306 336 ;; 337 *kernel) wrt_paco_prep 338 wrt_run_as_chroot2 "$this_script" "$file" 339 wrt_paco_log "linux-kernel" "$vrs" 340 ;; 341 *bootscripts) wrt_paco_prep 342 wrt_run_as_chroot2 "$this_script" "$file" 343 wrt_paco_log "lfs-bootscripts" "$vrs" 344 ;; 307 345 *) wrt_run_as_chroot2 "$this_script" "$file" 346 wrt_paco_log "lfs-sysconf" 308 347 ;; 309 348 esac 310 349 -
LFS/lfs.xsl
32 32 <!-- Locale settings --> 33 33 <xsl:param name="lang" select="en_CA"/> 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> … … 190 193 <xsl:apply-templates/> 191 194 <xsl:text> || true
</xsl:text> 192 195 </xsl:when> 196 <!-- paco begin --> 197 <!-- General rule --> 198 <xsl:when test="$use_paco != '0' and 199 ancestor::chapter[@id != 'chapter-temporary-tools'] and 200 contains(string(),'make') and 201 contains(string(),'install')"> 202 <xsl:text>export LD_PRELOAD=/usr/lib/libpaco-log.so
</xsl:text> 203 <xsl:apply-templates/> 204 <xsl:text>
</xsl:text> 205 </xsl:when> 206 <!-- Linux-libc-headers --> 207 <xsl:when test="$use_paco != '0' and 208 ancestor::sect1[@id='ch-system-linux-libc-headers'] and 209 contains(string(),'install ')"> 210 <xsl:text>export LD_PRELOAD=/usr/lib/libpaco-log.so
</xsl:text> 211 <xsl:apply-templates/> 212 <xsl:text>
</xsl:text> 213 </xsl:when> 214 <!-- Unset LD_PRELOAD before second make in Zlib --> 215 <xsl:when test="$use_paco != '0' and 216 ancestor::sect1[@id='ch-system-zlib'] and 217 contains(string(),'make clean')"> 218 <xsl:text>unset LD_PRELOAD
</xsl:text> 219 <xsl:apply-templates/> 220 <xsl:text>
</xsl:text> 221 </xsl:when> 222 <!-- paco end --> 193 223 <!-- The rest of commands --> 194 224 <xsl:otherwise> 195 225 <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
84 84 #--- Run farce testing 0(no)/1(yes) 85 85 RUN_FARCE=0 86 86 87 #==== PACO VARIABLES ==== 88 #--- Use paco? 0(no)/1(yes) 89 USE_PACO=1 90 PACO_VERSION=1.10.8 91 92 #--- Name of the Paco source package 93 PACO_FILE=paco-$PACO_VERSION.tar.* 94 87 95 #==== INTERNAL VARIABLES ==== 88 96 # Don't edit it unless you know what you are doing 89 97 … … 96 104 97 105 #--- farce report log directory 98 106 FARCELOGDIR=$LOGDIR/farce 107 108 #--- Variables needed by paco 109 PACO_INCLUDE=/ 110 PACO_EXCLUDE=/jhalfs 111 PACO_TMPFILE=/tmp/paco.tmp 112 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 echo -e '\t@touch $@' >> $MKFILE.tmp 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 # Allow packages to be logged without version 72 if [[ $2 != "" ]] ; then 73 PACKAGE="$1-$2"; 74 else 75 PACKAGE="$1" 76 fi 77 78 # Not using Paco with uClibc, even if requested 79 if [ $PROGNAME = "hlfs" ]; then 80 if [ $MODEL = "uclibc" ]; then 81 USE_PACO=0 82 fi 83 fi 84 85 check_log_package 86 87 if [ $USE_PACO != 0 ]; then 88 if [ $LOG_PACKAGE != 0 ]; then 89 ( 90 cat << EOF 91 @if [ -e \$(MOUNT_PT)$PACO_TMPFILE ]; then \\ 92 \$(CHROOT1) 'paco -lp+ $PACKAGE < $PACO_TMPFILE' && \\ 93 rm -f \$(MOUNT_PT)$PACO_TMPFILE; \\ 94 fi; 95 EOF 96 ) >> $MKFILE.tmp 97 fi 98 wrt_paco_add_log 99 fi 100 } 101 102 103 #----------------------------------# 104 wrt_paco_add_log() { # 105 #----------------------------------# 106 # Some packages create files using bash redirection, which the LD_PRELOAD lib don't notice 107 # These rules will add the missing files to the proper logs. 108 # Most of these is not needed for HLFS, but they do no harm. 109 if [ $USE_PACO != 0 ]; then 110 case $this_script in 111 *glibc) 112 echo -e "\t@\$(CHROOT1) 'find /lib -type l | paco -lp+ $PACKAGE'" >> $MKFILE.tmp 113 echo -e "\t@\$(CHROOT1) 'find /etc/{nsswitch.conf,ld.so.conf} | paco -lp+ $PACKAGE'" >> $MKFILE.tmp 114 ;; 115 *ncurses) 116 LIBS="/usr/lib/{libcurses.so,libncurses.so,libform.so,libpanel.so,libmenu.so}" 117 echo -e "\t@\$(CHROOT1) 'find $LIBS | paco -lp+ $PACKAGE'" >> $MKFILE.tmp 118 ;; 119 *bash) 120 echo -e "\t@\$(CHROOT1) 'echo /bin/sh | paco -lp+ $PACKAGE'" >> $MKFILE.tmp 121 ;; 122 *flex) 123 echo -e "\t@\$(CHROOT1) 'echo /usr/bin/lex | paco -lp+ $PACKAGE'" >> $MKFILE.tmp 124 ;; 125 *shadow) 126 echo -e "\t@\$(CHROOT1) 'echo /etc/login.defs | paco -lp+ $PACKAGE'" >> $MKFILE.tmp 127 ;; 128 *hotplug) 129 echo -e "\t@\$(CHROOT1) 'echo /var/log/hotplug | paco -lp+ $PACKAGE'" >> $MKFILE.tmp 130 echo -e "\t@\$(CHROOT1) 'echo /var/run/usb | paco -lp+ $PACKAGE'" >> $MKFILE.tmp 131 ;; 132 *sysklogd) 133 echo -e "\t@\$(CHROOT1) 'echo /etc/syslog.conf | paco -lp+ $PACKAGE'" >> $MKFILE.tmp 134 ;; 135 *sysvinit) 136 echo -e "\t@\$(CHROOT1) 'echo /etc/inittab | paco -lp+ $PACKAGE'" >> $MKFILE.tmp 137 ;; 138 *udev) 139 echo -e "\t@\$(CHROOT1) 'find /lib/udev/devices | paco -lp+ $PACKAGE'" >> $MKFILE.tmp 140 echo -e "\t@\$(CHROOT1) 'echo /lib/firmware | paco -lp+ $PACKAGE'" >> $MKFILE.tmp 141 echo -e "\t@\$(CHROOT1) 'find /etc/udev/rules.d -type f | paco -lp+ $PACKAGE'" >> $MKFILE.tmp 142 ;; 143 *util-linux) 144 echo -e "\t@\$(CHROOT1) 'echo /var/lib/hwclock | paco -lp+ $PACKAGE'" >> $MKFILE.tmp 145 echo -e "\t@\$(CHROOT1) 'echo /etc/nologin.txt | paco -lp+ $PACKAGE'" >> $MKFILE.tmp 146 ;; 147 *vim) 148 echo -e "\t@\$(CHROOT1) 'echo /etc/vimrc | paco -lp+ $PACKAGE'" >> $MKFILE.tmp 149 ;; 150 # Rules below here will log configuration files created in LFS and HLFS 151 # They will end up in a log named {h}lfs-sysconf 152 *setclock) 153 echo -e "\t@\$(CHROOT2) 'echo /etc/sysconfig/clock | paco -lp+ $PACKAGE'" >> $MKFILE.tmp 154 ;; 155 *inputrc) 156 echo -e "\t@\$(CHROOT2) 'echo /etc/inputrc | paco -lp+ $PACKAGE'" >> $MKFILE.tmp 157 ;; 158 *profile) 159 echo -e "\t@\$(CHROOT2) 'echo /etc/profile | paco -lp+ $PACKAGE'" >> $MKFILE.tmp 160 ;; 161 *hostname) 162 echo -e "\t@\$(CHROOT2) 'echo /etc/sysconfig/network | paco -lp+ $PACKAGE'" >> $MKFILE.tmp 163 ;; 164 *localnet) 165 echo -e "\t@\$(CHROOT2) 'echo /etc/sysconfig/network | paco -lp+ $PACKAGE'" >> $MKFILE.tmp 166 ;; 167 *hosts) 168 echo -e "\t@\$(CHROOT2) 'echo /etc/hosts | paco -lp+ $PACKAGE'" >> $MKFILE.tmp 169 ;; 170 *network) 171 echo -e "\t@\$(CHROOT2) 'echo /etc/sysconfig/network-devices/ifconfig.eth0/ipv4 | paco -lp+ $PACKAGE'" >> $MKFILE.tmp 172 echo -e "\t@\$(CHROOT2) 'echo /etc/resolv.conf | paco -lp+ $PACKAGE'" >> $MKFILE.tmp 173 ;; 174 *fstab) 175 echo -e "\t@\$(CHROOT2) 'echo /etc/fstab | paco -lp+ $PACKAGE'" >> $MKFILE.tmp 176 ;; 177 *theend) # LFS 178 echo -e "\t@\$(CHROOT2) 'echo /etc/$PROGNAME-release | paco -lp+ $PACKAGE'" >> $MKFILE.tmp 179 ;; 180 *finished) # HLFS 181 echo -e "\t@\$(CHROOT2) 'echo /etc/$PROGNAME-release | paco -lp+ $PACKAGE'" >> $MKFILE.tmp 182 ;; 183 esac 184 fi 185 } 186 187 188 #----------------------------------# 189 check_log_package() { # 190 #----------------------------------# 191 # Maybe don't need this function, but it will avoid writing some 192 # unnecessary paco commands in the Makefile. 193 194 case $this_script in 195 *creatingdirs) LOG_PACKAGE=0 ;; 196 *createfiles) LOG_PACKAGE=0 ;; 197 *strippingagain) LOG_PACKAGE=0 ;; 198 *readjusting) LOG_PACKAGE=0 ;; 199 *setclock) LOG_PACKAGE=0 ;; 200 *inputrc) LOG_PACKAGE=0 ;; 201 *profile) LOG_PACKAGE=0 ;; 202 *hostname) LOG_PACKAGE=0 ;; 203 *localnet) LOG_PACKAGE=0 ;; 204 *hosts) LOG_PACKAGE=0 ;; 205 *network) LOG_PACKAGE=0 ;; 206 *fstab) LOG_PACKAGE=0 ;; 207 *theend) LOG_PACKAGE=0 ;; 208 *finished) LOG_PACKAGE=0 ;; 209 *) LOG_PACKAGE=1 ;; 210 esac 211 } -
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
65 65 in the configuration file has the proper packages and patches for the 66 66 book version being processed. 67 67 68 ${BOLD} --no-paco${OFF} 69 dissables paco logging feature. 70 68 71 ${BOLD} -O, --optimize${OFF} 69 72 Optimize [0-2] 70 73 0 = no optimization … … 557 560 --stringparam lc_all $LC_ALL \ 558 561 --stringparam keymap $KEYMAP \ 559 562 --stringparam grsecurity_host $GRSECURITY_HOST \ 563 --stringparam use_paco $USE_PACO \ 560 564 -o ./${PROGNAME}-commands/ $XSL $BOOK/index.xml >>$LOGDIR/$LOG 2>&1 561 565 ;; 562 566 lfs) … … 568 572 --stringparam timezone $TIMEZONE \ 569 573 --stringparam page $PAGE \ 570 574 --stringparam lang $LANG \ 575 --stringparam use_paco $USE_PACO \ 571 576 -o ./${PROGNAME}-commands/ $XSL $BOOK/index.xml >>$LOGDIR/$LOG 2>&1 572 577 ;; 573 578 *) exit 1 ;; -
HLFS/hlfs.xsl
39 39 <xsl:param name="lang" select="en_CA"/> 40 40 <xsl:param name="lc_all" select="en_CA"/> 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> … … 248 255 <xsl:apply-templates/> 249 256 <xsl:text> || true
</xsl:text> 250 257 </xsl:when> 258 <!-- paco begin --> 259 <!-- General rule --> 260 <xsl:when test="$use_paco != '0' and $model != 'uclibc' and 261 ancestor::chapter[@id != 'chapter-temporary-tools'] and 262 contains(string(),'make') and 263 contains(string(),'install')"> 264 <xsl:text>export LD_PRELOAD=/usr/lib/libpaco-log.so
</xsl:text> 265 <xsl:apply-templates/> 266 <xsl:text>
</xsl:text> 267 </xsl:when> 268 <!-- Linux-libc-headers --> 269 <xsl:when test="$use_paco != '0' and $model != 'uclibc' and 270 ancestor::sect1[@id='ch-system-linux-libc-headers'] and 271 contains(string(),'install ')"> 272 <xsl:text>export LD_PRELOAD=/usr/lib/libpaco-log.so
</xsl:text> 273 <xsl:apply-templates/> 274 <xsl:text>
</xsl:text> 275 </xsl:when> 276 <!-- paco end --> 251 277 <!-- The rest of commands --> 252 278 <xsl:otherwise> 253 279 <xsl:apply-templates/> -
HLFS/master.sh
245 245 # Keep the script file name 246 246 this_script=`basename $file` 247 247 248 # If this script is *-paco, then skip it 249 case $this_script in 250 *paco ) continue ;; 251 esac 252 248 253 # Skip this script depending on jhalfs.conf flags set. 249 254 case $this_script in 250 255 # We'll run the chroot commands differently than the others, so skip them in the … … 254 259 *-stripping* ) [[ "$STRIP" = "0" ]] && continue ;; 255 260 esac 256 261 262 # Install paco as the first package in ch6, before installing 263 # linux-libc-headers, except in iterartive builds 264 if [[ -z "$N" ]]; then 265 case $this_script in 266 *linux-libc-headers) 267 TMP_SCRIPT="$this_script" 268 this_script=`echo $this_script | sed -e 's/linux-libc-headers/a-paco/'` 269 wrt_paco_inst "$this_script" 270 this_script="$TMP_SCRIPT" ;; 271 esac 272 fi 273 257 274 # Grab the name of the target 258 275 name=`echo $this_script | sed -e 's@[0-9]\{3\}-@@'` 259 276 … … 324 341 wrt_run_as_root "${this_script}" "${file}" 325 342 ;; 326 343 *) # The rest of Chapter06 344 wrt_paco_prep 327 345 wrt_run_as_chroot1 "${this_script}" "${file}" 346 wrt_paco_log "$name" "$vrs" 328 347 ;; 329 348 esac 330 349 # … … 357 376 PREV=${this_script}${N} 358 377 # Set system_build envar for iteration targets 359 378 system_build=$chapter6 379 380 # Reinstall paco after the toolchain has been readjusted. 381 case "${this_script}" in 382 *readjusting) 383 TMP_SCRIPT="$this_script" 384 this_script=`echo $this_script | sed -e 's/readjusting/x-paco/'` 385 wrt_paco_inst "$this_script" 386 this_script="$TMP_SCRIPT" ;; 387 esac 388 360 389 done # end for file in chapter06/* 361 390 362 391 } … … 418 447 else # Initialize the log and run the script 419 448 wrt_run_as_chroot2 "${this_script}" "${file}" 420 449 fi 450 wrt_paco_log "hlfs-sysconf" 421 451 ;; 452 *kernel) wrt_paco_prep 453 wrt_run_as_chroot2 "$this_script" "$file" 454 version=`grep "^linux-version" $JHALFSDIR/packages | sed -e 's/.* //' -e 's/"//g'` 455 wrt_paco_log "linux-kernel" "$version" 456 ;; 457 *bootscripts) wrt_paco_prep 458 wrt_run_as_chroot2 "$this_script" "$file" 459 wrt_paco_log "hlfs-bootscripts" 460 ;; 422 461 *) # All other scripts 423 462 wrt_run_as_chroot2 "${this_script}" "${file}" 463 wrt_paco_log "hlfs-sysconf" 424 464 ;; 425 465 esac 426 466 -
master.sh
147 147 148 148 --help | -h ) usage | more && exit ;; 149 149 150 --no-paco ) USE_PACO=0 ;; 151 150 152 --optimize | -O ) 151 153 test $# = 1 && eval "$exit_missing_arg" 152 154 shift … … 438 440 [[ $VERBOSITY > 0 ]] && echo "OK" 439 441 fi 440 442 # 443 # paco module 444 if [[ "$USE_PACO" = "1" ]]; then 445 [[ $VERBOSITY > 0 ]] && echo -n "Loading paco module..." 446 source $COMMON_DIR/paco-functions 447 [[ $? > 0 ]] && echo "$COMMON_DIR/paco-functions did not load.." && exit 2 448 [[ $VERBOSITY > 0 ]] && echo "OK" 449 fi 450 # 441 451 # optimize module 442 452 if [[ "$OPTIMIZE" != "0" ]]; then 443 453 [[ $VERBOSITY > 0 ]] && echo -n "Loading optimization module..." … … 482 492 # 483 493 if [[ "$PWD" != "$JHALFSDIR" ]]; then 484 494 cp $COMMON_DIR/{makefile-functions,progress_bar.sh} $JHALFSDIR/ 495 # 496 [[ $USE_PACO != "0" ]] && cp $COMMON_DIR/paco-build-$PROGNAME.sh $JHALFSDIR/ 497 # 485 498 [[ "$OPTIMIZE" != "0" ]] && cp optimize/opt_override $JHALFSDIR/ 486 499 if [[ "$COMPARE" != "0" ]] ; then 487 500 mkdir -p $JHALFSDIR/extras
Note:
See TracBrowser
for help on using the repository browser.