Bug#1070652: [DRE-maint] Bug#1070652: ruby-json: breaks how-can-i-help

2024-05-06 Thread Cédric Boutillier
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 `': 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  libruby1:3.1+nmu1
> ii  libruby3.1t64  3.1.2-8.3

> ruby-json recommends no packages.

> ruby-json suggests no packages.

> -- no debconf information--- /tmp/how-can-i-help	2024-05-07 01:08:00.390399139 +0200
+++ /usr/bin/how-can-i-help	2024-05-07 00:59:24.082457226 +0200
@@ -33,6 +33,7 @@
 require 'fileutils'
 require 'time'
 require 'etc'
+require 'ostruct'
 
 include Debian
 


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

2024-05-06 Thread Vincent Lefevre
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 `': 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  libruby1:3.1+nmu1
ii  libruby3.1t64  3.1.2-8.3

ruby-json recommends no packages.

ruby-json suggests no packages.

-- no debconf information

-- 
Vincent Lefèvre  - Web: 
100% accessible validated (X)HTML - Blog: 
Work: CR INRIA - computer arithmetic / AriC project (LIP, ENS-Lyon)