pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/wm/i3 i3: avoid posix_fallocate on NetBSD



details:   https://anonhg.NetBSD.org/pkgsrc/rev/df779c601900
branches:  trunk
changeset: 458260:df779c601900
user:      nia <nia%pkgsrc.org@localhost>
date:      Sun Sep 12 07:31:44 2021 +0000

description:
i3: avoid posix_fallocate on NetBSD

diffstat:

 wm/i3/Makefile                |   3 ++-
 wm/i3/distinfo                |   4 ++--
 wm/i3/patches/patch-src_log.c |  14 ++++++++++++--
 3 files changed, 16 insertions(+), 5 deletions(-)

diffs (52 lines):

diff -r 6467614bfc07 -r df779c601900 wm/i3/Makefile
--- a/wm/i3/Makefile    Sun Sep 12 07:31:28 2021 +0000
+++ b/wm/i3/Makefile    Sun Sep 12 07:31:44 2021 +0000
@@ -1,6 +1,7 @@
-# $NetBSD: Makefile,v 1.43 2021/09/12 07:22:47 nia Exp $
+# $NetBSD: Makefile,v 1.44 2021/09/12 07:31:44 nia Exp $
 
 DISTNAME=      i3-4.19.2
+PKGREVISION=   1
 CATEGORIES=    wm
 MASTER_SITES=  https://i3wm.org/downloads/
 EXTRACT_SUFX=  .tar.xz
diff -r 6467614bfc07 -r df779c601900 wm/i3/distinfo
--- a/wm/i3/distinfo    Sun Sep 12 07:31:28 2021 +0000
+++ b/wm/i3/distinfo    Sun Sep 12 07:31:44 2021 +0000
@@ -1,4 +1,4 @@
-$NetBSD: distinfo,v 1.21 2021/09/12 07:22:47 nia Exp $
+$NetBSD: distinfo,v 1.22 2021/09/12 07:31:44 nia Exp $
 
 SHA1 (i3-4.19.2.tar.xz) = c9cbd300ccf5723ba0f749c1369945ea61b82536
 RMD160 (i3-4.19.2.tar.xz) = 83d260e3f652290ba299df43920ec13d171317f3
@@ -7,4 +7,4 @@
 SHA1 (patch-etc_config) = d3f649e8d4dc7cae7eb3c1548fa8d81224e4dacb
 SHA1 (patch-etc_config.keycodes) = 6adde0b3a56576805facd951fa9d32bfd6c88011
 SHA1 (patch-meson.build) = 013ac42f10aeb1ad05b5496f6283878e53506c46
-SHA1 (patch-src_log.c) = 406b459fa646ae25d80595bdee03ccee5d530d4a
+SHA1 (patch-src_log.c) = 4ade2bf17399c307339cb8c73ba65d2fe418841d
diff -r 6467614bfc07 -r df779c601900 wm/i3/patches/patch-src_log.c
--- a/wm/i3/patches/patch-src_log.c     Sun Sep 12 07:31:28 2021 +0000
+++ b/wm/i3/patches/patch-src_log.c     Sun Sep 12 07:31:44 2021 +0000
@@ -1,9 +1,19 @@
-$NetBSD: patch-src_log.c,v 1.8 2021/09/12 07:22:47 nia Exp $
+$NetBSD: patch-src_log.c,v 1.9 2021/09/12 07:31:44 nia Exp $
 
-NetBSD lacks pthread_condattr_setpshared.
+- ftruncate() is unimplemented in NetBSD FFS.
+- NetBSD lacks pthread_condattr_setpshared.
 
 --- src/log.c.orig     2021-02-27 09:37:58.756645200 +0000
 +++ src/log.c
+@@ -136,7 +136,7 @@ void open_logbuffer(void) {
+         return;
+     }
+ 
+-#if defined(__OpenBSD__) || defined(__APPLE__)
++#if defined(__NetBSD__) || defined(__OpenBSD__) || defined(__APPLE__)
+     if (ftruncate(logbuffer_shm, logbuffer_size) == -1) {
+         fprintf(stderr, "Could not ftruncate SHM segment for the i3 log: %s\n", strerror(errno));
+ #else
 @@ -161,7 +161,7 @@ void open_logbuffer(void) {
  
      header = (i3_shmlog_header *)logbuffer;



Home | Main Index | Thread Index | Old Index