Your message dated Sun, 11 Sep 2022 10:53:00 +0000
with message-id <[email protected]>
and subject line Bug#1019520: fixed in ruby3.1 3.1.2-3
has caused the Debian Bug report #1019520,
regarding mkmf.rb's pkg_config function does not work for cross compilation
to be marked as done.
This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.
(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact [email protected]
immediately.)
--
1019520: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1019520
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Package: libruby3.0
Version: 3.0.4-7+b1
File: /usr/lib/ruby/3.0.0/mkmf.rb
User: [email protected]
Usertags: ftcbfs
X-Debbugs-Cc: [email protected]
Control: affects -1 + src:ruby-augeas
Hi Antonio et al,
during DebConf22, Antonio made cross building ruby extensions work.
That's awesome. It also means that we can not start looking into issues
further down in that stack.
ruby-augeas fails to cross build. It use pkg-config via the pkg_config
function from mkmf.rb. This function happens to use the build
architecture pkg-config and thus fails finding the requested packages
(which happen to only be installed for the host architecture). This is
not an issue in ruby-augeas, but an issue in mkmf.rb aka libruby3.0 and
it will affect many source packages.
Relevant code at:
https://sources.debian.org/src/ruby3.0/3.0.4-7/lib/mkmf.rb/#L1822
For some reason, this function says that if we are cross compiling,
pkg-config doesn't work. While that used to be true, it is not on Debian
since quite a while. We should do something like:
- (pkgconfig = with_config("pkg-config", ("pkg-config" unless
CROSS_COMPILING))) &&
+ (pkgconfig = with_config("pkg-config", CROSS_COMPILING ?
"#{DEB_HOST_GNU_TYPE}-pkg-config" : "pkg-config")) &&
Unfortunately, DEB_HOST_GNU_TYPE doesn't exist as a ruby variable here.
It probably needs to come from the host architecture's rbconfig.rb. I
checked and unfortunately, rbconfig.rb doesn't have any variable that
would know the right value. It has CONFIG['arch'], which is more like
DEB_HOST_MULTIARCH (and that happens to be correct everywhere except
any-i386). It also has CC valued "#{DEB_HOST_GNU_TYPE}-gcc" and we may
be able to dissect that.
I think the best solution here would be adding CONFIG['PKG_CONFIG'] to
rbconfig.rb and using that. I happen to not know how to implement that.
Does the approach sound reasonable? Would it be upstreamable?
Helmut
--- End Message ---
--- Begin Message ---
Source: ruby3.1
Source-Version: 3.1.2-3
Done: Antonio Terceiro <[email protected]>
We believe that the bug you reported is fixed in the latest version of
ruby3.1, 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 [email protected],
and the maintainer will reopen the bug report if appropriate.
Debian distribution maintenance software
pp.
Antonio Terceiro <[email protected]> (supplier of updated ruby3.1 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 [email protected])
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256
Format: 1.8
Date: Sun, 11 Sep 2022 07:42:05 -0300
Source: ruby3.1
Architecture: source
Version: 3.1.2-3
Distribution: unstable
Urgency: medium
Maintainer: Debian Ruby Team
<[email protected]>
Changed-By: Antonio Terceiro <[email protected]>
Closes: 1019520
Changes:
ruby3.1 (3.1.2-3) unstable; urgency=medium
.
[ Antonio Terceiro ]
* Use current Ruby version as baseruby for crossbuilding.
This fixes crossbuilding Ruby when it's not the default Ruby version.
* rbconfig, mkmf: call foreign pkg-config when cross compiling
(Closes: #1019520)
* libruby3.1: depend on packages that used to be provided by ruby2.7.
This allows *ruby2.7 to be removed after upgrades from bullseye where
the user has installed packages that depend on either ruby-webrick or
ruby-sdbm.
* debian/rules: remove extension build directories.
This should make libruby3.1 cross-installable, because those directories
contains files that are architecture-dependent. Also, installing source
files and build scripts for extensions makes no sense (and we already
remove them for individual Ruby packages).
.
[ Vagrant Cascadian ]
* debian/rules: Strip the build path from rbconfig.rb
Checksums-Sha1:
862f085200627a5fc909e3105f2e586a26ba1093 2477 ruby3.1_3.1.2-3.dsc
33bdfa917862c4a142f10f02d3a4b84059671602 59220 ruby3.1_3.1.2-3.debian.tar.xz
9862adc4fa63e1bf39a6068245114080b846d717 7872 ruby3.1_3.1.2-3_source.buildinfo
Checksums-Sha256:
5332e03c05416c7b3d89597d86be6f92c14559c9a447d2075448f11cf2055ed5 2477
ruby3.1_3.1.2-3.dsc
3e7a53d11005cb4e7966510c367e95e8589d586deaaf5fcb54f6b4f5c3150434 59220
ruby3.1_3.1.2-3.debian.tar.xz
3ff1d964ff3439a6cbafa0be7c42ad2a360ac379ae32885127af94dc3c3966fc 7872
ruby3.1_3.1.2-3_source.buildinfo
Files:
a7c60c5a6c4950eb1641d2df6f3611cc 2477 ruby optional ruby3.1_3.1.2-3.dsc
61c15bee5f050f2d75e98ab2999ae880 59220 ruby optional
ruby3.1_3.1.2-3.debian.tar.xz
15832d2c3360bb5e7e31643de6d5e264 7872 ruby optional
ruby3.1_3.1.2-3_source.buildinfo
-----BEGIN PGP SIGNATURE-----
iQIzBAEBCAAdFiEEst7mYDbECCn80PEM/A2xu81GC94FAmMdu6wACgkQ/A2xu81G
C94w1A/+M1siHCIfsjvdn2sB168fw+eR/mv/wjVCvuIqWFC4I47U0figWgfe9dv7
FuRcRfjPvUWAoBtB2JkaRJN8a2zXUo7GBKHlnzhKKlqHSeyh9qLLKgiWAILegNtj
eODi1UjrRcIWlk2Y3Wh7fxzOTPpqgLOgQPuWip9Y27sTwPqmmROA6j386rs7y5Ce
Hrdj0tyKkHGMApsRr9On7l1b3VMTBdA2NR+5ma3FciSkO8r5voF9pLKaQA1g1TUg
XKSCwvNAD9HtrST9VbW9U6almh+DVQ6GgSSS4vwcYCUnqRi8OfQCo1m0QjHVnYMa
jpP070uYhhNsGLzSoQjcHd7I1MytK/SbkgRW5qo9PrQm2wAf3yN6vm9ZTPwxiSip
QY1bQL9Iw3fwKpHPjKobcqwpJjN/MTfGrCxGN2et7uVUFcsYobFswFipuxjph2ZM
PAVUYJjyHWOdGVwdsvXL3Uz8PK/FgkxBZg1r4J2skut525JEvin2fWlr2ndiLma3
GNPXICyxOaKoGSYWMYvNmBGqpZ7BBQbfTfSChHQOQd5jZfUfJFAX0sLVuMZZGvkC
efaH4CEmowHRPXGHd92UoTW0j+2vMwxAFkX/k13pOLCguOhR6BwwNihzDh2d8Sdp
Ty0VLCz0SDmVlce+40TpOB1Ol+hrxHYnPgu3bhFkhe76Ug9ueqQ=
=dNS4
-----END PGP SIGNATURE-----
--- End Message ---
_______________________________________________
Pkg-ruby-extras-maintainers mailing list
[email protected]
https://alioth-lists.debian.net/cgi-bin/mailman/listinfo/pkg-ruby-extras-maintainers