#1070652 ruby-json: breaks how-can-i-help

Package:
ruby-json
Source:
ruby-json
Description:
JSON library for Ruby
Submitter:
Vincent Lefevre
Date:
2024-05-07 08:39:05 UTC
Severity:
normal
#1070652#5
Date:
2024-05-06 15:41:49 UTC
From:
To:
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)
                              ^^^^^^^^^^

#1070652#10
Date:
2024-05-06 23:10:00 UTC
From:
To:
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)

#1070652#23
Date:
2024-05-07 08:34:38 UTC
From:
To:
We believe that the bug you reported is fixed in the latest version of
how-can-i-help, which is due to be installed in the Debian FTP archive.

A summary of the changes between this version and the previous one is
attached.

Thank you for reporting the bug, which will now be closed.  If you
have further comments please address them to 1070652@bugs.debian.org,
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Lucas Nussbaum <lucas@debian.org> (supplier of updated how-can-i-help package)

(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing ftpmaster@ftp-master.debian.org)
Format: 1.8
Date: Tue, 07 May 2024 10:15:00 +0200
Source: how-can-i-help
Architecture: source
Version: 18
Distribution: unstable
Urgency: medium
Maintainer: Tomasz Nitecki <tnnn@tnnn.pl>
Changed-By: Lucas Nussbaum <lucas@debian.org>
Closes: 1069108 1070652
Changes:
 how-can-i-help (18) unstable; urgency=medium
 .
   [ Paul Wise ]
   * Always build the manual page from source
   * Do not print the autorm header when all autorm items are hidden
   * Bump debhelper from old 12 to 13.
   * Update standards version to 4.6.1, no changes needed.
   * Use debhelper execute_after_* instead of override_
   * Update standards version to 4.6.2, no changes needed.
 .
   [ Athos Ribeiro ]
   * {Dir,File}.exists? were removed from Ruby 3.2. Use .exist? instead.
     Closes: #1069108
 .
   [ Lucas Nussbaum ]
   * Explicitly require ostruct. Closes: #1070652
     + Thanks Vincent Lefevre for the report, and Cédric Boutillier
       for the fix.
   * Add missing build-dep on docbook-xml
Checksums-Sha1:
 eef5c3adb8ed4b8fac9ddc8539884e3a2008c94f 1704 how-can-i-help_18.dsc
 66c33b2687bad5f0eacf8183255727603ca09cbf 11184 how-can-i-help_18.tar.xz
 84327c1b03de20c370b60fb1dc558cd7726b9801 13158 how-can-i-help_18_source.buildinfo
Checksums-Sha256:
 8f88d7bd11e9814a7b35f5bf0d2976d885d3e969cc00b2893b6fdbfa859c3a93 1704 how-can-i-help_18.dsc
 66c07fcc7f1a3d6b57a4bdfb7e7ff9854de653d9236c63726feb6d9ee7b5fdc4 11184 how-can-i-help_18.tar.xz
 bf3638b48ad3a6b02c79950eec92484053e08819d24e0f7a9181c37d68236171 13158 how-can-i-help_18_source.buildinfo
Files:
 a81cf09fda303e3dbd3ee4ddc3491e17 1704 devel optional how-can-i-help_18.dsc
 96034af8276b797c12fbe9c205b4d4d1 11184 devel optional how-can-i-help_18.tar.xz
 792ee81dacdf07489f9e91c9668dc9f6 13158 devel optional how-can-i-help_18_source.buildinfo
-----BEGIN PGP SIGNATURE-----

iQIzBAEBCgAdFiEE/t7ByzN7z1CfQ8IkORS1MvTfvpkFAmY54ysACgkQORS1MvTf
vplaUQ//fn3jiQwDQm+ASPeA+hlQ0Hk6ayQMdDFp73nxkvss4YdFTNcqZka6BUjw
z2Dcu0xgfzOUsS6/SaJVsU0hWJDm2Qw7FxSNCQX/supRI7jkZqXTNw+Gxmfc47Mi
NxgNWdlOK5/xcBa52dKNZiHBr4ljRY0NpXclSYPxPAJQFzVhPuUKG5b5Fw6HYAcB
ygJzb88Bo8sHoft5fa22R3Ru5xvU65hYQn9GqaNXAqlJms7f+aIQl50NIUj8A51c
fdE+0KCAMMTljn01iN/S+2AYUoVCAfkMpt9wY/cDhZxOgq77FQqHTirKLxJeio/9
akiZzRlTnvRIIS9V3MwdJzCcnnwDS5q5n9LXUGgEZMFdQoEd/2CEcfVGztCk6JuG
Gy2PilvOhkjtcJT5ybZnyy8es6CLk4txBCTL0lBnh4wJNN8aB2S86MB72hBoivAG
7dwP1KVAuX4w5BYdtVwCBk0J3uZKqi1nqU1IiM7uTybUX74f3hyw/V8zOG4qDucP
TpiyOU7UmS3igjRGGMBWjtP7ge7BSfS1kO94PS2o183wk1Mx+tiI693BB+B2Dw68
9t9OJXCbKdZLtgkOAJ/BBUQRGs781WixX2xYOUjesnG4N1ov4fmxfmvWIuSVmiwM
JNZN0aBq30c1jhZcmgpcdbzDjgqkpG9S9KU+Cn9zYUSpgVqz/gE=
=KRRg
-----END PGP SIGNATURE-----