pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/www/snownews snownews: fix build on SunOS
details: https://anonhg.NetBSD.org/pkgsrc/rev/0c5ce113bc32
branches: trunk
changeset: 377902:0c5ce113bc32
user: tnn <tnn%pkgsrc.org@localhost>
date: Mon Apr 25 10:17:16 2022 +0000
description:
snownews: fix build on SunOS
diffstat:
www/snownews/Makefile | 7 +++++--
www/snownews/distinfo | 3 ++-
www/snownews/patches/patch-conv.c | 15 +++++++++++++++
3 files changed, 22 insertions(+), 3 deletions(-)
diffs (53 lines):
diff -r 52629f3e4b18 -r 0c5ce113bc32 www/snownews/Makefile
--- a/www/snownews/Makefile Mon Apr 25 09:56:33 2022 +0000
+++ b/www/snownews/Makefile Mon Apr 25 10:17:16 2022 +0000
@@ -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 @@
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
diff -r 52629f3e4b18 -r 0c5ce113bc32 www/snownews/distinfo
--- a/www/snownews/distinfo Mon Apr 25 09:56:33 2022 +0000
+++ b/www/snownews/distinfo Mon Apr 25 10:17:16 2022 +0000
@@ -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
diff -r 52629f3e4b18 -r 0c5ce113bc32 www/snownews/patches/patch-conv.c
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/www/snownews/patches/patch-conv.c Mon Apr 25 10:17:16 2022 +0000
@@ -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