pkgsrc-Changes archive

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

CVS commit: pkgsrc/wm/coma



Module Name:    pkgsrc
Committed By:   vins
Date:           Mon Dec 19 13:57:34 UTC 2022

Modified Files:
        pkgsrc/wm/coma: Makefile distinfo
Added Files:
        pkgsrc/wm/coma/patches: patch-coma.c

Log Message:
wm/coma: fix building on SunOS.


To generate a diff of this commit:
cvs rdiff -u -r1.10 -r1.11 pkgsrc/wm/coma/Makefile
cvs rdiff -u -r1.7 -r1.8 pkgsrc/wm/coma/distinfo
cvs rdiff -u -r0 -r1.1 pkgsrc/wm/coma/patches/patch-coma.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: pkgsrc/wm/coma/Makefile
diff -u pkgsrc/wm/coma/Makefile:1.10 pkgsrc/wm/coma/Makefile:1.11
--- pkgsrc/wm/coma/Makefile:1.10        Mon Dec 19 13:01:45 2022
+++ pkgsrc/wm/coma/Makefile     Mon Dec 19 13:57:34 2022
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.10 2022/12/19 13:01:45 vins Exp $
+# $NetBSD: Makefile,v 1.11 2022/12/19 13:57:34 vins Exp $
 
 DISTNAME=      coma-1.1
 PKGREVISION=   2
@@ -18,6 +18,16 @@ REPLACE.sh.new=              ${SH:Q}
 REPLACE_FILES.sh+=     scripts/coma-cmd
 REPLACE_FILES.sh+=     scripts/coma-remote
 
+.include "../../mk/bsd.prefs.mk"
+
+.if ${OPSYS} == "SunOS"
+SUBST_CLASSES+=                ints
+SUBST_MESSAGE.ints=    SunOS stdint(3) doesn't provide `u_int*' typedefs
+SUBST_STAGE.ints=      pre-configure
+SUBST_FILES.ints+=     client.c coma.h frame.c wm.c
+SUBST_SED.ints=                -e 's|u_int|uint|g'
+.endif
+
 LDFLAGS+=      ${COMPILER_RPATH_FLAG}${BUILDLINK_PREFIX.libX11}/lib
 LDFLAGS+=      -L${BUILDLINK_PREFIX.libX11}/lib -lX11 -lXft
 

Index: pkgsrc/wm/coma/distinfo
diff -u pkgsrc/wm/coma/distinfo:1.7 pkgsrc/wm/coma/distinfo:1.8
--- pkgsrc/wm/coma/distinfo:1.7 Mon Dec 19 13:01:45 2022
+++ pkgsrc/wm/coma/distinfo     Mon Dec 19 13:57:34 2022
@@ -1,5 +1,6 @@
-$NetBSD: distinfo,v 1.7 2022/12/19 13:01:45 vins Exp $
+$NetBSD: distinfo,v 1.8 2022/12/19 13:57:34 vins Exp $
 
 BLAKE2s (coma-1.1.tar.gz) = b5ff281480166bf01385e042e0a70f47556bcad93cb9775713a58e609b2f4023
 SHA512 (coma-1.1.tar.gz) = eb0e75a95d3ba0987851860eba19f432236de1949ae0eecd5d8141153b29179c128faa212a0a79e09123ad8b5f8b1c53de01ad08746f2605e182784605c73bd5
 Size (coma-1.1.tar.gz) = 16467 bytes
+SHA1 (patch-coma.c) = 0d5c6fc2a983d8385c144b2464489b00e38b849c

Added files:

Index: pkgsrc/wm/coma/patches/patch-coma.c
diff -u /dev/null pkgsrc/wm/coma/patches/patch-coma.c:1.1
--- /dev/null   Mon Dec 19 13:57:34 2022
+++ pkgsrc/wm/coma/patches/patch-coma.c Mon Dec 19 13:57:34 2022
@@ -0,0 +1,17 @@
+$NetBSD: patch-coma.c,v 1.1 2022/12/19 13:57:34 vins Exp $
+
+Portability fix for SunOS.
+
+--- coma.c.orig        2019-08-21 12:39:43.000000000 +0000
++++ coma.c
+@@ -29,6 +29,10 @@
+ 
+ #include "coma.h"
+ 
++#ifdef __sun
++#define WAIT_ANY        (-1)
++#endif
++
+ static void   coma_signal(int);
+ 
+ char                  myhost[256];



Home | Main Index | Thread Index | Old Index