Changeset 8230977


Ignore:
Timestamp:
05/18/2006 07:33:25 PM (18 years ago)
Author:
Manuel Canales Esparcia <manuel@…>
Branches:
1.0, 2.3, 2.3.x, 2.4, ablfs, ablfs-more, legacy, new_features, trunk
Children:
ca4c634
Parents:
4bc3c2b
Message:

Updated paco patch.
Upstream fixes plus removal of BLFS support.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • contrib/jhalfs-paco.patch

    r4bc3c2b r8230977  
    11Index: LFS/master.sh
    22===================================================================
    3 --- LFS/master.sh       (revision 2695)
     3--- LFS/master.sh       (revision 2702)
    44+++ LFS/master.sh       (working copy)
    5 @@ -180,6 +180,18 @@
     5@@ -173,6 +173,11 @@
     6     # Keep the script file name
     7     this_script=`basename $file`
     8 
     9+    # If $this_script corresponds to a paco script, then skip it
     10+    case "${this_script}" in
     11+      *paco)       continue ;;
     12+    esac
     13+
     14     # We'll run the chroot commands differently than the others, so skip them in the
     15     # dependencies and target creation.
     16     case "${this_script}" in
     17@@ -180,6 +185,18 @@
    618       *stripping*) [[ "${STRIP}" = "0" ]] && continue ;;
    719     esac
     
    2234     name=`echo ${this_script} | sed -e 's@[0-9]\{3\}-@@'`
    2335 
    24 @@ -223,7 +235,9 @@
     36@@ -223,7 +240,9 @@
    2537     # and not to use chroot.
    2638     case "${this_script}" in
     
    3345 
    3446     # Remove the build directory(ies) except if the package build fails.
    35 @@ -243,6 +257,16 @@
     47@@ -243,6 +262,16 @@
    3648     PREV=${this_script}${N}
    3749     # Set system_build envar for iteration targets
     
    5062 }
    5163 
    52 @@ -304,6 +328,14 @@
     64@@ -304,6 +333,14 @@
    5365                 wrt_run_as_chroot2 "$this_script" "$file"
    5466               fi
     
    6779Index: LFS/lfs.xsl
    6880===================================================================
    69 --- LFS/lfs.xsl (revision 2695)
     81--- LFS/lfs.xsl (revision 2702)
    7082+++ LFS/lfs.xsl (working copy)
    7183@@ -32,6 +32,9 @@
     
    113125       <xsl:otherwise>
    114126         <xsl:apply-templates/>
    115 Index: BLFS/master.sh
    116 ===================================================================
    117 --- BLFS/master.sh      (revision 2695)
    118 +++ BLFS/master.sh      (working copy)
    119 @@ -79,6 +79,19 @@
    120  EOF
    121  ) >> $MKFILE
    122  
    123 +    if [[ $USE_PACO != 0 ]]; then
    124 +(
    125 +    cat << EOF
    126 +       @echo -e "\n\`date\`\n\nKB: \`du -sk --exclude=logs/* /\`\n" >logs/$this_script && \\
    127 +       source $JHALFSDIR/pacovars && \\
    128 +       rm -f $PACO_TMPFILE && \\
    129 +       $JHALFSDIR/${PROGNAME}-commands/$file >>logs/$this_script 2>&1 && \\
    130 +       echo -e "\n\`date\`\n\nKB: \`du -sk --exclude=logs/* /\`\n" >>logs/$this_script
    131 +EOF
    132 +) >> $MKFILE
    133 +    wrt_paco_log_blfs
    134 +
    135 +    else
    136      # Insert date and disk usage at the top of the log file, the script run
    137      # and date and disk usage again at the bottom of the log file.
    138  (
    139 @@ -88,6 +101,7 @@
    140         echo -e "\n\`date\`\n\nKB: \`du -sk --exclude=logs/* /\`\n" >>logs/$this_script
    141  EOF
    142  ) >> $MKFILE
    143 +    fi
    144  
    145      # Include a touch of the target name so make can check
    146      # if it's already been made.
    147 Index: BLFS/blfs.xsl
    148 ===================================================================
    149 --- BLFS/blfs.xsl       (revision 2695)
    150 +++ BLFS/blfs.xsl       (working copy)
    151 @@ -159,7 +159,7 @@
    152          <xsl:when test="@role = 'nodump'"/>
    153          <xsl:otherwise>
    154            <xsl:if test="@role = 'root'">
    155 -            <xsl:text>sudo </xsl:text>
    156 +            <xsl:text>export LD_PRELOAD=/usr/lib/libpaco-log.so&#xA;</xsl:text>
    157            </xsl:if>
    158            <xsl:apply-templates select="userinput" mode="screen"/>
    159          </xsl:otherwise>
    160127Index: common/paco-build-hlfs.sh
    161128===================================================================
     
    176143Index: common/config
    177144===================================================================
    178 --- common/config       (revision 2695)
     145--- common/config       (revision 2702)
    179146+++ common/config       (working copy)
    180 @@ -88,6 +88,14 @@
     147@@ -84,6 +84,14 @@
    181148 #--- Run farce testing 0(no)/1(yes)
    182149 RUN_FARCE=0
     
    193160 # Don't edit it unless you know what you are doing
    194161 
    195 @@ -100,3 +108,9 @@
     162@@ -96,3 +104,9 @@
    196163 
    197164 #--- farce report log directory
     
    205172Index: common/func_validate_configs.sh
    206173===================================================================
    207 --- common/func_validate_configs.sh     (revision 2695)
     174--- common/func_validate_configs.sh     (revision 2702)
    208175+++ common/func_validate_configs.sh     (working copy)
    209 @@ -84,10 +84,10 @@
     176@@ -84,9 +84,9 @@
    210177 inline_doc
    211178 
    212179   # First internal variables, then the ones that change the book's flavour, and lastly system configuration variables
    213 -  local -r blfs_PARAM_LIST="BOOK BUILDDIR SRC_ARCHIVE GETPKG         DEPEND                TEST OPTIMIZE"
    214180-  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 KEYMAP         PAGE TIMEZONE LANG LC_ALL"
    215181-  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 KEYMAP VIMLANG PAGE TIMEZONE LANG"
    216182-  local -r  lfs_PARAM_LIST="BOOK BUILDDIR SRC_ARCHIVE GETPKG RUNMAKE                       TEST OPTIMIZE REPORT COMPARE RUN_ICA RUN_FARCE ITERATIONS STRIP FSTAB             CONFIG        VIMLANG PAGE TIMEZONE LANG"
    217 +  local -r blfs_PARAM_LIST="BOOK BUILDDIR SRC_ARCHIVE USE_PACO GETPKG         DEPEND                TEST OPTIMIZE"
    218183+  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 KEYMAP         PAGE TIMEZONE LANG LC_ALL"
    219184+  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 KEYMAP VIMLANG PAGE TIMEZONE LANG"
     
    222187   local -r ERROR_MSG_pt1='The variable \"${L_arrow}${config_param}${R_arrow}\" value ${L_arrow}${BOLD}${!config_param}${R_arrow} is invalid,'
    223188   local -r ERROR_MSG_pt2=' check the config file ${BOLD}${GREEN}\<$(echo $PROGNAME | tr [a-z] [A-Z])/config\> or \<common/config\>${OFF}'
    224 @@ -174,6 +174,7 @@
     189@@ -173,6 +173,7 @@
    225190       # Validate general parameters..
    226191       GETPKG)     validate_against_str "x0x x1x" ;;
     
    234199--- common/paco-functions       (revision 0)
    235200+++ common/paco-functions       (revision 0)
    236 @@ -0,0 +1,112 @@
     201@@ -0,0 +1,105 @@
    237202+#!/bin/bash
    238203+
     
    328293+) >> $MKFILE.tmp
    329294+fi
    330 +}
    331 +
    332 +
    333 +#----------------------------------#
    334 +wrt_paco_log_blfs() {              # If the tmpfile exist, then log the current package
    335 +#----------------------------------# and remove tempfile
    336 +if [ $USE_PACO != 0 ] ; then
     295+
     296+# Glibc uses 'sln' to install symlinks in /lib
     297+# add these to the log since paco can't track statically linked executables
     298+# Glibc is the first package to install into /lib, so a simple 'find' will suffice
     299+if [ $USE_PACO != 0 ] && [ "$name" = "glibc" ]; then
    337300+(
    338301+cat << EOF
    339 +       @PACKAGE=\`head -n1 /tmp/unpacked | sed 's@^./@@;s@/.*@@'\` && \\
    340 +       if [ -e $PACO_TMPFILE ]; then \\
    341 +               paco -lp \$\$PACKAGE < $PACO_TMPFILE && \\
    342 +               rm -f $PACO_TMPFILE; \\
    343 +       fi;
     302+       @\$(CHROOT1) 'find /lib -type l | paco -lp+ $PACKAGE'
    344303+EOF
    345 +) >> $MKFILE
     304+) >> $MKFILE.tmp
    346305+fi
    347306+}
    348 +
    349307Index: common/paco-build-lfs.sh
    350308===================================================================
     
    363321Index: common/common-functions
    364322===================================================================
    365 --- common/common-functions     (revision 2695)
     323--- common/common-functions     (revision 2702)
    366324+++ common/common-functions     (working copy)
    367325@@ -65,6 +65,9 @@
     
    375333         Optimize [0-2]
    376334           0 = no optimization
    377 @@ -581,6 +584,7 @@
     335@@ -556,6 +559,7 @@
    378336                  --stringparam lc_all $LC_ALL \
    379337                  --stringparam keymap $KEYMAP \
     
    383341       ;;
    384342     lfs)
    385 @@ -592,6 +596,7 @@
     343@@ -567,6 +571,7 @@
    386344                  --stringparam timezone $TIMEZONE \
    387345                  --stringparam page $PAGE \
     
    390348                  -o ./${PROGNAME}-commands/ $XSL $BOOK/index.xml >>$LOGDIR/$LOG 2>&1
    391349       ;;
    392      blfs)
     350     *) exit 1 ;;
    393351Index: HLFS/hlfs.xsl
    394352===================================================================
    395 --- HLFS/hlfs.xsl       (revision 2695)
     353--- HLFS/hlfs.xsl       (revision 2702)
    396354+++ HLFS/hlfs.xsl       (working copy)
    397355@@ -39,6 +39,9 @@
     
    444402Index: HLFS/master.sh
    445403===================================================================
    446 --- HLFS/master.sh      (revision 2695)
     404--- HLFS/master.sh      (revision 2702)
    447405+++ HLFS/master.sh      (working copy)
    448 @@ -254,6 +254,18 @@
     406@@ -245,6 +245,11 @@
     407     # Keep the script file name
     408     this_script=`basename $file`
     409 
     410+    # If this script is *-paco, then skip it
     411+    case $this_script in
     412+      *paco )     continue ;;
     413+    esac
     414+
     415     # Skip this script depending on jhalfs.conf flags set.
     416     case $this_script in
     417         # We'll run the chroot commands differently than the others, so skip them in the
     418@@ -254,6 +259,18 @@
    449419       *-stripping* )  [[ "$STRIP" = "0" ]] && continue ;;
    450420     esac
     
    465435     name=`echo $this_script | sed -e 's@[0-9]\{3\}-@@'`
    466436 
    467 @@ -324,7 +336,9 @@
     437@@ -324,7 +341,9 @@
    468438         wrt_run_as_root "${this_script}" "${file}"
    469439         ;;
     
    475445     esac
    476446     #
    477 @@ -357,6 +371,16 @@
     447@@ -357,6 +376,16 @@
    478448     PREV=${this_script}${N}
    479449     # Set system_build envar for iteration targets
     
    492462 
    493463 }
    494 @@ -419,6 +443,15 @@
     464@@ -419,6 +448,15 @@
    495465           wrt_run_as_chroot2 "${this_script}" "${file}"
    496466         fi
     
    510480Index: master.sh
    511481===================================================================
    512 --- master.sh   (revision 2695)
     482--- master.sh   (revision 2702)
    513483+++ master.sh   (working copy)
    514484@@ -147,6 +147,8 @@
     
    521491       test $# = 1 && eval "$exit_missing_arg"
    522492       shift
    523 @@ -463,6 +465,14 @@
     493@@ -438,6 +440,14 @@
    524494   [[ $VERBOSITY > 0 ]] && echo "OK"
    525495 fi
     
    536506 if [[ "$OPTIMIZE" != "0" ]]; then
    537507   [[ $VERBOSITY > 0 ]] && echo -n "Loading optimization module..."
    538 @@ -507,6 +517,15 @@
     508@@ -482,7 +492,11 @@
    539509 #
    540510 if [[ "$PWD" != "$JHALFSDIR" ]]; then
    541511   cp $COMMON_DIR/makefile-functions $JHALFSDIR/
    542 +  if [[ $USE_PACO != "0" ]] ; then
    543 +    if [[ $PROGNAME != "blfs" ]]; then
    544 +      cp $COMMON_DIR/paco-build-$PROGNAME.sh $JHALFSDIR/
    545 +    else
    546 +      echo -e "export PACO_INCLUDE=$PACO_INCLUDE" > $JHALFSDIR/pacovars
    547 +      echo -e "export PACO_EXCLUDE=~/sources:$JHALFSDIR:$PACO_EXCLUDE" >> $JHALFSDIR/pacovars
    548 +      echo -e "export PACO_TMPFILE=$PACO_TMPFILE" >> $JHALFSDIR/pacovars
    549 +    fi
    550 +  fi
     512+  #
     513+  [[ $USE_PACO != "0" ]] && cp $COMMON_DIR/paco-build-$PROGNAME.sh $JHALFSDIR/
     514+  #
    551515   [[ "$OPTIMIZE" != "0" ]] && cp optimize/opt_override $JHALFSDIR/
     516+  #
    552517   if [[ "$COMPARE" != "0" ]] ; then
    553518     mkdir -p $JHALFSDIR/extras
     519     cp extras/* $JHALFSDIR/extras
Note: See TracChangeset for help on using the changeset viewer.