X-Git-Url: http://gitweb.hugovil.com/?a=blobdiff_plain;f=stage1%2Fpkg%2Fcoreutils;h=b65389254c769b1374bbdc604fab13c87aa1855b;hb=9252b914495c96a2b323f1dbec5fa075a280c380;hp=28955913dbc23b2be6c7b8b2f9efd28e4273010a;hpb=81da365042d1bf4354e0480d888fe3b8425c47c7;p=hvlinux.git diff --git a/stage1/pkg/coreutils b/stage1/pkg/coreutils index 2895591..b653892 100644 --- a/stage1/pkg/coreutils +++ b/stage1/pkg/coreutils @@ -3,7 +3,13 @@ hvconfig_pre() { # Fix a bug when the uname patch is automatically applied - touch ${LFS_TMP}/${PACKAGE}/man/{uname,hostname}.1 + 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 @@ -14,5 +20,16 @@ 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 +}