pkgsrc-Changes archive

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

CVS commit: pkgsrc/www/snownews



Module Name:    pkgsrc
Committed By:   tnn
Date:           Mon Apr 25 10:17:16 UTC 2022

Modified Files:
        pkgsrc/www/snownews: Makefile distinfo
Added Files:
        pkgsrc/www/snownews/patches: patch-conv.c

Log Message:
snownews: fix build on SunOS


To generate a diff of this commit:
cvs rdiff -u -r1.67 -r1.68 pkgsrc/www/snownews/Makefile
cvs rdiff -u -r1.23 -r1.24 pkgsrc/www/snownews/distinfo
cvs rdiff -u -r0 -r1.1 pkgsrc/www/snownews/patches/patch-conv.c

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

Modified files:

Index: pkgsrc/www/snownews/Makefile
diff -u pkgsrc/www/snownews/Makefile:1.67 pkgsrc/www/snownews/Makefile:1.68
--- pkgsrc/www/snownews/Makefile:1.67   Mon Apr 18 19:12:20 2022
+++ pkgsrc/www/snownews/Makefile        Mon Apr 25 10:17:16 2022
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.67 2022/04/18 19:12:20 adam Exp $
+# $NetBSD: Makefile,v 1.68 2022/04/25 10:17:16 tnn Exp $
 
 DISTNAME=      snownews-1.9
 PKGREVISION=   2
@@ -16,7 +16,10 @@ HAS_CONFIGURE=       yes
 FAKE_NCURSES=  yes
 USE_CURSES=    wide
 
-LDFLAGS+=      ${BUILDLINK_LDADD.curses}
+LDFLAGS+=              ${BUILDLINK_LDADD.curses}
+LDFLAGS+=              ${BUILDLINK_LDADD.gettext}
+CFLAGS.SunOS+=         -D_POSIX_PTHREAD_SEMANTICS
+BUILDLINK_TRANSFORM+=  opt:-std=c11:-std=gnu11 # PATH_MAX not visible with strict C11
 
 USE_PKGLOCALEDIR=      yes
 

Index: pkgsrc/www/snownews/distinfo
diff -u pkgsrc/www/snownews/distinfo:1.23 pkgsrc/www/snownews/distinfo:1.24
--- pkgsrc/www/snownews/distinfo:1.23   Tue Oct 26 11:31:08 2021
+++ pkgsrc/www/snownews/distinfo        Mon Apr 25 10:17:16 2022
@@ -1,7 +1,8 @@
-$NetBSD: distinfo,v 1.23 2021/10/26 11:31:08 nia Exp $
+$NetBSD: distinfo,v 1.24 2022/04/25 10:17:16 tnn Exp $
 
 BLAKE2s (snownews-1.9.tar.gz) = 741557a40d85ae97ecb01b1c8bbd93670ba258cfa83b37dfdabba8a53d131685
 SHA512 (snownews-1.9.tar.gz) = f833dbb41b5c0215c034b8388d787398360fac0ec9670f8f31b76c3ee2ffd974b4c6ebebc30aebb539b9904f513628124b393f4f473a92d4969f483caeca8596
 Size (snownews-1.9.tar.gz) = 149935 bytes
 SHA1 (patch-Config.mk.in) = 4e0ff89e7c9721bfbde23cbf3b51345f2f3097de
 SHA1 (patch-configure) = ed02a64c3f238aaf7e4c5ebe74a4129dad45bb98
+SHA1 (patch-conv.c) = 551b10ee98dd2ea8a83aed4a8a6d150caadd390d

Added files:

Index: pkgsrc/www/snownews/patches/patch-conv.c
diff -u /dev/null pkgsrc/www/snownews/patches/patch-conv.c:1.1
--- /dev/null   Mon Apr 25 10:17:16 2022
+++ pkgsrc/www/snownews/patches/patch-conv.c    Mon Apr 25 10:17:16 2022
@@ -0,0 +1,15 @@
+$NetBSD: patch-conv.c,v 1.1 2022/04/25 10:17:16 tnn Exp $
+
+undo workarounds for old Solaris
+
+--- conv.c.orig        2021-10-02 22:29:09.000000000 +0000
++++ conv.c
+@@ -36,7 +36,7 @@ static int calcAgeInDays (const struct t
+ // http://www.winehq.com/hypermail/wine-patches/2001/11/0024.html
+ //
+ // The following function was written by Francois Gouget.
+-#ifdef SUN
++#ifdef OLD_SUN
+ char* strsep (char** str, const char* delims)
+ {
+     if (!*str)                       // No more tokens



Home | Main Index | Thread Index | Old Index