OpenPKG CVS Repository
http://cvs.openpkg.org/
____________________________________________________________________________
Server: cvs.openpkg.org Name: Ralf S. Engelschall
Root: /e/openpkg/cvs Email: [EMAIL PROTECTED]
Module: openpkg-src openpkg-web Date: 12-Jan-2003 13:19:07
Branch: HEAD Handle: 2003011212190601
Added files:
openpkg-src/coreutils coreutils.patch
Modified files:
openpkg-src/coreutils coreutils.spec
openpkg-web news.txt
Log:
port to FreeBSD 5.0
Summary:
Revision Changes Path
1.1 +47 -0 openpkg-src/coreutils/coreutils.patch
1.8 +3 -1 openpkg-src/coreutils/coreutils.spec
1.2669 +1 -0 openpkg-web/news.txt
____________________________________________________________________________
patch -p0 <<'@@ .'
Index: openpkg-src/coreutils/coreutils.patch
============================================================================
$ cvs diff -u -r0 -r1.1 coreutils.patch
--- /dev/null 2003-01-12 13:19:07.000000000 +0100
+++ coreutils.patch 2003-01-12 13:19:07.000000000 +0100
@@ -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 <sys/param.h>
++# include <sys/mount.h>
++#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? */
@@ .
patch -p0 <<'@@ .'
Index: openpkg-src/coreutils/coreutils.spec
============================================================================
$ cvs diff -u -r1.7 -r1.8 coreutils.spec
--- openpkg-src/coreutils/coreutils.spec 11 Jan 2003 19:40:26 -0000 1.7
+++ openpkg-src/coreutils/coreutils.spec 12 Jan 2003 12:19:07 -0000 1.8
@@ -33,10 +33,11 @@
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 @@
%prep
%setup -q
+ %patch -p0
%build
CC="%{l_cc}" \
@@ .
patch -p0 <<'@@ .'
Index: openpkg-web/news.txt
============================================================================
$ cvs diff -u -r1.2668 -r1.2669 news.txt
--- openpkg-web/news.txt 12 Jan 2003 10:15:27 -0000 1.2668
+++ openpkg-web/news.txt 12 Jan 2003 12:19:06 -0000 1.2669
@@ -1,3 +1,4 @@
+12-Jan-2003: Upgraded package: P<coreutils-4.5.4-20030112>
12-Jan-2003: Upgraded package: P<uvscan-4.1.6.4242-20030112>
12-Jan-2003: Upgraded package: P<netpbm-10.11.4-20030112>
12-Jan-2003: Upgraded package: P<gd-2.0.9-20030112>
@@ .
______________________________________________________________________
The OpenPKG Project www.openpkg.org
CVS Repository Commit List [EMAIL PROTECTED]