1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-22 08:58:47 +00:00

www/gitlab-ce: fix devel/rubygem-sprockets3 upgrade to 3.7.3

fixes a regression from
af60e439bb

gitlab applies a patch to sprockets3 to apply a thread safe fix:
https://github.com/rails/sprockets/pull/759

So modified the patch to work also with version 3.7.3 as regarding
the changelog, this patch will not be merged back into version 3
of sprocket:
https://github.com/rails/sprockets/pull/759#issuecomment-1252274619

It looks like gitlab project will maybe port to another module:
https://gitlab.com/gitlab-org/gitlab/-/issues/373997#note_1360248557
https://gitlab.com/gitlab-org/gitlab/-/issues/373997#note_1785295197
This commit is contained in:
Matthias Fechner 2024-04-02 11:20:24 +03:00
parent 8c5b73b52e
commit 1eec19b9a6
2 changed files with 12 additions and 1 deletions

View File

@ -1,7 +1,7 @@
PORTNAME= gitlab-ce
PORTVERSION= 16.10.1
DISTVERSIONPREFIX= v
PORTREVISION= 1
PORTREVISION= 2
CATEGORIES= www devel
# include patch to fix database migration

View File

@ -0,0 +1,11 @@
--- config/initializers/sprockets_patch.rb.orig 2024-04-02 08:17:37 UTC
+++ config/initializers/sprockets_patch.rb
@@ -8,7 +8,7 @@
require 'sprockets/utils'
-unless Gem::Version.new(Sprockets::VERSION) == Gem::Version.new('3.7.2')
+unless Gem::Version.new(Sprockets::VERSION) == Gem::Version.new('3.7.3')
raise 'New version of Sprockets detected. This patch can likely be removed.'
end