Upgraded coreutils and fixed man regeneration bug
authorHugo Villeneuve <hugo@hugovil.com>
Thu, 13 Jun 2013 01:41:48 +0000 (21:41 -0400)
committerHugo Villeneuve <hugo@hugovil.com>
Thu, 13 Jun 2013 01:43:29 +0000 (21:43 -0400)
config/packages-list
stage1/hv-install-2
stage1/pkg/coreutils

index 550f384..9029cd3 100644 (file)
@@ -45,7 +45,7 @@ CLAMAV="clamav-0.97.5"
 CLOOG="cloog-0.16.3"
 CMAKE="cmake-2.8.10"
 COLORDIFF="colordiff-1.0.10"
-COREUTILS="coreutils-8.16"
+COREUTILS="coreutils-8.21"
 CPIO="cpio-2.11"
 CUPS="cups-1.4.8"
 CUPS_PDF="cups-pdf-2.5.1"
index 5c04a99..dace5fb 100755 (executable)
@@ -33,7 +33,7 @@ ipkg ${NCURSES} "\
 ipkg ${BASH} "--without-bash-malloc"
 ipkg ${BISON}
 ipkg -m noac ${BZIP2}
-ipkg ${COREUTILS} "--enable-install-program=hostname"
+ipkg -m acnb -j ${COREUTILS} "--enable-install-program=hostname"
 ipkg ${DIFFUTILS}
 ipkg ${FINDUTILS}
 ipkg ${FILE_PKG}
index c5ce637..d8de2a7 100644 (file)
@@ -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