Bug 283676 - net-mgmt/rubygem-oxidized start fails. Cannot find upgraded rubygem-oxidized-web-0.14.0_1
Summary: net-mgmt/rubygem-oxidized start fails. Cannot find upgraded rubygem-oxidized-...
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: amd64 Any
: --- Affects Only Me
Assignee: Juraj Lutter
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-12-28 10:37 UTC by Sigi
Modified: 2025-01-13 19:10 UTC (History)
3 users (show)

See Also:
nick: maintainer-feedback+


Attachments
patch to fix rubygem-oxidized-web gemspec (1.44 KB, patch)
2025-01-08 00:17 UTC, Nick Hilliard
nick: maintainer-approval-
nick: maintainer-approval-
Details | Diff
updated patch to fix puma 6.5.0 breakage (2.14 KB, patch)
2025-01-08 23:45 UTC, Nick Hilliard
nick: maintainer-approval+
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Sigi 2024-12-28 10:37:00 UTC
Rebuilt all oxidized-/cli, web ports but still get this crashfile:

cat /var/db/oxidized/.config/oxidized/crash
--------------------------------------------------
2024-12-28 10:22:17 UTC
oxidized-web not found: sudo gem install oxidized-web - \
          or disable web support by setting "rest: false" in your configuration [Oxidized::OxidizedError]
--------------------------------------------------
/usr/local/lib/ruby/gems/3.2/gems/oxidized-0.30.1/lib/oxidized/core.rb:31:in `rescue in initialize'
/usr/local/lib/ruby/gems/3.2/gems/oxidized-0.30.1/lib/oxidized/core.rb:28:in `initialize'
/usr/local/lib/ruby/gems/3.2/gems/oxidized-0.30.1/lib/oxidized/core.rb:4:in `new'
/usr/local/lib/ruby/gems/3.2/gems/oxidized-0.30.1/lib/oxidized/core.rb:4:in `new'
/usr/local/lib/ruby/gems/3.2/gems/oxidized-0.30.1/lib/oxidized/cli.rb:13:in `run'
/usr/local/lib/ruby/gems/3.2/gems/oxidized-0.30.1/bin/oxidized:5:in `<top (required)>'
/usr/local/bin/oxidized:25:in `load'
/usr/local/bin/oxidized:25:in `<main>'
--------------------------------------------------

pkg version | grep oxid
rubygem-oxidized-0.30.1            =
rubygem-oxidized-script-0.6.0      =
rubygem-oxidized-web-0.14.0_1      =
Comment 1 Einar Bjarni Halldórsson 2025-01-06 13:32:14 UTC
I'm having the same problem, it's caused by rubygem-puma being updated to 6.5.0.

The gemspec for oxidized-web has:

s.add_runtime_dependency(%q<puma>.freeze, [">= 3.11.4".freeze, "< 6.5.0".freeze])

I think we should add a patch to set all dependencies to '>=' and face the fallout if updates break oxidized-web. We cannot trust upstream to update the dependencies fast enough
Comment 2 Nick Hilliard 2025-01-08 00:17:29 UTC
Created attachment 256523 [details]
patch to fix rubygem-oxidized-web gemspec

the attached patch fixes this issue.
Comment 3 Nick Hilliard 2025-01-08 12:40:53 UTC
ugh, now running in to https://github.com/ytti/oxidized-web/issues/298.

my poudriere env is mid-upgrade at the moment, so I'll create a patch for this later based on:

https://github.com/ytti/oxidized/issues/3340#issuecomment-2559893351
Comment 4 Nick Hilliard 2025-01-08 23:45:30 UTC
Created attachment 256563 [details]
updated patch to fix puma 6.5.0 breakage

this patch allows oxidized-web to start, and also serve requests
Comment 5 commit-hook freebsd_committer freebsd_triage 2025-01-13 19:06:06 UTC
A commit in branch main references this bug:

URL: https://cgit.FreeBSD.org/ports/commit/?id=581439c871a58b355f2cb9c697849abf6a2510cf

commit 581439c871a58b355f2cb9c697849abf6a2510cf
Author:     Sigi <freebsd-bt@beatsnet.com>
AuthorDate: 2025-01-13 19:01:31 +0000
Commit:     Juraj Lutter <otis@FreeBSD.org>
CommitDate: 2025-01-13 19:01:31 +0000

    net-mgmt/rubygem-oxidized-web: Fix run-time detection of puma library

    Fix breakage after puma library upgrade to 6.5.0

    PR:     283676
    Approved by:    Nick Hilliard <nick@foobar.org> (maintainer)

 net-mgmt/rubygem-oxidized-web/Makefile                        |  2 +-
 .../files/patch-lib_oxidized_web_webapp.rb (new)              | 10 ++++++++++
 .../files/patch-oxidized-web.gemspec (new)                    | 11 +++++++++++
 3 files changed, 22 insertions(+), 1 deletion(-)
Comment 6 commit-hook freebsd_committer freebsd_triage 2025-01-13 19:10:09 UTC
A commit in branch 2025Q1 references this bug:

URL: https://cgit.FreeBSD.org/ports/commit/?id=ed5078fdd124dfa29cc1e356032f72a28036c80b

commit ed5078fdd124dfa29cc1e356032f72a28036c80b
Author:     Sigi <freebsd-bt@beatsnet.com>
AuthorDate: 2025-01-13 19:01:31 +0000
Commit:     Juraj Lutter <otis@FreeBSD.org>
CommitDate: 2025-01-13 19:09:01 +0000

    net-mgmt/rubygem-oxidized-web: Fix run-time detection of puma library

    Fix breakage after puma library upgrade to 6.5.0

    PR:     283676
    Approved by:    Nick Hilliard <nick@foobar.org> (maintainer)

    (cherry picked from commit 581439c871a58b355f2cb9c697849abf6a2510cf)

 net-mgmt/rubygem-oxidized-web/Makefile                        |  2 +-
 .../files/patch-lib_oxidized_web_webapp.rb (new)              | 10 ++++++++++
 .../files/patch-oxidized-web.gemspec (new)                    | 11 +++++++++++
 3 files changed, 22 insertions(+), 1 deletion(-)
Comment 7 Juraj Lutter freebsd_committer freebsd_triage 2025-01-13 19:10:58 UTC
Committed, thanks.