X-Git-Url: http://gitweb.hugovil.com/?a=blobdiff_plain;f=stage1%2Fpkg%2Fcoreutils;h=c5ce63794d3b61cc234d124b21dabe5e87d2d000;hb=c7bd664d1f2092b944b21a661822392a94292be4;hp=c90f4fea401ab3b0ce01d81a781e11250226d7ba;hpb=69ac3e7cf686f8e95e47a7ab89bc38796aace488;p=hvlinux.git diff --git a/stage1/pkg/coreutils b/stage1/pkg/coreutils index c90f4fe..c5ce637 100644 --- a/stage1/pkg/coreutils +++ b/stage1/pkg/coreutils @@ -1,18 +1,24 @@ #!/bin/bash +hvconfig_pre() +{ + # Fix a bug when the uname patch is automatically applied + touch ${LFS_TMP}/${PACKAGE}/man/hostname.1 + + # 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 {} \; +} + # Configure cannot properly determine how to get free space when cross-compiling # and 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: -config_cache() +hvconfig_cache() { cat > ${LFS_TMP}/${PACKAGE}-build/config.cache << EOF fu_cv_sys_stat_statfs2_bsize=yes gl_cv_func_working_mkstemp=yes EOF } - -configure_pre() -{ - # Fix a bug when the uname patch is automatically applied - touch ${LFS_TMP}/${PACKAGE}/man/{uname,hostname}.1 -}