OpenPKG CVS Repository
http://cvs.openpkg.org/
____________________________________________________________________________
Server: cvs.openpkg.org Name: Christoph Schug
Root: /v/openpkg/cvs Email: [EMAIL PROTECTED]
Module: openpkg-src Date: 15-Jul-2006 14:56:41
Branch: HEAD Handle: 2006071513564100
Modified files:
openpkg-src/coreutils coreutils.patch coreutils.spec
Log:
fix build on NetBSD
Summary:
Revision Changes Path
1.11 +29 -1 openpkg-src/coreutils/coreutils.patch
1.57 +1 -1 openpkg-src/coreutils/coreutils.spec
____________________________________________________________________________
patch -p0 <<'@@ .'
Index: openpkg-src/coreutils/coreutils.patch
============================================================================
$ cvs diff -u -r1.10 -r1.11 coreutils.patch
--- openpkg-src/coreutils/coreutils.patch 21 Nov 2005 09:41:01 -0000
1.10
+++ openpkg-src/coreutils/coreutils.patch 15 Jul 2006 12:56:41 -0000
1.11
@@ -34,4 +34,32 @@
#include <sys/types.h>
#include "system.h"
-
+--- lib/mountlist.c.orig Mon Jan 26 03:58:12 2004
++++ lib/mountlist.c
+@@ -173,6 +173,11 @@ xatoi (char *cp)
+
+ #if MOUNTED_GETMNTINFO
+
++# if defined(__NetBSD__) && (__NetBSD_Version__ > 299000000)
++# define statfs statvfs
++# define HAVE_F_FSTYPENAME_IN_STATFS 1
++# endif
++
+ # if ! HAVE_F_FSTYPENAME_IN_STATFS
+ static char *
+ fstype_to_string (short t)
+--- src/stat.c.orig Thu Feb 5 08:46:12 2004
++++ src/stat.c
+@@ -86,6 +86,12 @@
+ # endif
+ #endif
+
++#if (defined(__NetBSD__) && (__NetBSD_Version__ > 299000000))
++#include <sys/statvfs.h>
++#define statfs statvfs
++#define STATXFS_FILE_SYSTEM_TYPE_MEMBER_NAME f_fstypename
++#endif
++
+ #define PROGRAM_NAME "stat"
+
+ #define AUTHORS "Michael Meskes"
@@ .
patch -p0 <<'@@ .'
Index: openpkg-src/coreutils/coreutils.spec
============================================================================
$ cvs diff -u -r1.56 -r1.57 coreutils.spec
--- openpkg-src/coreutils/coreutils.spec 24 Jun 2006 19:54:50 -0000
1.56
+++ openpkg-src/coreutils/coreutils.spec 15 Jul 2006 12:56:41 -0000
1.57
@@ -33,7 +33,7 @@
Group: Utility
License: GPL
Version: 5.97
-Release: 20060624
+Release: 20060715
# package options
%option with_legacy no
@@ .
______________________________________________________________________
The OpenPKG Project www.openpkg.org
CVS Repository Commit List [email protected]