Thanks for the report. I’m at a loss as to how to fix the issue, though.
While Dpkg::Deps::KnownFacts internally can distinguish between installed and virtual packages, its check_package method is deprecated and emits a warning. I can see no other way to access the fact whether a package is virtual or not. Am I missing something here? Should I be using a different module altogether? I can’t find any other implementation of Built-Using in Debian Code Search either. Do you know of one that I haven’t seen? On Tue, Mar 29, 2016 at 10:46 AM, Raphaël Hertzog <[email protected]> wrote: > Package: dh-golang > Version: 1.12 > Severity: important > User: [email protected] > Usertags: origin-kali > > dh-make-golang had a Build-Depends with this: > Build-Depends: debhelper (>= 9), > [...] > golang-blackfriday-dev | > golang-github-russross-blackfriday-dev, > [...] > > While golang-blackfriday-dev used to be a binary package, it's now only > a virtual package provided by golang-github-russross-blackfriday-dev. > > When dh_golang looks up the build depends, it finds golang-blackfriday-dev > as a satisfied dependency and assumes it's a binary package. But it's not > a binary package that can be queried for its version. It's a virtual > package. Due > to this it embeds "golang-blackfriday-dev (= )" in the Built-Using field. > > dh_golang should replace virtual packages by the single package which > provides > it and which satisfies the build-dependency. > > Cheers, > > -- System Information: > Debian Release: stretch/sid > APT prefers unstable > APT policy: (500, 'unstable'), (500, 'testing'), (500, 'stable'), (500, > 'oldstable'), (1, 'experimental') > Architecture: amd64 (x86_64) > Foreign Architectures: i386 > > Kernel: Linux 4.4.0-1-amd64 (SMP w/4 CPU cores) > Locale: LANG=fr_FR.utf8, LC_CTYPE=fr_FR.utf8 (charmap=UTF-8) > Shell: /bin/sh linked to /bin/dash > Init: systemd (via /run/systemd/system) > > Versions of packages dh-golang depends on: > ii debhelper 9.20160313 > ii dpkg 1.18.4 > ii libdpkg-perl 1.18.4 > ii perl 5.22.1-9 > > dh-golang recommends no packages. > > dh-golang suggests no packages. > > -- no debconf information > -- Best regards, Michael

