summaryrefslogtreecommitdiff
path: root/devel
diff options
context:
space:
mode:
authornia <nia@pkgsrc.org>2019-09-09 20:08:29 +0000
committernia <nia@pkgsrc.org>2019-09-09 20:08:29 +0000
commit0747662a17dc382b4fef237141267cb94529bc4a (patch)
tree66e9a71f6f802310f05baf3a1d36030ae9e616b8 /devel
parent49d49f027d1bc7d9d580a6e844620999fa961771 (diff)
downloadpkgsrc-0747662a17dc382b4fef237141267cb94529bc4a.tar.gz
wayland: Disable another unproductive fallocate usage on NetBSD.
Helps SDL2 run.
Diffstat (limited to 'devel')
-rw-r--r--devel/wayland/Makefile4
-rw-r--r--devel/wayland/distinfo3
-rw-r--r--devel/wayland/patches/patch-cursor_wayland-cursor.c15
3 files changed, 19 insertions, 3 deletions
diff --git a/devel/wayland/Makefile b/devel/wayland/Makefile
index f86265eedcd..f35e718d390 100644
--- a/devel/wayland/Makefile
+++ b/devel/wayland/Makefile
@@ -1,7 +1,7 @@
-# $NetBSD: Makefile,v 1.2 2019/08/19 12:50:23 nia Exp $
+# $NetBSD: Makefile,v 1.3 2019/09/09 20:08:29 nia Exp $
DISTNAME= wayland-1.17.0
-PKGREVISION= 1
+PKGREVISION= 2
CATEGORIES= devel
MASTER_SITES= https://wayland.freedesktop.org/releases/
EXTRACT_SUFX= .tar.xz
diff --git a/devel/wayland/distinfo b/devel/wayland/distinfo
index 9211ba8a4f3..f712b5087f4 100644
--- a/devel/wayland/distinfo
+++ b/devel/wayland/distinfo
@@ -1,4 +1,4 @@
-$NetBSD: distinfo,v 1.4 2019/08/29 12:22:13 nia Exp $
+$NetBSD: distinfo,v 1.5 2019/09/09 20:08:29 nia Exp $
SHA1 (wayland-1.17.0.tar.xz) = 4d9e08a7a4a07fa37a25d7aa3ef83f08edec0600
RMD160 (wayland-1.17.0.tar.xz) = 635494fb0f5d9eb1e782f98e08c3e0e26ff44268
@@ -7,6 +7,7 @@ Size (wayland-1.17.0.tar.xz) = 437680 bytes
SHA1 (patch-Makefile.am) = af2c47eb2e1a4924ea842aeea1d0f00832762ec0
SHA1 (patch-configure.ac) = df15013a1639d673e5f0a86433a074f6201dbbc4
SHA1 (patch-cursor_os-compatibility.c) = 9aac1c734199bc7e33e7735356bc8dbc80fba89d
+SHA1 (patch-cursor_wayland-cursor.c) = 81c6896b3a541e662db440d8557c6b3e70fcb580
SHA1 (patch-src_event-loop.c) = 04d0eed4ba0708518201ec630dab97d52735fb0c
SHA1 (patch-src_wayland-os.c) = 7297f8259aea9603a7ba20fe58f79e3fd0042990
SHA1 (patch-src_wayland-os.h) = 1e01dfadb5ed5889d76e024d30537935f33631a3
diff --git a/devel/wayland/patches/patch-cursor_wayland-cursor.c b/devel/wayland/patches/patch-cursor_wayland-cursor.c
new file mode 100644
index 00000000000..ad6f5c28a3c
--- /dev/null
+++ b/devel/wayland/patches/patch-cursor_wayland-cursor.c
@@ -0,0 +1,15 @@
+$NetBSD: patch-cursor_wayland-cursor.c,v 1.1 2019/09/09 20:08:29 nia Exp $
+
+fallocate is currently a no-op on NetBSD.
+
+--- cursor/wayland-cursor.c.orig 2019-03-21 00:55:25.000000000 +0000
++++ cursor/wayland-cursor.c
+@@ -86,7 +86,7 @@ shm_pool_resize(struct shm_pool *pool, i
+ if (ftruncate(pool->fd, size) < 0)
+ return 0;
+
+-#ifdef HAVE_POSIX_FALLOCATE
++#if defined(HAVE_POSIX_FALLOCATE) && !defined(__NetBSD__)
+ errno = posix_fallocate(pool->fd, 0, size);
+ if (errno != 0)
+ return 0;