[DRE-maint] Bug#1070652: Bug#1070652: ruby-json: breaks how-can-i-help
Cédric Boutillier
boutil at debian.org
Tue May 7 00:10:00 BST 2024
Hi!
I am reassigning this bug to the `how-can-i-help` package. Indeed, the
script `/usr/bin/how-can-i-help` uses implicitly the OpenStruct class,
without requiring explicitly 'ostruct'. The class was loaded
transitively from the json gem it seems.
Adding below line 35 the following line:
require 'ostruct'
fixes the bug.
Cheers,
Cédric
Quoting Vincent Lefevre (2024-05-06 17:41:49)
> Package: ruby-json
> Version: 2.7.2+dfsg-1
> Severity: grave
> Justification: renders package unusable
> This new ruby-json version breaks how-can-i-help:
> [...]
> Unpacking ruby-json:amd64 (2.7.2+dfsg-1) over (2.6.3+dfsg-1+b2) ...
> Setting up ruby-json:amd64 (2.7.2+dfsg-1) ...
> /usr/bin/how-can-i-help:155:in `<main>': uninitialized constant OpenStruct (NameError)
> proxy_uri = $proxy_url.nil? ? OpenStruct.new : URI.parse($proxy_url)
> ^^^^^^^^^^
> -- System Information:
> Debian Release: trixie/sid
> APT prefers unstable-debug
> APT policy: (500, 'unstable-debug'), (500, 'stable-updates'), (500, 'stable-security'), (500, 'stable-debug'), (500, 'proposed-updates-debug'), (500, 'unstable'), (500, 'testing'), (500, 'stable'), (1, 'experimental')
> Architecture: amd64 (x86_64)
> Foreign Architectures: i386
> Kernel: Linux 6.6.15-amd64 (SMP w/12 CPU threads; PREEMPT)
> Kernel taint flags: TAINT_PROPRIETARY_MODULE, TAINT_OOT_MODULE, TAINT_UNSIGNED_MODULE
> Locale: LANG=C.UTF-8, LC_CTYPE=C.UTF-8 (charmap=UTF-8), LANGUAGE not set
> Shell: /bin/sh linked to /usr/bin/dash
> Init: systemd (via /run/systemd/system)
> LSM: AppArmor: enabled
> Versions of packages ruby-json depends on:
> ii libc6 2.38-7
> ii libruby 1:3.1+nmu1
> ii libruby3.1t64 3.1.2-8.3
> ruby-json recommends no packages.
> ruby-json suggests no packages.
> -- no debconf information
-------------- next part --------------
A non-text attachment was scrubbed...
Name: how-can-i-help_ostruct.patch
Type: text/x-diff
Size: 233 bytes
Desc: not available
URL: <http://alioth-lists.debian.net/pipermail/pkg-ruby-extras-maintainers/attachments/20240507/1a1b695e/attachment.patch>
More information about the Pkg-ruby-extras-maintainers
mailing list