pkgsrc-WIP-changes archive

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

gitea: Try to fix build in NetBSD



Module Name:	pkgsrc-wip
Committed By:	Antonio Huete Jimenez <tuxillo%quantumachine.net@localhost>
Pushed By:	tuxillo
Date:		Tue Feb 12 12:26:57 2019 +0000
Changeset:	f1faae0c14059990e138bcaed409e7a8c59c56cb

Modified Files:
	gitea/distinfo
	gitea/patches/patch-vendor_github.com_edsrzf_mmap-go_msync__unix.go
Added Files:
	gitea/patches/patch-vendor_github.com_edsrzf_mmap-go_msync__netbsd.go

Log Message:
gitea: Try to fix build in NetBSD

- go-billy fix taken from src-d/go-billy PR#63 by Yuce Tekol
  <yucetekol%gmail.com@localhost>

To see a diff of this commit:
https://wip.pkgsrc.org/cgi-bin/gitweb.cgi?p=pkgsrc-wip.git;a=commitdiff;h=f1faae0c14059990e138bcaed409e7a8c59c56cb

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

diffstat:
 gitea/distinfo                                              |  3 ++-
 .../patch-vendor_github.com_edsrzf_mmap-go_msync__netbsd.go | 10 ++++++++++
 .../patch-vendor_github.com_edsrzf_mmap-go_msync__unix.go   | 13 +++++++++++--
 3 files changed, 23 insertions(+), 3 deletions(-)

diffs:
diff --git a/gitea/distinfo b/gitea/distinfo
index d7c29e0b03..51ae7c5958 100644
--- a/gitea/distinfo
+++ b/gitea/distinfo
@@ -9,5 +9,6 @@ SHA1 (patch-vendor_github.com_edsrzf_mmap-go_mmap__solaris.go) = f4341dfab2b452f
 SHA1 (patch-vendor_github.com_edsrzf_mmap-go_mmap__sys.go) = 4e6121157bbd4072feaca297c081efa49379a57c
 SHA1 (patch-vendor_github.com_edsrzf_mmap-go_mmap__syscall.go) = 0f5df532a4a2210539af6b260ac556d864b3179d
 SHA1 (patch-vendor_github.com_edsrzf_mmap-go_mmap__unix.go) = 390a451fa1ed45755f5a4036c45ec3a2e4507c3b
-SHA1 (patch-vendor_github.com_edsrzf_mmap-go_msync__unix.go) = ef7da70a21d175aa4a1d055af515936c3986d134
+SHA1 (patch-vendor_github.com_edsrzf_mmap-go_msync__netbsd.go) = 13ac5d3f76a330f874002b18698ce5583c875239
+SHA1 (patch-vendor_github.com_edsrzf_mmap-go_msync__unix.go) = 3c3f67d09928abc49ed4b6386edd5cf579e045bf
 SHA1 (patch-vendor_gopkg.in_src-d_go-billy.v4_osfs_os__posix.go) = d8f2684acc2aeadd02761bff7506cb5789d92a72
diff --git a/gitea/patches/patch-vendor_github.com_edsrzf_mmap-go_msync__netbsd.go b/gitea/patches/patch-vendor_github.com_edsrzf_mmap-go_msync__netbsd.go
new file mode 100644
index 0000000000..781d6d3a5f
--- /dev/null
+++ b/gitea/patches/patch-vendor_github.com_edsrzf_mmap-go_msync__netbsd.go
@@ -0,0 +1,10 @@
+$NetBSD$
+
+--- vendor/github.com/edsrzf/mmap-go/msync_netbsd.go.orig	2019-02-12 11:18:50.418527745 +0000
++++ vendor/github.com/edsrzf/mmap-go/msync_netbsd.go
+@@ -4,5 +4,3 @@
+ 
+ package mmap
+ 
+-const _SYS_MSYNC = 277
+-const _MS_SYNC = 0x04
diff --git a/gitea/patches/patch-vendor_github.com_edsrzf_mmap-go_msync__unix.go b/gitea/patches/patch-vendor_github.com_edsrzf_mmap-go_msync__unix.go
index 6a64df87f0..c7ac8b1979 100644
--- a/gitea/patches/patch-vendor_github.com_edsrzf_mmap-go_msync__unix.go
+++ b/gitea/patches/patch-vendor_github.com_edsrzf_mmap-go_msync__unix.go
@@ -1,8 +1,8 @@
 $NetBSD$
 
---- vendor/github.com/edsrzf/mmap-go/msync_unix.go.orig	2018-08-10 17:16:53.000000000 +0000
+--- vendor/github.com/edsrzf/mmap-go/msync_unix.go.orig	2019-01-31 16:11:25.000000000 +0000
 +++ vendor/github.com/edsrzf/mmap-go/msync_unix.go
-@@ -2,7 +2,7 @@
+@@ -2,13 +2,13 @@
  // Use of this source code is governed by a BSD-style
  // license that can be found in the LICENSE file.
  
@@ -11,3 +11,12 @@ $NetBSD$
  
  package mmap
  
+ import (
+-	"syscall"
++	"golang.org/x/sys/unix"
+ )
+ 
+-const _SYS_MSYNC = syscall.SYS_MSYNC
+-const _MS_SYNC = syscall.MS_SYNC
++const _SYS_MSYNC = unix.SYS_MSYNC
++const _MS_SYNC = unix.MS_SYNC


Home | Main Index | Thread Index | Old Index