On Fri, Feb 07, 2025 at 09:14:17PM +0100, Helmut Grohne wrote: > Source: gem2deb > Version: 2.2.5 > Tags: patch > User: debian-cr...@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).
signature.asc
Description: PGP signature