source: contrib/jhalfs-paco.patch@ 8de111f

1.0 2.3 2.3.x 2.4 ablfs ablfs-more legacy new_features trunk
Last change on this file since 8de111f was 799b0d1, checked in by Manuel Canales Esparcia <manuel@…>, 19 years ago

Updated paco patch.

  • Property mode set to 100644
File size: 18.5 KB
RevLine 
[059822c]1Index: LFS/master.sh
2===================================================================
[799b0d1]3--- LFS/master.sh (revision 2606)
[059822c]4+++ LFS/master.sh (working copy)
[799b0d1]5@@ -183,6 +183,18 @@
[6821737]6 *stripping*) [[ "${STRIP}" = "0" ]] && continue ;;
7 esac
8
[4795dfb]9+ # Install paco as the first package in ch6, before installing
10+ # linux-libc-headers, except in iterartive builds
11+ if [[ -z "$N" ]]; then
12+ case $this_script in
13+ *linux-libc-headers)
[799b0d1]14+ TMP_SCRIPT="$this_script"
15+ this_script=`echo $this_script | sed -e 's/linux-libc-headers/a-paco/'`
16+ wrt_paco_inst "$this_script"
17+ this_script="$TMP_SCRIPT" ;;
[4795dfb]18+ esac
19+ fi
[6821737]20+
[4795dfb]21 # Grab the name of the target
22 name=`echo ${this_script} | sed -e 's@[0-9]\{3\}-@@'`
23
[799b0d1]24@@ -225,7 +237,9 @@
[059822c]25 # and not to use chroot.
26 case "${this_script}" in
27 *kernfs) wrt_run_as_root "${this_script}" "$file" ;;
28- *) wrt_run_as_chroot1 "${this_script}" "$file" ;;
29+ *) wrt_paco_prep
30+ wrt_run_as_chroot1 "${this_script}" "$file"
31+ wrt_paco_log "$name" "$vrs" ;;
32 esac
33
34 # Remove the build directory(ies) except if the package build fails.
[799b0d1]35@@ -245,6 +259,16 @@
[4795dfb]36 PREV=${this_script}${N}
37 # Set system_build envar for iteration targets
38 system_build=$chapter6
[059822c]39+
[6821737]40+ # Reinstalling paco after readsjusting the toolchain.
[059822c]41+ case "${this_script}" in
[6821737]42+ *readjusting)
[799b0d1]43+ TMP_SCRIPT="$this_script"
44+ this_script=`echo ${this_script} | sed -e 's/readjusting/x-paco/'`
45+ wrt_paco_inst "$this_script"
46+ this_script="$TMP_SCRIPT" ;;
[059822c]47+ esac
48+
49 done # end for file in chapter06/*
50 }
51
[799b0d1]52@@ -306,6 +330,14 @@
[059822c]53 wrt_run_as_chroot2 "$this_script" "$file"
54 fi
55 ;;
56+ *kernel) wrt_paco_prep
57+ wrt_run_as_chroot2 "$this_script" "$file"
58+ wrt_paco_log "linux-kernel" "$vrs"
59+ ;;
60+ *bootscripts) wrt_paco_prep
61+ wrt_run_as_chroot2 "$this_script" "$file"
62+ wrt_paco_log "lfs-bootscripts" "$vrs"
63+ ;;
64 *) wrt_run_as_chroot2 "$this_script" "$file"
65 ;;
66 esac
67Index: LFS/lfs.xsl
68===================================================================
[799b0d1]69--- LFS/lfs.xsl (revision 2606)
[059822c]70+++ LFS/lfs.xsl (working copy)
71@@ -32,6 +32,9 @@
72 <!-- Locale settings -->
73 <xsl:param name="lang" select="en_CA"/>
74
75+ <!-- Use paco? -->
76+ <xsl:param name="use_paco" select="1"/>
77+
78 <xsl:template match="/">
79 <xsl:apply-templates select="//sect1"/>
80 </xsl:template>
81@@ -190,6 +193,33 @@
82 <xsl:apply-templates/>
83 <xsl:text> || true&#xA;</xsl:text>
84 </xsl:when>
85+ <!-- paco begin -->
86+ <!-- General rule -->
87+ <xsl:when test="$use_paco != '0' and
88+ ancestor::chapter[@id != 'chapter-temporary-tools'] and
89+ contains(string(),'make') and
90+ contains(string(),'install')">
91+ <xsl:text>export LD_PRELOAD=/usr/lib/libpaco-log.so&#xA;</xsl:text>
92+ <xsl:apply-templates/>
93+ <xsl:text>&#xA;</xsl:text>
94+ </xsl:when>
95+ <!-- Linux-libc-headers -->
96+ <xsl:when test="$use_paco != '0' and
97+ ancestor::sect1[@id='ch-system-linux-libc-headers'] and
98+ contains(string(),'install ')">
99+ <xsl:text>export LD_PRELOAD=/usr/lib/libpaco-log.so&#xA;</xsl:text>
100+ <xsl:apply-templates/>
101+ <xsl:text>&#xA;</xsl:text>
102+ </xsl:when>
103+ <!-- Unset LD_PRELOAD before second make in Zlib -->
104+ <xsl:when test="$use_paco != '0' and
105+ ancestor::sect1[@id='ch-system-zlib'] and
106+ contains(string(),'make clean')">
107+ <xsl:text>unset LD_PRELOAD&#xA;</xsl:text>
108+ <xsl:apply-templates/>
109+ <xsl:text>&#xA;</xsl:text>
110+ </xsl:when>
111+ <!-- paco end -->
112 <!-- The rest of commands -->
113 <xsl:otherwise>
114 <xsl:apply-templates/>
115Index: BLFS/master.sh
116===================================================================
[799b0d1]117--- BLFS/master.sh (revision 2606)
[059822c]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 (
139Index: BLFS/blfs.xsl
140===================================================================
[799b0d1]141--- BLFS/blfs.xsl (revision 2606)
[059822c]142+++ BLFS/blfs.xsl (working copy)
143@@ -159,7 +159,7 @@
144 <xsl:when test="@role = 'nodump'"/>
145 <xsl:otherwise>
146 <xsl:if test="@role = 'root'">
147- <xsl:text>sudo </xsl:text>
148+ <xsl:text>export LD_PRELOAD=/usr/lib/libpaco-log.so&#xA;</xsl:text>
149 </xsl:if>
150 <xsl:apply-templates select="userinput" mode="screen"/>
151 </xsl:otherwise>
[799b0d1]152Index: common/paco-build-hlfs.sh
153===================================================================
154--- common/paco-build-hlfs.sh (revision 0)
155+++ common/paco-build-hlfs.sh (revision 0)
156@@ -0,0 +1,11 @@
157+#!/bin/sh
158+set -e
159+
160+cd $PKGDIR
161+./configure --with-pic \
162+ --disable-static \
163+ --disable-gpaco \
164+ --sysconfdir=/etc &&
165+make &&
166+make install &&
167+make logme
[059822c]168Index: common/config
169===================================================================
[799b0d1]170--- common/config (revision 2606)
[059822c]171+++ common/config (working copy)
[799b0d1]172@@ -80,6 +80,14 @@
[4795dfb]173 #--- Run farce testing 0(no)/1(yes)
174 RUN_FARCE=0
[d748b31]175
[059822c]176+#==== PACO VARIABLES ====
[4795dfb]177+#--- Use paco? 0(no)/1(yes)
[059822c]178+USE_PACO=1
[799b0d1]179+PACO_VERSION=1.10.7
[059822c]180+
181+#--- Name of the Paco source package
182+PACO_FILE=paco-$PACO_VERSION.tar.*
183+
[4795dfb]184 #==== INTERNAL VARIABLES ====
185 # Don't edit it unless you know what you are doing
186
[799b0d1]187@@ -92,3 +100,9 @@
[4795dfb]188
189 #--- farce report log directory
190 FARCELOGDIR=$LOGDIR/farce
191+
192+#--- Variables needed by paco
[059822c]193+PACO_INCLUDE=/
[4795dfb]194+PACO_EXCLUDE=/sys:/dev:/proc:/tmp:/usr/src:/usr/share/info/dir:/jhalfs
[059822c]195+PACO_TMPFILE=/tmp/paco.tmp
196+LD_PRELOAD=/usr/lib/libpaco-log.so
197Index: common/func_validate_configs.sh
198===================================================================
[799b0d1]199--- common/func_validate_configs.sh (revision 2606)
[059822c]200+++ common/func_validate_configs.sh (working copy)
[4795dfb]201@@ -84,10 +84,10 @@
[059822c]202 inline_doc
203
204 # First internal variables, then the ones that change the book's flavour, and lastly system configuration variables
[799b0d1]205- local -r blfs_PARAM_LIST="BOOK BUILDDIR SRC_ARCHIVE GETPKG DEPEND TEST"
206- local -r hlfs_PARAM_LIST="BOOK BUILDDIR SRC_ARCHIVE GETPKG RUNMAKE MODEL GRSECURITY_HOST TEST REPORT COMPARE RUN_ICA RUN_FARCE ITERATIONS STRIP FSTAB CONFIG KEYMAP PAGE TIMEZONE LANG LC_ALL"
207- local -r clfs_PARAM_LIST="BOOK BUILDDIR SRC_ARCHIVE GETPKG RUNMAKE METHOD ARCH TARGET TEST REPORT COMPARE RUN_ICA RUN_FARCE ITERATIONS STRIP FSTAB BOOT_CONFIG CONFIG KEYMAP VIMLANG PAGE TIMEZONE LANG"
208- local -r lfs_PARAM_LIST="BOOK BUILDDIR SRC_ARCHIVE GETPKG RUNMAKE TEST REPORT COMPARE RUN_ICA RUN_FARCE ITERATIONS STRIP FSTAB CONFIG VIMLANG PAGE TIMEZONE LANG"
209+ local -r blfs_PARAM_LIST="BOOK BUILDDIR SRC_ARCHIVE USE_PACO GETPKG DEPEND TEST"
210+ local -r hlfs_PARAM_LIST="BOOK BUILDDIR SRC_ARCHIVE USE_PACO GETPKG RUNMAKE MODEL GRSECURITY_HOST TEST REPORT COMPARE RUN_ICA RUN_FARCE ITERATIONS STRIP FSTAB CONFIG KEYMAP PAGE TIMEZONE LANG LC_ALL"
211+ local -r clfs_PARAM_LIST="BOOK BUILDDIR SRC_ARCHIVE USE_PACO GETPKG RUNMAKE METHOD ARCH TARGET TEST REPORT COMPARE RUN_ICA RUN_FARCE ITERATIONS STRIP FSTAB BOOT_CONFIG CONFIG KEYMAP VIMLANG PAGE TIMEZONE LANG"
212+ local -r lfs_PARAM_LIST="BOOK BUILDDIR SRC_ARCHIVE USE_PACO GETPKG RUNMAKE TEST REPORT COMPARE RUN_ICA RUN_FARCE ITERATIONS STRIP FSTAB CONFIG VIMLANG PAGE TIMEZONE LANG"
[059822c]213
214 local -r ERROR_MSG_pt1='The variable \"${L_arrow}${config_param}${R_arrow}\" value ${L_arrow}${BOLD}${!config_param}${R_arrow} is invalid,'
215 local -r ERROR_MSG_pt2=' check the config file ${BOLD}${GREEN}\<$(echo $PROGNAME | tr [a-z] [A-Z])/config\> or \<common/config\>${OFF}'
[4795dfb]216@@ -179,6 +179,7 @@
217 # Validate general parameters..
[799b0d1]218 GETPKG) validate_against_str "x0x x1x" ;;
[4795dfb]219 RUNMAKE) validate_against_str "x0x x1x" ;;
220+ USE_PACO) validate_against_str "x0x x1x" ;;
221 REPORT) validate_against_str "x0x x1x"
222 if [[ "${!config_param}" = "1" ]]; then
223 if [[ `type -p bc` ]]; then
[059822c]224Index: common/paco-functions
225===================================================================
226--- common/paco-functions (revision 0)
227+++ common/paco-functions (revision 0)
[6821737]228@@ -0,0 +1,112 @@
[059822c]229+#!/bin/bash
230+
231+
232+#----------------------------#
233+wrt_paco_inst() { #
234+#----------------------------#
[d748b31]235+
236+# Not using Paco with uClibc, even if requested
237+if [ $PROGNAME = "hlfs" ]; then
238+ if [ $MODEL = "uclibc" ]; then
[6821737]239+ USE_PACO=0
[d748b31]240+ fi
241+fi
242+
243+if [ $USE_PACO != 0 ]; then
[6821737]244+ paco_script="$1"
245+ paco_file="chapter06/$paco_script"
246+ chapter6="$chapter6 $paco_script"
247+
248+ # Copy the paco build script to the correct directory and make it executable
[799b0d1]249+ cp $JHALFSDIR/paco-build-$PROGNAME.sh $JHALFSDIR/${PROGNAME}-commands/$paco_file &&
[6821737]250+ chmod +x $JHALFSDIR/${PROGNAME}-commands/$paco_file
[059822c]251+
252+ # Write target, dependency and unpack
[6821737]253+ wrt_target "$paco_script" "$PREV"
[059822c]254+ wrt_unpack2 "$PACO_FILE"
255+
256+ # Run the script
[6821737]257+ wrt_run_as_chroot1 "${paco_script}" "${paco_file}"
[059822c]258+
259+ # Clean up
[6821737]260+ wrt_remove_build_dirs "paco"
[059822c]261+ echo -e '\t@touch $@' >> $MKFILE.tmp
262+
263+ # Override the PREV variable
[6821737]264+ PREV="$paco_script"
[059822c]265+fi
266+}
267+
268+
269+#----------------------------------#
270+wrt_paco_prep() { # Export Paco variables
271+#----------------------------------# and remove tmpfile
[d748b31]272+
273+# Not using Paco with uClibc, even if requested
274+if [ $PROGNAME = "hlfs" ]; then
275+ if [ $MODEL = "uclibc" ]; then
[6821737]276+ USE_PACO=0
[d748b31]277+ fi
278+fi
279+
280+if [ $USE_PACO != 0 ] && [ "$vrs" != "" ]; then
[059822c]281+(
282+cat << EOF
283+ @echo "export PACO_INCLUDE=$PACO_INCLUDE" >> envars && \\
284+ echo "export PACO_EXCLUDE=\$(SRC):$JHALFSDIR:$PACO_EXCLUDE" >> envars && \\
285+ echo "export PACO_TMPFILE=$PACO_TMPFILE" >> envars && \\
286+ rm -f \$(MOUNT_PT)$PACO_TMPFILE
287+EOF
288+) >> $MKFILE.tmp
289+fi
290+}
291+
292+
293+#----------------------------------#
294+wrt_paco_log() { # If the tmpfile exist, then log the current package
295+#----------------------------------# and remove tempfile
[d748b31]296+local PACKAGE
297+
298+# Allow packages to be logged without version
299+if [[ $2 != "" ]] ; then
300+ PACKAGE="$1-$2";
301+else
302+ PACKAGE="$1"
303+fi
[059822c]304+
[d748b31]305+# Not using Paco with uClibc, even if requested
306+if [ $PROGNAME = "hlfs" ]; then
307+ if [ $MODEL = "uclibc" ]; then
[6821737]308+ USE_PACO=0
[059822c]309+ fi
[d748b31]310+fi
[059822c]311+
[d748b31]312+if [ $USE_PACO != 0 ] && [ "$vrs" != "" ]; then
[059822c]313+(
314+cat << EOF
315+ @if [ -e \$(MOUNT_PT)$PACO_TMPFILE ]; then \\
[4795dfb]316+ \$(CHROOT1) 'paco -lp+ $PACKAGE < $PACO_TMPFILE' && \\
[059822c]317+ rm -f \$(MOUNT_PT)$PACO_TMPFILE; \\
318+ fi;
319+EOF
320+) >> $MKFILE.tmp
321+fi
322+}
323+
324+
325+#----------------------------------#
326+wrt_paco_log_blfs() { # If the tmpfile exist, then log the current package
327+#----------------------------------# and remove tempfile
328+if [ $USE_PACO != 0 ] ; then
329+(
330+cat << EOF
331+ @PACKAGE=\`head -n1 /tmp/unpacked | sed 's@^./@@;s@/.*@@'\` && \\
332+ if [ -e $PACO_TMPFILE ]; then \\
[d748b31]333+ paco -lp \$\$PACKAGE < $PACO_TMPFILE && \\
[059822c]334+ rm -f $PACO_TMPFILE; \\
335+ fi;
336+EOF
337+) >> $MKFILE
338+fi
339+}
340+
[799b0d1]341Index: common/paco-build-lfs.sh
[6821737]342===================================================================
[799b0d1]343--- common/paco-build-lfs.sh (revision 0)
344+++ common/paco-build-lfs.sh (revision 0)
[6821737]345@@ -0,0 +1,9 @@
346+#!/bin/sh
347+set -e
348+
349+cd $PKGDIR
350+./configure --disable-gpaco \
351+ --sysconfdir=/etc &&
352+make &&
353+make install &&
354+make logme
[059822c]355Index: common/common-functions
356===================================================================
[799b0d1]357--- common/common-functions (revision 2606)
[059822c]358+++ common/common-functions (working copy)
[4795dfb]359@@ -59,6 +59,9 @@
[059822c]360 in the configuration file has the proper packages and patches for the
361 book version being processed.
362
363+${BOLD} --no-paco${OFF}
364+ dissables paco logging feature.
365+
366 ${BOLD} -T, --testsuites N ${OFF}
367 Run test suites [0-3]
368 0 = none
[799b0d1]369@@ -566,6 +569,7 @@
[059822c]370 --stringparam lc_all $LC_ALL \
371 --stringparam keymap $KEYMAP \
372 --stringparam grsecurity_host $GRSECURITY_HOST \
373+ --stringparam use_paco $USE_PACO \
374 -o ./${PROGNAME}-commands/ $XSL $BOOK/index.xml >>$LOGDIR/$LOG 2>&1
375 ;;
376 lfs)
[799b0d1]377@@ -577,6 +581,7 @@
[059822c]378 --stringparam timezone $TIMEZONE \
379 --stringparam page $PAGE \
380 --stringparam lang $LANG \
381+ --stringparam use_paco $USE_PACO \
382 -o ./${PROGNAME}-commands/ $XSL $BOOK/index.xml >>$LOGDIR/$LOG 2>&1
383 ;;
384 blfs)
385Index: HLFS/hlfs.xsl
386===================================================================
[799b0d1]387--- HLFS/hlfs.xsl (revision 2606)
[059822c]388+++ HLFS/hlfs.xsl (working copy)
389@@ -39,6 +39,9 @@
390 <xsl:param name="lang" select="en_CA"/>
391 <xsl:param name="lc_all" select="en_CA"/>
392
393+ <!-- Use paco? -->
394+ <xsl:param name="use_paco" select="1"/>
395+
396 <xsl:template match="/">
397 <xsl:apply-templates select="//sect1"/>
398 </xsl:template>
399@@ -191,6 +194,10 @@
400 <!-- Fixing bootscripts installation -->
401 <xsl:when test="ancestor::sect1[@id='bootable-bootscripts'] and
402 string() = 'make install'">
403+ <!-- inserting LD_PRELOAD before installing bootscripts -->
404+ <xsl:if test="$use_paco != '0' and $model != 'uclibc'">
405+ <xsl:text>export LD_PRELOAD=/usr/lib/libpaco-log.so&#xA;</xsl:text>
406+ </xsl:if>
407 <xsl:text>make install&#xA;</xsl:text>
408 <xsl:text>cd ../blfs-bootscripts-&blfs-bootscripts-version;&#xA;</xsl:text>
409 </xsl:when>
410@@ -248,6 +255,25 @@
411 <xsl:apply-templates/>
412 <xsl:text> || true&#xA;</xsl:text>
413 </xsl:when>
414+ <!-- paco begin -->
415+ <!-- General rule -->
416+ <xsl:when test="$use_paco != '0' and $model != 'uclibc' and
417+ ancestor::chapter[@id != 'chapter-temporary-tools'] and
418+ contains(string(),'make') and
419+ contains(string(),'install')">
420+ <xsl:text>export LD_PRELOAD=/usr/lib/libpaco-log.so&#xA;</xsl:text>
421+ <xsl:apply-templates/>
422+ <xsl:text>&#xA;</xsl:text>
423+ </xsl:when>
424+ <!-- Linux-libc-headers -->
425+ <xsl:when test="$use_paco != '0' and $model != 'uclibc' and
426+ ancestor::sect1[@id='ch-system-linux-libc-headers'] and
427+ contains(string(),'install ')">
428+ <xsl:text>export LD_PRELOAD=/usr/lib/libpaco-log.so&#xA;</xsl:text>
429+ <xsl:apply-templates/>
430+ <xsl:text>&#xA;</xsl:text>
431+ </xsl:when>
432+ <!-- paco end -->
433 <!-- The rest of commands -->
434 <xsl:otherwise>
435 <xsl:apply-templates/>
436Index: HLFS/master.sh
437===================================================================
[799b0d1]438--- HLFS/master.sh (revision 2606)
[059822c]439+++ HLFS/master.sh (working copy)
[799b0d1]440@@ -253,6 +253,18 @@
[4795dfb]441 *-stripping* ) [[ "$STRIP" = "0" ]] && continue ;;
[6821737]442 esac
443
[4795dfb]444+ # Install paco as the first package in ch6, before installing
445+ # linux-libc-headers, except in iterartive builds
446+ if [[ -z "$N" ]]; then
447+ case $this_script in
448+ *linux-libc-headers)
[799b0d1]449+ TMP_SCRIPT="$this_script"
450+ this_script=`echo $this_script | sed -e 's/linux-libc-headers/a-paco/'`
451+ wrt_paco_inst "$this_script"
452+ this_script="$TMP_SCRIPT" ;;
[4795dfb]453+ esac
454+ fi
[6821737]455+
[4795dfb]456 # Grab the name of the target
457 name=`echo $this_script | sed -e 's@[0-9]\{3\}-@@'`
458
[799b0d1]459@@ -322,7 +334,9 @@
[059822c]460 wrt_run_as_root "${this_script}" "${file}"
461 ;;
462 *) # The rest of Chapter06
463+ wrt_paco_prep
464 wrt_run_as_chroot1 "${this_script}" "${file}"
465+ wrt_paco_log "$name" "$vrs"
466 ;;
467 esac
468 #
[799b0d1]469@@ -355,6 +369,16 @@
[4795dfb]470 PREV=${this_script}${N}
471 # Set system_build envar for iteration targets
472 system_build=$chapter6
[059822c]473+
[6821737]474+ # Reinstall paco after the toolchain has been readjusted.
[059822c]475+ case "${this_script}" in
[6821737]476+ *readjusting)
[799b0d1]477+ TMP_SCRIPT="$this_script"
478+ this_script=`echo $this_script | sed -e 's/readjusting/x-paco/'`
479+ wrt_paco_inst "$this_script"
480+ this_script="$TMP_SCRIPT" ;;
[059822c]481+ esac
482+
483 done # end for file in chapter06/*
484
485 }
[799b0d1]486@@ -417,6 +441,15 @@
[059822c]487 wrt_run_as_chroot2 "${this_script}" "${file}"
488 fi
489 ;;
490+ *kernel) wrt_paco_prep
491+ wrt_run_as_chroot2 "$this_script" "$file"
492+ version=`grep "^linux-version" $JHALFSDIR/packages | sed -e 's/.* //' -e 's/"//g'`
493+ wrt_paco_log "linux-kernel" "$version"
494+ ;;
495+ *bootscripts) wrt_paco_prep
496+ wrt_run_as_chroot2 "$this_script" "$file"
497+ wrt_paco_log "hlfs-bootscripts"
498+ ;;
499 *) # All other scripts
500 wrt_run_as_chroot2 "${this_script}" "${file}"
501 ;;
[d748b31]502Index: master.sh
503===================================================================
[799b0d1]504--- master.sh (revision 2606)
[d748b31]505+++ master.sh (working copy)
[4795dfb]506@@ -70,6 +70,11 @@
[d748b31]507 source $MODULE
508 [[ $? > 0 ]] && echo "$MODULE did not load.." && exit 2
509 [[ $VERBOSITY > 0 ]] && echo "OK"
510+# Load paco-functions
511+[[ $VERBOSITY > 0 ]] && echo -n "Loading paco module..."
512+source $COMMON_DIR/paco-functions
513+[[ $? > 0 ]] && echo "$COMMON_DIR/paco-functions did not load.." && exit 2
514+[[ $VERBOSITY > 0 ]] && echo "OK"
515 #
516 [[ $VERBOSITY > 0 ]] && echo "---------------${nl_}"
517
[4795dfb]518@@ -152,6 +157,8 @@
[d748b31]519
520 --help | -h ) usage | more && exit ;;
521
522+ --no-paco ) USE_PACO=0 ;;
523+
524 --testsuites | -T )
525 test $# = 1 && eval "$exit_missing_arg"
526 shift
[799b0d1]527@@ -468,6 +475,15 @@
[d748b31]528
529 if [[ "$PWD" != "$JHALFSDIR" ]]; then
530 cp $COMMON_DIR/makefile-functions $JHALFSDIR/
531+ if [[ $USE_PACO != "0" ]] ; then
532+ if [[ $PROGNAME != "blfs" ]]; then
[799b0d1]533+ cp $COMMON_DIR/paco-build-$PROGNAME.sh $JHALFSDIR/
[d748b31]534+ else
535+ echo -e "export PACO_INCLUDE=$PACO_INCLUDE" > $JHALFSDIR/pacovars
536+ echo -e "export PACO_EXCLUDE=~/sources:$JHALFSDIR:$PACO_EXCLUDE" >> $JHALFSDIR/pacovars
537+ echo -e "export PACO_TMPFILE=$PACO_TMPFILE" >> $JHALFSDIR/pacovars
538+ fi
539+ fi
[4795dfb]540 if [[ "$COMPARE" != "0" ]] ; then
541 mkdir -p $JHALFSDIR/extras
542 cp extras/* $JHALFSDIR/extras
Note: See TracBrowser for help on using the repository browser.