Your message dated Sat, 13 Sep 2025 22:20:19 +0000
with message-id <[email protected]>
and subject line Bug#1114845: fixed in dh-builtusing 0.0.8
has caused the Debian Bug report #1114845,
regarding dh-builtusing: add support for virtual packages and improve support
for cross-builds
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.)
--
1114845: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1114845
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Package: dh-builtusing
Version: 0.0.7
Severity: normal
Control: affects -1 src:tsocks
X-Debbugs-Cc: [email protected]
Dear Maintainer,
I'd like to give some context here by referring to a specific package (tsocks).
I was trying to make tsocks cross-buildable which was failing with (cross
compiling from
amd64 to arm64):
| dh_builtusing -a
| dh_builtusing: error: libc-dev-bin should match one installed package, got:
| glibc,2.41-8,amd64
And it had "Built-Using: ${dh-builtusing:libc-dev-bin}" in its d/control.
This fails because libc-dev-bin is marked "M-A: foreign" and can therefore pull
in the binary that's present in amd64. The code in dh-builtusing tries to match
the architecture of B-U package (in this case, amd64) with the host arch (in
this case
arm64) here [1] and it therefore fails here.
Next step was to look for an alternative. "Built-Using:
${dh-builtusing:libc6-dev}" works
fine but it is a no-go as well because this breaks cross-builds for ports
(libc6-dev package
is not available on hurd-any and alpha).
The next step was to try to replace it with libc-dev. This does not work because
dh-builtusing issues a `dpkg-query` in its code here [2] which does not work
for virtual packages.
Finally, we had to resort to something fairly manual [3] - i.e. manually adding
substvars in d/rules to get it working.
But, I think (and Helmut seems to concur) that this ought to be easier than
doing manual
workarounds here.
If a fix can be made in dh-builtusing itself that would be helpful. One idea is
to
somehow add in support for virtual packages.
I'd like to hear from you about it, and would be happy to discuss any ideas you
may have regarding the same.
On a somewhat related note, I also noticed that using libc-dev-bin in d/rules
for Built-Using field is also something that other packages do [4]. So there are
at least a few more packages that could profit from a fix here.
The related mailing list thread and all the discussion about it can be found
here [5] for
your reference.
PS: Please consider to cc: debian-cross@ mailing list for further
correspondence.
[1]
https://salsa.debian.org/debian/dh-builtusing/-/blob/master/dh_builtusing?ref_type=heads#L92
and the code in question is:
```
my @x = split qr/ , /;
if ( @x == 2 or $x[2] eq 'all' or $x[2] eq hostarch ) {
push @result, $x[0], $x[1];
}
```
[2]
https://salsa.debian.org/debian/dh-builtusing/-/blob/master/dh_builtusing?ref_type=heads#L87
and the relevant code:
```
my $format =
$glob =~ m/ : /
? "\${source:Package},\${source:Version}\n"
: "\${source:Package},\${source:Version},\${Architecture}\n";
my @out = qx_cmd( 'dpkg-query', '-Wf', $format, $glob ); # _;
my @result;
```
[3]
https://salsa.debian.org/debian/tsocks/-/commit/5fe61d74c10dcab1cdd354457e52f1b951263d57
[4]
https://codesearch.debian.net/search?q=libc-dev-bin+path%3Adebian%2Frules&literal=0&page=1
[5] https://lists.debian.org/debian-cross/2025/08/msg00028.html
Best,
Nilesh
--- End Message ---
--- Begin Message ---
Source: dh-builtusing
Source-Version: 0.0.8
Done: Nicolas Boulenguez <[email protected]>
We believe that the bug you reported is fixed in the latest version of
dh-builtusing, 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.
Nicolas Boulenguez <[email protected]> (supplier of updated dh-builtusing
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: SHA512
Format: 1.8
Date: Thu, 11 Sep 2025 18:30:47 +0000
Source: dh-builtusing
Architecture: source
Version: 0.0.8
Distribution: unstable
Urgency: medium
Maintainer: Nicolas Boulenguez <[email protected]>
Changed-By: Nicolas Boulenguez <[email protected]>
Closes: 1114845
Changes:
dh-builtusing (0.0.8) unstable; urgency=medium
.
* Support Multi-Arch: foreign/allowed dependencies. Closes: #1114845.
Checksums-Sha1:
3ef64ec16a5d06910bf1e4a7a7f06c937680225f 1646 dh-builtusing_0.0.8.dsc
fae0e4a03da437f8d6a85f183c64a0973358c119 9672 dh-builtusing_0.0.8.tar.xz
Checksums-Sha256:
a7a83d999212eec8826a05ef0c5680bac42fd65581dc832d939d2b2e751aa547 1646
dh-builtusing_0.0.8.dsc
5ba0721590a6f15b38aa963c2276b3efd2f48fe565d284c7b660cdab13657097 9672
dh-builtusing_0.0.8.tar.xz
Files:
5ac6a787ad2e965f8fc3d64177a3c570 1646 devel optional dh-builtusing_0.0.8.dsc
4bfe0a2d9907e2a4606e38210e7dadb0 9672 devel optional dh-builtusing_0.0.8.tar.xz
-----BEGIN PGP SIGNATURE-----
iQJHBAEBCgAxFiEEawm/6zYhqkfTAKHtFHKayZgPCdIFAmjFpm4THG5pY29sYXNA
ZGViaWFuLm9yZwAKCRAUcprJmA8J0vDaD/9LmPux3JxaZBjiQCc4mJEvsyCJz69Q
fe7ZX6YN/qiZQtq62o8Qrl7mfWNUqRT0O28nKshy6dcWSE8Qb+yqDfUzydfHhHx4
JSVSqGwtA2PlEssRy0AZtDX4qdZOrfDFgsS4ke9afXRt8wTo/6B1nFl51kYRfO0z
mDUsIFNToKJz6cXFHsS+l7Alh+Oov3LsX7yGAq3BdH7j9JMc1rQ0jGsF7NwvF5y9
21r7hB06dzsg/g4pryiEXcwnAkPPwsquvl91flXZl40rVTo+koPo0jZaSskIObKP
FbxR3ndinxg1AIhEi42ArvDmValmE7+OreAGoCP8W7Rya4aQRI5+JS6b29j+xsx1
BeJWO8PJKGlkqDXilh0HZdXa+UrdRRdArIVONiXM93q0GQ2tpugscxrWw1S56eaH
RBKR9ke15W/KqsAI1bE0SyjzAR5z1cmAFYu7bcXZTirnmHTez7OfVnHdG6gkfcdw
43TaQ509tGUEc3Fp6MYPTzb8iqIbsHdIUn4+33xQ9x40X/cTsQ4owwLynFSoxAxJ
20IRfFEK8HsxNzIgaZlO3ILyefzrsFXZ01J2CEN+pO/1kmNqklcCzAh59kdpYLiH
Qm9gU2C18B09GWSLqJ27iCiWUdFTdHZ8JBguA/gSfH3Q41dvykyVuIL7C/Z/vVsC
zkhrj2d2lILAgQ==
=Xm0h
-----END PGP SIGNATURE-----
pgpyvS1kohXPP.pgp
Description: PGP signature
--- End Message ---