ch6. coreutils-5.0-hostname.patch breaks make check (CVS 20030514)

Zack Winkles winkie at
Fri May 16 10:44:31 PDT 2003

On Fri, May 16, 2003 at 11:36:43AM -0600, Gerard Beekmans (gerard at wrote:
> The logical alternative would be simply removing the hostname 
> checks themselves like you said already.

Attached is a patch that does just that. I don't have time to patch the
book up right now, but this should fix all the hostname crap.

-------------- next part --------------
diff -Naur coreutils-5.0.orig/README coreutils-5.0/README
--- coreutils-5.0.orig/README	2003-03-29 09:24:00.000000000 -0500
+++ coreutils-5.0/README	2003-05-16 13:39:02.077046616 -0400
@@ -9,7 +9,7 @@
   basename cat chgrp chmod chown chroot cksum comm cp csplit cut date dd
   df dir dircolors dirname du echo env expand expr factor false fmt fold
-  ginstall groups head hostid hostname id join kill link ln logname ls
+  ginstall groups head hostid id join kill link ln logname ls
   md5sum mkdir mkfifo mknod mv nice nl nohup od paste pathchk pinky pr
   printenv printf ptx pwd readlink rm rmdir seq sha1sum shred sleep sort
   split stat stty su sum sync tac tail tee test touch tr true tsort tty
diff -Naur coreutils-5.0.orig/man/ coreutils-5.0/man/
--- coreutils-5.0.orig/man/	2003-04-02 09:28:42.000000000 -0500
+++ coreutils-5.0/man/	2003-05-16 13:30:47.873177024 -0400
@@ -152,7 +152,7 @@
   basename.1 cat.1 chgrp.1 chmod.1 chown.1 chroot.1 cksum.1 comm.1 \
   cp.1 csplit.1 cut.1 date.1 dd.1 df.1 dir.1 dircolors.1 dirname.1 du.1 \
   echo.1 env.1 expand.1 expr.1 factor.1 false.1 fmt.1 fold.1 groups.1 \
-  head.1 hostid.1 hostname.1 id.1 install.1 join.1 link.1 ln.1 logname.1 \
+  head.1 hostid.1 id.1 install.1 join.1 link.1 ln.1 logname.1 \
   ls.1 md5sum.1 mkdir.1 mkfifo.1 mknod.1 mv.1 nice.1 nl.1 nohup.1 od.1 \
   paste.1 pathchk.1 pinky.1 pr.1 printenv.1 printf.1 ptx.1 pwd.1 readlink.1 \
   rm.1 rmdir.1 seq.1 sha1sum.1 shred.1 sleep.1 sort.1 split.1 stat.1 stty.1 \
diff -Naur coreutils-5.0.orig/man/hostname.1 coreutils-5.0/man/hostname.1
--- coreutils-5.0.orig/man/hostname.1	2003-03-30 07:13:37.000000000 -0500
+++ coreutils-5.0/man/hostname.1	1969-12-31 19:00:00.000000000 -0500
@@ -1,41 +0,0 @@
-.\" DO NOT MODIFY THIS FILE!  It was generated by help2man 1.29.
-.TH HOSTNAME "1" "March 2003" "hostname 5.0" "User Commands"
-hostname \- set or print the name of the current host system
-.B hostname
-.B hostname
-.\" Add any additional description here
-Print or set the hostname of the current system.
-display this help and exit
-output version information and exit
-Written by Jim Meyering.
-Report bugs to <bug-coreutils at>.
-Copyright \(co 2003 Free Software Foundation, Inc.
-This is free software; see the source for copying conditions.  There is NO
-The full documentation for
-.B hostname
-is maintained as a Texinfo manual.  If the
-.B info
-.B hostname
-programs are properly installed at your site, the command
-.B info hostname
-should give you access to the complete manual.
diff -Naur coreutils-5.0.orig/man/hostname.x coreutils-5.0/man/hostname.x
--- coreutils-5.0.orig/man/hostname.x	1999-11-02 09:07:36.000000000 -0500
+++ coreutils-5.0/man/hostname.x	1969-12-31 19:00:00.000000000 -0500
@@ -1,4 +0,0 @@
-hostname \- set or print the name of the current host system
-.\" Add any additional description here
diff -Naur coreutils-5.0.orig/src/ coreutils-5.0/src/
--- coreutils-5.0.orig/src/	2003-04-02 09:46:19.000000000 -0500
+++ coreutils-5.0/src/	2003-05-16 13:30:47.874176872 -0400
@@ -165,7 +165,7 @@
   cat cksum comm csplit cut expand fmt fold head join md5sum \
   nl od paste pr ptx sha1sum sort split sum tac tail tr tsort unexpand uniq wc \
   basename date dirname echo env expr factor false \
-  hostname id kill logname pathchk printenv printf pwd seq sleep tee \
+  id kill logname pathchk printenv printf pwd seq sleep tee \
   test true tty whoami yes \
@@ -305,7 +305,7 @@
 	tac$(EXEEXT) tail$(EXEEXT) tr$(EXEEXT) tsort$(EXEEXT) \
 	unexpand$(EXEEXT) uniq$(EXEEXT) wc$(EXEEXT) basename$(EXEEXT) \
 	date$(EXEEXT) dirname$(EXEEXT) echo$(EXEEXT) env$(EXEEXT) \
-	expr$(EXEEXT) factor$(EXEEXT) false$(EXEEXT) hostname$(EXEEXT) \
+	expr$(EXEEXT) factor$(EXEEXT) false$(EXEEXT) \
 	id$(EXEEXT) kill$(EXEEXT) logname$(EXEEXT) pathchk$(EXEEXT) \
 	printenv$(EXEEXT) printf$(EXEEXT) pwd$(EXEEXT) seq$(EXEEXT) \
 	sleep$(EXEEXT) tee$(EXEEXT) test$(EXEEXT) true$(EXEEXT) \

More information about the lfs-dev mailing list