pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/net/go-net Fix build on Linux.



details:   https://anonhg.NetBSD.org/pkgsrc/rev/136a960673ce
branches:  trunk
changeset: 373375:136a960673ce
user:      bsiegert <bsiegert%pkgsrc.org@localhost>
date:      Sun Dec 31 15:59:24 2017 +0000

description:
Fix build on Linux.

Linux has h2i but not the (BSD-specific) route package. Instead of having
a PLIST var named notsunos, create two separate ones for h2i and route.

diffstat:

 net/go-net/Makefile |  12 ++++++++----
 net/go-net/PLIST    |   6 +++---
 2 files changed, 11 insertions(+), 7 deletions(-)

diffs (49 lines):

diff -r 7653626fcad7 -r 136a960673ce net/go-net/Makefile
--- a/net/go-net/Makefile       Sun Dec 31 15:25:37 2017 +0000
+++ b/net/go-net/Makefile       Sun Dec 31 15:59:24 2017 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.17 2017/07/22 19:32:41 wiz Exp $
+# $NetBSD: Makefile,v 1.18 2017/12/31 15:59:24 bsiegert Exp $
 
 DISTNAME=              go-net-20170308
 PKGREVISION=           1
@@ -19,12 +19,16 @@
 
 .include "../../mk/bsd.prefs.mk"
 
-PLIST_VARS+=   notsunos
+PLIST_VARS+=   h2i route
 
-.if ${OPSYS} != "SunOS"
+.if ${OPSYS} == "SunOS"
 # route support is not yet implemented for sunos
 # h2i is missing terminal.MakeRaw and terminal.Restore
-PLIST.notsunos=        yes
+.elif ${OPSYS} == "Linux"
+PLIST.h2i=     yes
+.else
+PLIST.h2i=     yes
+PLIST.route=   yes
 .endif
 
 .include "../../textproc/go-text/buildlink3.mk"
diff -r 7653626fcad7 -r 136a960673ce net/go-net/PLIST
--- a/net/go-net/PLIST  Sun Dec 31 15:25:37 2017 +0000
+++ b/net/go-net/PLIST  Sun Dec 31 15:59:24 2017 +0000
@@ -1,5 +1,5 @@
-@comment $NetBSD: PLIST,v 1.5 2017/03/16 19:14:19 bsiegert Exp $
-${PLIST.notsunos}bin/h2i
+@comment $NetBSD: PLIST,v 1.6 2017/12/31 15:59:24 bsiegert Exp $
+${PLIST.h2i}bin/h2i
 gopkg/pkg/${GO_PLATFORM}/golang.org/x/net/bpf.a
 gopkg/pkg/${GO_PLATFORM}/golang.org/x/net/context.a
 gopkg/pkg/${GO_PLATFORM}/golang.org/x/net/context/ctxhttp.a
@@ -23,7 +23,7 @@
 gopkg/pkg/${GO_PLATFORM}/golang.org/x/net/netutil.a
 gopkg/pkg/${GO_PLATFORM}/golang.org/x/net/proxy.a
 gopkg/pkg/${GO_PLATFORM}/golang.org/x/net/publicsuffix.a
-${PLIST.notsunos}gopkg/pkg/${GO_PLATFORM}/golang.org/x/net/route.a
+${PLIST.route}gopkg/pkg/${GO_PLATFORM}/golang.org/x/net/route.a
 gopkg/pkg/${GO_PLATFORM}/golang.org/x/net/trace.a
 gopkg/pkg/${GO_PLATFORM}/golang.org/x/net/webdav.a
 gopkg/pkg/${GO_PLATFORM}/golang.org/x/net/webdav/internal/xml.a



Home | Main Index | Thread Index | Old Index