The attached patch against the Release 2.5 coreutils.spec file removes two
programs and their related man pages when building with the option
``with_legacy yes''.

The uname and hostname commands are used extensively in configure files to
detect system type, and having the gnu-ish versions in the PATH before the
system's versions break many packages (starting with make and tar in the
openpkg package itself :-)

Bill
--
INTERNET:   [EMAIL PROTECTED]  Bill Campbell; Celestial Systems, Inc.
URL: http://www.celestial.com/  PO Box 820; 6641 E. Mercer Way
FAX:            (206) 232-9186  Mercer Island, WA 98040-0820; (206) 236-1676

If you think health care is expensive now, wait until you see what it coses
when it's free -- P.J. O'Rourke
--- coreutils.spec.orig 2006-02-04 22:47:56.000000000 -0800
+++ coreutils.spec      2006-02-04 22:31:28.000000000 -0800
@@ -33,7 +33,7 @@
 Group:        Utility
 License:      GPL
 Version:      5.2.1
-Release:      2.5.0
+Release:      20060204
 
 #   package options
 %option       with_legacy  no
@@ -118,6 +118,11 @@
       for i in g*; do
           ln -s $i `echo "$i" | sed -e 's;^g;;'`
       done
+      # these cause problems on SuSE 8.x and Darwin
+      for p in hostname uname ; do
+        rm -f $RPM_BUILD_ROOT%{l_prefix}/bin/$p
+        rm -f $RPM_BUILD_ROOT%{l_prefix}/man/man1/${p}*
+      done
     ) || exit $?
 %endif
     rm -f $RPM_BUILD_ROOT%{l_prefix}/info/dir

Reply via email to