summaryrefslogtreecommitdiff
path: root/lang
diff options
context:
space:
mode:
authorfhajny <fhajny@pkgsrc.org>2015-08-25 23:09:51 +0000
committerfhajny <fhajny@pkgsrc.org>2015-08-25 23:09:51 +0000
commit26cffb89cb5105f8be957740d9ee0172c06f809e (patch)
tree7ad3776fabf6ef2029046a4be34843cec25ad9e5 /lang
parenta7bf1f90eb563c247306d59dadc5fb86323daf41 (diff)
downloadpkgsrc-26cffb89cb5105f8be957740d9ee0172c06f809e.tar.gz
Add support for the dup2 syscall on SunOS. Bump PKGREVISION.
Diffstat (limited to 'lang')
-rw-r--r--lang/go/Makefile8
-rw-r--r--lang/go/distinfo3
-rw-r--r--lang/go/patches/patch-src_syscall_syscall__solaris.go14
3 files changed, 22 insertions, 3 deletions
diff --git a/lang/go/Makefile b/lang/go/Makefile
index 241901542c6..902b12a4b41 100644
--- a/lang/go/Makefile
+++ b/lang/go/Makefile
@@ -1,10 +1,10 @@
-# $NetBSD: Makefile,v 1.32 2015/08/25 23:07:23 fhajny Exp $
+# $NetBSD: Makefile,v 1.33 2015/08/25 23:09:51 fhajny Exp $
.include "version.mk"
DISTNAME= go${GO_VERSION}.src
PKGNAME= go-${GO_VERSION}
-PKGREVISION= 1
+PKGREVISION= 2
CATEGORIES= lang
MASTER_SITES= https://storage.googleapis.com/golang/
@@ -75,6 +75,10 @@ CHECK_INTERPRETER_SKIP+= go/src/run.rc
BUILD_DEPENDS+= go14-1.4*:../../lang/go14
GOROOT_BOOTSTRAP= ${PREFIX}/go14
+pre-build:
+ cd ${WRKSRC}/src/syscall && ${PERL5} mksyscall_solaris.pl \
+ syscall_solaris.go syscall_solaris_amd64.go > zsyscall_solaris_amd64.go
+
do-build:
cd ${WRKSRC}/src && env GOROOT_BOOTSTRAP=${GOROOT_BOOTSTRAP:Q} GOROOT_FINAL=${GOROOT_FINAL:Q} ${BASH} ./make.bash
diff --git a/lang/go/distinfo b/lang/go/distinfo
index 54ed73a803c..285cdc1181a 100644
--- a/lang/go/distinfo
+++ b/lang/go/distinfo
@@ -1,7 +1,8 @@
-$NetBSD: distinfo,v 1.24 2015/08/25 21:02:52 fhajny Exp $
+$NetBSD: distinfo,v 1.25 2015/08/25 23:09:51 fhajny Exp $
SHA1 (go1.5.src.tar.gz) = 7242bb5ae29594641c75bdc3453d5854cc0a8604
RMD160 (go1.5.src.tar.gz) = 63abe7fd915997b53fdb0f8d2d071f0e4d549823
Size (go1.5.src.tar.gz) = 12045689 bytes
SHA1 (patch-src_cmd_go_pkg.go) = ccc470577951bd00741c39229599c0c06be52d0a
SHA1 (patch-src_net_sendfile__solaris.go) = 301b1d7f607a676864a3ce568d32036b6199659e
+SHA1 (patch-src_syscall_syscall__solaris.go) = 436371947897dcba574a6dfecc6bbcd04f6e25b2
diff --git a/lang/go/patches/patch-src_syscall_syscall__solaris.go b/lang/go/patches/patch-src_syscall_syscall__solaris.go
new file mode 100644
index 00000000000..fd7e25ed271
--- /dev/null
+++ b/lang/go/patches/patch-src_syscall_syscall__solaris.go
@@ -0,0 +1,14 @@
+$NetBSD: patch-src_syscall_syscall__solaris.go,v 1.1 2015/08/25 23:09:51 fhajny Exp $
+
+Add support for the Dup2 syscall.
+
+--- src/syscall/syscall_solaris.go.orig 2015-08-19 06:05:19.000000000 +0000
++++ src/syscall/syscall_solaris.go
+@@ -440,6 +440,7 @@ func SendmsgN(fd int, p, oob []byte, to
+ //sys Chroot(path string) (err error)
+ //sys Close(fd int) (err error)
+ //sys Dup(fd int) (nfd int, err error)
++//sys Dup2(from int, to int) (err error)
+ //sys Exit(code int)
+ //sys Fchdir(fd int) (err error)
+ //sys Fchmod(fd int, mode uint32) (err error)