pkgsrc-WIP-changes archive

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

Update to gitea 1.7.1



Module Name:	pkgsrc-wip
Committed By:	Antonio Huete Jimenez <tuxillo%quantumachine.net@localhost>
Pushed By:	tuxillo
Date:		Tue Feb 12 00:22:44 2019 +0000
Changeset:	0a6852cb2acb7ebf6c6bd7791a86b31eaa9847d4

Modified Files:
	gitea/Makefile
	gitea/PLIST
	gitea/distinfo
Added Files:
	gitea/patches/patch-vendor_gopkg.in_src-d_go-billy.v4_osfs_os__posix.go
Removed Files:
	gitea/patches/patch-vendor_golang.org_x_sys_unix_syscall__solaris.go
	gitea/patches/patch-vendor_golang.org_x_sys_unix_zsyscall__solaris__amd64.go

Log Message:
Update to gitea 1.7.1

Changes
---------------------------

v1.7.1

SECURITY
- Disable redirect for i18n (#5910) (#5916)
- Only allow local login if password is non-empty (#5906) (#5908)
- Fix go-get URL generation (#5905) (#5907)
BUGFIXES
- Fix TLS errors when using acme/autocert for local connections (#5820) (#5826)
- Request for public keys only if LDAP attribute is set (#5816) (#5819)
- Fix delete correct temp directory (#5840) (#5839)
- Fix an error while adding a dependency via UI (#5862) (#5876)
- Fix null pointer in attempt to Sudo if not logged in (#5872) (#5884)
- When creating new repository fsck option should be enabled (#5817) (#5885)
- Prevent nil dereference in mailIssueCommentToParticipants (#5891) (#5895) (#5894)
- Fix bug when read public repo lfs file (#5913) (#5912)
- Respect value of REQUIRE_SIGNIN_VIEW (#5901) (#5915)
- Fix compare button on upstream repo leading to 404 (#5877) (#5914)
DOCS
- Added docs for the tree api (#5835)
MISC
- Include Go toolchain to --version (#5832) (#5830)

v1.7.0

SECURITY
 - Do not display the raw OpenID error in the UI (#5705) (#5712)
 - When redirecting clean the path to avoid redirecting to external site (#5669) (#5679)
 - Prevent DeleteFilePost doing arbitrary deletion (#5631)
BREAKING
 - Restrict permission check on repositories and fix some problems (#5314)
 - Show only opened milestones on issues page milestone filter (#5051)
FEATURE
 - Implement git refs API for listing references (branches, tags and other) (#5354)
 - Approvals at Branch Protection (#5350)
 - Add raw blob endpoint to get objects by SHA ID (#5334)
 - Add api for user to create org (#5268)
 - Create AuthorizedKeysCommand (#5236)
 - User action heatmap (#5131)
 - Refactor heatmap to vue component (#5401)
 - Webhook for Pull Request approval/rejection (#5027)
 - Add command for migrating database (#4954)
 - Search keyword by splitting provided values by , (#4939)
 - Create Progressive Web App (#4730)
 - Give user a link to create PR after push (#4716)
 - Add rebase with merge commit merge style (#3844) (#4052)
BUGFIXES
 - Disallow empty titles (#5785) (#5794)
 - Fix sqlite deadlock when assigning to a PR (#5640) (#5642)
 - Don't close issues via commits on non-default branch. (#5622) (#5643)
 - Fix commit page showing status for current default branch (#5650) (#5653)
 - Only count users own actions for heatmap contributions (#5647) (#5655)
 - Update xorm to fix issue postgresql dumping issues (#5680) (#5692)
 - Use correct value for "MSpan Structures Obtained" (#5706) (#5716)
 - Fix bug on modifying sshd username (#5624)
 - Delete tags in mirror which are removed for original repo. (#5609)
 - Fix wrong text getting saved on editing second comment on an issue. (#5608)
 - Fix nil pointer when adding a due date (#5587)
 - Fix type mismatch of format string (#5574)
 - Fix bug on upload file name (#5571)
 - Issue is not overdue when it is on the same date #5566 (#5568)
 - Fix indexer reindex bug when gitea restart (#5563)
 - Fix table name typo on SQL (#5562)
 - Synchronize SSH keys on login with LDAP + Fix SQLite deadlock on ldap ssh key deletion (#5557)
 - Fix makefile generate buildstep (#5556)
 - Fix nil pointer base branch bug (#5555)
 - Fix permission check on api create org (#5523)
 - Fix detect force push failure on deletion of protected branches (#5522)
 - Fix approvals limitation (#5521)
 - Fix bug when a read perm user to edit his issue (#5516)
 - Fix adding reaction fail for read permission user (#5515)
 - Fixing MSSQL timestamp type (#5511)
 - Fix forgot deletion of notification when delete repository (#5506)
 - Fix empty wiki (#5504)
 - Fix clone wiki failed via ssh (#5503)
 - Fix code review on mssql (#5502)
 - Fix lfs version check warning log when using ssh protocol (#5501)
 - Fix topic name length on database (#5493)
 - Ensure that the closed_at is set for closed issues (#5449)
 - Admin should be able to delete repos via the API even if he is not a member of the organization (#5443)
 - Word-Break the WebHook url to prevent a ui-break (#5432)
 - Fix forgot removed records when deleting user (#5429)
 - Fix repository deletion when there is large number of issues in it (#5426)
 - Fix heatmap colors for Chrome/Safari (#5421)
 - Fix password variable shadowing (#5405)
 - Fix dependent issue searching when gitea is run in subpath (#5392)
 - Don't force a password change for the admin user when creating an account via cli (#5391)
 - API: '/orgs/:org/repos': return private repos with read access (#5383)
 - Don't send assign webhooks when creating issue (#5365)
 - Removing Labels via EditPullRequest API (#5348)
 - Migration fixes for gogs (0.11.66) to gitea (1.6.0) #5318 (#5341)
 - Fix bug when users have serval teams with different units on different repositories (#5307)
 - Fix U2F if gitea is configured in subpath (#5302)
 - Fix file edit change preview functionality (#5300)
 - Update gitignore list (#5258)
 - Fixed heatmap not working in mssql (#5248)
 - Fixed wrong api request url for instances running in subfolders (#5247)
 - Fix compatibility heatmap with mysql 8 (#5232)
 - Fix data race on migrate repository (#5224)
 - Fix sqlite and mssql lock (#5214)
 - Fix sqlite lock (#5210)
 - Fix: Accept web-command cli flags if web-command is commited (#5200)
 - Fix: Add secret to all webhook's payload where it has been missing (#5199)
 - Fix race on updatesize (#5190)
 - Fix create team, update team missing units (#5188)
 - Fix sqlite lock (#5184 & #5176)
 - Fix showing pull request link when delete a branch (#5166)
 - Fix JSON result of empty array in heatmap data array (#5154)
 - Update build tags for sqlite_unlock notify (#5144)
 - This commit will reduce join star, repo_topic, topic tables on repo search, so that fix extra columns problem on mssql (#5136)
 - Fix deadlock when sqlite (#5118)
 - Add comment replies (#5104)
 - Fix home page template regression (#5102)
 - Fix regex to support optional end line of old section in diff hunk (#5096)
 - LDAP via simple auth separate bind user and search base (#5055)
 - Fix markdown image with link (#4675)
 - Fix to 3819 - Filtering issues by tags on main screen issues (#3824)
ENHANCEMENT
 - Delete organization endpoint added (#5601)
 - Update Licenses (#5558)
 - Support reverse proxy providing email (#5554)
 - Add git protocol v2 support via SSH on Docker image (#5520)
 - Add tests for api user orgs (#5494)
 - Allow link verification for services like Mastodon (#5481)
 - Improve team members and repositories settings UI (#5457)
 - Remove the required class from optional ssh port in installation page (#5428)
 - Explicitly disable Git credential helper (#5367)
 - Setting Labels via EditPullRequest API (#5347)
 - Implement pasting image from clipboard for browsers that supports that (#5317)
 - Milestone issues and pull requests (#5293)
 - Support envs on external render commands (#5278)
 - Add option to disable automatic mirror syncing. (#5242)
 - Remove unused db init on commands serv, update, hooks (#5225)
 - Serve audio files using HTML5 audio tag (#5221)
 - Pass link prefixes to external markup parsers (#5201)
 - Add AutoHead functionality. (#5186)
 - Fix emojis not showing in commit messages (#5168)
 - Block registration based on email domain (#5157)
 - Update vendor/go-sqlite3 (#5133 & #5162)
 - Update x/net lib (#5169)
 - Show review summary in pull requests (#5132)
 - Use type switch (#5122)
 - Remove duplicated if bodies (#5121)
 - Remove check for negative length (#5120)
 - Make switch more clear (#5119)
 - Use named const instead of a raw string (#5115)
 - Fix issue where ecdsa and other key types are not synced from LDAP (#5092) (#5094)
 - Refactor: err != nil check, just return error instead (#5093)
 - Add notification interface and refactor UI notifications (#5085)
 - Use APP_NAME on home page (#5048)
 - Explicitly decide whether to use TLS in mailer's configuration (#5024)
 - Generate random password (#5023)
 - UX of link account (Step 1) (#5006)
 - Make sure argsSet verifies string isn't empty too (#4980)
 - Improve performance of dashboard (#4977)
 - Keys API changes (#4960)
 - Add must-change-password flag to cli for creating a user (#4955)
 - Use native go method to get current user rather than environment variable (#4930)
 - Make gitea serv use api/internal (#4886)
 - Add support for search by uid (#4876)
 - Allow to add organization members as collaborators on organization owned repositories (#4748)
TESTING
 - Kill testing processes if the test takes too long (#5174)
 - Update outdated Go toolchain version for .drone.yml (#5146)
 - Increase the retry limit to 20 times and the interval to 200ms (#5134)
 - Retry test-fixtures loading in case of transaction rollback (#5125)
 - Added test environment for mssql (#4282)
BUILD
 - Replace lint to revive (#5422)
 - Update golang version in Dockerfile (#5246)
DOCS
 - Typo in routers/api/v1/org/org.go fixed. (#5598)
 - Update the docs for sqlite_unlock_notify (#5145)
 - CN translation of docs part (#5049)
 - Kubernetes deployment file (#5046)
MISC
 - Upgrade alpine to 3.8 (#5423)
 - Git-Trees API (#5403)
 - Only chown directories during docker setup if necessary. Fix #4425 (#5064)

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

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

diffstat:
 gitea/Makefile                                     |  2 +-
 gitea/PLIST                                        | 20 ++++++++-
 gitea/distinfo                                     | 11 +++--
 ...endor_golang.org_x_sys_unix_syscall__solaris.go | 12 ------
 ...lang.org_x_sys_unix_zsyscall__solaris__amd64.go | 47 ----------------------
 ...or_gopkg.in_src-d_go-billy.v4_osfs_os__posix.go | 27 +++++++++++++
 6 files changed, 52 insertions(+), 67 deletions(-)

diffs:
diff --git a/gitea/Makefile b/gitea/Makefile
index 99acec896d..3d8d8caddb 100644
--- a/gitea/Makefile
+++ b/gitea/Makefile
@@ -1,6 +1,6 @@
 # $NetBSD$
 
-DISTNAME=	gitea-1.6.0
+DISTNAME=	gitea-1.7.1
 MASTER_SITES=	${MASTER_SITE_GITHUB:=go-gitea/}
 PKGREVISION=	2
 CATEGORIES=	www
diff --git a/gitea/PLIST b/gitea/PLIST
index 6ab7b1aa1b..e6ebcecd7f 100644
--- a/gitea/PLIST
+++ b/gitea/PLIST
@@ -12,6 +12,7 @@ share/gitea/options/gitignore/AppceleratorTitanium
 share/gitea/options/gitignore/ArchLinuxPackages
 share/gitea/options/gitignore/Archives
 share/gitea/options/gitignore/Autotools
+share/gitea/options/gitignore/Backup
 share/gitea/options/gitignore/Bazaar
 share/gitea/options/gitignore/BricxCC
 share/gitea/options/gitignore/C
@@ -37,6 +38,7 @@ share/gitea/options/gitignore/DM
 share/gitea/options/gitignore/Dart
 share/gitea/options/gitignore/DartEditor
 share/gitea/options/gitignore/Delphi
+share/gitea/options/gitignore/Diff
 share/gitea/options/gitignore/Dreamweaver
 share/gitea/options/gitignore/Dropbox
 share/gitea/options/gitignore/Drupal
@@ -64,12 +66,15 @@ share/gitea/options/gitignore/GWT
 share/gitea/options/gitignore/Gcov
 share/gitea/options/gitignore/GitBook
 share/gitea/options/gitignore/Go
+share/gitea/options/gitignore/Godot
 share/gitea/options/gitignore/Gradle
 share/gitea/options/gitignore/Grails
 share/gitea/options/gitignore/Haskell
 share/gitea/options/gitignore/IGORPro
 share/gitea/options/gitignore/Idris
+share/gitea/options/gitignore/Images
 share/gitea/options/gitignore/JDeveloper
+share/gitea/options/gitignore/JEnv
 share/gitea/options/gitignore/Java
 share/gitea/options/gitignore/Jboss
 share/gitea/options/gitignore/Jekyll
@@ -78,8 +83,9 @@ share/gitea/options/gitignore/Joomla
 share/gitea/options/gitignore/Julia
 share/gitea/options/gitignore/KDevelop4
 share/gitea/options/gitignore/Kate
-share/gitea/options/gitignore/KiCAD
+share/gitea/options/gitignore/KiCad
 share/gitea/options/gitignore/Kohana
+share/gitea/options/gitignore/Kotlin
 share/gitea/options/gitignore/LabVIEW
 share/gitea/options/gitignore/Laravel
 share/gitea/options/gitignore/Lazarus
@@ -113,8 +119,11 @@ share/gitea/options/gitignore/Opa
 share/gitea/options/gitignore/OpenCart
 share/gitea/options/gitignore/OracleForms
 share/gitea/options/gitignore/Otto
+share/gitea/options/gitignore/PSoCCreator
 share/gitea/options/gitignore/Packer
+share/gitea/options/gitignore/Patch
 share/gitea/options/gitignore/Perl
+share/gitea/options/gitignore/Perl6
 share/gitea/options/gitignore/Phalcon
 share/gitea/options/gitignore/PlayFramework
 share/gitea/options/gitignore/Plone
@@ -589,6 +598,8 @@ share/gitea/public/img/dingtalk.ico
 share/gitea/public/img/discord.png
 share/gitea/public/img/favicon.ico
 share/gitea/public/img/favicon.png
+share/gitea/public/img/gitea-192.png
+share/gitea/public/img/gitea-512.png
 share/gitea/public/img/gitea-lg.png
 share/gitea/public/img/gitea-safari.svg
 share/gitea/public/img/gitea-sm.png
@@ -1862,6 +1873,7 @@ share/gitea/public/vendor/plugins/jquery.minicolors/jquery.minicolors.min.js
 share/gitea/public/vendor/plugins/jquery.minicolors/jquery.minicolors.png
 share/gitea/public/vendor/plugins/jquery/LICENSE
 share/gitea/public/vendor/plugins/jquery/jquery.min.js
+share/gitea/public/vendor/plugins/moment/moment.min.js
 share/gitea/public/vendor/plugins/pdfjs/LICENSE
 share/gitea/public/vendor/plugins/pdfjs/build/pdf.js
 share/gitea/public/vendor/plugins/pdfjs/build/pdf.worker.js
@@ -1993,6 +2005,8 @@ share/gitea/public/vendor/plugins/simplemde/simplemde.min.js
 share/gitea/public/vendor/plugins/tribute/tribute.css
 share/gitea/public/vendor/plugins/tribute/tribute.min.js
 share/gitea/public/vendor/plugins/u2f/index.js
+share/gitea/public/vendor/plugins/vue-calendar-heatmap/vue-calendar-heatmap.browser.js
+share/gitea/public/vendor/plugins/vue-calendar-heatmap/vue-calendar-heatmap.css
 share/gitea/public/vendor/plugins/vue/LICENSE
 share/gitea/public/vendor/plugins/vue/vue.min.js
 share/gitea/templates/admin/auth/edit.tmpl
@@ -2056,10 +2070,13 @@ share/gitea/templates/org/settings/hooks.tmpl
 share/gitea/templates/org/settings/navbar.tmpl
 share/gitea/templates/org/settings/options.tmpl
 share/gitea/templates/org/team/members.tmpl
+share/gitea/templates/org/team/navbar.tmpl
 share/gitea/templates/org/team/new.tmpl
 share/gitea/templates/org/team/repositories.tmpl
 share/gitea/templates/org/team/sidebar.tmpl
 share/gitea/templates/org/team/teams.tmpl
+share/gitea/templates/pwa/manifest_json.tmpl
+share/gitea/templates/pwa/serviceworker_js.tmpl
 share/gitea/templates/repo/activity.tmpl
 share/gitea/templates/repo/bare.tmpl
 share/gitea/templates/repo/branch/list.tmpl
@@ -2091,6 +2108,7 @@ share/gitea/templates/repo/issue/comment_tab.tmpl
 share/gitea/templates/repo/issue/label_precolors.tmpl
 share/gitea/templates/repo/issue/labels.tmpl
 share/gitea/templates/repo/issue/list.tmpl
+share/gitea/templates/repo/issue/milestone_issues.tmpl
 share/gitea/templates/repo/issue/milestone_new.tmpl
 share/gitea/templates/repo/issue/milestones.tmpl
 share/gitea/templates/repo/issue/navbar.tmpl
diff --git a/gitea/distinfo b/gitea/distinfo
index 33f4433110..d7c29e0b03 100644
--- a/gitea/distinfo
+++ b/gitea/distinfo
@@ -1,14 +1,13 @@
 $NetBSD: distinfo,v 1.1 2017/08/17 01:08:30 gavan Exp $
 
-SHA1 (gitea-1.6.0.tar.gz) = b74fed183233a86e31f4c827ea16b3a35a0e0520
-RMD160 (gitea-1.6.0.tar.gz) = 25024e86f2bea8c187b9a555eb4d92ab0d2a65c9
-SHA512 (gitea-1.6.0.tar.gz) = 67591fd610bc16909c9cbddc9d55b7b60653934c0f77cf6cb0c3b92c8e3b884bc0b9bdd5ccb70a3897859a86caa4ebe807bb3ab988455f5516dcc95745c8d0a4
-Size (gitea-1.6.0.tar.gz) = 19508474 bytes
+SHA1 (gitea-1.7.1.tar.gz) = 2860dcd70b8fb56ab11977a834eb870ee0c044fd
+RMD160 (gitea-1.7.1.tar.gz) = a85603e08b3bd48b42637062554c49cc465f912d
+SHA512 (gitea-1.7.1.tar.gz) = b8e9fba09d34c8929d3ad04417a106a0c3b4b4d0982a7d4c92c764113d29a2e2016a9bee378955dbb9d3839850e481cdad0e94ed1b700c9eda85f63a0ada8e78
+Size (gitea-1.7.1.tar.gz) = 20834721 bytes
 SHA1 (patch-vendor_github.com_edsrzf_mmap-go_mmap.go) = fb6036fca52ad3ecf779080849a015fee640aba5
 SHA1 (patch-vendor_github.com_edsrzf_mmap-go_mmap__solaris.go) = f4341dfab2b452f926353350ce861aa75e3e47f9
 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_golang.org_x_sys_unix_syscall__solaris.go) = 528a267b3e193da80c8ac02d63aa70771d4c9665
-SHA1 (patch-vendor_golang.org_x_sys_unix_zsyscall__solaris__amd64.go) = f4bd79d931f13d76096ef8d8f744e5f9bbae9bc2
+SHA1 (patch-vendor_gopkg.in_src-d_go-billy.v4_osfs_os__posix.go) = d8f2684acc2aeadd02761bff7506cb5789d92a72
diff --git a/gitea/patches/patch-vendor_golang.org_x_sys_unix_syscall__solaris.go b/gitea/patches/patch-vendor_golang.org_x_sys_unix_syscall__solaris.go
deleted file mode 100644
index 7c53997574..0000000000
--- a/gitea/patches/patch-vendor_golang.org_x_sys_unix_syscall__solaris.go
+++ /dev/null
@@ -1,12 +0,0 @@
-$NetBSD$
-
---- vendor/golang.org/x/sys/unix/syscall_solaris.go.orig	2018-08-10 17:16:53.000000000 +0000
-+++ vendor/golang.org/x/sys/unix/syscall_solaris.go
-@@ -611,6 +611,7 @@ func IoctlGetTermio(fd int, req int) (*T
- //sys	Mlock(b []byte) (err error)
- //sys	Mlockall(flags int) (err error)
- //sys	Mprotect(b []byte, prot int) (err error)
-+//sys	Msync(b []byte, flags int) (err error)
- //sys	Munlock(b []byte) (err error)
- //sys	Munlockall() (err error)
- //sys	Nanosleep(time *Timespec, leftover *Timespec) (err error)
diff --git a/gitea/patches/patch-vendor_golang.org_x_sys_unix_zsyscall__solaris__amd64.go b/gitea/patches/patch-vendor_golang.org_x_sys_unix_zsyscall__solaris__amd64.go
deleted file mode 100644
index 9c6dc7104e..0000000000
--- a/gitea/patches/patch-vendor_golang.org_x_sys_unix_zsyscall__solaris__amd64.go
+++ /dev/null
@@ -1,47 +0,0 @@
-$NetBSD$
-
---- vendor/golang.org/x/sys/unix/zsyscall_solaris_amd64.go.orig	2018-08-10 17:16:53.000000000 +0000
-+++ vendor/golang.org/x/sys/unix/zsyscall_solaris_amd64.go
-@@ -70,6 +70,7 @@ import (
- //go:cgo_import_dynamic libc_mlock mlock "libc.so"
- //go:cgo_import_dynamic libc_mlockall mlockall "libc.so"
- //go:cgo_import_dynamic libc_mprotect mprotect "libc.so"
-+//go:cgo_import_dynamic libc_msync msync "libc.so"
- //go:cgo_import_dynamic libc_munlock munlock "libc.so"
- //go:cgo_import_dynamic libc_munlockall munlockall "libc.so"
- //go:cgo_import_dynamic libc_nanosleep nanosleep "libc.so"
-@@ -185,6 +186,7 @@ import (
- //go:linkname procMlock libc_mlock
- //go:linkname procMlockall libc_mlockall
- //go:linkname procMprotect libc_mprotect
-+//go:linkname procMsync libc_msync
- //go:linkname procMunlock libc_munlock
- //go:linkname procMunlockall libc_munlockall
- //go:linkname procNanosleep libc_nanosleep
-@@ -301,6 +303,7 @@ var (
- 	procMlock,
- 	procMlockall,
- 	procMprotect,
-+	procMsync,
- 	procMunlock,
- 	procMunlockall,
- 	procNanosleep,
-@@ -972,6 +975,18 @@ func Mprotect(b []byte, prot int) (err e
- 	if e1 != 0 {
- 		err = e1
- 	}
-+	return
-+}
-+
-+func Msync(b []byte, flags int) (err error) {
-+	var _p0 *byte
-+	if len(b) > 0 {
-+		_p0 = &b[0]
-+	}
-+	_, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&procMsync)), 3, uintptr(unsafe.Pointer(_p0)), uintptr(len(b)), uintptr(flags), 0, 0, 0)
-+	if e1 != 0 {
-+		err = e1
-+	}
- 	return
- }
- 
diff --git a/gitea/patches/patch-vendor_gopkg.in_src-d_go-billy.v4_osfs_os__posix.go b/gitea/patches/patch-vendor_gopkg.in_src-d_go-billy.v4_osfs_os__posix.go
new file mode 100644
index 0000000000..3e83a9aab2
--- /dev/null
+++ b/gitea/patches/patch-vendor_gopkg.in_src-d_go-billy.v4_osfs_os__posix.go
@@ -0,0 +1,27 @@
+$NetBSD$
+
+--- vendor/gopkg.in/src-d/go-billy.v4/osfs/os_posix.go.orig	2019-02-11 23:54:21.666290102 +0000
++++ vendor/gopkg.in/src-d/go-billy.v4/osfs/os_posix.go
+@@ -3,19 +3,19 @@
+ package osfs
+ 
+ import (
+-	"syscall"
++	"golang.org/x/sys/unix"
+ )
+ 
+ func (f *file) Lock() error {
+ 	f.m.Lock()
+ 	defer f.m.Unlock()
+ 
+-	return syscall.Flock(int(f.File.Fd()), syscall.LOCK_EX)
++	return unix.Flock(int(f.File.Fd()), unix.LOCK_EX)
+ }
+ 
+ func (f *file) Unlock() error {
+ 	f.m.Lock()
+ 	defer f.m.Unlock()
+ 
+-	return syscall.Flock(int(f.File.Fd()), syscall.LOCK_UN)
++	return unix.Flock(int(f.File.Fd()), unix.LOCK_UN)
+ }


Home | Main Index | Thread Index | Old Index