Received: by mail.netbsd.org (Postfix, from userid 605) id 559A684D99; Mon, 9 Sep 2019 09:32:38 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by mail.netbsd.org (Postfix) with ESMTP id CE82584D3A for ; Mon, 9 Sep 2019 09:32:37 +0000 (UTC) X-Virus-Scanned: amavisd-new at netbsd.org Received: from mail.netbsd.org ([IPv6:::1]) by localhost (mail.netbsd.org [IPv6:::1]) (amavisd-new, port 10025) with ESMTP id brZVS5-8I3Nk for ; Mon, 9 Sep 2019 09:32:37 +0000 (UTC) Received: from cvs.NetBSD.org (ivanova.NetBSD.org [IPv6:2001:470:a085:999:28c:faff:fe03:5984]) by mail.netbsd.org (Postfix) with ESMTP id 4EC5F84D22 for ; Mon, 9 Sep 2019 09:32:37 +0000 (UTC) Received: by cvs.NetBSD.org (Postfix, from userid 500) id 42702FBF4; Mon, 9 Sep 2019 09:32:37 +0000 (UTC) Content-Transfer-Encoding: 7bit Content-Type: multipart/mixed; boundary="_----------=_15680215571660" MIME-Version: 1.0 Date: Mon, 9 Sep 2019 09:32:37 +0000 From: "Nia Alarie" Subject: CVS commit: pkgsrc/sysutils/bfs To: pkgsrc-changes@NetBSD.org Reply-To: nia@netbsd.org X-Mailer: log_accum Message-Id: <20190909093237.42702FBF4@cvs.NetBSD.org> Sender: pkgsrc-changes-owner@NetBSD.org List-Id: pkgsrc-changes.NetBSD.org Precedence: bulk List-Unsubscribe: This is a multi-part message in MIME format. --_----------=_15680215571660 Content-Disposition: inline Content-Transfer-Encoding: 8bit Content-Type: text/plain; charset="US-ASCII" 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. --_----------=_15680215571660 Content-Disposition: inline Content-Length: 1734 Content-Transfer-Encoding: binary Content-Type: text/x-diff; charset=us-ascii 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; --_----------=_15680215571660--