Changeset 9b09518 for contrib


Ignore:
Timestamp:
07/30/2006 03:00:54 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:
8715be1
Parents:
b2489fb
Message:

Updated paco patch from upstream.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • contrib/jhalfs-paco.patch

    rb2489fb r9b09518  
    11Index: LFS/master.sh
    22===================================================================
    3 --- LFS/master.sh       (revision 2829)
     3--- LFS/master.sh       (revision 2861)
    44+++ LFS/master.sh       (working copy)
    5 @@ -176,6 +176,11 @@
     5@@ -173,6 +173,11 @@
    66     # Keep the script file name
    77     this_script=`basename $file`
     
    1515     # dependencies and target creation.
    1616     case "${this_script}" in
    17 @@ -183,6 +188,18 @@
     17@@ -180,6 +185,18 @@
    1818       *stripping*) [[ "${STRIP}" = "0" ]] && continue ;;
    1919     esac
     
    3434     name=`echo ${this_script} | sed -e 's@[0-9]\{3\}-@@'`
    3535 
    36 @@ -235,7 +252,9 @@
     36@@ -232,7 +249,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 @@ -255,6 +274,16 @@
     47@@ -252,6 +271,16 @@
    4848     PREV=${this_script}${N}
    4949     # Set system_build envar for iteration targets
     
    6262 }
    6363 
    64 @@ -315,8 +344,18 @@
     64@@ -312,8 +341,18 @@
    6565               else
    6666                 wrt_run_as_chroot2 "$this_script" "$file"
     
    8383Index: LFS/lfs.xsl
    8484===================================================================
    85 --- LFS/lfs.xsl (revision 2829)
     85--- LFS/lfs.xsl (revision 2861)
    8686+++ LFS/lfs.xsl (working copy)
    8787@@ -32,6 +32,9 @@
     
    9595     <xsl:apply-templates select="//sect1"/>
    9696   </xsl:template>
    97 @@ -200,6 +203,33 @@
     97@@ -206,6 +209,33 @@
    9898         <xsl:apply-templates/>
    9999         <xsl:text> || true&#xA;</xsl:text>
     
    148148Index: common/config
    149149===================================================================
    150 --- common/config       (revision 2829)
     150--- common/config       (revision 2861)
    151151+++ common/config       (working copy)
    152152@@ -86,6 +86,14 @@
     
    157157+#--- Use paco? 0(no)/1(yes)
    158158+USE_PACO=1
    159 +PACO_VERSION=1.10.8
     159+PACO_VERSION=1.10.10
    160160+
    161161+#--- Name of the Paco source package
     
    177177Index: common/func_validate_configs.sh
    178178===================================================================
    179 --- common/func_validate_configs.sh     (revision 2829)
     179--- common/func_validate_configs.sh     (revision 2861)
    180180+++ common/func_validate_configs.sh     (working copy)
    181 @@ -84,9 +84,9 @@
     181@@ -86,10 +86,10 @@
    182182 inline_doc
    183183 
    184184   # First internal variables, then the ones that change the book's flavour, and lastly system configuration variables
    185 -  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"
    186 -  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"
    187 -  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"
    188 +  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"
    189 +  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"
    190 +  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"
     185-  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"
     186-  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"
     187-  local -r clfs2_PARAM_LIST="BOOK BUILDDIR SRC_ARCHIVE GETPKG RUNMAKE         ARCH  TARGET       OPTIMIZE REPORT COMPARE RUN_ICA RUN_FARCE ITERATIONS STRIP FSTAB             CONFIG GETKERNEL KEYMAP VIMLANG PAGE TIMEZONE LANG"
     188-  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"
     189+  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"
     190+  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"
     191+  local -r clfs2_PARAM_LIST="BOOK BUILDDIR SRC_ARCHIVE USE_PACO GETPKG RUNMAKE         ARCH  TARGET       OPTIMIZE REPORT COMPARE RUN_ICA RUN_FARCE ITERATIONS STRIP FSTAB             CONFIG GETKERNEL KEYMAP VIMLANG PAGE TIMEZONE LANG"
     192+  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"
    191193 
    192194   local -r ERROR_MSG_pt1='The variable \"${L_arrow}${config_param}${R_arrow}\" value ${L_arrow}${BOLD}${!config_param}${R_arrow} is invalid,'
    193195   local -r ERROR_MSG_pt2=' check the config file ${BOLD}${GREEN}\<$(echo $PROGNAME | tr [a-z] [A-Z])/config\> or \<common/config\>${OFF}'
    194 @@ -176,6 +176,7 @@
     196@@ -179,6 +179,7 @@
    195197                     [[ "$GETPKG" = "1" ]] && validate_against_str "x0x x1x"
    196198                   fi ;;
     
    431433Index: common/common-functions
    432434===================================================================
    433 --- common/common-functions     (revision 2829)
     435--- common/common-functions     (revision 2861)
    434436+++ common/common-functions     (working copy)
    435437@@ -69,6 +69,9 @@
     
    443445         Optimize [0-2]
    444446           0 = no optimization
    445 @@ -733,6 +736,7 @@
     447@@ -759,6 +762,7 @@
    446448                  --stringparam lc_all $LC_ALL \
    447449                  --stringparam keymap $KEYMAP \
     
    451453       ;;
    452454     lfs)
    453 @@ -744,6 +748,7 @@
     455@@ -770,6 +774,7 @@
    454456                  --stringparam timezone $TIMEZONE \
    455457                  --stringparam page $PAGE \
     
    461463Index: HLFS/hlfs.xsl
    462464===================================================================
    463 --- HLFS/hlfs.xsl       (revision 2829)
     465--- HLFS/hlfs.xsl       (revision 2861)
    464466+++ HLFS/hlfs.xsl       (working copy)
    465467@@ -39,6 +39,9 @@
     
    473475     <xsl:apply-templates select="//sect1"/>
    474476   </xsl:template>
    475 @@ -191,6 +194,10 @@
     477@@ -177,6 +180,10 @@
    476478       <!-- Fixing bootscripts installation -->
    477479       <xsl:when test="ancestor::sect1[@id='bootable-bootscripts'] and
     
    484486         <xsl:text>cd ../blfs-bootscripts-&blfs-bootscripts-version;&#xA;</xsl:text>
    485487       </xsl:when>
    486 @@ -257,6 +264,25 @@
     488@@ -237,6 +244,27 @@
    487489         <xsl:apply-templates/>
    488490         <xsl:text> || true&#xA;</xsl:text>
    489491       </xsl:when>
     492+
    490493+      <!-- paco begin -->
    491494+      <!-- General rule -->
     
    495498+                contains(string(),'install')">
    496499+        <xsl:text>export LD_PRELOAD=/usr/lib/libpaco-log.so&#xA;</xsl:text>
    497 +        <xsl:apply-templates/>
     500+        <xsl:apply-templates/> 
    498501+        <xsl:text>&#xA;</xsl:text>
    499502+      </xsl:when>
    500503+      <!-- Linux-libc-headers -->
    501504+      <xsl:when test="$use_paco != '0' and $model != 'uclibc' and
    502 +                ancestor::sect1[@id='ch-system-linux-libc-headers'] and
     505+                ancestor::sect1[@id='ch-system-linux-headers'] and
    503506+                contains(string(),'install ')">
    504507+        <xsl:text>export LD_PRELOAD=/usr/lib/libpaco-log.so&#xA;</xsl:text>
    505 +        <xsl:apply-templates/>
     508+        <xsl:apply-templates/> 
    506509+        <xsl:text>&#xA;</xsl:text>
    507510+      </xsl:when>
    508511+      <!-- paco end -->
     512+
    509513       <!-- The rest of commands -->
    510514       <xsl:otherwise>
     
    512516Index: HLFS/master.sh
    513517===================================================================
    514 --- HLFS/master.sh      (revision 2829)
     518--- HLFS/master.sh      (revision 2861)
    515519+++ HLFS/master.sh      (working copy)
    516 @@ -250,6 +250,11 @@
     520@@ -76,7 +76,9 @@
     521        @echo "export PKGDIR=\$(SRC)" > envars
     522 EOF
     523 ) >> $MKFILE.tmp
     524+      wrt_paco_prep
     525       wrt_run_as_chroot1 "$toolchain" "$this_script"
     526+      wrt_paco_log "`echo $toolchain | sed -e 's@[0-9]\{3\}-@@'`"
     527       ;;
     528 
     529     *)
     530@@ -310,6 +312,11 @@
    517531     # Keep the script file name
    518532     this_script=`basename $file`
     
    526540     case $this_script in
    527541         # We'll run the chroot commands differently than the others, so skip them in the
    528 @@ -259,6 +264,18 @@
     542@@ -319,6 +326,18 @@
    529543       *-stripping* )  [[ "$STRIP" = "0" ]] && continue ;;
    530544     esac
     
    534548+    if [[ -z "$N" ]]; then
    535549+      case $this_script in
    536 +        *linux-libc-headers)
     550+        *linux-headers)
    537551+          TMP_SCRIPT="$this_script"
    538 +          this_script=`echo $this_script | sed -e 's/linux-libc-headers/a-paco/'`
     552+          this_script=`echo $this_script | sed -e 's/linux-headers/a-paco/'`
    539553+          wrt_paco_inst "$this_script"
    540554+          this_script="$TMP_SCRIPT" ;;
     
    545559     name=`echo $this_script | sed -e 's@[0-9]\{3\}-@@'`
    546560 
    547 @@ -334,7 +351,9 @@
    548          wrt_run_as_root "${this_script}" "${file}"
     561@@ -385,7 +404,9 @@
     562         wrt_RunAsRoot "hlfs" "${this_script}" "${file}"
    549563         ;;
    550564       *)   # The rest of Chapter06
     
    555569     esac
    556570     #
    557 @@ -367,6 +386,16 @@
     571@@ -405,6 +426,16 @@
    558572     PREV=${this_script}${N}
    559573     # Set system_build envar for iteration targets
     
    572586 
    573587 }
    574 @@ -426,9 +455,19 @@
     588@@ -463,9 +494,19 @@
    575589         else  # Initialize the log and run the script
    576590           wrt_run_as_chroot2 "${this_script}" "${file}"
     
    594608Index: master.sh
    595609===================================================================
    596 --- master.sh   (revision 2829)
     610--- master.sh   (revision 2861)
    597611+++ master.sh   (working copy)
    598612@@ -149,6 +149,8 @@
     
    605619       test $# = 1 && eval "$exit_missing_arg"
    606620       shift
    607 @@ -440,6 +442,14 @@
     621@@ -444,6 +446,14 @@
    608622   [[ $VERBOSITY > 0 ]] && echo "OK"
    609623 fi
     
    620634 if [[ "$OPTIMIZE" != "0" ]]; then
    621635   [[ $VERBOSITY > 0 ]] && echo -n "Loading optimization module..."
    622 @@ -486,6 +496,8 @@
     636@@ -490,6 +500,8 @@
    623637 if [[ "$PWD" != "$JHALFSDIR" ]]; then
    624638   cp $COMMON_DIR/{makefile-functions,progress_bar.sh} $JHALFSDIR/
Note: See TracChangeset for help on using the changeset viewer.