pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/misc/moreutils moreutils: fix build on SunOS
details: https://anonhg.NetBSD.org/pkgsrc/rev/0636091b13a4
branches: trunk
changeset: 313428:0636091b13a4
user: wiedi <wiedi%pkgsrc.org@localhost>
date: Sat Sep 29 21:33:47 2018 +0000
description:
moreutils: fix build on SunOS
diffstat:
misc/moreutils/Makefile | 6 ++++--
misc/moreutils/distinfo | 3 ++-
misc/moreutils/patches/patch-sponge.c | 17 +++++++++++++++++
3 files changed, 23 insertions(+), 3 deletions(-)
diffs (58 lines):
diff -r 4997d6cc9c30 -r 0636091b13a4 misc/moreutils/Makefile
--- a/misc/moreutils/Makefile Sat Sep 29 21:19:13 2018 +0000
+++ b/misc/moreutils/Makefile Sat Sep 29 21:33:47 2018 +0000
@@ -1,8 +1,8 @@
-# $NetBSD: Makefile,v 1.6 2018/08/22 09:45:44 wiz Exp $
+# $NetBSD: Makefile,v 1.7 2018/09/29 21:33:47 wiedi Exp $
DISTNAME= moreutils_0.62.orig
PKGNAME= ${DISTNAME:S/_/-/:S/.orig//}
-PKGREVISION= 1
+PKGREVISION= 2
CATEGORIES= misc
MASTER_SITES= ${MASTER_SITE_DEBIAN:=pool/main/m/moreutils/}
EXTRACT_SUFX= .tar.xz
@@ -30,6 +30,8 @@
REPLACE_PERL+= vipe
REPLACE_PERL+= zrun
+LDFLAGS.SunOS+= -lsocket -lnsl
+
MAKE_ENV+= \
PREFIX=${PREFIX} \
MANDIR=${PREFIX}/${PKGMANDIR} \
diff -r 4997d6cc9c30 -r 0636091b13a4 misc/moreutils/distinfo
--- a/misc/moreutils/distinfo Sat Sep 29 21:19:13 2018 +0000
+++ b/misc/moreutils/distinfo Sat Sep 29 21:33:47 2018 +0000
@@ -1,4 +1,4 @@
-$NetBSD: distinfo,v 1.3 2018/04/21 17:27:51 leot Exp $
+$NetBSD: distinfo,v 1.4 2018/09/29 21:33:47 wiedi Exp $
SHA1 (moreutils_0.62.orig.tar.xz) = e1167351127aad1d661b987245e619f737a2fc0c
RMD160 (moreutils_0.62.orig.tar.xz) = 93a42c239443e572c7e1cc7e370882a702272671
@@ -8,3 +8,4 @@
SHA1 (patch-ifdata.c) = 5c0d9737657354ad1877f2efc6ff08e76ca7bc62
SHA1 (patch-is__utf8_Makefile) = 8feacdc8a0a0939aefd7f647be8196bdfdbda66c
SHA1 (patch-pee.c) = 0c2cf167e7038fadd818ea3262686a1b4ed5aa7e
+SHA1 (patch-sponge.c) = 3ba941bcc1d6595c8fb6aa59b1636e86dadfdf32
diff -r 4997d6cc9c30 -r 0636091b13a4 misc/moreutils/patches/patch-sponge.c
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/misc/moreutils/patches/patch-sponge.c Sat Sep 29 21:33:47 2018 +0000
@@ -0,0 +1,17 @@
+$NetBSD: patch-sponge.c,v 1.1 2018/09/29 21:33:47 wiedi Exp $
+
+Need MAX() on SunOS
+
+--- sponge.c.orig 2017-12-31 16:02:11.000000000 +0000
++++ sponge.c
+@@ -36,6 +36,10 @@
+ #include <signal.h>
+ #include <getopt.h>
+
++#if !defined(MAX)
++#define MAX(a, b) ((a) > (b) ? (a) : (b))
++#endif
++
+ #include "physmem.c"
+
+ #define BUFF_SIZE 8192
Home |
Main Index |
Thread Index |
Old Index