X-Git-Url: http://gitweb.hugovil.com/?a=blobdiff_plain;f=stage1%2Fpkg%2Fcoreutils;h=d8de2a75c64065cffc97a1436857c6414102f205;hb=b19e417334dd10507424def0ba6738306ec0a2ae;hp=b65389254c769b1374bbdc604fab13c87aa1855b;hpb=c6741cb82c13737af3d22ba52c34dd1fe22fc887;p=hvlinux.git diff --git a/stage1/pkg/coreutils b/stage1/pkg/coreutils index b653892..d8de2a7 100644 --- a/stage1/pkg/coreutils +++ b/stage1/pkg/coreutils @@ -1,15 +1,14 @@ #!/bin/bash -hvconfig_pre() +hvconfig_post() { - # Fix a bug when the uname patch is automatically applied - touch ${LFS_TMP}/${PACKAGE}/man/hostname.1 + cd ${LFS_TMP}/${PACKAGE} + sed -e 's/^#\(run_help2man.*dummy-man\)/\1/' \ + -e 's/^\(run_help2man.*PERL.*\)/#\1/' \ + -i Makefile - # Patches may modify many .c files, so the make process will try to - # re-build the manpages by running help2man, and this causes problems - # when cross-compiling. So let's just update the timestamps and skip the - # help2man step. - find ${LFS_TMP}/${PACKAGE} -name \*.1 -exec touch {} \; + # Prevent autoreconf from discarding our modification to Makefile: + touch Makefile{,.in,.am} } # Configure cannot properly determine how to get free space when cross-compiling @@ -20,16 +19,5 @@ hvconfig_cache() cat > ${LFS_TMP}/${PACKAGE}-build/config.cache << EOF fu_cv_sys_stat_statfs2_bsize=yes gl_cv_func_working_mkstemp=yes -gl_cv_func_fstatat_zero_flag=yes EOF } - -hvbuild_post() -{ - # Create needed symlink for glib: - LINKS="env" - - for link in ${LINKS}; do - ln -svfT /tools/bin/${link} ${LFS}/usr/bin/${link} - done -}