Changeset 7bf2fdd


Ignore:
Timestamp:
08/18/2006 06:40:45 PM (18 years ago)
Author:
Manuel Canales Esparcia <manuel@…>
Branches:
2.3, 2.3.x, 2.4, ablfs, ablfs-more, legacy, new_features, trunk
Children:
f4ed135
Parents:
8e3ccf7
Message:

PACO patch updates from upstream plus menuconfig support.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • contrib/jhalfs-paco.patch

    r8e3ccf7 r7bf2fdd  
    11Index: LFS/master.sh
    22===================================================================
    3 --- LFS/master.sh       (revision 2916)
     3--- LFS/master.sh       (revision 3007)
    44+++ LFS/master.sh       (working copy)
    5 @@ -173,6 +173,11 @@
     5@@ -172,6 +172,11 @@
    66     # Keep the script file name
    77     this_script=`basename $file`
     
    1515     # dependencies and target creation.
    1616     case "${this_script}" in
    17 @@ -180,6 +185,18 @@
    18        *stripping*) [[ "${STRIP}" = "0" ]] && continue ;;
     17@@ -179,6 +184,18 @@
     18       *stripping*) [[ "${STRIP}" = "n" ]] && continue ;;
    1919     esac
    2020 
     
    3434     name=`echo ${this_script} | sed -e 's@[0-9]\{3\}-@@'`
    3535 
    36 @@ -232,7 +249,9 @@
     36@@ -231,7 +248,9 @@
    3737     # and not to use chroot.
    3838     case "${this_script}" in
     
    4545 
    4646     # Remove the build directory(ies) except if the package build fails.
    47 @@ -252,6 +271,16 @@
     47@@ -251,6 +270,16 @@
    4848     PREV=${this_script}${N}
    4949     # Set system_build envar for iteration targets
     
    6262 }
    6363 
    64 @@ -312,8 +341,15 @@
     64@@ -311,8 +340,15 @@
    6565               else
    6666                 wrt_run_as_chroot2 "$this_script" "$file"
     
    8080Index: LFS/lfs.xsl
    8181===================================================================
    82 --- LFS/lfs.xsl (revision 2916)
     82--- LFS/lfs.xsl (revision 3007)
    8383+++ LFS/lfs.xsl (working copy)
    8484@@ -39,6 +39,9 @@
     
    8787 
    8888+  <!-- Use paco? -->
    89 +  <xsl:param name="use_paco" select="1"/>
     89+  <xsl:param name="use_paco" select="y"/>
    9090+
    9191   <xsl:template match="/">
    9292     <xsl:apply-templates select="//sect1"/>
    9393   </xsl:template>
    94 @@ -239,6 +242,33 @@
     94@@ -251,6 +254,33 @@
    9595         <xsl:apply-templates/>
    9696         <xsl:text> || true&#xA;</xsl:text>
     
    9898+      <!-- paco begin -->
    9999+      <!-- General rule -->
    100 +      <xsl:when test="$use_paco != '0' and
     100+      <xsl:when test="$use_paco != 'n' and
    101101+                ancestor::chapter[@id != 'chapter-temporary-tools'] and
    102102+                contains(string(),'make') and
     
    107107+      </xsl:when>
    108108+      <!-- Linux-libc-headers -->
    109 +      <xsl:when test="$use_paco != '0' and
     109+      <xsl:when test="$use_paco != 'n' and
    110110+                ancestor::sect1[@id='ch-system-linux-libc-headers'] and
    111111+                contains(string(),'install ')">
     
    115115+      </xsl:when>
    116116+      <!-- Unset LD_PRELOAD before second make in Zlib -->
    117 +      <xsl:when test="$use_paco != '0' and
     117+      <xsl:when test="$use_paco != 'n' and
    118118+                ancestor::sect1[@id='ch-system-zlib'] and
    119119+                contains(string(),'make clean')">
     
    128128Index: CLFS/master.sh
    129129===================================================================
    130 --- CLFS/master.sh      (revision 2916)
     130--- CLFS/master.sh      (revision 3007)
    131131+++ CLFS/master.sh      (working copy)
    132 @@ -495,6 +495,11 @@
     132@@ -494,6 +494,11 @@
    133133     # Keep the script file name
    134134     this_script=`basename $file`
     
    142142     # Skip alsp temp-perl for iterative runs
    143143     case $this_script in
    144 @@ -502,6 +507,18 @@
     144@@ -501,6 +506,18 @@
    145145       *temp-perl*) [[ -n "$N" ]] && continue ;;
    146146     esac
     
    161161     name=`echo $this_script | sed -e 's@[0-9]\{3\}-@@' \
    162162                                   -e 's@temp-@@' \
    163 @@ -554,7 +571,9 @@
     163@@ -553,7 +570,9 @@
    164164       [[ "$OPTIMIZE" != "0" ]] &&  wrt_optimize "$name" && wrt_makeflags "$name"
    165165     fi
     
    171171     [[ "$pkg_tarball" != "" ]] && wrt_remove_build_dirs "${name}"
    172172     #
    173 @@ -569,6 +588,16 @@
     173@@ -568,6 +587,16 @@
    174174     PREV=${this_script}${N}
    175175     # Set system_build envar for iteration targets
     
    188188 }
    189189 
    190 @@ -605,6 +634,11 @@
     190@@ -604,6 +633,11 @@
    191191     # Keep the script file name
    192192     this_script=`basename $file`
     
    200200     # Skip alsp temp-perl for iterative runs
    201201     case $this_script in
    202 @@ -612,6 +646,18 @@
     202@@ -611,6 +645,18 @@
    203203       *temp-perl*) [[ -n "$N" ]] && continue ;;
    204204     esac
     
    219219     name=`echo $this_script | sed -e 's@[0-9]\{3\}-@@' \
    220220                                   -e 's@temp-@@' \
    221 @@ -666,7 +712,9 @@
     221@@ -665,7 +711,9 @@
    222222       [[ "$OPTIMIZE" != "0" ]] &&  wrt_optimize "$name" && wrt_makeflags "$name"
    223223     fi
     
    229229     [[ "$pkg_tarball" != "" ]] && wrt_remove_build_dirs2 "${name}"
    230230     #
    231 @@ -681,6 +729,16 @@
     231@@ -680,6 +728,16 @@
    232232     PREV=${this_script}${N}
    233233     # Set system_build envar for iteration targets
     
    246246 }
    247247 
    248 @@ -729,7 +787,17 @@
     248@@ -728,7 +786,17 @@
    249249     #
    250250     [[ "$pkg_tarball" != "" ]] && wrt_unpack2 "$pkg_tarball"
     
    264264     [[ "$pkg_tarball" != "" ]] && wrt_remove_build_dirs "${name}"
    265265     #
    266 @@ -791,7 +859,17 @@
     266@@ -790,7 +858,17 @@
    267267     #
    268268     [[ "$pkg_tarball" != "" ]] && wrt_unpack3 "$pkg_tarball"
     
    282282     [[ "$pkg_tarball" != "" ]] && wrt_remove_build_dirs2 "${name}"
    283283     #
    284 @@ -863,8 +941,13 @@
     284@@ -862,8 +940,13 @@
    285285                 else
    286286                   wrt_run_as_chroot1  "${this_script}" "${file}"
     
    297297     #
    298298     # Housekeeping...remove any build directory(ies) except if the package build fails.
    299 @@ -942,8 +1025,13 @@
     299@@ -941,8 +1024,13 @@
    300300                 else
    301301                   wrt_run_as_root2  "${this_script}" "${file}"
     
    314314Index: CLFS/clfs.xsl
    315315===================================================================
    316 --- CLFS/clfs.xsl       (revision 2916)
     316--- CLFS/clfs.xsl       (revision 3007)
    317317+++ CLFS/clfs.xsl       (working copy)
    318318@@ -45,6 +45,9 @@
     
    321321 
    322322+  <!-- Use paco? -->
    323 +  <xsl:param name="use_paco" select="1"/>
     323+  <xsl:param name="use_paco" select="y"/>
    324324+
    325325   <xsl:template match="/">
     
    332332+            <!-- paco begin -->
    333333+            <!-- General rule -->
    334 +            <xsl:if test="$use_paco != '0' and
     334+            <xsl:if test="$use_paco != 'n' and
    335335+                    @id='ch-scripts-bootscripts' or
    336336+                    @id='ch-scripts-udev-rules' or
     
    343343+            </xsl:if>
    344344+            <!-- Linux headers -->
    345 +            <xsl:if test="$use_paco != '0' and
     345+            <xsl:if test="$use_paco != 'n' and
    346346+                    @id='ch-system-linux-headers' and
    347347+                    contains(string(),'install')">
     
    371371Index: common/config
    372372===================================================================
    373 --- common/config       (revision 2916)
     373--- common/config       (revision 3007)
    374374+++ common/config       (working copy)
    375375@@ -91,6 +91,23 @@
    376  #--- Run farce testing 0(no)/1(yes)
    377  RUN_FARCE=0
     376 #--- Run farce testing n(no)/y(yes)
     377 RUN_FARCE=n
    378378 
    379379+#==== PACO VARIABLES ====
    380 +#--- Use paco? 0(no)/1(yes)
    381 +USE_PACO=1
     380+#--- Use paco? n(no)/y(yes)
     381+USE_PACO=y
    382382+PACO_VERSION=1.10.10
    383383+
     
    409409Index: common/func_validate_configs.sh
    410410===================================================================
    411 --- common/func_validate_configs.sh     (revision 2916)
     411--- common/func_validate_configs.sh     (revision 3007)
    412412+++ common/func_validate_configs.sh     (working copy)
    413 @@ -86,10 +86,10 @@
     413@@ -88,10 +88,10 @@
    414414 inline_doc
    415415 
     
    417417-  local -r  hlfs_PARAM_LIST="BOOK BUILDDIR SRC_ARCHIVE GETPKG RUNMAKE MODEL GRSECURITY_HOST TEST BOMB_TEST OPTIMIZE REPORT COMPARE RUN_ICA RUN_FARCE ITERATIONS STRIP FSTAB             CONFIG GETKERNEL KEYMAP         PAGE TIMEZONE LANG LC_ALL LUSER LGROUP"
    418418-  local -r  clfs_PARAM_LIST="BOOK BUILDDIR SRC_ARCHIVE GETPKG RUNMAKE METHOD  ARCH  TARGET  TEST BOMB_TEST OPTIMIZE REPORT COMPARE RUN_ICA RUN_FARCE ITERATIONS STRIP FSTAB BOOT_CONFIG CONFIG GETKERNEL KEYMAP VIMLANG PAGE TIMEZONE LANG        LUSER LGROUP"
    419 -  local -r clfs2_PARAM_LIST="BOOK BUILDDIR SRC_ARCHIVE GETPKG RUNMAKE         ARCH  TARGET                 OPTIMIZE REPORT                                      STRIP FSTAB             CONFIG GETKERNEL KEYMAP VIMLANG PAGE TIMEZONE LANG        LUSER LGROUP"
    420 -  local -r   lfs_PARAM_LIST="BOOK BUILDDIR SRC_ARCHIVE GETPKG RUNMAKE                       TEST BOMB_TEST OPTIMIZE REPORT COMPARE RUN_ICA RUN_FARCE ITERATIONS STRIP FSTAB             CONFIG GETKERNEL        VIMLANG PAGE TIMEZONE LANG        LUSER LGROUP"
    421419+  local -r  hlfs_PARAM_LIST="BOOK BUILDDIR SRC_ARCHIVE USE_PACO GETPKG RUNMAKE MODEL GRSECURITY_HOST TEST BOMB_TEST OPTIMIZE REPORT COMPARE RUN_ICA RUN_FARCE ITERATIONS STRIP FSTAB             CONFIG GETKERNEL KEYMAP         PAGE TIMEZONE LANG LC_ALL LUSER LGROUP"
    422420+  local -r  clfs_PARAM_LIST="BOOK BUILDDIR SRC_ARCHIVE USE_PACO GETPKG RUNMAKE METHOD  ARCH  TARGET  TEST BOMB_TEST OPTIMIZE REPORT COMPARE RUN_ICA RUN_FARCE ITERATIONS STRIP FSTAB BOOT_CONFIG CONFIG GETKERNEL KEYMAP VIMLANG PAGE TIMEZONE LANG        LUSER LGROUP"
    423 +  local -r clfs2_PARAM_LIST="BOOK BUILDDIR SRC_ARCHIVE          GETPKG RUNMAKE         ARCH  TARGET                 OPTIMIZE REPORT                                      STRIP FSTAB             CONFIG GETKERNEL KEYMAP VIMLANG PAGE TIMEZONE LANG        LUSER LGROUP"
     421   local -r clfs2_PARAM_LIST="BOOK BUILDDIR SRC_ARCHIVE GETPKG RUNMAKE         ARCH  TARGET                 OPTIMIZE REPORT                                      STRIP FSTAB             CONFIG GETKERNEL KEYMAP VIMLANG PAGE TIMEZONE LANG        LUSER LGROUP"
     422-  local -r   lfs_PARAM_LIST="BOOK BUILDDIR SRC_ARCHIVE GETPKG RUNMAKE                       TEST BOMB_TEST OPTIMIZE REPORT COMPARE RUN_ICA RUN_FARCE ITERATIONS STRIP FSTAB             CONFIG GETKERNEL        VIMLANG PAGE TIMEZONE LANG        LUSER LGROUP"
    424423+  local -r   lfs_PARAM_LIST="BOOK BUILDDIR SRC_ARCHIVE USE_PACO GETPKG RUNMAKE                       TEST BOMB_TEST OPTIMIZE REPORT COMPARE RUN_ICA RUN_FARCE ITERATIONS STRIP FSTAB             CONFIG GETKERNEL        VIMLANG PAGE TIMEZONE LANG        LUSER LGROUP"
     424   local -r  blfs_PARAM_LIST="BRANCH_ID BLFS_ROOT BLFS_XML"
    425425 
    426426   local -r ERROR_MSG_pt1='The variable \"${L_arrow}${config_param}${R_arrow}\" value ${L_arrow}${BOLD}${!config_param}${R_arrow} is invalid,'
    427    local -r ERROR_MSG_pt2=' check the config file ${BOLD}${GREEN}\<$(echo $PROGNAME | tr [a-z] [A-Z])/config\> or \<common/config\>${OFF}'
    428 @@ -179,6 +179,7 @@
    429                      [[ "$GETPKG" = "1" ]] && validate_against_str "x0x x1x"
     427@@ -182,6 +182,7 @@
     428                     [[ "$GETPKG" = "y" ]] && validate_against_str "xnx xyx"
    430429                   fi ;;
    431        RUNMAKE)    validate_against_str "x0x x1x" ;;
    432 +      USE_PACO)   validate_against_str "x0x x1x" ;;
    433        REPORT)     validate_against_str "x0x x1x"
    434                    if [[ "${!config_param}" = "1" ]]; then
     430       RUNMAKE)    validate_against_str "xnx xyx" ;;
     431+      USE_PACO)   validate_against_str "xnx xyx" ;;
     432       REPORT)     validate_against_str "xnx xyx"
     433                   if [[ "${!config_param}" = "y" ]]; then
    435434                     if [[ `type -p bc` ]]; then
    436435Index: common/paco-functions
     
    438437--- common/paco-functions       (revision 0)
    439438+++ common/paco-functions       (revision 0)
    440 @@ -0,0 +1,311 @@
     439@@ -0,0 +1,328 @@
    441440+#!/bin/bash
    442441+
     
    449448+check_build_model
    450449+
    451 +if [ $USE_PACO != 0 ]; then
    452 +  case $PROGNAME in 
     450+if [ $USE_PACO = "y" ]; then
     451+  case $PROGNAME in
    453452+    clfs )
    454453+      paco_file="final-system/$paco_script"
     
    469468+    wrt_run_as_root2 "${paco_script}" "${paco_file}"
    470469+    wrt_remove_build_dirs2 "paco"
    471 +  else 
     470+  else
    472471+    wrt_target "$paco_script" "$PREV"
    473472+    wrt_unpack2 "$PACO_FILE"
     
    494493+check_log_package
    495494+
    496 +if [ $USE_PACO != 0 ] && [ $LOG_PACKAGE != 0 ]; then
     495+if [ $USE_PACO = "y" ] && [ $LOG_PACKAGE != 0 ]; then
    497496+  if [ $CLFS_BOOT = 1 ]; then
    498497+    TMPFILEPATH="$PACO_TMPFILE"
     
    526525+
    527526+
    528 +if [ $USE_PACO != 0 ]; then
     527+if [ $USE_PACO = "y" ]; then
    529528+  if [ $LOG_PACKAGE != 0 ]; then
    530529+    # Only use this if doing CLFS boot build
     
    576575+# These rules will add the missing files to the proper logs.
    577576+# Most of these is not needed for HLFS, but they do no harm.
    578 +if [ $USE_PACO != 0 ]; then
     577+if [ $USE_PACO = "y" ]; then
    579578+ case $this_script in
     579+    *e2fsprogs)
     580+      fnc_add_log "echo /etc/mke2fs.conf"
     581+    ;;
     582+    *bootscripts)
     583+      fnc_add_log "echo /etc/sysconfig/rc"
     584+      fnc_add_log "echo /etc/sysconfig/createfiles"
     585+    ;;
    580586+    *glibc)
    581587+      fnc_add_log "find /lib -type l"
    582 +      fnc_add_log "find /etc/{nsswitch.conf,ld.so.conf}"
     588+      fnc_add_log "echo /etc/{nsswitch.conf,ld.so.conf}"
    583589+    ;;
    584590+    *ncurses)
    585 +      fnc_add_log "find /usr/lib/{libcurses.so,libncurses.so,libform.so,libpanel.so,libmenu.so}"
     591+      fnc_add_log "echo /usr/lib/{libcurses.so,libncurses.so{,.5},libform.so,libpanel.so,libmenu.so}"
    586592+    ;;
    587593+    *bash)
     
    593599+    *shadow)
    594600+      fnc_add_log "echo /etc/login.defs"
     601+      fnc_add_log "echo /etc/group"
    595602+    ;;
    596603+    *hotplug)
     
    603610+    *sysvinit)
    604611+      fnc_add_log "echo /etc/inittab"
     612+      fnc_add_log "echo /usr/bin/lastb"
     613+    ;;
     614+    *texinfo)
     615+      fnc_add_log "echo /usr/share/info/dir"
    605616+    ;;
    606617+    *udev)
     
    608619+      fnc_add_log "echo /lib/firmware"
    609620+      fnc_add_log "find /etc/udev/rules.d -type f"
     621+      fnc_add_log "echo /etc/udev/udev.conf"
     622+    ;;
     623+    *udev-rules)
     624+      fnc_add_log "echo /lib/udev/devices/{null,console}"
    610625+    ;;
    611626+    *util-linux)
     
    643658+      fnc_add_log "echo /etc/fstab"
    644659+    ;;
    645 +    *theend) # LFS and CLFS
     660+    *theend | *finished)
    646661+      fnc_add_log "echo /etc/$PROGNAME-release"
    647 +    ;;
    648 +    *finished) # HLFS
    649 +      fnc_add_log "echo /etc/$PROGNAME-release"
     662+      fnc_add_log "echo /var/run/utmp"
     663+      fnc_add_log "echo /var/log/btmp"
     664+      fnc_add_log "echo /var/log/wtmp"
     665+      fnc_add_log "echo /var/log/lastlog"
    650666+    ;;
    651667+  esac
     
    696712+
    697713+# Test if paco is to be used
    698 +[[ ! "$USE_PACO" = "1" ]] && return
     714+[[ ! "$USE_PACO" = "y" ]] && return
    699715+
    700716+# If the file exists in the archive copy it to the $BUILDDIR/sources dir.
     
    739755+    # Not using Paco with uClibc, even if requested
    740756+    if [ "$MODEL" = "uclibc" ]; then
    741 +      USE_PACO=0
     757+      USE_PACO=n
    742758+    fi
    743759+  ;;
     
    782798Index: common/common-functions
    783799===================================================================
    784 --- common/common-functions     (revision 2916)
     800--- common/common-functions     (revision 3007)
    785801+++ common/common-functions     (working copy)
    786802@@ -69,6 +69,9 @@
     
    794810         Optimize [0-2]
    795811           0 = no optimization
    796 @@ -696,6 +699,7 @@
     812@@ -706,6 +709,7 @@
    797813                  --stringparam page $PAGE \
    798814                  --stringparam lang $LANG \
    799                   --stringparam keymap ${KEYMAP:-"none"} \
     815                  --stringparam keymap $KEYMAP \
    800816+                 --stringparam use_paco $USE_PACO \
    801817                  -o ./${PROGNAME}-commands/ $XSL $BOOK/$ARCH-index.xml >>$LOGDIR/$LOG 2>&1
    802818       ;;
    803819 
    804 @@ -723,6 +727,7 @@
     820@@ -733,6 +737,7 @@
    805821                  --stringparam lc_all $LC_ALL \
    806                   --stringparam keymap ${KEYMAP:-"none"} \
     822                  --stringparam keymap $KEYMAP \
    807823                  --stringparam grsecurity_host $GRSECURITY_HOST \
    808824+                 --stringparam use_paco $USE_PACO \
     
    810826       ;;
    811827     lfs)
    812 @@ -735,6 +740,7 @@
     828@@ -745,6 +750,7 @@
    813829                  --stringparam timezone $TIMEZONE \
    814830                  --stringparam page $PAGE \
     
    818834       ;;
    819835     *) exit 1 ;;
    820 @@ -801,6 +807,9 @@
     836@@ -811,6 +817,9 @@
    821837     # Generate URLs file
    822838   create_urls
     
    830846Index: HLFS/hlfs.xsl
    831847===================================================================
    832 --- HLFS/hlfs.xsl       (revision 2916)
     848--- HLFS/hlfs.xsl       (revision 3007)
    833849+++ HLFS/hlfs.xsl       (working copy)
    834850@@ -46,6 +46,9 @@
     
    837853 
    838854+  <!-- Use paco? -->
    839 +  <xsl:param name="use_paco" select="1"/>
     855+  <xsl:param name="use_paco" select="y"/>
    840856+
    841857   <xsl:template match="/">
    842858     <xsl:apply-templates select="//sect1"/>
    843859   </xsl:template>
    844 @@ -192,6 +195,10 @@
     860@@ -196,6 +199,10 @@
    845861       <!-- Fixing bootscripts installation -->
    846862       <xsl:when test="ancestor::sect1[@id='bootable-bootscripts'] and
    847863                 string() = 'make install'">
    848864+        <!-- inserting LD_PRELOAD before installing bootscripts -->
    849 +        <xsl:if test="$use_paco != '0' and $model != 'uclibc'">
     865+        <xsl:if test="$use_paco != 'n' and $model != 'uclibc'">
    850866+          <xsl:text>export LD_PRELOAD=/usr/lib/libpaco-log.so&#xA;</xsl:text>
    851867+        </xsl:if>
     
    853869         <xsl:text>cd ../blfs-bootscripts-&blfs-bootscripts-version;&#xA;</xsl:text>
    854870       </xsl:when>
    855 @@ -280,6 +287,25 @@
     871@@ -296,6 +303,25 @@
    856872         <xsl:apply-templates/>
    857873         <xsl:text> || true&#xA;</xsl:text>
     
    859875+      <!-- paco begin -->
    860876+      <!-- General rule -->
    861 +      <xsl:when test="$use_paco != '0' and $model != 'uclibc' and
     877+      <xsl:when test="$use_paco != 'n' and $model != 'uclibc' and
    862878+                ancestor::chapter[@id != 'chapter-temporary-tools'] and
    863879+                contains(string(),'make') and
    864880+                contains(string(),'install')">
    865881+        <xsl:text>export LD_PRELOAD=/usr/lib/libpaco-log.so&#xA;</xsl:text>
    866 +        <xsl:apply-templates/> 
     882+        <xsl:apply-templates/>
    867883+        <xsl:text>&#xA;</xsl:text>
    868884+      </xsl:when>
    869885+      <!-- Linux-libc-headers -->
    870 +      <xsl:when test="$use_paco != '0' and $model != 'uclibc' and
     886+      <xsl:when test="$use_paco != 'n' and $model != 'uclibc' and
    871887+                ancestor::sect1[@id='ch-system-linux-headers'] and
    872888+                contains(string(),'install ')">
    873889+        <xsl:text>export LD_PRELOAD=/usr/lib/libpaco-log.so&#xA;</xsl:text>
    874 +        <xsl:apply-templates/> 
     890+        <xsl:apply-templates/>
    875891+        <xsl:text>&#xA;</xsl:text>
    876892+      </xsl:when>
     
    881897Index: HLFS/master.sh
    882898===================================================================
    883 --- HLFS/master.sh      (revision 2916)
     899--- HLFS/master.sh      (revision 3007)
    884900+++ HLFS/master.sh      (working copy)
    885 @@ -40,7 +40,9 @@
     901@@ -47,7 +47,9 @@
    886902 EOF
    887903 ) >> $MKFILE.tmp
     
    893909 
    894910     *)
    895 @@ -272,6 +274,11 @@
     911@@ -281,6 +283,11 @@
    896912     # Keep the script file name
    897913     this_script=`basename $file`
     
    905921     case $this_script in
    906922         # We'll run the chroot commands differently than the others, so skip them in the
    907 @@ -281,6 +288,18 @@
    908        *-stripping* )  [[ "$STRIP" = "0" ]] && continue ;;
     923@@ -290,6 +297,18 @@
     924       *-stripping* )  [[ "$STRIP" = "n" ]] && continue ;;
    909925     esac
    910926 
     
    924940     name=`echo $this_script | sed -e 's@[0-9]\{3\}-@@'`
    925941 
    926 @@ -346,7 +365,9 @@
     942@@ -355,7 +374,9 @@
    927943         wrt_RunAsRoot "${this_script}" "${file}"
    928944         ;;
     
    934950     esac
    935951     #
    936 @@ -366,6 +387,16 @@
     952@@ -375,6 +396,16 @@
    937953     PREV=${this_script}${N}
    938954     # Set system_build envar for iteration targets
     
    951967 
    952968 }
    953 @@ -424,9 +455,19 @@
     969@@ -433,9 +464,19 @@
    954970         else  # Initialize the log and run the script
    955971           wrt_run_as_chroot2 "${this_script}" "${file}"
     
    973989Index: master.sh
    974990===================================================================
    975 --- master.sh   (revision 2916)
     991--- master.sh   (revision 3007)
    976992+++ master.sh   (working copy)
    977 @@ -194,6 +194,8 @@
     993@@ -71,6 +71,11 @@
     994   FARCELOGDIR=$LOGDIR/farce
     995           XSL=$PROGNAME.xsl
     996       PKG_LST=unpacked
     997+        #--- PACO variables
     998+ PACO_INCLUDE=/
     999+ PACO_EXCLUDE=/${SCRIPT_ROOT}
     1000+ PACO_TMPFILE=/tmp/paco.tmp
     1001+   LD_PRELOAD=/usr/lib/libpaco-log.so
     1002 
     1003   case $PROGNAME in
     1004     clfs2) LFSVRS=development; TREE=branches/clfs-2.0/BOOK ;;
     1005@@ -122,6 +127,7 @@
     1006   VIMLANG=${VIMLANG:-n}
     1007   KEYMAP=${KEYMAP:=none}
     1008   GRSECURITY_HOST=${GRSECURITY_HOST:-n}
     1009+  USE_PACO=${USE_PACO:-n}
     1010 
     1011 else
     1012   #
     1013@@ -230,6 +236,8 @@
    9781014 
    9791015     --help | -h )  usage | more && exit  ;;
    9801016 
    981 +    --no-paco )            USE_PACO=0    ;;
     1017+    --no-paco )            USE_PACO=n    ;;
    9821018+
    9831019     --optimize | -O )
    9841020       test $# = 1 && eval "$exit_missing_arg"
    9851021       shift
    986 @@ -489,6 +491,14 @@
     1022@@ -468,6 +476,14 @@
    9871023   [[ $VERBOSITY > 0 ]] && echo "OK"
    9881024 fi
    9891025 #
    9901026+# paco module
    991 +if [[ "$USE_PACO" = "1" ]]; then
     1027+if [[ "$USE_PACO" = "y" ]]; then
    9921028+  [[ $VERBOSITY > 0 ]] && echo -n "Loading paco module..."
    9931029+  source $COMMON_DIR/paco-functions
     
    9991035 if [[ "$OPTIMIZE" != "0" ]]; then
    10001036   [[ $VERBOSITY > 0 ]] && echo -n "Loading optimization module..."
    1001 @@ -535,6 +545,8 @@
     1037@@ -514,6 +530,8 @@
    10021038 if [[ "$PWD" != "$JHALFSDIR" ]]; then
    10031039   cp $COMMON_DIR/{makefile-functions,progress_bar.sh} $JHALFSDIR/
    10041040   #
    1005 +  [[ $USE_PACO != "0" ]] && cp $COMMON_DIR/paco-build-$PROGNAME.sh $JHALFSDIR/
     1041+  [[ $USE_PACO != "n" ]] && cp $COMMON_DIR/paco-build-$PROGNAME.sh $JHALFSDIR/
    10061042+  #
    10071043   [[ "$OPTIMIZE" != "0" ]] && cp optimize/opt_override $JHALFSDIR/
    10081044   #
    1009    if [[ "$COMPARE" != "0" ]] ; then
     1045   if [[ "$COMPARE" = "y" ]]; then
     1046Index: Config.in
     1047===================================================================
     1048--- Config.in   (revision 3007)
     1049+++ Config.in   (working copy)
     1050@@ -655,6 +655,52 @@
     1051 #--- End Advanced Features
     1052 endmenu
     1053 
     1054+#--- PACO
     1055+config USE_PACO
     1056+       bool    "Use PACO"
     1057+       default n
     1058+       depends on !BOOK_BLFS && !BOOK_CLFS2 && !LIB_UCLIBC
     1059+
     1060+       config  PACO_VERSION
     1061+               string  "PACO package version"
     1062+               default "1.10.10"
     1063+               depends USE_PACO
     1064+
     1065+       config  PACO_FILE
     1066+               string  "PACO package full name"
     1067+               default "paco-$PACO_VERSION.tar.bz2"
     1068+               depends USE_PACO
     1069+               help
     1070+                       #-- You can use .tar.gz if preferred
     1071+
     1072+       config  PACO_MIRROR1
     1073+               string  "Sourceforge mirror 1"
     1074+               default "heanet"
     1075+               depends USE_PACO
     1076+               help
     1077+                       #-- Sourceforge mirror to use for Paco source download
     1078+                       #
     1079+                       # Europe: heanet, belnet, puzzle, surfnet, switch, kent
     1080+                       # North America: superb-east, superb-west, umn, easynews
     1081+                       # South America: ufpr
     1082+                       # Asia: nchc, jaist
     1083+                       # Australia: optusnet
     1084+
     1085+       config  PACO_MIRROR2
     1086+               string  "Sourceforge mirror 2"
     1087+               default "kent"
     1088+               depends USE_PACO
     1089+               help
     1090+                       #-- Sourceforge mirror to use for Paco source download
     1091+                       #
     1092+                       # Europe: heanet, belnet, puzzle, surfnet, switch, kent
     1093+                       # North America: superb-east, superb-west, umn, easynews
     1094+                       # South America: ufpr
     1095+                       # Asia: nchc, jaist
     1096+                       # Australia: optusnet
     1097+#--- End PACO
     1098+
     1099+
     1100 #      config  CONFIG_BLFS_CMDS
     1101 #              bool    "Add BLFS packages to current build"
     1102 #              default n
Note: See TracChangeset for help on using the changeset viewer.