Re: git: aa93117abe21 - main - devel/rubygem-sidekiq6: Update to 6.5.10

From: Po-Chuan Hsieh <sunpoet_at_freebsd.org>
Date: Sun, 08 Oct 2023 12:08:57 UTC
On Thu, Oct 5, 2023 at 6:42 PM Vladimir Druzenko <vvd@freebsd.org> wrote:

> 05.10.2023 05:02, Po-Chuan Hsieh пишет:
>
> The branch main has been updated by sunpoet:
>
> URL: https://cgit.FreeBSD.org/ports/commit/?id=aa93117abe2109fc18dda351690beb5358bb8c95
>
> commit aa93117abe2109fc18dda351690beb5358bb8c95
> Author:     Po-Chuan Hsieh <sunpoet@FreeBSD.org> <sunpoet@FreeBSD.org>
> AuthorDate: 2023-10-05 01:58:00 +0000
> Commit:     Po-Chuan Hsieh <sunpoet@FreeBSD.org> <sunpoet@FreeBSD.org>
> CommitDate: 2023-10-05 02:00:32 +0000
>
>     devel/rubygem-sidekiq6: Update to 6.5.10
>
>     Changes:        https://github.com/sidekiq/sidekiq/blob/6-x/Changes.md
>     Security:       CVE-2023-26141
> ---
>  devel/rubygem-sidekiq6/Makefile | 2 +-
>  devel/rubygem-sidekiq6/distinfo | 6 +++---
>  2 files changed, 4 insertions(+), 4 deletions(-)
>
> diff --git a/devel/rubygem-sidekiq6/Makefile b/devel/rubygem-sidekiq6/Makefile
> index 06da722e53d7..a9764e12e0ba 100644
> --- a/devel/rubygem-sidekiq6/Makefile
> +++ b/devel/rubygem-sidekiq6/Makefile
> @@ -1,5 +1,5 @@
>  PORTNAME=	sidekiq
> -PORTVERSION=	6.5.9
> +PORTVERSION=	6.5.10
>  CATEGORIES=	devel rubygems
>  MASTER_SITES=	RG
>  PKGNAMESUFFIX=	6
> diff --git a/devel/rubygem-sidekiq6/distinfo b/devel/rubygem-sidekiq6/distinfo
> index 93d28a37361b..0e347e55cc20 100644
> --- a/devel/rubygem-sidekiq6/distinfo
> +++ b/devel/rubygem-sidekiq6/distinfo
> @@ -1,3 +1,3 @@
> -TIMESTAMP = 1685162376
> -SHA256 (rubygem/sidekiq-6.5.9.gem) = 79d9cc6cfcb7fd4e36b8a7987b84a948354aa82642b1c1368fd5dfecf1db6747
> -SIZE (rubygem/sidekiq-6.5.9.gem) = 353792
> +TIMESTAMP = 1696433016
> +SHA256 (rubygem/sidekiq-6.5.10.gem) = 1124e97d31a3dbc452a6aaea58f4cb279b29d713a40609c7fa8919b4390b2a71
> +SIZE (rubygem/sidekiq-6.5.10.gem) = 354304
>
> This commit break work of the www/gitlab-ce. Downgrade to 6.5.9 fixed
> error.
>
From my point of view, it is an upstream issue.
Upstream has conflicting requirement for sidekiq which causes runtime issue.
See aff9c1bfd6018221c078c4860dd9409cf651427e.

> # service gitlab start
> Don't run Bundler as root. Installing your bundle as root will break this
> application for all non-root users on this machine.
> Removing stale Sidekiq job dispatcher pid. This is most likely caused by
> Sidekiq crashing the last time it ran.
> Starting GitLab web server (puma)
> Starting GitLab Sidekiq
> Starting GitLab Workhorse
> Starting Gitaly
> .No pidfile found at
> /usr/local/www/gitlab-ce/tmp/pids/sidekiq-cluster.pid; is Sidekiq running?
> .....{"timestamp":"2023-10-05T10:27:04.713Z","pid":68015,"message":"Puma
> starting in cluster mode..."}
> {"timestamp":"2023-10-05T10:27:04.731Z","pid":68015,"message":"* Puma
> version: 6.4.0 (ruby 3.1.4-p223) (\"The Eagle of Durango\")"}
> {"timestamp":"2023-10-05T10:27:04.731Z","pid":68015,"message":"*  Min
> threads: 1"}
> {"timestamp":"2023-10-05T10:27:04.731Z","pid":68015,"message":"*  Max
> threads: 16"}
> {"timestamp":"2023-10-05T10:27:04.732Z","pid":68015,"message":"*
> Environment: production"}
> {"timestamp":"2023-10-05T10:27:04.732Z","pid":68015,"message":"*   Master
> PID: 68015"}
> {"timestamp":"2023-10-05T10:27:04.732Z","pid":68015,"message":"*
> Workers: 3"}
> {"timestamp":"2023-10-05T10:27:04.732Z","pid":68015,"message":"*
> Restarts: (?) hot (?) phased"}
> {"timestamp":"2023-10-05T10:27:04.732Z","pid":68015,"message":"*
> Preloading application"}
> ...........................WARNING: The Rust extension for
> prometheus-client-mmap is unavailable, falling back to the legacy C
> extension.
>   The Rust extension will be required in the next version. If you are
> compiling this gem from source,
>   ensure your build system has a Rust compiler and clang:
> https://gitlab.com/gitlab-org/ruby/gems/prometheus-client-mmap
> ...............{"timestamp":"2023-10-05T10:27:47.425Z","pid":68015,"message":"!
> Unable to load application: RuntimeError: New version of sidekiq detected,
> please remove or update this patch"}
> bundler: failed to load command: puma (/usr/local/bin/puma)
> /usr/local/www/gitlab-ce/lib/gitlab/patch/sidekiq_cron_poller.rb:11:in
> `<top (required)>': New version of sidekiq detected, please remove or
> update this patch (RuntimeError)
>         from
> <internal:/usr/local/lib/ruby/site_ruby/3.1/rubygems/core_ext/kernel_require.rb>:38:in
> `require'
>         from
> <internal:/usr/local/lib/ruby/site_ruby/3.1/rubygems/core_ext/kernel_require.rb>:38:in
> `require'
>         from
> /usr/local/lib/ruby/gems/3.1/gems/zeitwerk-2.6.12/lib/zeitwerk/kernel.rb:30:in
> `require'
>         from
> /usr/local/www/gitlab-ce/config/initializers/sidekiq.rb:129:in `<top
> (required)>'
>         from
> /usr/local/lib/ruby/gems/3.1/gems/railties-7.0.8/lib/rails/engine.rb:667:in
> `load'
>         from
> /usr/local/lib/ruby/gems/3.1/gems/railties-7.0.8/lib/rails/engine.rb:667:in
> `block in load_config_initializer'
>         from
> /usr/local/lib/ruby/gems/3.1/gems/activesupport-7.0.8/lib/active_support/notifications.rb:208:in
> `instrument'
>         from
> /usr/local/lib/ruby/gems/3.1/gems/railties-7.0.8/lib/rails/engine.rb:666:in
> `load_config_initializer'
>         from
> /usr/local/lib/ruby/gems/3.1/gems/railties-7.0.8/lib/rails/engine.rb:620:in
> `block (2 levels) in <class:Engine>'
>         from
> /usr/local/lib/ruby/gems/3.1/gems/railties-7.0.8/lib/rails/engine.rb:619:in
> `each'
>         from
> /usr/local/lib/ruby/gems/3.1/gems/railties-7.0.8/lib/rails/engine.rb:619:in
> `block in <class:Engine>'
>         from
> /usr/local/lib/ruby/gems/3.1/gems/railties-7.0.8/lib/rails/initializable.rb:32:in
> `instance_exec'
>         from
> /usr/local/lib/ruby/gems/3.1/gems/railties-7.0.8/lib/rails/initializable.rb:32:in
> `run'
>         from
> /usr/local/lib/ruby/gems/3.1/gems/railties-7.0.8/lib/rails/initializable.rb:61:in
> `block in run_initializers'
>         from /usr/local/lib/ruby/3.1/tsort.rb:228:in `block in tsort_each'
>         from /usr/local/lib/ruby/3.1/tsort.rb:350:in `block (2 levels) in
> each_strongly_connected_component'
>         from /usr/local/lib/ruby/3.1/tsort.rb:422:in `block (2 levels) in
> each_strongly_connected_component_from'
>         from /usr/local/lib/ruby/3.1/tsort.rb:431:in
> `each_strongly_connected_component_from'
>         from /usr/local/lib/ruby/3.1/tsort.rb:421:in `block in
> each_strongly_connected_component_from'
>         from
> /usr/local/lib/ruby/gems/3.1/gems/railties-7.0.8/lib/rails/initializable.rb:50:in
> `each'
>         from
> /usr/local/lib/ruby/gems/3.1/gems/railties-7.0.8/lib/rails/initializable.rb:50:in
> `tsort_each_child'
>         from /usr/local/lib/ruby/3.1/tsort.rb:415:in `call'
>         from /usr/local/lib/ruby/3.1/tsort.rb:415:in
> `each_strongly_connected_component_from'
>         from /usr/local/lib/ruby/3.1/tsort.rb:349:in `block in
> each_strongly_connected_component'
>         from /usr/local/lib/ruby/3.1/tsort.rb:347:in `each'
>         from /usr/local/lib/ruby/3.1/tsort.rb:347:in `call'
>         from /usr/local/lib/ruby/3.1/tsort.rb:347:in
> `each_strongly_connected_component'
>         from /usr/local/lib/ruby/3.1/tsort.rb:226:in `tsort_each'
>         from /usr/local/lib/ruby/3.1/tsort.rb:205:in `tsort_each'
>         from
> /usr/local/lib/ruby/gems/3.1/gems/railties-7.0.8/lib/rails/initializable.rb:60:in
> `run_initializers'
>         from
> /usr/local/lib/ruby/gems/3.1/gems/railties-7.0.8/lib/rails/application.rb:372:in
> `initialize!'
>         from /usr/local/www/gitlab-ce/config/environment.rb:7:in `<top
> (required)>'
>         from
> <internal:/usr/local/lib/ruby/site_ruby/3.1/rubygems/core_ext/kernel_require.rb>:38:in
> `require'
>         from
> <internal:/usr/local/lib/ruby/site_ruby/3.1/rubygems/core_ext/kernel_require.rb>:38:in
> `require'
>         from config.ru:5:in `block in <main>'
>         from
> /usr/local/lib/ruby/gems/3.1/gems/rack-2.2.8/lib/rack/builder.rb:116:in
> `eval'
>         from
> /usr/local/lib/ruby/gems/3.1/gems/rack-2.2.8/lib/rack/builder.rb:116:in
> `new_from_string'
>         from
> /usr/local/lib/ruby/gems/3.1/gems/rack-2.2.8/lib/rack/builder.rb:105:in
> `load_file'
>         from
> /usr/local/lib/ruby/gems/3.1/gems/rack-2.2.8/lib/rack/builder.rb:66:in
> `parse_file'
>         from
> /usr/local/lib/ruby/gems/3.1/gems/puma-6.4.0/lib/puma/configuration.rb:368:in
> `load_rackup'
>         from
> /usr/local/lib/ruby/gems/3.1/gems/puma-6.4.0/lib/puma/configuration.rb:290:in
> `app'
>         from
> /usr/local/lib/ruby/gems/3.1/gems/puma-6.4.0/lib/puma/runner.rb:162:in
> `load_and_bind'
>         from
> /usr/local/lib/ruby/gems/3.1/gems/puma-6.4.0/lib/puma/cluster.rb:359:in
> `run'
>         from
> /usr/local/lib/ruby/gems/3.1/gems/puma-6.4.0/lib/puma/launcher.rb:194:in
> `run'
>         from
> /usr/local/lib/ruby/gems/3.1/gems/puma-6.4.0/lib/puma/cli.rb:75:in `run'
>         from /usr/local/lib/ruby/gems/3.1/gems/puma-6.4.0/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.1/gems/bundler-2.4.20/lib/bundler/cli/exec.rb:58:in
> `load'
>         from
> /usr/local/lib/ruby/gems/3.1/gems/bundler-2.4.20/lib/bundler/cli/exec.rb:58:in
> `kernel_load'
>         from
> /usr/local/lib/ruby/gems/3.1/gems/bundler-2.4.20/lib/bundler/cli/exec.rb:23:in
> `run'
>         from
> /usr/local/lib/ruby/gems/3.1/gems/bundler-2.4.20/lib/bundler/cli.rb:492:in
> `exec'
>         from
> /usr/local/lib/ruby/gems/3.1/gems/bundler-2.4.20/lib/bundler/vendor/thor/lib/thor/command.rb:27:in
> `run'
>         from
> /usr/local/lib/ruby/gems/3.1/gems/bundler-2.4.20/lib/bundler/vendor/thor/lib/thor/invocation.rb:127:in
> `invoke_command'
>         from
> /usr/local/lib/ruby/gems/3.1/gems/bundler-2.4.20/lib/bundler/vendor/thor/lib/thor.rb:392:in
> `dispatch'
>         from
> /usr/local/lib/ruby/gems/3.1/gems/bundler-2.4.20/lib/bundler/cli.rb:34:in
> `dispatch'
>         from
> /usr/local/lib/ruby/gems/3.1/gems/bundler-2.4.20/lib/bundler/vendor/thor/lib/thor/base.rb:485:in
> `start'
>         from
> /usr/local/lib/ruby/gems/3.1/gems/bundler-2.4.20/lib/bundler/cli.rb:28:in
> `start'
>         from
> /usr/local/lib/ruby/gems/3.1/gems/bundler-2.4.20/exe/bundle:37:in `block in
> <top (required)>'
>         from
> /usr/local/lib/ruby/gems/3.1/gems/bundler-2.4.20/lib/bundler/friendly_errors.rb:117:in
> `with_friendly_errors'
>         from
> /usr/local/lib/ruby/gems/3.1/gems/bundler-2.4.20/exe/bundle:29:in `<top
> (required)>'
>         from /usr/local/bin/bundle:25:in `load'
>         from /usr/local/bin/bundle:25:in `<main>'
>
> --
> Best regards,
> Vladimir Druzenko
>
>