pkgsrc-WIP-changes archive

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

Update gitea to 1.5.0



Module Name:	pkgsrc-wip
Committed By:	Antonio Huete Jimenez <tuxillo%quantumachine.net@localhost>
Pushed By:	tuxillo
Date:		Mon Aug 27 18:15:52 2018 +0000
Changeset:	f361e893358e08ecd6b10e0d6ff0c58039efa56c

Modified Files:
	gitea/Makefile
	gitea/PLIST
	gitea/distinfo
Added Files:
	gitea/patches/patch-vendor_github.com_edsrzf_mmap-go_mmap.go
	gitea/patches/patch-vendor_github.com_edsrzf_mmap-go_mmap__solaris.go
	gitea/patches/patch-vendor_github.com_edsrzf_mmap-go_mmap__sys.go
	gitea/patches/patch-vendor_github.com_edsrzf_mmap-go_mmap__syscall.go
	gitea/patches/patch-vendor_github.com_edsrzf_mmap-go_mmap__unix.go
	gitea/patches/patch-vendor_github.com_edsrzf_mmap-go_msync__unix.go
	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 gitea to 1.5.0

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

SECURITY
- Check that repositories can only be migrated to own user or organizations (#4366) (#4370)
- Limit uploaded avatar image-size to 4096px x 3072px by default (#4353)
- Do not allow to reuse TOTP passcode (#3878)

BUGFIXES
- Fix column droping for MSSQL that need new transaction for that (#4440) (#4484)
- Redirect to correct page after using scratch token (#4458) (#4472)
- Replace src with raw to fix image paths (#4377) (#4386)
- Fixes repo membership check in API (#4341) (#4379)
- Add default merge options when adding new repository (#4369) (#4373)
- Fix repository last updated time update when delete a user who watched the repo (#4363) (#4371)
- Fix html entity escaping in branch deletion message (#4471) (#4485)
- Fix out-of-transaction query in removeOrgUser (#4521) (#4524)
- Fix incorrect MergeWhitelistTeamIDs check in CanUserMerge function (#4519)
- Fix panic issue on update avatar email (#4580) (#4590)
- Fix bugs when too many IN variables (#4594) (#4597)
- Push whitelist now doesn't apply to branch deletion (#4601) (#4640)
- Site admin could create repos even MAX_CREATION_LIMIT=0 (#4645) (#4650)

FEATURE
- Add cli commands to regen hooks & keys (#3979)
- Add support for FIDO U2F (#3971)
- Added user language setting (#3875)
- LDAP Public SSH Keys synchronization (#1844)
- Add topic support (#3711)
- Multiple assignees (#3705)
- Add protected branch whitelists for merging (#3689)
- Global code search support (#3664)
- Add label descriptions (#3662)
- Add issue search via API (#3612)
- Add repository setting to enable/disable health checks (#3607)
- Emoji Autocomplete (#3433)
- Implements generator cli for secrets (#3531)

ENHANCEMENT
- Add more webhooks support and refactor webhook templates directory (#3929)
- Add new option to allow only OAuth2/OpenID user registration (#3910)
- Add option to use paged LDAP search when synchronizing users (#3895)
- Symlink icons (#1416)
- Improve release page UI (#3693)
- Add admin dashboard option to run health checks (#3606)
- Add branch link in branch list (#3576)
- Reduce sql query times in retrieveFeeds (#3547)
- Option to enable or disable swagger endpoints (#3502)
- Add missing licenses (#3497)
- Reduce repo indexer disk usage (#3452)
- Enable caching on assets and avatars (#3376)
- Add repository search ordered by stars/forks. Forks column in admin repo list (#3969)
- Add Environment Variables to Docker template (#4012)
- LFS: make HTTP auth period configurable (#4035)
- Add config path as an optionial flag when changing pass via CLI (#4184)
- Refactor User Settings sections (#3900)
- Allow square brackets in external issue patterns (#3408)
- Add Attachment API (#3478)
- Add EnableTimetracking option to app settings (#3719)
- Add config option to enable or disable log executed SQL (#3726)
- Shows total tracked time in issue and milestone list (#3341)

TRANSLATION
- Improve English grammar and consistency (#3614)

DEPLOYMENT
- Allow Gitea to run as different USER in Docker (#3961)
- Provide compressed release binaries (#3991)
- Sign release binaries (#4188)

Thanks to Github user @john-tho who fixed the build of edsrzf/mmap-go
for SmartOS.

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

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                                        | 108 +++++++++++++++------
 gitea/distinfo                                     |  16 ++-
 .../patch-vendor_github.com_edsrzf_mmap-go_mmap.go |  42 ++++++++
 ...ndor_github.com_edsrzf_mmap-go_mmap__solaris.go |  73 ++++++++++++++
 ...h-vendor_github.com_edsrzf_mmap-go_mmap__sys.go |  42 ++++++++
 ...ndor_github.com_edsrzf_mmap-go_mmap__syscall.go |  46 +++++++++
 ...-vendor_github.com_edsrzf_mmap-go_mmap__unix.go |  13 +++
 ...vendor_github.com_edsrzf_mmap-go_msync__unix.go |  13 +++
 ...endor_golang.org_x_sys_unix_syscall__solaris.go |  12 +++
 ...lang.org_x_sys_unix_zsyscall__solaris__amd64.go |  47 +++++++++
 11 files changed, 377 insertions(+), 37 deletions(-)

diffs:
diff --git a/gitea/Makefile b/gitea/Makefile
index 803498e838..d9906d817b 100644
--- a/gitea/Makefile
+++ b/gitea/Makefile
@@ -1,7 +1,7 @@
 # $NetBSD$
 
 DISTNAME=	gitea-${PKGVERSION}
-GITHUB_TAG=	v1.4.3
+GITHUB_TAG=	v1.5.0
 PKGVERSION=	${GITHUB_TAG:S/v//}
 MASTER_SITES=	${MASTER_SITE_GITHUB:=go-gitea/}
 CATEGORIES=	www
diff --git a/gitea/PLIST b/gitea/PLIST
index a66636524f..3490be5b3b 100644
--- a/gitea/PLIST
+++ b/gitea/PLIST
@@ -1,5 +1,4 @@
 @comment $NetBSD$
-lib/svc/manifest/gitea.xml
 sbin/gitea
 share/examples/gitea/app.ini.sample
 share/gitea/options/gitignore/Actionscript
@@ -184,6 +183,7 @@ share/gitea/options/gitignore/Zephir
 share/gitea/options/gitignore/macOS
 share/gitea/options/label/Default
 share/gitea/options/license/0BSD
+share/gitea/options/license/389-exception
 share/gitea/options/license/AAL
 share/gitea/options/license/ADSL
 share/gitea/options/license/AFL-1.1
@@ -192,7 +192,8 @@ share/gitea/options/license/AFL-2.0
 share/gitea/options/license/AFL-2.1
 share/gitea/options/license/AFL-3.0
 share/gitea/options/license/AGPL-1.0
-share/gitea/options/license/AGPL-3.0
+share/gitea/options/license/AGPL-3.0-only
+share/gitea/options/license/AGPL-3.0-or-later
 share/gitea/options/license/AMDPLPA
 share/gitea/options/license/AML
 share/gitea/options/license/AMPAS
@@ -215,9 +216,13 @@ share/gitea/options/license/Artistic-1.0
 share/gitea/options/license/Artistic-1.0-Perl
 share/gitea/options/license/Artistic-1.0-cl8
 share/gitea/options/license/Artistic-2.0
+share/gitea/options/license/Autoconf-exception-2.0
+share/gitea/options/license/Autoconf-exception-3.0
+share/gitea/options/license/BSD-1-Clause
 share/gitea/options/license/BSD-2-Clause
 share/gitea/options/license/BSD-2-Clause-FreeBSD
 share/gitea/options/license/BSD-2-Clause-NetBSD
+share/gitea/options/license/BSD-2-Clause-Patent
 share/gitea/options/license/BSD-3-Clause
 share/gitea/options/license/BSD-3-Clause-Attribution
 share/gitea/options/license/BSD-3-Clause-Clear
@@ -233,8 +238,10 @@ share/gitea/options/license/BSL-1.0
 share/gitea/options/license/Bahyph
 share/gitea/options/license/Barr
 share/gitea/options/license/Beerware
+share/gitea/options/license/Bison-exception-2.2
 share/gitea/options/license/BitTorrent-1.0
 share/gitea/options/license/BitTorrent-1.1
+share/gitea/options/license/Bootloader-exception
 share/gitea/options/license/Borceux
 share/gitea/options/license/CATOSL-1.1
 share/gitea/options/license/CC-BY-1.0
@@ -264,12 +271,15 @@ share/gitea/options/license/CC-BY-SA-4.0
 share/gitea/options/license/CC0-1.0
 share/gitea/options/license/CDDL-1.0
 share/gitea/options/license/CDDL-1.1
+share/gitea/options/license/CDLA-Permissive-1.0
+share/gitea/options/license/CDLA-Sharing-1.0
 share/gitea/options/license/CECILL-1.0
 share/gitea/options/license/CECILL-1.1
 share/gitea/options/license/CECILL-2.0
 share/gitea/options/license/CECILL-2.1
 share/gitea/options/license/CECILL-B
 share/gitea/options/license/CECILL-C
+share/gitea/options/license/CLISP-exception-2.0
 share/gitea/options/license/CNRI-Jython
 share/gitea/options/license/CNRI-Python
 share/gitea/options/license/CNRI-Python-GPL-Compatible
@@ -279,6 +289,7 @@ share/gitea/options/license/CPOL-1.02
 share/gitea/options/license/CUA-OPL-1.0
 share/gitea/options/license/Caldera
 share/gitea/options/license/ClArtistic
+share/gitea/options/license/Classpath-exception-2.0
 share/gitea/options/license/Condor-1.1
 share/gitea/options/license/Crossword
 share/gitea/options/license/CrystalStacker
@@ -286,32 +297,46 @@ share/gitea/options/license/Cube
 share/gitea/options/license/D-FSL-1.0
 share/gitea/options/license/DOC
 share/gitea/options/license/DSDP
+share/gitea/options/license/DigiRule-FOSS-exception
 share/gitea/options/license/Dotseqn
 share/gitea/options/license/ECL-1.0
 share/gitea/options/license/ECL-2.0
 share/gitea/options/license/EFL-1.0
 share/gitea/options/license/EFL-2.0
 share/gitea/options/license/EPL-1.0
+share/gitea/options/license/EPL-2.0
 share/gitea/options/license/EUDatagrid
 share/gitea/options/license/EUPL-1.0
 share/gitea/options/license/EUPL-1.1
+share/gitea/options/license/EUPL-1.2
 share/gitea/options/license/Entessa
 share/gitea/options/license/ErlPL-1.1
 share/gitea/options/license/Eurosym
+share/gitea/options/license/FLTK-exception
 share/gitea/options/license/FSFAP
 share/gitea/options/license/FSFUL
 share/gitea/options/license/FSFULLR
 share/gitea/options/license/FTL
 share/gitea/options/license/Fair
+share/gitea/options/license/Fawkes-Runtime-exception
+share/gitea/options/license/Font-exception-2.0
 share/gitea/options/license/Frameworx-1.0
 share/gitea/options/license/FreeImage
-share/gitea/options/license/GFDL-1.1
-share/gitea/options/license/GFDL-1.2
-share/gitea/options/license/GFDL-1.3
+share/gitea/options/license/GCC-exception-2.0
+share/gitea/options/license/GCC-exception-3.1
+share/gitea/options/license/GFDL-1.1-only
+share/gitea/options/license/GFDL-1.1-or-later
+share/gitea/options/license/GFDL-1.2-only
+share/gitea/options/license/GFDL-1.2-or-later
+share/gitea/options/license/GFDL-1.3-only
+share/gitea/options/license/GFDL-1.3-or-later
 share/gitea/options/license/GL2PS
-share/gitea/options/license/GPL-1.0
-share/gitea/options/license/GPL-2.0
-share/gitea/options/license/GPL-3.0
+share/gitea/options/license/GPL-1.0-only
+share/gitea/options/license/GPL-1.0-or-later
+share/gitea/options/license/GPL-2.0-only
+share/gitea/options/license/GPL-2.0-or-later
+share/gitea/options/license/GPL-3.0-only
+share/gitea/options/license/GPL-3.0-or-later
 share/gitea/options/license/Giftware
 share/gitea/options/license/Glide
 share/gitea/options/license/Glulxe
@@ -333,9 +358,12 @@ share/gitea/options/license/JSON
 share/gitea/options/license/JasPer-2.0
 share/gitea/options/license/LAL-1.2
 share/gitea/options/license/LAL-1.3
-share/gitea/options/license/LGPL-2.0
-share/gitea/options/license/LGPL-2.1
-share/gitea/options/license/LGPL-3.0
+share/gitea/options/license/LGPL-2.0-only
+share/gitea/options/license/LGPL-2.0-or-later
+share/gitea/options/license/LGPL-2.1-only
+share/gitea/options/license/LGPL-2.1-or-later
+share/gitea/options/license/LGPL-3.0-only
+share/gitea/options/license/LGPL-3.0-or-later
 share/gitea/options/license/LGPLLR
 share/gitea/options/license/LPL-1.0
 share/gitea/options/license/LPL-1.02
@@ -344,12 +372,15 @@ share/gitea/options/license/LPPL-1.1
 share/gitea/options/license/LPPL-1.2
 share/gitea/options/license/LPPL-1.3a
 share/gitea/options/license/LPPL-1.3c
+share/gitea/options/license/LZMA-exception
 share/gitea/options/license/Latex2e
 share/gitea/options/license/Leptonica
 share/gitea/options/license/LiLiQ-P-1.1
 share/gitea/options/license/LiLiQ-R-1.1
 share/gitea/options/license/LiLiQ-Rplus-1.1
 share/gitea/options/license/Libpng
+share/gitea/options/license/Libtool-exception
+share/gitea/options/license/Linux-syscall-note
 share/gitea/options/license/MIT
 share/gitea/options/license/MIT-CMU
 share/gitea/options/license/MIT-advertising
@@ -385,9 +416,10 @@ share/gitea/options/license/Net-SNMP
 share/gitea/options/license/NetCDF
 share/gitea/options/license/Newsletr
 share/gitea/options/license/Nokia
+share/gitea/options/license/Nokia-Qt-exception-1.1
 share/gitea/options/license/Noweb
-share/gitea/options/license/Nunit
 share/gitea/options/license/OCCT-PL
+share/gitea/options/license/OCCT-exception-1.0
 share/gitea/options/license/OCLC-2.0
 share/gitea/options/license/ODbL-1.0
 share/gitea/options/license/OFL-1.0
@@ -423,6 +455,7 @@ share/gitea/options/license/PostgreSQL
 share/gitea/options/license/Python-2.0
 share/gitea/options/license/QPL-1.0
 share/gitea/options/license/Qhull
+share/gitea/options/license/Qwt-exception-1.0
 share/gitea/options/license/RHeCos-1.1
 share/gitea/options/license/RPL-1.1
 share/gitea/options/license/RPSL-1.0
@@ -460,7 +493,6 @@ share/gitea/options/license/Unicode-DFS-2015
 share/gitea/options/license/Unicode-DFS-2016
 share/gitea/options/license/Unicode-TOU
 share/gitea/options/license/Unlicense
-share/gitea/options/license/Updating the SPDX Licenses
 share/gitea/options/license/VOSTROM
 share/gitea/options/license/VSL-1.0
 share/gitea/options/license/Vim
@@ -470,6 +502,7 @@ share/gitea/options/license/W3C-20150513
 share/gitea/options/license/WTFPL
 share/gitea/options/license/Watcom-1.0
 share/gitea/options/license/Wsuipa
+share/gitea/options/license/WxWindows-exception-3.1
 share/gitea/options/license/X11
 share/gitea/options/license/XFree86-1.1
 share/gitea/options/license/XSkat
@@ -488,14 +521,21 @@ share/gitea/options/license/Zlib
 share/gitea/options/license/curl
 share/gitea/options/license/diffmark
 share/gitea/options/license/dvipdfm
+share/gitea/options/license/eCos-exception-2.0
 share/gitea/options/license/eGenix
+share/gitea/options/license/freertos-exception-2.0
 share/gitea/options/license/gSOAP-1.3b
+share/gitea/options/license/gnu-javamail-exception
 share/gitea/options/license/gnuplot
+share/gitea/options/license/i2p-gpl-java-exception
 share/gitea/options/license/iMatix
 share/gitea/options/license/libtiff
+share/gitea/options/license/mif-exception
 share/gitea/options/license/mpich2
+share/gitea/options/license/openvpn-openssl-exception
 share/gitea/options/license/psfrag
 share/gitea/options/license/psutils
+share/gitea/options/license/u-boot-exception-2.0
 share/gitea/options/license/xinetd
 share/gitea/options/license/xpp
 share/gitea/options/license/zlib-acknowledgement
@@ -567,6 +607,7 @@ share/gitea/public/less/_install.less
 share/gitea/public/less/_markdown.less
 share/gitea/public/less/_organization.less
 share/gitea/public/less/_repository.less
+share/gitea/public/less/_tribute.less
 share/gitea/public/less/_user.less
 share/gitea/public/less/index.less
 share/gitea/public/swagger.v1.json
@@ -601,8 +642,6 @@ share/gitea/public/vendor/assets/swagger-ui/swagger-ui.css.map
 share/gitea/public/vendor/assets/swagger-ui/swagger-ui.js
 share/gitea/public/vendor/assets/swagger-ui/swagger-ui.js.map
 share/gitea/public/vendor/librejs.html
-share/gitea/public/vendor/plugins/autolink/LICENSE
-share/gitea/public/vendor/plugins/autolink/autolink.js
 share/gitea/public/vendor/plugins/clipboard/LICENSE
 share/gitea/public/vendor/plugins/clipboard/clipboard.min.js
 share/gitea/public/vendor/plugins/codemirror/.gitattributes
@@ -1914,6 +1953,7 @@ share/gitea/public/vendor/plugins/simplemde/simplemde.min.css
 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/LICENSE
 share/gitea/public/vendor/plugins/vue/vue.min.js
 share/gitea/templates/admin/auth/edit.tmpl
@@ -1931,6 +1971,7 @@ share/gitea/templates/admin/navbar.tmpl
 share/gitea/templates/admin/notice.tmpl
 share/gitea/templates/admin/org/list.tmpl
 share/gitea/templates/admin/repo/list.tmpl
+share/gitea/templates/admin/repo/search.tmpl
 share/gitea/templates/admin/user/edit.tmpl
 share/gitea/templates/admin/user/list.tmpl
 share/gitea/templates/admin/user/new.tmpl
@@ -1947,9 +1988,11 @@ share/gitea/templates/custom/extra_links.tmpl
 share/gitea/templates/custom/extra_tabs.tmpl
 share/gitea/templates/custom/footer.tmpl
 share/gitea/templates/custom/header.tmpl
+share/gitea/templates/explore/code.tmpl
 share/gitea/templates/explore/navbar.tmpl
 share/gitea/templates/explore/organizations.tmpl
 share/gitea/templates/explore/repo_list.tmpl
+share/gitea/templates/explore/repo_search.tmpl
 share/gitea/templates/explore/repos.tmpl
 share/gitea/templates/explore/search.tmpl
 share/gitea/templates/explore/users.tmpl
@@ -2029,21 +2072,21 @@ share/gitea/templates/repo/settings/collaboration.tmpl
 share/gitea/templates/repo/settings/deploy_keys.tmpl
 share/gitea/templates/repo/settings/githook_edit.tmpl
 share/gitea/templates/repo/settings/githooks.tmpl
-share/gitea/templates/repo/settings/hook_delete_modal.tmpl
-share/gitea/templates/repo/settings/hook_dingtalk.tmpl
-share/gitea/templates/repo/settings/hook_discord.tmpl
-share/gitea/templates/repo/settings/hook_gitea.tmpl
-share/gitea/templates/repo/settings/hook_gogs.tmpl
-share/gitea/templates/repo/settings/hook_history.tmpl
-share/gitea/templates/repo/settings/hook_list.tmpl
-share/gitea/templates/repo/settings/hook_new.tmpl
-share/gitea/templates/repo/settings/hook_settings.tmpl
-share/gitea/templates/repo/settings/hook_slack.tmpl
-share/gitea/templates/repo/settings/hooks.tmpl
 share/gitea/templates/repo/settings/nav.tmpl
 share/gitea/templates/repo/settings/navbar.tmpl
 share/gitea/templates/repo/settings/options.tmpl
 share/gitea/templates/repo/settings/protected_branch.tmpl
+share/gitea/templates/repo/settings/webhook/base.tmpl
+share/gitea/templates/repo/settings/webhook/delete_modal.tmpl
+share/gitea/templates/repo/settings/webhook/dingtalk.tmpl
+share/gitea/templates/repo/settings/webhook/discord.tmpl
+share/gitea/templates/repo/settings/webhook/gitea.tmpl
+share/gitea/templates/repo/settings/webhook/gogs.tmpl
+share/gitea/templates/repo/settings/webhook/history.tmpl
+share/gitea/templates/repo/settings/webhook/list.tmpl
+share/gitea/templates/repo/settings/webhook/new.tmpl
+share/gitea/templates/repo/settings/webhook/settings.tmpl
+share/gitea/templates/repo/settings/webhook/slack.tmpl
 share/gitea/templates/repo/sub_menu.tmpl
 share/gitea/templates/repo/user_cards.tmpl
 share/gitea/templates/repo/view_file.tmpl
@@ -2073,6 +2116,8 @@ share/gitea/templates/user/auth/signup_openid_navbar.tmpl
 share/gitea/templates/user/auth/signup_openid_register.tmpl
 share/gitea/templates/user/auth/twofa.tmpl
 share/gitea/templates/user/auth/twofa_scratch.tmpl
+share/gitea/templates/user/auth/u2f.tmpl
+share/gitea/templates/user/auth/u2f_error.tmpl
 share/gitea/templates/user/dashboard/dashboard.tmpl
 share/gitea/templates/user/dashboard/feeds.tmpl
 share/gitea/templates/user/dashboard/issues.tmpl
@@ -2082,21 +2127,20 @@ share/gitea/templates/user/meta/header.tmpl
 share/gitea/templates/user/meta/stars.tmpl
 share/gitea/templates/user/notification/notification.tmpl
 share/gitea/templates/user/profile.tmpl
-share/gitea/templates/user/settings/account_link.tmpl
+share/gitea/templates/user/settings/account.tmpl
 share/gitea/templates/user/settings/applications.tmpl
-share/gitea/templates/user/settings/avatar.tmpl
-share/gitea/templates/user/settings/delete.tmpl
-share/gitea/templates/user/settings/email.tmpl
 share/gitea/templates/user/settings/keys.tmpl
 share/gitea/templates/user/settings/keys_gpg.tmpl
 share/gitea/templates/user/settings/keys_ssh.tmpl
 share/gitea/templates/user/settings/navbar.tmpl
-share/gitea/templates/user/settings/openid.tmpl
 share/gitea/templates/user/settings/organization.tmpl
 share/gitea/templates/user/settings/profile.tmpl
 share/gitea/templates/user/settings/repos.tmpl
 share/gitea/templates/user/settings/security.tmpl
-share/gitea/templates/user/settings/twofa.tmpl
+share/gitea/templates/user/settings/security_accountlinks.tmpl
+share/gitea/templates/user/settings/security_openid.tmpl
+share/gitea/templates/user/settings/security_twofa.tmpl
+share/gitea/templates/user/settings/security_u2f.tmpl
 share/gitea/templates/user/settings/twofa_enroll.tmpl
 @pkgdir gopkg
 @pkgdir bin
diff --git a/gitea/distinfo b/gitea/distinfo
index f1f53f8963..ef9c4a8a58 100644
--- a/gitea/distinfo
+++ b/gitea/distinfo
@@ -1,6 +1,14 @@
 $NetBSD: distinfo,v 1.1 2017/08/17 01:08:30 gavan Exp $
 
-SHA1 (gitea-1.4.3.tar.gz) = 9cd0002b94e927dced2a6e461f077bd4d840252f
-RMD160 (gitea-1.4.3.tar.gz) = 84f465af8c9b26efb39de4bffebb8612854b6001
-SHA512 (gitea-1.4.3.tar.gz) = 24498b418b9ddb14da5568a206e1fa0831c5789e0b64207f413c3b86e2a855052f7af80d3cb80549eaae6944e22af271c00f6308c66487c3be0dccf55a17976a
-Size (gitea-1.4.3.tar.gz) = 14985783 bytes
+SHA1 (gitea-1.5.0.tar.gz) = 3a41773d30cf0ef80871ba084a4a1ae31fad3ba5
+RMD160 (gitea-1.5.0.tar.gz) = 7d92b32f0a7e7c24f82ca341b636cc8f8e4ccb2e
+SHA512 (gitea-1.5.0.tar.gz) = 06cbcadc138496abf500b8d219d0770c5f6b8af419f9c3733596ee7e20cb50235815433979b2b1daa0a6117e6eb84de9678667236549e018079c49b793f22d68
+Size (gitea-1.5.0.tar.gz) = 18847969 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
diff --git a/gitea/patches/patch-vendor_github.com_edsrzf_mmap-go_mmap.go b/gitea/patches/patch-vendor_github.com_edsrzf_mmap-go_mmap.go
new file mode 100644
index 0000000000..74869fc205
--- /dev/null
+++ b/gitea/patches/patch-vendor_github.com_edsrzf_mmap-go_mmap.go
@@ -0,0 +1,42 @@
+$NetBSD$
+
+--- vendor/github.com/edsrzf/mmap-go/mmap.go.orig	2018-08-10 17:16:53.000000000 +0000
++++ vendor/github.com/edsrzf/mmap-go/mmap.go
+@@ -80,37 +80,3 @@ func MapRegion(f *os.File, length int, p
+ func (m *MMap) header() *reflect.SliceHeader {
+ 	return (*reflect.SliceHeader)(unsafe.Pointer(m))
+ }
+-
+-// Lock keeps the mapped region in physical memory, ensuring that it will not be
+-// swapped out.
+-func (m MMap) Lock() error {
+-	dh := m.header()
+-	return lock(dh.Data, uintptr(dh.Len))
+-}
+-
+-// Unlock reverses the effect of Lock, allowing the mapped region to potentially
+-// be swapped out.
+-// If m is already unlocked, aan error will result.
+-func (m MMap) Unlock() error {
+-	dh := m.header()
+-	return unlock(dh.Data, uintptr(dh.Len))
+-}
+-
+-// Flush synchronizes the mapping's contents to the file's contents on disk.
+-func (m MMap) Flush() error {
+-	dh := m.header()
+-	return flush(dh.Data, uintptr(dh.Len))
+-}
+-
+-// Unmap deletes the memory mapped region, flushes any remaining changes, and sets
+-// m to nil.
+-// Trying to read or write any remaining references to m after Unmap is called will
+-// result in undefined behavior.
+-// Unmap should only be called on the slice value that was originally returned from
+-// a call to Map. Calling Unmap on a derived slice may cause errors.
+-func (m *MMap) Unmap() error {
+-	dh := m.header()
+-	err := unmap(dh.Data, uintptr(dh.Len))
+-	*m = nil
+-	return err
+-}
diff --git a/gitea/patches/patch-vendor_github.com_edsrzf_mmap-go_mmap__solaris.go b/gitea/patches/patch-vendor_github.com_edsrzf_mmap-go_mmap__solaris.go
new file mode 100644
index 0000000000..21a8d0538c
--- /dev/null
+++ b/gitea/patches/patch-vendor_github.com_edsrzf_mmap-go_mmap__solaris.go
@@ -0,0 +1,73 @@
+$NetBSD$
+
+--- vendor/github.com/edsrzf/mmap-go/mmap_solaris.go.orig	2018-08-27 13:51:58.191704067 +0000
++++ vendor/github.com/edsrzf/mmap-go/mmap_solaris.go
+@@ -0,0 +1,68 @@
++// Copyright 2011 Evan Shaw. All rights reserved.
++// Use of this source code is governed by a BSD-style
++// license that can be found in the LICENSE file.
++
++// +build solaris
++
++package mmap
++
++
++import (
++	"golang.org/x/sys/unix"
++)
++
++func mmap(len int, inprot, inflags, fd uintptr, off int64) ([]byte, error) {
++	flags := unix.MAP_SHARED
++	prot := unix.PROT_READ
++	switch {
++	case inprot&COPY != 0:
++		prot |= unix.PROT_WRITE
++		flags = unix.MAP_PRIVATE
++	case inprot&RDWR != 0:
++		prot |= unix.PROT_WRITE
++	}
++	if inprot&EXEC != 0 {
++		prot |= unix.PROT_EXEC
++	}
++	if inflags&ANON != 0 {
++		flags |= unix.MAP_ANON
++	}
++
++	b, err := unix.Mmap(int(fd), off, len, prot, flags)
++	if err != nil {
++		return nil, err
++	}
++	return b, nil
++}
++
++func flush(b []byte) error {
++	err := unix.Msync(b, unix.MS_SYNC)
++	if err != nil {
++		return err
++	}
++	return nil
++}
++
++func lock(b []byte) error {
++	err := unix.Mlock(b)
++	if err != nil {
++		return err
++	}
++	return nil
++}
++
++func unlock(b []byte) error {
++	err := unix.Munlock(b)
++	if err != nil {
++		return err
++	}
++	return nil
++}
++
++func unmap(b []byte) error {
++	err := unix.Munmap(b)
++	if err != nil {
++		return err
++	}
++	return nil
++}
diff --git a/gitea/patches/patch-vendor_github.com_edsrzf_mmap-go_mmap__sys.go b/gitea/patches/patch-vendor_github.com_edsrzf_mmap-go_mmap__sys.go
new file mode 100644
index 0000000000..36e4a71ff8
--- /dev/null
+++ b/gitea/patches/patch-vendor_github.com_edsrzf_mmap-go_mmap__sys.go
@@ -0,0 +1,42 @@
+$NetBSD$
+
+--- vendor/github.com/edsrzf/mmap-go/mmap_sys.go.orig	2018-08-27 13:51:58.192140987 +0000
++++ vendor/github.com/edsrzf/mmap-go/mmap_sys.go
+@@ -0,0 +1,37 @@
++// Copyright 2011 Evan Shaw. All rights reserved.
++// Use of this source code is governed by a BSD-style
++// license that can be found in the LICENSE file.
++
++// +build solaris
++
++package mmap
++
++// Lock keeps the mapped region in physical memory, ensuring that it will not be
++// swapped out.
++func (m MMap) Lock() error {
++	return lock([]byte(m))
++}
++
++// Unlock reverses the effect of Lock, allowing the mapped region to potentially
++// be swapped out.
++// If m is already unlocked, aan error will result.
++func (m MMap) Unlock() error {
++	return unlock([]byte(m))
++}
++
++// Flush synchronizes the mapping's contents to the file's contents on disk.
++func (m MMap) Flush() error {
++	return flush([]byte(m))
++}
++
++// Unmap deletes the memory mapped region, flushes any remaining changes, and sets
++// m to nil.
++// Trying to read or write any remaining references to m after Unmap is called will
++// result in undefined behavior.
++// Unmap should only be called on the slice value that was originally returned from
++// a call to Map. Calling Unmap on a derived slice may cause errors.
++func (m *MMap) Unmap() error {
++	err := unmap([]byte(*m))
++	*m = nil
++	return err
++}
diff --git a/gitea/patches/patch-vendor_github.com_edsrzf_mmap-go_mmap__syscall.go b/gitea/patches/patch-vendor_github.com_edsrzf_mmap-go_mmap__syscall.go
new file mode 100644
index 0000000000..73dd3c35d2
--- /dev/null
+++ b/gitea/patches/patch-vendor_github.com_edsrzf_mmap-go_mmap__syscall.go
@@ -0,0 +1,46 @@
+$NetBSD$
+
+--- vendor/github.com/edsrzf/mmap-go/mmap_syscall.go.orig	2018-08-27 13:51:58.192608409 +0000
++++ vendor/github.com/edsrzf/mmap-go/mmap_syscall.go
+@@ -0,0 +1,41 @@
++// Copyright 2011 Evan Shaw. All rights reserved.
++// Use of this source code is governed by a BSD-style
++// license that can be found in the LICENSE file.
++
++// +build !solaris
++
++package mmap
++
++// Lock keeps the mapped region in physical memory, ensuring that it will not be
++// swapped out.
++func (m MMap) Lock() error {
++	dh := m.header()
++	return lock(dh.Data, uintptr(dh.Len))
++}
++
++// Unlock reverses the effect of Lock, allowing the mapped region to potentially
++// be swapped out.
++// If m is already unlocked, aan error will result.
++func (m MMap) Unlock() error {
++	dh := m.header()
++	return unlock(dh.Data, uintptr(dh.Len))
++}
++
++// Flush synchronizes the mapping's contents to the file's contents on disk.
++func (m MMap) Flush() error {
++	dh := m.header()
++	return flush(dh.Data, uintptr(dh.Len))
++}
++
++// Unmap deletes the memory mapped region, flushes any remaining changes, and sets
++// m to nil.
++// Trying to read or write any remaining references to m after Unmap is called will
++// result in undefined behavior.
++// Unmap should only be called on the slice value that was originally returned from
++// a call to Map. Calling Unmap on a derived slice may cause errors.
++func (m *MMap) Unmap() error {
++	dh := m.header()
++	err := unmap(dh.Data, uintptr(dh.Len))
++	*m = nil
++	return err
++}
diff --git a/gitea/patches/patch-vendor_github.com_edsrzf_mmap-go_mmap__unix.go b/gitea/patches/patch-vendor_github.com_edsrzf_mmap-go_mmap__unix.go
new file mode 100644
index 0000000000..93e09f9e4e
--- /dev/null
+++ b/gitea/patches/patch-vendor_github.com_edsrzf_mmap-go_mmap__unix.go
@@ -0,0 +1,13 @@
+$NetBSD$
+
+--- vendor/github.com/edsrzf/mmap-go/mmap_unix.go.orig	2018-08-10 17:16:53.000000000 +0000
++++ vendor/github.com/edsrzf/mmap-go/mmap_unix.go
+@@ -2,7 +2,7 @@
+ // Use of this source code is governed by a BSD-style
+ // license that can be found in the LICENSE file.
+ 
+-// +build darwin dragonfly freebsd linux openbsd solaris netbsd
++// +build darwin dragonfly freebsd linux openbsd !solaris netbsd
+ 
+ package mmap
+ 
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
new file mode 100644
index 0000000000..6a64df87f0
--- /dev/null
+++ b/gitea/patches/patch-vendor_github.com_edsrzf_mmap-go_msync__unix.go
@@ -0,0 +1,13 @@
+$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
+@@ -2,7 +2,7 @@
+ // Use of this source code is governed by a BSD-style
+ // license that can be found in the LICENSE file.
+ 
+-// +build darwin dragonfly freebsd linux openbsd solaris
++// +build darwin dragonfly freebsd linux openbsd !solaris
+ 
+ package mmap
+ 
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
new file mode 100644
index 0000000000..7c53997574
--- /dev/null
+++ b/gitea/patches/patch-vendor_golang.org_x_sys_unix_syscall__solaris.go
@@ -0,0 +1,12 @@
+$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
new file mode 100644
index 0000000000..9c6dc7104e
--- /dev/null
+++ b/gitea/patches/patch-vendor_golang.org_x_sys_unix_zsyscall__solaris__amd64.go
@@ -0,0 +1,47 @@
+$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
+ }
+ 


Home | Main Index | Thread Index | Old Index