pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/sysutils/bfs bfs: Fix building on NetBSD
details: https://anonhg.NetBSD.org/pkgsrc/rev/eb016f07ca8f
branches: trunk
changeset: 401009:eb016f07ca8f
user: nia <nia%pkgsrc.org@localhost>
date: Mon Sep 09 09:32:36 2019 +0000
description:
bfs: Fix building on NetBSD
diffstat:
sysutils/bfs/distinfo | 3 ++-
sysutils/bfs/patches/patch-mtab.c | 30 ++++++++++++++++++++++++++++++
2 files changed, 32 insertions(+), 1 deletions(-)
diffs (46 lines):
diff -r cf7a5fb77734 -r eb016f07ca8f sysutils/bfs/distinfo
--- a/sysutils/bfs/distinfo Mon Sep 09 09:28:40 2019 +0000
+++ b/sysutils/bfs/distinfo Mon Sep 09 09:32:36 2019 +0000
@@ -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
diff -r cf7a5fb77734 -r eb016f07ca8f sysutils/bfs/patches/patch-mtab.c
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/sysutils/bfs/patches/patch-mtab.c Mon Sep 09 09:32:36 2019 +0000
@@ -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