[DRE-maint] Bug#1095592: gem2deb is weird when cross building

Antonio Terceiro terceiro at debian.org
Mon Feb 10 22:26:54 GMT 2025


On Fri, Feb 07, 2025 at 09:14:17PM +0100, Helmut Grohne wrote:
> Source: gem2deb
> Version: 2.2.5
> Tags: patch
> User: debian-cross at lists.debian.org
> Usertags: ftcbfs
> 
> Hi,
> 
> gem2deb behaves weirdly when it is cross built. This is how it looks:
> 
> |  debian/rules clean
> | /usr/bin/ruby: 1: ELF[GIBBERISH]3616418   : not found
> | /usr/bin/ruby: 1: [GIBBERISH]: not found
> | /usr/bin/ruby: 1: [GIBBERISH]: not found
> | /usr/bin/ruby: 1: T[GIBBERISH]: not found
> | /usr/bin/ruby: 1: k: not found
> | /usr/bin/ruby: 1: [GIBBERISH] not found
> | /usr/bin/ruby: 2: Syntax error: word unexpected (expecting ")")
> | dh clean
> 
> Evidently, the build dependency on ruby is satisfied with a host
> architecture interpreter that cannot be run. It is quite surprising that
> the build does not fail here and I suspect that the lack of failure is a
> violation of Debian policy 10.4.

The call to `ruby` is only needed to decide which ruby versions to run
the tests against. Since a crossbuild implies nocheck, no tests are ever
executed and the build just succeeds.

I just pushed a commit that marks everything but debhelper as
<!nocheck>, which makes crossbuilding work correctly (tested with the
newer sbuild only).
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: not available
URL: <http://alioth-lists.debian.net/pipermail/pkg-ruby-extras-maintainers/attachments/20250210/ae8dba42/attachment.sig>


More information about the Pkg-ruby-extras-maintainers mailing list