#!/bin/sh set -o errexit # First argument of this script is the package name. # Remaining arguments are additional configure options. PACKAGE=${1} shift CONFIGURE_OPTS=${*} # Reading system configuration informations, functions and package versions. source ../sysinfos source ../functions source ../packages-list # Applying patches (if any) apply_patches ${PACKAGE} # Fix a bug with help2man??? cd ${LFS_TMP}/${PACKAGE} touch man/hostname.1 touch man/uname.1 cd ${LFS_TMP}/${PACKAGE}-build # Configure can not properly determine how to get free space when # cross-compiling - as a result, the df program will not be built. Add the # following entries to config.cache to correct this, and fix various # cross-compiling issues: cat > config.cache << EOF fu_cv_sys_stat_statfs2_bsize=yes gl_cv_func_rename_trailing_slash_bug=no gl_cv_func_working_mkstemp=yes EOF ${SCRDIR}/cis-common ${PACKAGE} "${CONFIGURE_OPTS} --enable-install-program=hostname --cache-file=config.cache" exit $?