diff options
author | V3n3RiX <venerix@koprulu.sector> | 2024-07-16 12:27:58 +0100 |
---|---|---|
committer | V3n3RiX <venerix@koprulu.sector> | 2024-07-16 12:27:58 +0100 |
commit | b6fa31c964a602f8461a77d5b83355e8750c12eb (patch) | |
tree | 323fa7af31640b3ea8bb57fa7a927713f3d64769 /www-apps/gitea | |
parent | 868fd5dc8aab84930cfaa5252b8be06b35552765 (diff) |
gentoo auto-resync : 16:07:2024 - 12:27:58
Diffstat (limited to 'www-apps/gitea')
-rw-r--r-- | www-apps/gitea/Manifest | 7 | ||||
-rw-r--r-- | www-apps/gitea/files/gitea-1.22.0-fix-missing-memcache-import.diff | 18 | ||||
-rw-r--r-- | www-apps/gitea/files/gitea-1.22.0-go-chi-memcache-package.diff | 121 | ||||
-rw-r--r-- | www-apps/gitea/files/gitea-1.22.0-ignore-findrecentlypushednewbranches-err.diff | 20 | ||||
-rw-r--r-- | www-apps/gitea/gitea-1.22.1.ebuild (renamed from www-apps/gitea/gitea-1.22.0.ebuild) | 8 |
5 files changed, 2 insertions, 172 deletions
diff --git a/www-apps/gitea/Manifest b/www-apps/gitea/Manifest index 627f2cf15350..5c52257dd2ab 100644 --- a/www-apps/gitea/Manifest +++ b/www-apps/gitea/Manifest @@ -1,11 +1,8 @@ -AUX gitea-1.22.0-fix-missing-memcache-import.diff 525 BLAKE2B 735cb4a792ef9ab6b9f0053e9dbfb3b637799f8c658c8fb0c4cb388052e5bdc307a4074b547620da684f61d46de13678a792db8a6e0f100c780d5f2fd2164b7f SHA512 13d21265144d9e6fbb0d93e28f651dc08fc97e28247ede25512d436bcc5c0c7f24ec9f1044d1604bf685deb945c6a7872f371af5f5ff16546329c871286bfc32 -AUX gitea-1.22.0-go-chi-memcache-package.diff 3561 BLAKE2B 52a83684a9545f8324bd2ffecf09d3e04b06f870387bdbea70d5afba8e642b80731a7ecf7b786b805d0563d26ae45e85515949769ec704a324e958a570c8913d SHA512 88c250f5becb8048288ae80a41baffeac2c4c32163d9ae3dddc4470ea164ba3aa15ee7c2de652d153312ee383c1120f256312934d3c7e6c123057321ffff703b -AUX gitea-1.22.0-ignore-findrecentlypushednewbranches-err.diff 778 BLAKE2B 7ef997fcc6aa375c93f93dd369e2906b0d6b0059fd6ee1c0bad6cf05022d41599d762a4fc4b4160e4de102741f189c58fed03ee98dccaa5e5d0c6235f1835d49 SHA512 c1c7c610e29e0f78290c95bd12770e6793a1b62ce6d4c09762c6eed0d1c9463106be078bcfa69f6a5a9e4c109894c054024510eaef5d6d15131b372312dcbcbc AUX gitea.confd-r1 243 BLAKE2B 87caa8371f53f52b0a85f720342f9f358dedec9240ab78998655a03df6bf3f301fe077afabdca1b1895dbcab2fa05748735d6f38f9b3ad53534fe8ae6e72db49 SHA512 485dc9d0b86d0a7b3ba958aac9de1129aa0ffbb47219419d38811f2accca2539e49dd93cc4a24b21f1c3802b024aa8449f54e320e8a16197f201532edeca6836 AUX gitea.initd-r3 802 BLAKE2B 2e33e95f7d2762986184d45b0bbb250cc5e04fffc4e4b006233b28e5b57be69eef1d83441adebe2b94681585edaf77f9da4eb97930f91e75c1b1a5cd8d137633 SHA512 5ff2e653180a0601734fcd055dfffdfdc12363736ed2e56c8576c802398b90f4025b44002cbb9a3fd1e0c2d4c169f62d460381c6c549746d3390e55fc1c677d1 AUX gitea.service-r4 730 BLAKE2B 0a1f799bf341f1a067f417aa21c1ce5c3168fe523081ef1711483d469da71699a2c163f1db008f7724329d6b6a819b1cdc76bc16309691522ebfc5dc9dfa7476 SHA512 cdd13299115e632bc474f24af6d4114b36be6489e11dd8c46b22fbd3f122194d4891cd2452f1654ef9256978fa4d0b6c11c08e386138a6cba29ea69945de8797 DIST gitea-1.21.11.tar.gz 54029294 BLAKE2B 93fb0ea4118baefeb36283b7168759d318fede528b56a9167961763267181bb283bf9849ce5f57a9950b16047f3b98998b4cd0e92443a23aef4cf15589cc8628 SHA512 ba35d1710bc03ff05bf2490e233bf3b4bd9e002113885b4d2a3193288773c16ad0f2426d4ed64d26b7c49112a02838e67da32167f51c4c08fa4f23738bd78285 -DIST gitea-1.22.0.tar.gz 54603268 BLAKE2B f021fedf77ec6ab41221a8e73d6b48fc215c15053bb62ff288a5dc6a7d11a5acd4d7ee0cbfb40aee2b60011d83fc57f1011013b7d78556c3a84a2743ba90389b SHA512 8e9585d6224f49c2f21b855911c2ac4ded64b8b31c4eb28fbe39801908693a87aad2e9096bf812c30163faa8a8102fd01ec3240bd64debf5633c70568aec4b49 +DIST gitea-1.22.1.tar.gz 54686177 BLAKE2B 78f25cb6cc024b05f9a51eb9692b2eab97b20d28aad7ed56894b31a5e9ea3ed1be00e1ba75abb75b36cbdfc740507321ff036927bb842ade7cc43c90befe027b SHA512 318513a2aaae8d99358a26d44ab51c7a002b74fb11dbd7f9dfdccdd25f707572b075099e59bc3764564e1219069a1f9e6b56c71474ef494531c73e358d76ac6e EBUILD gitea-1.21.11.ebuild 4746 BLAKE2B b14f2f55bf6d344cf9eec51018baac9294d72fc135dd85bc4792fdd96fbccd2bd62f923b7f8f70e2d667a2c6304777beb58ecd5bb0361f1c87136b0e4ad1216c SHA512 087db4bfab0dda1840b5e205121275915d939084ec551236e98b10690860524caaf5226ce9cbce9f460c3223a4e5931ec7184a9b6f99e5625309429b7b2ee9a7 -EBUILD gitea-1.22.0.ebuild 5685 BLAKE2B 0eeefb6984d8a8982ef058085f2ddf3b0c0a9589b48f32b8a59de7651cefcf5591e26879edc75e78fcf1426b510c6ee540eff3ff66a75f5856da4a9ae3ebee4e SHA512 633b8a07aead76ea36eebf95ae446405516123585d0a8a69965d7eb84b976c3497445147b734dc4cba510355c12ee16a3a5a9473d35ae77234ba6a6d0bce3ed5 +EBUILD gitea-1.22.1.ebuild 5359 BLAKE2B ac3065332b96b4ba71b9178264367f77d9b6a6205ff05ce9962abca7ae9047f3e43cbba3c3af23d1893c37122c9cb8977971065f8035144750ccfff8640ee0fe SHA512 4bfc51161608ada0f7a2f9b3960063785a26638dc017a85eec169fa0a72a6fd0bea796b9c1c5a3da5165b5b9376fa80523e130c55cd41081ad951fd2e53cd924 MISC metadata.xml 754 BLAKE2B 0880dba11ea8bd584aa4dbebd94fbb5073e2ece2694152d7c1c7b8eaf531fbc0d314d98405c050e31a025e7031fd2476129347fc4a3643ffd0cc38aeebbee676 SHA512 58f218fac259cf5d11f288f079786323f1e76cd5e5e7503b4efe68ae86fb9d8d76773b1a9eed4872dabb9cf20f337509fc52d20bba7c60d7fb83b04adffa0e30 diff --git a/www-apps/gitea/files/gitea-1.22.0-fix-missing-memcache-import.diff b/www-apps/gitea/files/gitea-1.22.0-fix-missing-memcache-import.diff deleted file mode 100644 index 1ad5d50bf047..000000000000 --- a/www-apps/gitea/files/gitea-1.22.0-fix-missing-memcache-import.diff +++ /dev/null @@ -1,18 +0,0 @@ -https://github.com/go-gitea/gitea/issues/31102 -https://github.com/go-gitea/gitea/pull/31105 - -Fix missing memcache import - -diff --git a/modules/cache/cache.go b/modules/cache/cache.go -index 2ca77bdb29f3..075367115803 100644 ---- a/modules/cache/cache.go -+++ b/modules/cache/cache.go -@@ -8,6 +8,8 @@ import ( - "time" - - "code.gitea.io/gitea/modules/setting" -+ -+ _ "gitea.com/go-chi/cache/memcache" //nolint:depguard // memcache plugin for cache, it is required for config "ADAPTER=memcache" - ) - - var defaultCache StringCache diff --git a/www-apps/gitea/files/gitea-1.22.0-go-chi-memcache-package.diff b/www-apps/gitea/files/gitea-1.22.0-go-chi-memcache-package.diff deleted file mode 100644 index f3ebbe6fc73f..000000000000 --- a/www-apps/gitea/files/gitea-1.22.0-go-chi-memcache-package.diff +++ /dev/null @@ -1,121 +0,0 @@ -https://github.com/go-gitea/gitea/issues/31102 -https://github.com/go-gitea/gitea/pull/31105 - -add the missing memcache package in the vendor dir, -binding to patch ./gitea-1.22.0-fix-missing-memcache-import.diff - -diff --git a/vendor/gitea.com/go-chi/cache/memcache/memcache.go b/vendor/gitea.com/go-chi/cache/memcache/memcache.go -new file mode 100644 -index 00000000..7c7cd225 ---- /dev/null -+++ b/vendor/gitea.com/go-chi/cache/memcache/memcache.go -@@ -0,0 +1,97 @@ -+// Copyright 2013 Beego Authors -+// Copyright 2014 The Macaron Authors -+// -+// Licensed under the Apache License, Version 2.0 (the "License"): you may -+// not use this file except in compliance with the License. You may obtain -+// a copy of the License at -+// -+// http://www.apache.org/licenses/LICENSE-2.0 -+// -+// Unless required by applicable law or agreed to in writing, software -+// distributed under the License is distributed on an "AS IS" BASIS, WITHOUT -+// WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the -+// License for the specific language governing permissions and limitations -+// under the License. -+ -+package cache -+ -+import ( -+ "strings" -+ -+ "github.com/bradfitz/gomemcache/memcache" -+ "github.com/unknwon/com" -+ -+ "gitea.com/go-chi/cache" -+) -+ -+// MemcacheCacher represents a memcache cache adapter implementation. -+type MemcacheCacher struct { -+ c *memcache.Client -+} -+ -+func NewItem(key string, data []byte, expire int32) *memcache.Item { -+ return &memcache.Item{ -+ Key: key, -+ Value: data, -+ Expiration: expire, -+ } -+} -+ -+// Put puts value into cache with key and expire time. -+// If expired is 0, it lives forever. -+func (c *MemcacheCacher) Put(key string, val interface{}, expire int64) error { -+ return c.c.Set(NewItem(key, []byte(com.ToStr(val)), int32(expire))) -+} -+ -+// Get gets cached value by given key. -+func (c *MemcacheCacher) Get(key string) interface{} { -+ item, err := c.c.Get(key) -+ if err != nil { -+ return nil -+ } -+ return string(item.Value) -+} -+ -+// Delete deletes cached value by given key. -+func (c *MemcacheCacher) Delete(key string) error { -+ return c.c.Delete(key) -+} -+ -+// Incr increases cached int-type value by given key as a counter. -+func (c *MemcacheCacher) Incr(key string) error { -+ _, err := c.c.Increment(key, 1) -+ return err -+} -+ -+// Decr decreases cached int-type value by given key as a counter. -+func (c *MemcacheCacher) Decr(key string) error { -+ _, err := c.c.Decrement(key, 1) -+ return err -+} -+ -+// IsExist returns true if cached value exists. -+func (c *MemcacheCacher) IsExist(key string) bool { -+ _, err := c.c.Get(key) -+ return err == nil -+} -+ -+// Flush deletes all cached data. -+func (c *MemcacheCacher) Flush() error { -+ return c.c.FlushAll() -+} -+ -+// StartAndGC starts GC routine based on config string settings. -+// AdapterConfig: 127.0.0.1:9090;127.0.0.1:9091 -+func (c *MemcacheCacher) StartAndGC(opt cache.Options) error { -+ c.c = memcache.New(strings.Split(opt.AdapterConfig, ";")...) -+ return nil -+} -+ -+// Ping tests if the cache is alive. -+func (c *MemcacheCacher) Ping() error { -+ return cache.GenericPing(c) -+} -+ -+func init() { -+ cache.Register("memcache", &MemcacheCacher{}) -+} -diff --git a/vendor/modules.txt b/vendor/modules.txt -index 144a505d..6cb3f48b 100644 ---- a/vendor/modules.txt -+++ b/vendor/modules.txt -@@ -40,6 +40,7 @@ gitea.com/go-chi/binding - # gitea.com/go-chi/cache v0.2.0 - ## explicit; go 1.11 - gitea.com/go-chi/cache -+gitea.com/go-chi/cache/memcache - # gitea.com/go-chi/captcha v0.0.0-20240315150714-fb487f629098 - ## explicit; go 1.21 - gitea.com/go-chi/captcha diff --git a/www-apps/gitea/files/gitea-1.22.0-ignore-findrecentlypushednewbranches-err.diff b/www-apps/gitea/files/gitea-1.22.0-ignore-findrecentlypushednewbranches-err.diff deleted file mode 100644 index 78459f6e3359..000000000000 --- a/www-apps/gitea/files/gitea-1.22.0-ignore-findrecentlypushednewbranches-err.diff +++ /dev/null @@ -1,20 +0,0 @@ -https://github.com/go-gitea/gitea/issues/31163 -https://github.com/go-gitea/gitea/pull/31164 - -A quick fix to workaround 500 error: -FindRecentlyPushedNewBranches, branch does not exist [repo_id: 64 name: main] - -diff --git a/routers/web/repo/view.go b/routers/web/repo/view.go -index e1498c0d581e..386ef7be5ce8 100644 ---- a/routers/web/repo/view.go -+++ b/routers/web/repo/view.go -@@ -1047,8 +1047,7 @@ func renderHomeCode(ctx *context.Context) { - baseRepoPerm.CanRead(unit_model.TypePullRequests) { - ctx.Data["RecentlyPushedNewBranches"], err = git_model.FindRecentlyPushedNewBranches(ctx, ctx.Doer, opts) - if err != nil { -- ctx.ServerError("FindRecentlyPushedNewBranches", err) -- return -+ log.Error("FindRecentlyPushedNewBranches failed: %v", err) - } - } - } diff --git a/www-apps/gitea/gitea-1.22.0.ebuild b/www-apps/gitea/gitea-1.22.1.ebuild index dec2601480a6..dd49814314cb 100644 --- a/www-apps/gitea/gitea-1.22.0.ebuild +++ b/www-apps/gitea/gitea-1.22.1.ebuild @@ -33,14 +33,6 @@ FILECAPS=( RESTRICT="test" -# The problems that can be fixed by the following patches has been fixed -# upstream, so these ALL patches should be removed in the next release. -PATCHES=( - "${FILESDIR}/${P}-go-chi-memcache-package.diff" - "${FILESDIR}/${P}-fix-missing-memcache-import.diff" - "${FILESDIR}/${P}-ignore-findrecentlypushednewbranches-err.diff" -) - src_prepare() { default |