pkgsrc-Changes archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
CVS commit: pkgsrc/sysutils/bfs
Module Name: pkgsrc
Committed By: nia
Date: Mon Sep 9 09:32:37 UTC 2019
Modified Files:
pkgsrc/sysutils/bfs: distinfo
Added Files:
pkgsrc/sysutils/bfs/patches: patch-mtab.c
Log Message:
bfs: Fix building on NetBSD
To generate a diff of this commit:
cvs rdiff -u -r1.1 -r1.2 pkgsrc/sysutils/bfs/distinfo
cvs rdiff -u -r0 -r1.1 pkgsrc/sysutils/bfs/patches/patch-mtab.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: pkgsrc/sysutils/bfs/distinfo
diff -u pkgsrc/sysutils/bfs/distinfo:1.1 pkgsrc/sysutils/bfs/distinfo:1.2
--- pkgsrc/sysutils/bfs/distinfo:1.1 Wed Oct 25 14:57:50 2017
+++ pkgsrc/sysutils/bfs/distinfo Mon Sep 9 09:32:36 2019
@@ -1,6 +1,7 @@
-$NetBSD: distinfo,v 1.1 2017/10/25 14:57:50 fhajny Exp $
+$NetBSD: distinfo,v 1.2 2019/09/09 09:32:36 nia Exp $
SHA1 (bfs-1.1.3.tar.gz) = c18273c935241df7d97dbe9430067f88303089a1
RMD160 (bfs-1.1.3.tar.gz) = aff90ce1031399ae2568c9468dfb3239464a8734
SHA512 (bfs-1.1.3.tar.gz) = 32a05a312549e53f1f0a4413a5f0d3695a6c9219326518b9c6e89ad3f050cc94666ec2661d84c9ea377718342e7483d1b50caf6a268afa24d1f0fa53e22b10c4
Size (bfs-1.1.3.tar.gz) = 71109 bytes
+SHA1 (patch-mtab.c) = 17e17af347b4e38b44e8be730c9a4509cc77a4e2
Added files:
Index: pkgsrc/sysutils/bfs/patches/patch-mtab.c
diff -u /dev/null pkgsrc/sysutils/bfs/patches/patch-mtab.c:1.1
--- /dev/null Mon Sep 9 09:32:37 2019
+++ pkgsrc/sysutils/bfs/patches/patch-mtab.c Mon Sep 9 09:32:37 2019
@@ -0,0 +1,30 @@
+$NetBSD: patch-mtab.c,v 1.1 2019/09/09 09:32:37 nia Exp $
+
+Support NetBSD's spelling of statfs.
+
+--- mtab.c.orig 2017-10-05 01:30:02.000000000 +0000
++++ mtab.c
+@@ -132,7 +132,11 @@ fail:
+
+ #elif BFS_MNTINFO
+
++#ifdef __NetBSD__
++ struct statvfs *mntbuf;
++#else
+ struct statfs *mntbuf;
++#endif
+ int size = getmntinfo(&mntbuf, MNT_WAIT);
+ if (size < 0) {
+ return NULL;
+@@ -150,7 +154,11 @@ fail:
+ }
+ mtab->capacity = size;
+
++#ifdef __NetBSD__
++ for (struct statvfs *mnt = mntbuf; mnt < mntbuf + size; ++mnt) {
++#else
+ for (struct statfs *mnt = mntbuf; mnt < mntbuf + size; ++mnt) {
++#endif
+ struct stat sb;
+ if (stat(mnt->f_mntonname, &sb) != 0) {
+ continue;
Home |
Main Index |
Thread Index |
Old Index