Update for new BUILD_DIR and SRC_DIR variables
[hvlinux.git] / stage1 / pkg / coreutils
index c90f4fe..f04cb86 100644 (file)
@@ -1,18 +1,23 @@
 #!/bin/bash
 
+hvconfig_post()
+{
+    cd ${BUILD_DIR}
+    sed -e 's/^#\(run_help2man.*dummy-man\)/\1/' \
+        -e 's/^\(run_help2man.*PERL.*\)/#\1/' \
+        -i Makefile
+
+    # Prevent autoreconf from discarding our modification to Makefile:
+    touch Makefile{,.in,.am}
+}
+
 # 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
+cat > ${BUILD_DIR}/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
-}