pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/x11/mcookie Fix build under macOS (and maybe others).



details:   https://anonhg.NetBSD.org/pkgsrc/rev/41fe5a0fb8d9
branches:  trunk
changeset: 357634:41fe5a0fb8d9
user:      bsiegert <bsiegert%pkgsrc.org@localhost>
date:      Tue Jan 24 21:42:26 2017 +0000

description:
Fix build under macOS (and maybe others).

The patch below replaces struct statfs with struct statvfs to fix the build
under NetBSD. Protect it with an #ifdef.

diffstat:

 x11/mcookie/Makefile                      |   3 ++-
 x11/mcookie/distinfo                      |   4 ++--
 x11/mcookie/patches/patch-lib_ismounted.c |  11 +++++++----
 3 files changed, 11 insertions(+), 7 deletions(-)

diffs (54 lines):

diff -r 56df3b8b19d0 -r 41fe5a0fb8d9 x11/mcookie/Makefile
--- a/x11/mcookie/Makefile      Tue Jan 24 20:31:14 2017 +0000
+++ b/x11/mcookie/Makefile      Tue Jan 24 21:42:26 2017 +0000
@@ -1,6 +1,7 @@
-# $NetBSD: Makefile,v 1.3 2016/11/14 14:48:46 wiz Exp $
+# $NetBSD: Makefile,v 1.4 2017/01/24 21:42:26 bsiegert Exp $
 
 DISTNAME=      util-linux-2.29
+PKGREVISION=   1
 PKGNAME=       ${DISTNAME:S/util-linux/mcookie/}
 CATEGORIES=    sysutils
 MASTER_SITES=  https://www.kernel.org/pub/linux/utils/util-linux/v${PKGVERSION_NOREV}/
diff -r 56df3b8b19d0 -r 41fe5a0fb8d9 x11/mcookie/distinfo
--- a/x11/mcookie/distinfo      Tue Jan 24 20:31:14 2017 +0000
+++ b/x11/mcookie/distinfo      Tue Jan 24 21:42:26 2017 +0000
@@ -1,4 +1,4 @@
-$NetBSD: distinfo,v 1.3 2016/11/14 14:48:46 wiz Exp $
+$NetBSD: distinfo,v 1.4 2017/01/24 21:42:26 bsiegert Exp $
 
 SHA1 (util-linux-2.29.tar.xz) = ed267cb80af92d327c53a45360addf1a19a1a0b6
 RMD160 (util-linux-2.29.tar.xz) = 19596ea48943f8ac0433e56104d93473579b9697
@@ -7,5 +7,5 @@
 SHA1 (patch-configure) = 1e6e797b8a0c19f3a55c65a8a51a9fd08a35fead
 SHA1 (patch-include_setproctitle.h) = deb06015ca459886f82e22eaf6596ff79799b02a
 SHA1 (patch-include_ttyutils.h) = 304b7e09b601685c35c6033a95622e50979586ea
-SHA1 (patch-lib_ismounted.c) = f880372aca259fdba0b30ecf38e5d9bb79e6c5d8
+SHA1 (patch-lib_ismounted.c) = 11f5148020dba2a22e1fbe4882fe423dfb11ad73
 SHA1 (patch-lib_setproctitle.c) = 2b6415d9fa484ba1969aa36610b695ba04d0a603
diff -r 56df3b8b19d0 -r 41fe5a0fb8d9 x11/mcookie/patches/patch-lib_ismounted.c
--- a/x11/mcookie/patches/patch-lib_ismounted.c Tue Jan 24 20:31:14 2017 +0000
+++ b/x11/mcookie/patches/patch-lib_ismounted.c Tue Jan 24 21:42:26 2017 +0000
@@ -1,15 +1,18 @@
-$NetBSD: patch-lib_ismounted.c,v 1.1 2016/09/20 08:00:51 wiz Exp $
+$NetBSD: patch-lib_ismounted.c,v 1.2 2017/01/24 21:42:26 bsiegert Exp $
 
 Fix build on NetBSD.
 
---- lib/ismounted.c.orig       2016-03-08 13:26:33.000000000 +0000
+--- lib/ismounted.c.orig       2016-11-02 12:57:31.000000000 +0000
 +++ lib/ismounted.c
-@@ -214,7 +214,7 @@ static int check_mntent(const char *file
+@@ -214,7 +214,11 @@ static int check_mntent(const char *file
  static int check_getmntinfo(const char *file, int *mount_flags,
                                  char *mtpt, int mtlen)
  {
--      struct statfs *mp;
++#ifdef __NetBSD__
 +      struct statvfs *mp;
++#else
+       struct statfs *mp;
++#endif
          int    len, n;
          const  char   *s1;
        char    *s2;



Home | Main Index | Thread Index | Old Index