#!/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:
gl_cv_func_working_mkstemp=yes
EOF
}
-
-hvconfig_pre()
-{
- # Fix a bug when the uname patch is automatically applied
- touch ${LFS_TMP}/${PACKAGE}/man/{uname,hostname}.1
-}