Bug#1071002: ruby-mysql2: FTBFS on ppc64el: test suite hangs

2024-05-14 Thread Lucas Nussbaum
On 14/05/24 at 09:05 +0200, Lucas Nussbaum wrote:
> On 12/05/24 at 21:23 +0200, Lucas Nussbaum wrote:
> > Package: ruby-mysql2
> > Version: 0.5.5-2
> > Severity: serious
> > Tags: ftbfs
> > Justification: fails to build from source (but built successfully in the 
> > past)
> > X-Debbugs-Cc: debian-powe...@lists.debian.org
> > 
> > Hi,
> > 
> > https://buildd.debian.org/status/fetch.php?pkg=ruby-mysql2=ppc64el=0.5.5-2=1715331286=0
> > 
> > It hangs with:
> > 
> > + ruby3.1 -S rspec
> > E: Build killed with signal TERM after 150 minutes of inactivity
> > 
> > Build finished at 2024-05-10T08:54:25Z
> 
> On a ppc64el system I have access to, 0.5.5-2 builds fine on Debian 11,
> but fails on Debian testing. I will bisect this later.

This is known as:
https://github.com/brianmario/mysql2/issues/1261
and https://bugs.ruby-lang.org/issues/18829

It's a bug in ruby 3.1, fixed in ruby3.2.

A MWE is:
begin
GC.verify_compaction_references(double_heap: true, toward: :empty)
rescue NotImplementedError
end
require 'irb'
require 'rbconfig'
puts RbConfig::CONFIG['host_cpu']

=> This hangs on ruby3.1, runs fine on ruby3.2.

Since ruby3.1 will be going away in Debian anyway and this only affects
the test suite, I'm going to patch it dirtily in ruby-mysql2 to let it
migrate back to testing.

Lucas



Bug#1071002: ruby-mysql2: FTBFS on ppc64el: test suite hangs

2024-05-14 Thread Lucas Nussbaum
On 12/05/24 at 21:23 +0200, Lucas Nussbaum wrote:
> Package: ruby-mysql2
> Version: 0.5.5-2
> Severity: serious
> Tags: ftbfs
> Justification: fails to build from source (but built successfully in the past)
> X-Debbugs-Cc: debian-powe...@lists.debian.org
> 
> Hi,
> 
> https://buildd.debian.org/status/fetch.php?pkg=ruby-mysql2=ppc64el=0.5.5-2=1715331286=0
> 
> It hangs with:
> 
> + ruby3.1 -S rspec
> E: Build killed with signal TERM after 150 minutes of inactivity
> 
> Build finished at 2024-05-10T08:54:25Z

On a ppc64el system I have access to, 0.5.5-2 builds fine on Debian 11,
but fails on Debian testing. I will bisect this later.

Lucas



Bug#1071002: ruby-mysql2: FTBFS on ppc64el: test suite hangs

2024-05-12 Thread Lucas Nussbaum
Package: ruby-mysql2
Version: 0.5.5-2
Severity: serious
Tags: ftbfs
Justification: fails to build from source (but built successfully in the past)
X-Debbugs-Cc: debian-powe...@lists.debian.org

Hi,

https://buildd.debian.org/status/fetch.php?pkg=ruby-mysql2=ppc64el=0.5.5-2=1715331286=0

It hangs with:

+ ruby3.1 -S rspec
E: Build killed with signal TERM after 150 minutes of inactivity

Build finished at 2024-05-10T08:54:25Z

It fails identically on powerpc and ppc64, so at least there's some
logic.

It built fine rather recently (2024-03-17) but that was a different
upstream version.

Lucas