This repository has been archived on 2024-10-17. You can view files and clone it, but cannot push or open issues or pull requests.
MahiroOS-jhalfs/contrib/jhalfs-paco.patch

1055 lines
34 KiB
Diff
Raw Normal View History

2006-04-09 18:00:17 +02:00
Index: LFS/master.sh
===================================================================
2006-09-11 20:56:42 +02:00
--- LFS/master.sh (revision 3103)
2006-04-09 18:00:17 +02:00
+++ LFS/master.sh (working copy)
@@ -172,6 +172,11 @@
# Keep the script file name
this_script=`basename $file`
+ # If $this_script corresponds to a paco script, then skip it
+ case "${this_script}" in
+ *paco) continue ;;
+ esac
+
# We'll run the chroot commands differently than the others, so skip them in the
# dependencies and target creation.
case "${this_script}" in
@@ -179,6 +184,18 @@
*stripping*) [[ "${STRIP}" = "n" ]] && continue ;;
2006-04-13 18:29:22 +02:00
esac
+ # Install paco as the first package in ch6, before installing
+ # linux-libc-headers, except in iterartive builds
+ if [[ -z "$N" ]]; then
+ case $this_script in
+ *linux-libc-headers)
2006-05-01 11:50:33 +02:00
+ TMP_SCRIPT="$this_script"
+ this_script=`echo $this_script | sed -e 's/linux-libc-headers/a-paco/'`
+ wrt_paco_inst "$this_script"
+ this_script="$TMP_SCRIPT" ;;
+ esac
+ fi
2006-04-13 18:29:22 +02:00
+
# Grab the name of the target
name=`echo ${this_script} | sed -e 's@[0-9]\{3\}-@@'`
@@ -231,7 +248,9 @@
2006-04-09 18:00:17 +02:00
# and not to use chroot.
case "${this_script}" in
2006-08-08 19:52:49 +02:00
*kernfs) wrt_RunAsRoot "${this_script}" "$file" ;;
2006-04-09 18:00:17 +02:00
- *) wrt_run_as_chroot1 "${this_script}" "$file" ;;
+ *) wrt_paco_prep
+ wrt_run_as_chroot1 "${this_script}" "$file"
2006-07-13 21:45:35 +02:00
+ wrt_paco_log "$pkg_tarball" ;;
2006-04-09 18:00:17 +02:00
esac
# Remove the build directory(ies) except if the package build fails.
@@ -251,6 +270,16 @@
PREV=${this_script}${N}
# Set system_build envar for iteration targets
system_build=$chapter6
2006-04-09 18:00:17 +02:00
+
2006-04-13 18:29:22 +02:00
+ # Reinstalling paco after readsjusting the toolchain.
2006-04-09 18:00:17 +02:00
+ case "${this_script}" in
2006-04-13 18:29:22 +02:00
+ *readjusting)
2006-05-01 11:50:33 +02:00
+ TMP_SCRIPT="$this_script"
+ this_script=`echo ${this_script} | sed -e 's/readjusting/x-paco/'`
+ wrt_paco_inst "$this_script"
+ this_script="$TMP_SCRIPT" ;;
2006-04-09 18:00:17 +02:00
+ esac
+
done # end for file in chapter06/*
}
@@ -311,8 +340,15 @@
2006-05-31 23:08:02 +02:00
else
2006-04-09 18:00:17 +02:00
wrt_run_as_chroot2 "$this_script" "$file"
fi
2006-05-31 23:08:02 +02:00
+ wrt_paco_log "lfs-sysconf"
2006-04-09 18:00:17 +02:00
;;
2006-08-03 23:25:04 +02:00
+ *kernel | *bootscripts )
+ wrt_paco_prep
+ wrt_run_as_chroot2 "$this_script" "$file"
+ wrt_paco_log "$pkg_tarball"
2006-04-09 18:00:17 +02:00
+ ;;
*) wrt_run_as_chroot2 "$this_script" "$file"
2006-05-31 23:08:02 +02:00
+ wrt_paco_log "lfs-sysconf"
2006-04-09 18:00:17 +02:00
;;
esac
2006-05-31 23:08:02 +02:00
2006-04-09 18:00:17 +02:00
Index: LFS/lfs.xsl
===================================================================
2006-09-11 20:56:42 +02:00
--- LFS/lfs.xsl (revision 3103)
2006-04-09 18:00:17 +02:00
+++ LFS/lfs.xsl (working copy)
2006-08-05 17:56:24 +02:00
@@ -39,6 +39,9 @@
2006-04-09 18:00:17 +02:00
<!-- Locale settings -->
2006-06-04 20:08:02 +02:00
<xsl:param name="lang" select="C"/>
2006-04-09 18:00:17 +02:00
+ <!-- Use paco? -->
+ <xsl:param name="use_paco" select="y"/>
2006-04-09 18:00:17 +02:00
+
<xsl:template match="/">
<xsl:apply-templates select="//sect1"/>
</xsl:template>
@@ -251,6 +254,33 @@
2006-04-09 18:00:17 +02:00
<xsl:apply-templates/>
<xsl:text> || true&#xA;</xsl:text>
</xsl:when>
+ <!-- paco begin -->
+ <!-- General rule -->
+ <xsl:when test="$use_paco != 'n' and
2006-04-09 18:00:17 +02:00
+ ancestor::chapter[@id != 'chapter-temporary-tools'] and
+ contains(string(),'make') and
+ contains(string(),'install')">
+ <xsl:text>export LD_PRELOAD=/usr/lib/libpaco-log.so&#xA;</xsl:text>
+ <xsl:apply-templates/>
+ <xsl:text>&#xA;</xsl:text>
+ </xsl:when>
+ <!-- Linux-libc-headers -->
+ <xsl:when test="$use_paco != 'n' and
2006-04-09 18:00:17 +02:00
+ ancestor::sect1[@id='ch-system-linux-libc-headers'] and
+ contains(string(),'install ')">
+ <xsl:text>export LD_PRELOAD=/usr/lib/libpaco-log.so&#xA;</xsl:text>
+ <xsl:apply-templates/>
+ <xsl:text>&#xA;</xsl:text>
+ </xsl:when>
+ <!-- Unset LD_PRELOAD before second make in Zlib -->
+ <xsl:when test="$use_paco != 'n' and
2006-04-09 18:00:17 +02:00
+ ancestor::sect1[@id='ch-system-zlib'] and
+ contains(string(),'make clean')">
+ <xsl:text>unset LD_PRELOAD&#xA;</xsl:text>
+ <xsl:apply-templates/>
+ <xsl:text>&#xA;</xsl:text>
+ </xsl:when>
+ <!-- paco end -->
<!-- The rest of commands -->
<xsl:otherwise>
<xsl:apply-templates/>
2006-08-03 23:25:04 +02:00
Index: CLFS/master.sh
===================================================================
2006-09-11 20:56:42 +02:00
--- CLFS/master.sh (revision 3103)
2006-08-03 23:25:04 +02:00
+++ CLFS/master.sh (working copy)
@@ -494,6 +494,11 @@
2006-08-03 23:25:04 +02:00
# Keep the script file name
this_script=`basename $file`
+ # If $this_script corresponds to a paco script, then skip it
+ case "${this_script}" in
+ *paco) continue ;;
+ esac
+
# Test if the stripping phase must be skipped.
# Skip alsp temp-perl for iterative runs
case $this_script in
@@ -501,6 +506,18 @@
2006-08-03 23:25:04 +02:00
*temp-perl*) [[ -n "$N" ]] && continue ;;
esac
+ # Install paco as the first package in ch6, before installing
+ # linux-libc-headers, except in iterartive builds
+ if [[ -z "$N" ]]; then
+ case $this_script in
+ *linux-headers)
+ TMP_SCRIPT="$this_script"
+ this_script=`echo $this_script | sed -e 's/linux-headers/a-paco/'`
+ wrt_paco_inst "$this_script"
+ this_script="$TMP_SCRIPT" ;;
+ esac
+ fi
+
# Grab the name of the target, strip id number, XXX-script
name=`echo $this_script | sed -e 's@[0-9]\{3\}-@@' \
-e 's@temp-@@' \
@@ -553,7 +570,9 @@
2006-08-03 23:25:04 +02:00
[[ "$OPTIMIZE" != "0" ]] && wrt_optimize "$name" && wrt_makeflags "$name"
fi
#
+ wrt_paco_prep
wrt_run_as_chroot1 "${this_script}" "${file}"
+ wrt_paco_log "$pkg_tarball"
#
[[ "$pkg_tarball" != "" ]] && wrt_remove_build_dirs "${name}"
#
@@ -568,6 +587,16 @@
2006-08-03 23:25:04 +02:00
PREV=${this_script}${N}
# Set system_build envar for iteration targets
system_build=$basicsystem
+
+ # Reinstalling paco after readsjusting the toolchain.
+ case "${this_script}" in
+ *adjusting)
+ TMP_SCRIPT="$this_script"
+ this_script=`echo ${this_script} | sed -e 's/adjusting/x-paco/'`
+ wrt_paco_inst "$this_script"
+ this_script="$TMP_SCRIPT" ;;
+ esac
+
done # for file in final-system/* ...
}
@@ -604,6 +633,11 @@
2006-08-03 23:25:04 +02:00
# Keep the script file name
this_script=`basename $file`
+ # If $this_script corresponds to a paco script, then skip it
+ case "${this_script}" in
+ *paco) continue ;;
+ esac
+
# Test if the stripping phase must be skipped
# Skip alsp temp-perl for iterative runs
case $this_script in
@@ -611,6 +645,18 @@
2006-08-03 23:25:04 +02:00
*temp-perl*) [[ -n "$N" ]] && continue ;;
esac
+ # Install paco as the first package in ch6, before installing
+ # linux-libc-headers, except in iterartive builds
+ if [[ -z "$N" ]]; then
+ case $this_script in
+ *linux-headers)
+ TMP_SCRIPT="$this_script"
+ this_script=`echo $this_script | sed -e 's/linux-headers/a-paco/'`
+ wrt_paco_inst "$this_script"
+ this_script="$TMP_SCRIPT" ;;
+ esac
+ fi
+
# Grab the name of the target, strip id number, XXX-script
name=`echo $this_script | sed -e 's@[0-9]\{3\}-@@' \
-e 's@temp-@@' \
@@ -665,7 +711,9 @@
2006-08-03 23:25:04 +02:00
[[ "$OPTIMIZE" != "0" ]] && wrt_optimize "$name" && wrt_makeflags "$name"
fi
#
+ wrt_paco_prep
wrt_run_as_root2 "${this_script}" "${file}"
+ wrt_paco_log "$pkg_tarball"
#
[[ "$pkg_tarball" != "" ]] && wrt_remove_build_dirs2 "${name}"
#
@@ -680,6 +728,16 @@
2006-08-03 23:25:04 +02:00
PREV=${this_script}${N}
# Set system_build envar for iteration targets
system_build=$basicsystem
+
+ # Reinstalling paco after readsjusting the toolchain.
+ case "${this_script}" in
+ *adjusting)
+ TMP_SCRIPT="$this_script"
+ this_script=`echo ${this_script} | sed -e 's/adjusting/x-paco/'`
+ wrt_paco_inst "$this_script"
+ this_script="$TMP_SCRIPT" ;;
+ esac
+
done # for file in final-system/* ...
}
@@ -728,7 +786,17 @@
2006-08-03 23:25:04 +02:00
#
[[ "$pkg_tarball" != "" ]] && wrt_unpack2 "$pkg_tarball"
#
+ case $this_script in
+ *bootscripts* | *udev-rules )
+ wrt_paco_prep ;;
+ esac
wrt_run_as_chroot1 "${this_script}" "${file}"
+ case $this_script in
+ *bootscripts* | *udev-rules )
+ wrt_paco_log "$pkg_tarball" ;;
+ *)
+ wrt_paco_log "clfs-sysconf" ;;
+ esac
#
[[ "$pkg_tarball" != "" ]] && wrt_remove_build_dirs "${name}"
#
@@ -790,7 +858,17 @@
2006-08-03 23:25:04 +02:00
#
[[ "$pkg_tarball" != "" ]] && wrt_unpack3 "$pkg_tarball"
#
+ case $this_script in
+ *bootscripts* | *udev-rules )
+ wrt_paco_prep ;;
+ esac
wrt_run_as_root2 "${this_script}" "${file}"
+ case $this_script in
+ *bootscripts* | *udev-rules )
+ wrt_paco_log "$pkg_tarball" ;;
+ *)
+ wrt_paco_log "clfs-sysconf" ;;
+ esac
#
[[ "$pkg_tarball" != "" ]] && wrt_remove_build_dirs2 "${name}"
#
@@ -862,8 +940,13 @@
2006-08-03 23:25:04 +02:00
else
wrt_run_as_chroot1 "${this_script}" "${file}"
fi
+ wrt_paco_log "clfs-sysconf"
;;
- *) wrt_run_as_chroot1 "${this_script}" "${file}" ;;
+ *kernel) wrt_paco_prep
+ wrt_run_as_chroot1 "${this_script}" "${file}"
+ wrt_paco_log "$pkg_tarball" ;;
+ *) wrt_run_as_chroot1 "${this_script}" "${file}"
+ wrt_paco_log "clfs-sysconf" ;;
esac
#
# Housekeeping...remove any build directory(ies) except if the package build fails.
@@ -941,8 +1024,13 @@
2006-08-03 23:25:04 +02:00
else
wrt_run_as_root2 "${this_script}" "${file}"
fi
+ wrt_paco_log "clfs-sysconf"
;;
- *) wrt_run_as_root2 "${this_script}" "${file}" ;;
+ *kernel) wrt_paco_prep
+ wrt_run_as_root2 "${this_script}" "${file}"
+ wrt_paco_log "$pkg_tarball" ;;
+ *) wrt_run_as_root2 "${this_script}" "${file}"
+ wrt_paco_log "clfs-sysconf" ;;
esac
#
# Housekeeping...remove any build directory(ies) except if the package build fails.
Index: CLFS/clfs.xsl
===================================================================
2006-09-11 20:56:42 +02:00
--- CLFS/clfs.xsl (revision 3103)
2006-08-03 23:25:04 +02:00
+++ CLFS/clfs.xsl (working copy)
2006-09-11 20:56:42 +02:00
@@ -42,6 +42,9 @@
2006-08-03 23:25:04 +02:00
<!-- Locale settings -->
<xsl:param name="lang" select="C"/>
+ <!-- Use paco? -->
+ <xsl:param name="use_paco" select="y"/>
2006-08-03 23:25:04 +02:00
+
<xsl:template match="/">
<xsl:apply-templates select="//sect1"/>
</xsl:template>
2006-09-11 20:56:42 +02:00
@@ -103,6 +106,25 @@
2006-08-03 23:25:04 +02:00
<xsl:text>tar -xvf ../vim-&vim-version;-lang.* --strip-components=1&#xA;</xsl:text>
</xsl:if>
</xsl:if>
+ <!-- paco begin -->
+ <!-- General rule -->
+ <xsl:if test="$use_paco != 'n' and
2006-08-03 23:25:04 +02:00
+ @id='ch-scripts-bootscripts' or
+ @id='ch-scripts-udev-rules' or
+ @id='ch-bootable-kernel' or
+ (../@id='chapter-building-system' and
+ @id!='ch-system-temp-perl' and
+ contains(string(),'make') and
+ contains(string(),'install'))">
+ <xsl:text>export LD_PRELOAD=/usr/lib/libpaco-log.so&#xA;</xsl:text>
+ </xsl:if>
+ <!-- Linux headers -->
+ <xsl:if test="$use_paco != 'n' and
2006-08-03 23:25:04 +02:00
+ @id='ch-system-linux-headers' and
+ contains(string(),'install')">
+ <xsl:text>export LD_PRELOAD=/usr/lib/libpaco-log.so&#xA;</xsl:text>
+ </xsl:if>
+ <!-- paco end -->
<xsl:apply-templates select=".//para/userinput | .//screen"/>
<xsl:text>exit</xsl:text>
</exsl:document>
2006-05-01 11:50:33 +02:00
Index: common/paco-build-hlfs.sh
===================================================================
--- common/paco-build-hlfs.sh (revision 0)
+++ common/paco-build-hlfs.sh (revision 0)
2006-05-31 23:08:02 +02:00
@@ -0,0 +1,12 @@
2006-05-01 11:50:33 +02:00
+#!/bin/sh
+set -e
+
+cd $PKGDIR
2006-05-31 23:08:02 +02:00
+./configure --sysconfdir=/etc \
+ --enable-scripts \
2006-05-01 11:50:33 +02:00
+ --disable-gpaco \
2006-05-31 23:08:02 +02:00
+ --disable-static \
+ --with-pic &&
2006-05-01 11:50:33 +02:00
+make &&
+make install &&
+make logme
2006-04-09 18:00:17 +02:00
Index: common/func_validate_configs.sh
===================================================================
2006-09-11 20:56:42 +02:00
--- common/func_validate_configs.sh (revision 3103)
2006-04-09 18:00:17 +02:00
+++ common/func_validate_configs.sh (working copy)
2006-08-29 21:36:53 +02:00
@@ -20,10 +20,10 @@
2006-04-09 18:00:17 +02:00
inline_doc
# First internal variables, then the ones that change the book's flavour, and lastly system configuration variables
2006-09-11 20:56:42 +02:00
- 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 PAGE TIMEZONE LANG LC_ALL LUSER LGROUP BLFS_TOOL"
- local -r clfs_PARAM_LIST="BOOK BUILDDIR SRC_ARCHIVE GETPKG RUNMAKE METHOD ARCH TARGET TARGET32 TEST BOMB_TEST OPTIMIZE REPORT COMPARE RUN_ICA RUN_FARCE ITERATIONS STRIP FSTAB BOOT_CONFIG CONFIG GETKERNEL VIMLANG PAGE TIMEZONE LANG LUSER LGROUP BLFS_TOOL"
- local -r clfs2_PARAM_LIST="BOOK BUILDDIR SRC_ARCHIVE GETPKG RUNMAKE ARCH TARGET OPTIMIZE REPORT STRIP FSTAB CONFIG GETKERNEL VIMLANG PAGE TIMEZONE LANG LUSER LGROUP BLFS_TOOL"
- 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 BLFS_TOOL"
+ 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 PAGE TIMEZONE LANG LC_ALL LUSER LGROUP BLFS_TOOL"
+ local -r clfs_PARAM_LIST="BOOK BUILDDIR SRC_ARCHIVE USE_PACO GETPKG RUNMAKE METHOD ARCH TARGET TARGET32 TEST BOMB_TEST OPTIMIZE REPORT COMPARE RUN_ICA RUN_FARCE ITERATIONS STRIP FSTAB BOOT_CONFIG CONFIG GETKERNEL VIMLANG PAGE TIMEZONE LANG LUSER LGROUP BLFS_TOOL"
+ local -r clfs2_PARAM_LIST="BOOK BUILDDIR SRC_ARCHIVE GETPKG RUNMAKE ARCH TARGET OPTIMIZE REPORT STRIP FSTAB CONFIG GETKERNEL VIMLANG PAGE TIMEZONE LANG LUSER LGROUP BLFS_TOOL"
+ 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 BLFS_TOOL"
2006-08-29 21:36:53 +02:00
local -r blfs_PARAM_LIST="BRANCH_ID BLFS_ROOT BLFS_XML TRACKING_DIR"
2006-04-09 18:00:17 +02:00
2006-08-29 21:36:53 +02:00
local -r blfs_tool_PARAM_LIST="BLFS_BRANCH_ID BLFS_ROOT BLFS_XML TRACKING_DIR DEP_LIBXML DEP_LIBXSLT DEP_DBXSL DEP_LINKS DEP_SUDO DEP_WGET DEP_SVN DEP_GPM"
@@ -99,6 +99,7 @@
case $config_param in
# Allways display this, if found in ${PROGNAME}_PARAM_LIST
GETPKG | \
+ USE_PACO | \
RUNMAKE | \
TEST | \
OPTIMIZE | \
2006-04-09 18:00:17 +02:00
Index: common/paco-functions
===================================================================
--- common/paco-functions (revision 0)
+++ common/paco-functions (revision 0)
@@ -0,0 +1,328 @@
2006-04-09 18:00:17 +02:00
+#!/bin/bash
+
+#----------------------------#
+wrt_paco_inst() { #
+#----------------------------#
2006-04-10 19:01:08 +02:00
+
2006-08-03 23:25:04 +02:00
+local paco_script="$1"
+
+check_build_model
2006-04-10 19:01:08 +02:00
+
+if [ $USE_PACO = "y" ]; then
+ case $PROGNAME in
2006-08-03 23:25:04 +02:00
+ clfs )
+ paco_file="final-system/$paco_script"
+ basicsystem="$basicsystem $paco_script" ;;
+ * )
+ paco_file="chapter06/$paco_script"
+ chapter6="$chapter6 $paco_script" ;;
+ esac
2006-04-13 18:29:22 +02:00
+
+ # Copy the paco build script to the correct directory and make it executable
2006-05-01 11:50:33 +02:00
+ cp $JHALFSDIR/paco-build-$PROGNAME.sh $JHALFSDIR/${PROGNAME}-commands/$paco_file &&
2006-04-13 18:29:22 +02:00
+ chmod +x $JHALFSDIR/${PROGNAME}-commands/$paco_file
2006-04-09 18:00:17 +02:00
+
+ # Write target, dependency and unpack
2006-08-03 23:25:04 +02:00
+ if [ $CLFS_BOOT = 1 ]; then
+ wrt_target_boot "$paco_script" "$PREV"
+ wrt_unpack3 "$PACO_FILE"
+ wrt_run_as_root2 "${paco_script}" "${paco_file}"
+ wrt_remove_build_dirs2 "paco"
+ else
2006-08-03 23:25:04 +02:00
+ wrt_target "$paco_script" "$PREV"
+ wrt_unpack2 "$PACO_FILE"
+ wrt_run_as_chroot1 "${paco_script}" "${paco_file}"
+ wrt_remove_build_dirs "paco"
+ fi
2006-04-09 18:00:17 +02:00
+
2006-07-13 21:45:35 +02:00
+ wrt_touch
2006-04-09 18:00:17 +02:00
+
+ # Override the PREV variable
2006-04-13 18:29:22 +02:00
+ PREV="$paco_script"
2006-04-09 18:00:17 +02:00
+fi
+}
+
+
+#----------------------------------#
+wrt_paco_prep() { # Export Paco variables
+#----------------------------------# and remove tmpfile
2006-04-10 19:01:08 +02:00
+
2006-08-03 23:25:04 +02:00
+local TMPFILEPATH
+
+check_build_model
2006-04-10 19:01:08 +02:00
+
2006-05-31 23:08:02 +02:00
+check_log_package
+
+if [ $USE_PACO = "y" ] && [ $LOG_PACKAGE != 0 ]; then
2006-08-03 23:25:04 +02:00
+ if [ $CLFS_BOOT = 1 ]; then
+ TMPFILEPATH="$PACO_TMPFILE"
+ else
+ TMPFILEPATH="\$(MOUNT_PT)$PACO_TMPFILE"
+ fi
2006-04-09 18:00:17 +02:00
+(
+cat << EOF
+ @echo "export PACO_INCLUDE=$PACO_INCLUDE" >> envars && \\
2006-05-31 23:08:02 +02:00
+ echo "export PACO_EXCLUDE=\$(SRC):$PACO_EXCLUDE" >> envars && \\
2006-04-09 18:00:17 +02:00
+ echo "export PACO_TMPFILE=$PACO_TMPFILE" >> envars && \\
2006-08-03 23:25:04 +02:00
+ rm -f $TMPFILEPATH
2006-04-09 18:00:17 +02:00
+EOF
+) >> $MKFILE.tmp
+fi
+}
+
+
+#----------------------------------#
+wrt_paco_log() { # If the tmpfile exist, then log the current package
+#----------------------------------# and remove tempfile
2006-04-10 19:01:08 +02:00
+local PACKAGE
+
2006-08-03 23:25:04 +02:00
+# Extract package name and version from the tarball name
2006-07-13 21:45:35 +02:00
+PACKAGE=`echo $1 | sed -e 's/.tar.*//'`
2006-04-09 18:00:17 +02:00
+
2006-08-03 23:25:04 +02:00
+check_build_model
2006-04-09 18:00:17 +02:00
+
2006-08-03 23:25:04 +02:00
+# Check if the package should be logged
2006-05-31 23:08:02 +02:00
+check_log_package
+
2006-08-03 23:25:04 +02:00
+
+if [ $USE_PACO = "y" ]; then
2006-05-31 23:08:02 +02:00
+ if [ $LOG_PACKAGE != 0 ]; then
2006-08-03 23:25:04 +02:00
+ # Only use this if doing CLFS boot build
+ if [ $CLFS_BOOT = 1 ]; then
+(
+cat << EOF
+ @if [ -e $PACO_TMPFILE ]; then \\
+ paco -lp+ $PACKAGE < $PACO_TMPFILE && \\
+ rm -f $PACO_TMPFILE; \\
+ fi;
+EOF
+) >> $MKFILE.tmp
+ # All else should use these commands
+ else
2006-04-09 18:00:17 +02:00
+(
+cat << EOF
+ @if [ -e \$(MOUNT_PT)$PACO_TMPFILE ]; then \\
+ \$(CHROOT1) 'paco -lp+ $PACKAGE < $PACO_TMPFILE' && \\
2006-04-09 18:00:17 +02:00
+ rm -f \$(MOUNT_PT)$PACO_TMPFILE; \\
+ fi;
+EOF
+) >> $MKFILE.tmp
2006-08-03 23:25:04 +02:00
+ fi
2006-05-31 23:08:02 +02:00
+ fi
2006-08-03 23:25:04 +02:00
+ # Add missing files to the logs if needed
2006-05-31 23:08:02 +02:00
+ wrt_paco_add_log
2006-04-09 18:00:17 +02:00
+fi
2006-05-31 23:08:02 +02:00
+}
2006-04-09 18:00:17 +02:00
+
2006-05-31 23:08:02 +02:00
+
+#----------------------------------#
2006-08-03 23:25:04 +02:00
+fnc_add_log() { #
+#----------------------------------#
+
+MISSING_FILE=$1
+
+if [ $CLFS_BOOT = 1 ]; then
+ echo -e "\t@$MISSING_FILE | paco -lp+ $PACKAGE" >> $MKFILE.tmp
+else
+ echo -e "\t@\$(CHROOT1) '$MISSING_FILE | paco -lp+ $PACKAGE'" >> $MKFILE.tmp
+fi
+}
+
+
+#----------------------------------#
2006-05-31 23:08:02 +02:00
+wrt_paco_add_log() { #
+#----------------------------------#
+# Some packages create files using bash redirection, which the LD_PRELOAD lib don't notice
+# These rules will add the missing files to the proper logs.
+# Most of these is not needed for HLFS, but they do no harm.
+if [ $USE_PACO = "y" ]; then
2006-08-03 23:25:04 +02:00
+ case $this_script in
+ *e2fsprogs)
+ fnc_add_log "echo /etc/mke2fs.conf"
+ ;;
+ *bootscripts)
+ fnc_add_log "echo /etc/sysconfig/rc"
+ fnc_add_log "echo /etc/sysconfig/createfiles"
+ ;;
2006-05-31 23:08:02 +02:00
+ *glibc)
2006-08-03 23:25:04 +02:00
+ fnc_add_log "find /lib -type l"
+ fnc_add_log "echo /etc/{nsswitch.conf,ld.so.conf}"
2006-05-31 23:08:02 +02:00
+ ;;
+ *ncurses)
+ fnc_add_log "echo /usr/lib/{libcurses.so,libncurses.so{,.5},libform.so,libpanel.so,libmenu.so}"
2006-05-31 23:08:02 +02:00
+ ;;
+ *bash)
2006-08-03 23:25:04 +02:00
+ fnc_add_log "echo /bin/sh"
2006-05-31 23:08:02 +02:00
+ ;;
+ *flex)
2006-08-03 23:25:04 +02:00
+ fnc_add_log "echo /usr/bin/lex"
2006-05-31 23:08:02 +02:00
+ ;;
+ *shadow)
2006-08-03 23:25:04 +02:00
+ fnc_add_log "echo /etc/login.defs"
+ fnc_add_log "echo /etc/group"
2006-05-31 23:08:02 +02:00
+ ;;
+ *hotplug)
2006-08-03 23:25:04 +02:00
+ fnc_add_log "echo /var/log/hotplug"
+ fnc_add_log "echo /var/run/usb"
2006-05-31 23:08:02 +02:00
+ ;;
+ *sysklogd)
2006-08-03 23:25:04 +02:00
+ fnc_add_log "echo /etc/syslog.conf"
2006-05-31 23:08:02 +02:00
+ ;;
+ *sysvinit)
2006-08-03 23:25:04 +02:00
+ fnc_add_log "echo /etc/inittab"
+ fnc_add_log "echo /usr/bin/lastb"
+ ;;
+ *texinfo)
+ fnc_add_log "echo /usr/share/info/dir"
2006-05-31 23:08:02 +02:00
+ ;;
+ *udev)
2006-08-03 23:25:04 +02:00
+ fnc_add_log "find /lib/udev/devices"
+ fnc_add_log "echo /lib/firmware"
+ fnc_add_log "find /etc/udev/rules.d -type f"
+ fnc_add_log "echo /etc/udev/udev.conf"
+ ;;
+ *udev-rules)
+ fnc_add_log "echo /lib/udev/devices/{null,console}"
2006-05-31 23:08:02 +02:00
+ ;;
+ *util-linux)
2006-08-03 23:25:04 +02:00
+ fnc_add_log "echo /var/lib/hwclock"
+ fnc_add_log "echo /etc/nologin.txt"
2006-05-31 23:08:02 +02:00
+ ;;
+ *vim)
2006-08-03 23:25:04 +02:00
+ fnc_add_log "echo /etc/vimrc"
2006-05-31 23:08:02 +02:00
+ ;;
2006-08-03 23:25:04 +02:00
+ # Rules below here will log configuration files created in {C,H}LFS
+ # They will end up in a log named {c,h}lfs-sysconf
2006-05-31 23:08:02 +02:00
+ *setclock)
2006-08-03 23:25:04 +02:00
+ fnc_add_log "echo /etc/sysconfig/clock"
2006-05-31 23:08:02 +02:00
+ ;;
+ *inputrc)
2006-08-03 23:25:04 +02:00
+ fnc_add_log "echo /etc/inputrc"
2006-05-31 23:08:02 +02:00
+ ;;
+ *profile)
2006-08-03 23:25:04 +02:00
+ fnc_add_log "echo /etc/profile"
2006-05-31 23:08:02 +02:00
+ ;;
+ *hostname)
2006-08-03 23:25:04 +02:00
+ fnc_add_log "echo /etc/sysconfig/network"
2006-05-31 23:08:02 +02:00
+ ;;
+ *localnet)
2006-08-03 23:25:04 +02:00
+ fnc_add_log "echo /etc/sysconfig/network"
2006-05-31 23:08:02 +02:00
+ ;;
+ *hosts)
2006-08-03 23:25:04 +02:00
+ fnc_add_log "echo /etc/hosts"
2006-05-31 23:08:02 +02:00
+ ;;
+ *network)
2006-08-03 23:25:04 +02:00
+ fnc_add_log "echo /etc/sysconfig/network-devices/ifconfig.eth0/ipv4"
+ fnc_add_log "echo /etc/resolv.conf"
2006-05-31 23:08:02 +02:00
+ ;;
+ *fstab)
2006-08-03 23:25:04 +02:00
+ fnc_add_log "echo /etc/fstab"
2006-05-31 23:08:02 +02:00
+ ;;
+ *theend | *finished)
2006-08-03 23:25:04 +02:00
+ fnc_add_log "echo /etc/$PROGNAME-release"
+ fnc_add_log "echo /var/run/utmp"
+ fnc_add_log "echo /var/log/btmp"
+ fnc_add_log "echo /var/log/wtmp"
+ fnc_add_log "echo /var/log/lastlog"
2006-05-31 23:08:02 +02:00
+ ;;
+ esac
2006-04-09 18:00:17 +02:00
+fi
+}
2006-05-31 23:08:02 +02:00
+
+
+#----------------------------------#
+check_log_package() { #
+#----------------------------------#
+# Maybe don't need this function, but it will avoid writing some
+# unnecessary paco commands in the Makefile.
+
+case $this_script in
2006-07-13 21:45:35 +02:00
+ *changingowner) LOG_PACKAGE=0 ;;
2006-05-31 23:08:02 +02:00
+ *creatingdirs) LOG_PACKAGE=0 ;;
+ *createfiles) LOG_PACKAGE=0 ;;
2006-07-13 21:45:35 +02:00
+ *pwdgroup) LOG_PACKAGE=0 ;;
+ *devices) LOG_PACKAGE=0 ;;
2006-08-03 23:25:04 +02:00
+ *stripping) LOG_PACKAGE=0 ;;
2006-05-31 23:08:02 +02:00
+ *strippingagain) LOG_PACKAGE=0 ;;
2006-08-03 23:25:04 +02:00
+ *adjusting) LOG_PACKAGE=0 ;;
+ *temp-perl) LOG_PACKAGE=0 ;;
2006-05-31 23:08:02 +02:00
+ *readjusting) LOG_PACKAGE=0 ;;
+ *setclock) LOG_PACKAGE=0 ;;
+ *inputrc) LOG_PACKAGE=0 ;;
+ *profile) LOG_PACKAGE=0 ;;
+ *hostname) LOG_PACKAGE=0 ;;
+ *localnet) LOG_PACKAGE=0 ;;
+ *hosts) LOG_PACKAGE=0 ;;
+ *network) LOG_PACKAGE=0 ;;
+ *fstab) LOG_PACKAGE=0 ;;
+ *theend) LOG_PACKAGE=0 ;;
+ *finished) LOG_PACKAGE=0 ;;
+ *) LOG_PACKAGE=1 ;;
+esac
+}
2006-07-30 18:32:18 +02:00
+
+#----------------------------------#
+get_paco_src() { #
+#----------------------------------#
+# Download the paco sources
+# We don't do any MD5SUM checking as of yet
+# http://jaist.dl.sourceforge.net/sourceforge/paco/paco-1.10.10.tar.bz2
+
+local PACO_URL1="http://$PACO_MIRROR1.dl.sourceforge.net/sourceforge/paco/$PACO_FILE"
+local PACO_URL2="http://$PACO_MIRROR2.dl.sourceforge.net/sourceforge/paco/$PACO_FILE"
+
+# Test if paco is to be used
+[[ ! "$USE_PACO" = "y" ]] && return
2006-07-30 18:32:18 +02:00
+
+# If the file exists in the archive copy it to the $BUILDDIR/sources dir.
+if [ ! -z ${SRC_ARCHIVE} ] &&
+ [ -d ${SRC_ARCHIVE} ] &&
+ [ -f ${SRC_ARCHIVE}/$PACO_FILE ]; then
+ cp ${SRC_ARCHIVE}/$PACO_FILE .
+ echo "$PACO_FILE: -- copied from $SRC_ARCHIVE"
+ fromARCHIVE=1
+else
+ echo "${BOLD}${YELLOW}$PACO_FILE: not found in ${SRC_ARCHIVE}${OFF}"
+ fromARCHIVE=0
+ # If the file does not exist yet in /sources download a fresh one
+ if [ ! -f $PACO_FILE ] ; then
+ if ! wget $PACO_URL1 && ! wget $PACO_URL2 ; then
+ gs_wrt_message "$PACO_FILE not found in the SRC_ARCHIVE or on any server..SKIPPING"
+ continue
+ fi
+ fi
+fi
+
+# Copy the freshly downloaded file to the source archive.
+if [ ! -z ${SRC_ARCHIVE} ] &&
+ [ -d ${SRC_ARCHIVE} ] &&
+ [ -w ${SRC_ARCHIVE} ] &&
+ [ "$fromARCHIVE" = "0" ] ; then
+ echo "Storing file:<$PACO_FILE> in the package archive"
+ cp -f $PACO_FILE ${SRC_ARCHIVE}
+fi
+}
2006-08-03 23:25:04 +02:00
+
+
+#----------------------------------#
+check_build_model() { #
+#----------------------------------#
+# Check what script we're running, and set some switches accordingly
+
+CLFS_BOOT=0
+
+case $PROGNAME in
+ hlfs)
+ # Not using Paco with uClibc, even if requested
+ if [ "$MODEL" = "uclibc" ]; then
+ USE_PACO=n
2006-08-03 23:25:04 +02:00
+ fi
+ ;;
+ clfs)
+ # CLFS boot method require it's own commands
+ if [ "$METHOD" = "boot" ]; then
+ CLFS_BOOT=1
+ fi
+ ;;
+esac
+}
2006-05-01 11:50:33 +02:00
Index: common/paco-build-lfs.sh
2006-04-13 18:29:22 +02:00
===================================================================
2006-05-01 11:50:33 +02:00
--- common/paco-build-lfs.sh (revision 0)
+++ common/paco-build-lfs.sh (revision 0)
2006-05-31 23:08:02 +02:00
@@ -0,0 +1,10 @@
2006-04-13 18:29:22 +02:00
+#!/bin/sh
+set -e
+
+cd $PKGDIR
2006-05-31 23:08:02 +02:00
+./configure --sysconfdir=/etc \
+ --enable-scripts \
+ --disable-gpaco &&
2006-04-13 18:29:22 +02:00
+make &&
+make install &&
+make logme
2006-08-03 23:25:04 +02:00
Index: common/paco-build-clfs.sh
===================================================================
--- common/paco-build-clfs.sh (revision 0)
+++ common/paco-build-clfs.sh (revision 0)
@@ -0,0 +1,10 @@
+#!/bin/sh
+set -e
+
+cd $PKGDIR
+./configure --sysconfdir=/etc \
+ --enable-scripts \
+ --disable-gpaco &&
+make &&
+make install &&
+make logme
2006-04-09 18:00:17 +02:00
Index: common/common-functions
===================================================================
2006-09-11 20:56:42 +02:00
--- common/common-functions (revision 3103)
2006-04-09 18:00:17 +02:00
+++ common/common-functions (working copy)
2006-09-11 20:56:42 +02:00
@@ -532,6 +532,7 @@
--stringparam timezone $TIMEZONE \
2006-08-03 23:25:04 +02:00
--stringparam page $PAGE \
--stringparam lang $LANG \
+ --stringparam use_paco $USE_PACO \
-o ./${PROGNAME}-commands/ $XSL $BOOK/$ARCH-index.xml >>$LOGDIR/$LOG 2>&1
;;
2006-09-11 20:56:42 +02:00
@@ -557,6 +558,7 @@
--stringparam lang $LANG \
2006-04-09 18:00:17 +02:00
--stringparam lc_all $LC_ALL \
--stringparam grsecurity_host $GRSECURITY_HOST \
+ --stringparam use_paco $USE_PACO \
-o ./${PROGNAME}-commands/ $XSL $BOOK/index.xml >>$LOGDIR/$LOG 2>&1
;;
lfs)
2006-09-11 20:56:42 +02:00
@@ -569,6 +571,7 @@
2006-04-09 18:00:17 +02:00
--stringparam timezone $TIMEZONE \
--stringparam page $PAGE \
--stringparam lang $LANG \
+ --stringparam use_paco $USE_PACO \
-o ./${PROGNAME}-commands/ $XSL $BOOK/index.xml >>$LOGDIR/$LOG 2>&1
;;
*) exit 1 ;;
2006-09-11 20:56:42 +02:00
@@ -653,6 +656,9 @@
2006-07-30 18:32:18 +02:00
# Generate URLs file
create_urls
+ # If Paco is to be used, then download the sources
+ get_paco_src
+
IFS=$'\x0A' # Modify the 'internal field separator' to break on 'LF' only
for line in `cat urls.lst`; do
IFS=$saveIFS # Restore the system defaults
2006-04-09 18:00:17 +02:00
Index: HLFS/hlfs.xsl
===================================================================
2006-09-11 20:56:42 +02:00
--- HLFS/hlfs.xsl (revision 3103)
2006-04-09 18:00:17 +02:00
+++ HLFS/hlfs.xsl (working copy)
2006-09-11 20:56:42 +02:00
@@ -43,6 +43,9 @@
2006-06-04 20:08:02 +02:00
<xsl:param name="lang" select="C"/>
<xsl:param name="lc_all" select="C"/>
2006-04-09 18:00:17 +02:00
+ <!-- Use paco? -->
+ <xsl:param name="use_paco" select="y"/>
2006-04-09 18:00:17 +02:00
+
<xsl:template match="/">
<xsl:apply-templates select="//sect1"/>
</xsl:template>
2006-09-11 20:56:42 +02:00
@@ -193,6 +196,10 @@
2006-04-09 18:00:17 +02:00
<!-- Fixing bootscripts installation -->
<xsl:when test="ancestor::sect1[@id='bootable-bootscripts'] and
string() = 'make install'">
+ <!-- inserting LD_PRELOAD before installing bootscripts -->
+ <xsl:if test="$use_paco != 'n' and $model != 'uclibc'">
2006-04-09 18:00:17 +02:00
+ <xsl:text>export LD_PRELOAD=/usr/lib/libpaco-log.so&#xA;</xsl:text>
+ </xsl:if>
<xsl:text>make install&#xA;</xsl:text>
<xsl:text>cd ../blfs-bootscripts-&blfs-bootscripts-version;&#xA;</xsl:text>
</xsl:when>
2006-09-11 20:56:42 +02:00
@@ -292,6 +299,25 @@
2006-04-09 18:00:17 +02:00
<xsl:apply-templates/>
<xsl:text> || true&#xA;</xsl:text>
</xsl:when>
+ <!-- paco begin -->
+ <!-- General rule -->
+ <xsl:when test="$use_paco != 'n' and $model != 'uclibc' and
2006-04-09 18:00:17 +02:00
+ ancestor::chapter[@id != 'chapter-temporary-tools'] and
+ contains(string(),'make') and
+ contains(string(),'install')">
+ <xsl:text>export LD_PRELOAD=/usr/lib/libpaco-log.so&#xA;</xsl:text>
+ <xsl:apply-templates/>
2006-04-09 18:00:17 +02:00
+ <xsl:text>&#xA;</xsl:text>
+ </xsl:when>
+ <!-- Linux-libc-headers -->
+ <xsl:when test="$use_paco != 'n' and $model != 'uclibc' and
2006-07-30 17:00:54 +02:00
+ ancestor::sect1[@id='ch-system-linux-headers'] and
2006-04-09 18:00:17 +02:00
+ contains(string(),'install ')">
+ <xsl:text>export LD_PRELOAD=/usr/lib/libpaco-log.so&#xA;</xsl:text>
+ <xsl:apply-templates/>
2006-04-09 18:00:17 +02:00
+ <xsl:text>&#xA;</xsl:text>
+ </xsl:when>
+ <!-- paco end -->
<!-- The rest of commands -->
<xsl:otherwise>
<xsl:apply-templates/>
Index: HLFS/master.sh
===================================================================
2006-09-11 20:56:42 +02:00
--- HLFS/master.sh (revision 3103)
2006-04-09 18:00:17 +02:00
+++ HLFS/master.sh (working copy)
@@ -47,7 +47,9 @@
2006-07-30 17:00:54 +02:00
EOF
) >> $MKFILE.tmp
2006-08-05 17:56:24 +02:00
[[ "$TEST" != "0" ]] && wrt_test_log2 "${this_script}"
2006-07-30 17:00:54 +02:00
+ wrt_paco_prep
wrt_run_as_chroot1 "$toolchain" "$this_script"
+ wrt_paco_log "`echo $toolchain | sed -e 's@[0-9]\{3\}-@@'`"
;;
*)
@@ -281,6 +283,11 @@
# Keep the script file name
this_script=`basename $file`
+ # If this script is *-paco, then skip it
+ case $this_script in
+ *paco ) continue ;;
+ esac
+
# Skip this script depending on jhalfs.conf flags set.
case $this_script in
# We'll run the chroot commands differently than the others, so skip them in the
@@ -290,6 +297,18 @@
*-stripping* ) [[ "$STRIP" = "n" ]] && continue ;;
2006-04-13 18:29:22 +02:00
esac
+ # Install paco as the first package in ch6, before installing
+ # linux-libc-headers, except in iterartive builds
+ if [[ -z "$N" ]]; then
+ case $this_script in
2006-07-30 17:00:54 +02:00
+ *linux-headers)
2006-05-01 11:50:33 +02:00
+ TMP_SCRIPT="$this_script"
2006-07-30 17:00:54 +02:00
+ this_script=`echo $this_script | sed -e 's/linux-headers/a-paco/'`
2006-05-01 11:50:33 +02:00
+ wrt_paco_inst "$this_script"
+ this_script="$TMP_SCRIPT" ;;
+ esac
+ fi
2006-04-13 18:29:22 +02:00
+
# Grab the name of the target
name=`echo $this_script | sed -e 's@[0-9]\{3\}-@@'`
@@ -355,7 +374,9 @@
2006-08-08 19:52:49 +02:00
wrt_RunAsRoot "${this_script}" "${file}"
2006-04-09 18:00:17 +02:00
;;
*) # The rest of Chapter06
+ wrt_paco_prep
wrt_run_as_chroot1 "${this_script}" "${file}"
2006-07-13 21:45:35 +02:00
+ wrt_paco_log "$pkg_tarball"
2006-04-09 18:00:17 +02:00
;;
esac
#
@@ -375,6 +396,16 @@
PREV=${this_script}${N}
# Set system_build envar for iteration targets
system_build=$chapter6
2006-04-09 18:00:17 +02:00
+
2006-04-13 18:29:22 +02:00
+ # Reinstall paco after the toolchain has been readjusted.
2006-04-09 18:00:17 +02:00
+ case "${this_script}" in
2006-04-13 18:29:22 +02:00
+ *readjusting)
2006-05-01 11:50:33 +02:00
+ TMP_SCRIPT="$this_script"
+ this_script=`echo $this_script | sed -e 's/readjusting/x-paco/'`
+ wrt_paco_inst "$this_script"
+ this_script="$TMP_SCRIPT" ;;
2006-04-09 18:00:17 +02:00
+ esac
+
done # end for file in chapter06/*
}
@@ -433,9 +464,19 @@
2006-05-31 23:08:02 +02:00
else # Initialize the log and run the script
2006-04-09 18:00:17 +02:00
wrt_run_as_chroot2 "${this_script}" "${file}"
fi
2006-05-31 23:08:02 +02:00
+ wrt_paco_log "hlfs-sysconf"
2006-04-09 18:00:17 +02:00
;;
+ *kernel) wrt_paco_prep
+ wrt_run_as_chroot2 "$this_script" "$file"
2006-07-13 21:45:35 +02:00
+ wrt_paco_log "$(get_package_tarball_name "linux")"
2006-04-09 18:00:17 +02:00
+ ;;
+ *bootscripts) wrt_paco_prep
+ wrt_run_as_chroot2 "$this_script" "$file"
2006-07-13 21:45:35 +02:00
+ wrt_paco_log "$(get_package_tarball_name "lfs-bootscripts")"
2006-04-09 18:00:17 +02:00
+ ;;
*) # All other scripts
wrt_run_as_chroot2 "${this_script}" "${file}"
2006-05-31 23:08:02 +02:00
+ wrt_paco_log "hlfs-sysconf"
2006-04-09 18:00:17 +02:00
;;
2006-05-31 23:08:02 +02:00
esac
2006-08-29 21:36:53 +02:00
Index: jhalfs
2006-04-10 19:01:08 +02:00
===================================================================
2006-09-11 20:56:42 +02:00
--- jhalfs (revision 3103)
2006-08-29 21:36:53 +02:00
+++ jhalfs (working copy)
2006-09-11 20:56:42 +02:00
@@ -111,6 +111,7 @@
REPORT=${REPORT:=n}
2006-08-29 21:36:53 +02:00
VIMLANG=${VIMLANG:-n}
GRSECURITY_HOST=${GRSECURITY_HOST:-n}
+USE_PACO=${USE_PACO:-n}
2006-08-29 21:36:53 +02:00
# Book surces envars
BRANCH_ID=${BRANCH_ID:=development}
2006-09-11 20:56:42 +02:00
@@ -269,6 +270,14 @@
2006-05-05 21:16:02 +02:00
[[ $VERBOSITY > 0 ]] && echo "OK"
fi
2006-05-11 22:36:50 +02:00
#
2006-05-05 21:16:02 +02:00
+# paco module
+if [[ "$USE_PACO" = "y" ]]; then
2006-05-05 21:16:02 +02:00
+ [[ $VERBOSITY > 0 ]] && echo -n "Loading paco module..."
+ source $COMMON_DIR/paco-functions
+ [[ $? > 0 ]] && echo "$COMMON_DIR/paco-functions did not load.." && exit 2
+ [[ $VERBOSITY > 0 ]] && echo "OK"
+fi
+#
2006-05-11 22:36:50 +02:00
# optimize module
if [[ "$OPTIMIZE" != "0" ]]; then
[[ $VERBOSITY > 0 ]] && echo -n "Loading optimization module..."
2006-09-11 20:56:42 +02:00
@@ -314,6 +323,8 @@
2006-08-29 21:36:53 +02:00
#
cp $COMMON_DIR/{makefile-functions,progress_bar.sh} $JHALFSDIR/
#
+[[ $USE_PACO != "n" ]] && cp $COMMON_DIR/paco-build-$PROGNAME.sh $JHALFSDIR/
+#
[[ "$OPTIMIZE" != "0" ]] && cp optimize/opt_override $JHALFSDIR/
#
if [[ "$COMPARE" = "y" ]]; then
Index: Config.in
===================================================================
2006-09-11 20:56:42 +02:00
--- Config.in (revision 3103)
+++ Config.in (working copy)
2006-09-11 20:56:42 +02:00
@@ -786,3 +786,72 @@
2006-08-29 21:36:53 +02:00
#--- End Advanced Features
endmenu
2006-08-29 21:36:53 +02:00
+
+#--- PACO
+config USE_PACO
+ bool "Use PACO"
+ default n
+ depends on !BOOK_BLFS && !BOOK_CLFS2 && !LIB_UCLIBC
+
+ config PACO_VERSION
+ string "PACO package version"
+ default "1.10.10"
+ depends USE_PACO
+
+ config PACO_FILE
+ string "PACO package full name"
+ default "paco-$PACO_VERSION.tar.bz2"
+ depends USE_PACO
+ help
+ #-- You can use .tar.gz if preferred
+
+ config PACO_MIRROR1
+ string "Sourceforge mirror 1"
+ default "heanet"
+ depends USE_PACO
+ help
+ #-- Sourceforge mirror to use for Paco source download
+ #
+ # Europe: heanet, belnet, puzzle, surfnet, switch, kent
+ # North America: superb-east, superb-west, umn, easynews
+ # South America: ufpr
+ # Asia: nchc, jaist
+ # Australia: optusnet
+
+ config PACO_MIRROR2
+ string "Sourceforge mirror 2"
+ default "kent"
+ depends USE_PACO
+ help
+ #-- Sourceforge mirror to use for Paco source download
+ #
+ # Europe: heanet, belnet, puzzle, surfnet, switch, kent
+ # North America: superb-east, superb-west, umn, easynews
+ # South America: ufpr
+ # Asia: nchc, jaist
+ # Australia: optusnet
+
2006-08-29 21:36:53 +02:00
+ #-- Internal Settings
+ menu "--- Internal Settings (WARNING: for paco developers only)"
+ depends USE_PACO
+
+ config PACO_INCLUDE
+ string "Include dirs"
+ default "/"
+
+ config PACO_EXCLUDE
+ string "Exclude dirs"
+ default "/${SCRIPT_ROOT}"
+
+ config PACO_TMPFILE
+ string "Temp file"
+ default "/tmp/paco.tmp"
+
+ config LD_PRELOAD
+ string "LD_PRELOAD"
+ default "/usr/lib/libpaco-log.so"
+
+ #--- End Internal Settings
+ endmenu
+#--- End PACO
+