Add support for the dup2 syscall on SunOS. Bump PKGREVISION.
This commit is contained in:
parent
30aa367f71
commit
f9facf0aca
3 changed files with 22 additions and 3 deletions
|
@ -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
|
||||
|
||||
|
|
|
@ -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
|
||||
|
|
14
lang/go/patches/patch-src_syscall_syscall__solaris.go
Normal file
14
lang/go/patches/patch-src_syscall_syscall__solaris.go
Normal file
|
@ -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)
|
Loading…
Reference in a new issue