1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-24 09:25:01 +00:00

www/gitlab: fix regression from 0cd77d5e59

Sprockets detected. This patch can likely be removed."}
bundler: failed to load command: puma (/usr/local/bin/puma)
/usr/local/www/gitlab/config/initializers/sprockets_patch.rb:12:in `<top (required)>': New version of Sprockets detected. This patch can likely be removed. (RuntimeError)
        from /usr/local/lib/ruby/gems/3.2/gems/railties-7.0.8.4/lib/rails/engine.rb:667:in `load'
        from /usr/local/lib/ruby/gems/3.2/gems/railties-7.0.8.4/lib/rails/engine.rb:667:in `block in load_config_initializer'
        from /usr/local/lib/ruby/gems/3.2/gems/activesupport-7.0.8.4/lib/active_support/notifications.rb:208:in `instrument'
        from /usr/local/lib/ruby/gems/3.2/gems/railties-7.0.8.4/lib/rails/engine.rb:666:in `load_config_initializer'
        from /usr/local/lib/ruby/gems/3.2/gems/railties-7.0.8.4/lib/rails/engine.rb:620:in `block (2 levels) in <class:Engine>'
        from /usr/local/lib/ruby/gems/3.2/gems/railties-7.0.8.4/lib/rails/engine.rb:619:in `each'
        from /usr/local/lib/ruby/gems/3.2/gems/railties-7.0.8.4/lib/rails/engine.rb:619:in `block in <class:Engine>'
        from /usr/local/lib/ruby/gems/3.2/gems/railties-7.0.8.4/lib/rails/initializable.rb:32:in `instance_exec'
        from /usr/local/lib/ruby/gems/3.2/gems/railties-7.0.8.4/lib/rails/initializable.rb:32:in `run'
        from /usr/local/lib/ruby/gems/3.2/gems/railties-7.0.8.4/lib/rails/initializable.rb:61:in `block in run_initializers'
        from /usr/local/lib/ruby/3.2/tsort.rb:228:in `block in tsort_each'
        from /usr/local/lib/ruby/3.2/tsort.rb:350:in `block (2 levels) in each_strongly_connected_component'
        from /usr/local/lib/ruby/3.2/tsort.rb:422:in `block (2 levels) in each_strongly_connected_component_from'
        from /usr/local/lib/ruby/3.2/tsort.rb:431:in `each_strongly_connected_component_from'
        from /usr/local/lib/ruby/3.2/tsort.rb:421:in `block in each_strongly_connected_component_from'
        from /usr/local/lib/ruby/gems/3.2/gems/railties-7.0.8.4/lib/rails/initializable.rb:50:in `each'
        from /usr/local/lib/ruby/gems/3.2/gems/railties-7.0.8.4/lib/rails/initializable.rb:50:in `tsort_each_child'
        from /usr/local/lib/ruby/3.2/tsort.rb:415:in `call'
        from /usr/local/lib/ruby/3.2/tsort.rb:415:in `each_strongly_connected_component_from'
        from /usr/local/lib/ruby/3.2/tsort.rb:349:in `block in each_strongly_connected_component'
        from /usr/local/lib/ruby/3.2/tsort.rb:347:in `each'
        from /usr/local/lib/ruby/3.2/tsort.rb:347:in `call'
        from /usr/local/lib/ruby/3.2/tsort.rb:347:in `each_strongly_connected_component'
        from /usr/local/lib/ruby/3.2/tsort.rb:226:in `tsort_each'
        from /usr/local/lib/ruby/3.2/tsort.rb:205:in `tsort_each'
        from /usr/local/lib/ruby/gems/3.2/gems/railties-7.0.8.4/lib/rails/initializable.rb:60:in `run_initializers'
        from /usr/local/lib/ruby/gems/3.2/gems/railties-7.0.8.4/lib/rails/application.rb:372:in `initialize!'
        from /usr/local/www/gitlab/config/environment.rb:7:in `<top (required)>'
        from <internal:/usr/local/lib/ruby/site_ruby/3.2/rubygems/core_ext/kernel_require.rb>:37:in `require'
        from <internal:/usr/local/lib/ruby/site_ruby/3.2/rubygems/core_ext/kernel_require.rb>:37:in `require'
        from config.ru:5:in `block in <main>'
        from /usr/local/lib/ruby/gems/3.2/gems/rack-2.2.9/lib/rack/builder.rb:116:in `eval'
        from /usr/local/lib/ruby/gems/3.2/gems/rack-2.2.9/lib/rack/builder.rb:116:in `new_from_string'
        from /usr/local/lib/ruby/gems/3.2/gems/rack-2.2.9/lib/rack/builder.rb:105:in `load_file'
        from /usr/local/lib/ruby/gems/3.2/gems/rack-2.2.9/lib/rack/builder.rb:66:in `parse_file'
        from /usr/local/lib/ruby/gems/3.2/gems/puma-6.4.3/lib/puma/configuration.rb:368:in `load_rackup'
        from /usr/local/lib/ruby/gems/3.2/gems/puma-6.4.3/lib/puma/configuration.rb:290:in `app'
        from /usr/local/lib/ruby/gems/3.2/gems/puma-6.4.3/lib/puma/runner.rb:162:in `load_and_bind'
        from /usr/local/lib/ruby/gems/3.2/gems/puma-6.4.3/lib/puma/cluster.rb:371:in `run'
        from /usr/local/lib/ruby/gems/3.2/gems/puma-6.4.3/lib/puma/launcher.rb:194:in `run'
        from /usr/local/lib/ruby/gems/3.2/gems/puma-6.4.3/lib/puma/cli.rb:75:in `run'
        from /usr/local/lib/ruby/gems/3.2/gems/puma-6.4.3/bin/puma:10:in `<top (required)>'
        from /usr/local/bin/puma:25:in `load'
        from /usr/local/bin/puma:25:in `<top (required)>'
        from /usr/local/lib/ruby/gems/3.2/gems/bundler-2.5.19/lib/bundler/cli/exec.rb:58:in `load'
        from /usr/local/lib/ruby/gems/3.2/gems/bundler-2.5.19/lib/bundler/cli/exec.rb:58:in `kernel_load'
        from /usr/local/lib/ruby/gems/3.2/gems/bundler-2.5.19/lib/bundler/cli/exec.rb:23:in `run'
        from /usr/local/lib/ruby/gems/3.2/gems/bundler-2.5.19/lib/bundler/cli.rb:455:in `exec'
        from /usr/local/lib/ruby/gems/3.2/gems/bundler-2.5.19/lib/bundler/vendor/thor/lib/thor/command.rb:28:in `run'
        from /usr/local/lib/ruby/gems/3.2/gems/bundler-2.5.19/lib/bundler/vendor/thor/lib/thor/invocation.rb:127:in `invoke_command'
        from /usr/local/lib/ruby/gems/3.2/gems/bundler-2.5.19/lib/bundler/vendor/thor/lib/thor.rb:527:in `dispatch'
        from /usr/local/lib/ruby/gems/3.2/gems/bundler-2.5.19/lib/bundler/cli.rb:35:in `dispatch'
        from /usr/local/lib/ruby/gems/3.2/gems/bundler-2.5.19/lib/bundler/vendor/thor/lib/thor/base.rb:584:in `start'
        from /usr/local/lib/ruby/gems/3.2/gems/bundler-2.5.19/lib/bundler/cli.rb:29:in `start'
        from /usr/local/lib/ruby/gems/3.2/gems/bundler-2.5.19/exe/bundle:28:in `block in <top (required)>'
        from /usr/local/lib/ruby/gems/3.2/gems/bundler-2.5.19/lib/bundler/friendly_errors.rb:117:in `with_friendly_errors'
        from /usr/local/lib/ruby/gems/3.2/gems/bundler-2.5.19/exe/bundle:20:in `<top (required)>'
        from /usr/local/bin/bundle:25:in `load'
        from /usr/local/bin/bundle:25:in `<main>'
This commit is contained in:
Matthias Fechner 2024-10-04 11:16:02 +03:00
parent bc8f866013
commit a1ac153501
2 changed files with 4 additions and 3 deletions

View File

@ -5,6 +5,7 @@ DISTVERSIONPREFIX= v
.if ${FLAVOR:U} == ee
DISTVERSIONSUFFIX= -ee
.endif
PORTREVISION= 1
CATEGORIES= www devel
# include patch to fix database migration

View File

@ -1,11 +1,11 @@
--- config/initializers/sprockets_patch.rb.orig 2024-04-02 08:17:37 UTC
--- config/initializers/sprockets_patch.rb.orig 2024-09-24 23:32:11 UTC
+++ config/initializers/sprockets_patch.rb
@@ -8,7 +8,7 @@
@@ -8,7 +8,7 @@ require 'sprockets/utils'
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.4')
+unless Gem::Version.new(Sprockets::VERSION) == Gem::Version.new('3.7.5')
raise 'New version of Sprockets detected. This patch can likely be removed.'
end