diff --git a/coreutils/coreutils.patch b/coreutils/coreutils.patch new file mode 100644 index 0000000000..68cf866e92 --- /dev/null +++ b/coreutils/coreutils.patch @@ -0,0 +1,47 @@ +--- src/stat.c.orig Sun Dec 1 10:48:21 2002 ++++ src/stat.c Sun Jan 12 11:30:01 2003 +@@ -43,6 +43,12 @@ + # endif + #endif + ++/* FreeBSD 5.0 need this for struct statfs */ ++#if HAVE_SYS_MOUNT_H ++# include ++# include ++#endif ++ + #include "system.h" + + #include "closeout.h" +--- src/test.c.orig Wed Sep 25 10:22:37 2002 ++++ src/test.c Sun Jan 12 11:49:50 2003 +@@ -151,7 +151,7 @@ + and don't make the mistake of telling root that any file is executable. + But this loses when the containing filesystem is mounted e.g. read-only. */ + static int +-eaccess (char *path, int mode) ++myeaccess (char *path, int mode) + { + struct stat st; + static uid_t euid = -1; +@@ -645,17 +645,17 @@ + + case 'r': /* file is readable? */ + unary_advance (); +- value = -1 != eaccess (argv[pos - 1], R_OK); ++ value = -1 != myeaccess (argv[pos - 1], R_OK); + return (TRUE == value); + + case 'w': /* File is writable? */ + unary_advance (); +- value = -1 != eaccess (argv[pos - 1], W_OK); ++ value = -1 != myeaccess (argv[pos - 1], W_OK); + return (TRUE == value); + + case 'x': /* File is executable? */ + unary_advance (); +- value = -1 != eaccess (argv[pos - 1], X_OK); ++ value = -1 != myeaccess (argv[pos - 1], X_OK); + return (TRUE == value); + + case 'O': /* File is owned by you? */ diff --git a/coreutils/coreutils.spec b/coreutils/coreutils.spec index 87c12fbd5b..f4dd33f7e5 100644 --- a/coreutils/coreutils.spec +++ b/coreutils/coreutils.spec @@ -33,10 +33,11 @@ Distribution: OpenPKG [BASE] Group: Utility License: GPL Version: 4.5.4 -Release: 20030111 +Release: 20030112 # list of sources Source0: ftp://alpha.gnu.org/gnu/coreutils/coreutils-%{version}.tar.bz2 +Patch0: coreutils.patch # build information Prefix: %{l_prefix} @@ -64,6 +65,7 @@ AutoReqProv: no %prep %setup -q + %patch -p0 %build CC="%{l_cc}" \