summaryrefslogtreecommitdiff
path: root/sysutils/coreutils
diff options
context:
space:
mode:
authortron <tron@pkgsrc.org>2004-05-18 19:07:57 +0000
committertron <tron@pkgsrc.org>2004-05-18 19:07:57 +0000
commit00cc25d2c4768f0f50f09bc6d00b3b37411bfcc3 (patch)
treee897b75f93a07fad851c834034f07689aa2ffb97 /sysutils/coreutils
parent0c2db9f78f3bf3485df2e8c717928d768add7df4 (diff)
downloadpkgsrc-00cc25d2c4768f0f50f09bc6d00b3b37411bfcc3.tar.gz
Make this build under NetBSD 2.0D and above with statvfs(2).
This fixes PR pkg/25475 Kibum Han.
Diffstat (limited to 'sysutils/coreutils')
-rw-r--r--sysutils/coreutils/distinfo4
-rw-r--r--sysutils/coreutils/patches/patch-ab16
-rw-r--r--sysutils/coreutils/patches/patch-ac16
3 files changed, 35 insertions, 1 deletions
diff --git a/sysutils/coreutils/distinfo b/sysutils/coreutils/distinfo
index 3288e3bd45a..30a8931b6a2 100644
--- a/sysutils/coreutils/distinfo
+++ b/sysutils/coreutils/distinfo
@@ -1,5 +1,7 @@
-$NetBSD: distinfo,v 1.6 2004/03/29 09:22:50 recht Exp $
+$NetBSD: distinfo,v 1.7 2004/05/18 19:07:57 tron Exp $
SHA1 (coreutils-5.2.1.tar.bz2) = 1028755ae0fa9be840576e4837004cf5a9981c45
Size (coreutils-5.2.1.tar.bz2) = 4270776 bytes
SHA1 (patch-aa) = 36c3a4a810bdc9efd7b0c3a6dc4203e0cfcbfae5
+SHA1 (patch-ab) = a38174cf4c85cdddc23f3b59c7c04679c898c232
+SHA1 (patch-ac) = e5db45fbb7f4e424fa7ce5474d99f863b4b46bd2
diff --git a/sysutils/coreutils/patches/patch-ab b/sysutils/coreutils/patches/patch-ab
new file mode 100644
index 00000000000..721440ea8e4
--- /dev/null
+++ b/sysutils/coreutils/patches/patch-ab
@@ -0,0 +1,16 @@
+$NetBSD: patch-ab,v 1.5 2004/05/18 19:07:57 tron Exp $
+
+--- lib/mountlist.c.orig 2004-01-26 09:58:12.000000000 +0100
++++ lib/mountlist.c 2004-05-18 20:56:57.000000000 +0200
+@@ -173,6 +173,11 @@
+
+ #if MOUNTED_GETMNTINFO
+
++# if defined(__NetBSD__) && (__NetBSD_Version__ > 200030000)
++# define statfs statvfs
++# define HAVE_F_FSTYPENAME_IN_STATFS 1
++# endif
++
+ # if ! HAVE_F_FSTYPENAME_IN_STATFS
+ static char *
+ fstype_to_string (short t)
diff --git a/sysutils/coreutils/patches/patch-ac b/sysutils/coreutils/patches/patch-ac
new file mode 100644
index 00000000000..76bad0d3fc8
--- /dev/null
+++ b/sysutils/coreutils/patches/patch-ac
@@ -0,0 +1,16 @@
+$NetBSD: patch-ac,v 1.4 2004/05/18 19:07:58 tron Exp $
+
+--- src/stat.c.orig 2004-02-05 14:46:12.000000000 +0100
++++ src/stat.c 2004-05-18 21:02:54.000000000 +0200
+@@ -86,6 +86,11 @@
+ # endif
+ #endif
+
++#if defined(__NetBSD__) && (__NetBSD_Version__ > 200030000)
++#define statfs statvfs
++#define STATXFS_FILE_SYSTEM_TYPE_MEMBER_NAME f_fstypename
++#endif
++
+ #define PROGRAM_NAME "stat"
+
+ #define AUTHORS "Michael Meskes"