Your message dated Thu, 17 Aug 2023 08:14:48 +0200
with message-id <ZN262D+gO0XE3Rl8@pegase>
and subject line close 689062
has caused the Debian Bug report #689062,
regarding dpkg-gencontrol: please expand binary packages in Built-Using to 
source and version
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 ow...@bugs.debian.org
immediately.)


-- 
689062: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=689062
Debian Bug Tracking System
Contact ow...@bugs.debian.org with problems
--- Begin Message ---
Package: dpkg-dev
Version: 1.20.9
Severity: wishlist

Hello.

This pattern seems common:
debian/rules:
  override_dh_gencontrol:
        dh_gencontrol -- "-VBuilt-Using:P1=`dpkg-query -Wf'$${source:Package} 
(= $${source:Version})' P2`"
debian/control:
  Package: P1
  Built-Using: ${Built-Using:P1}

It would be convenient and less error-prone to write:
  Package: P1
  Built-Using: P2
and trust dpkg-gencontrol to replace P2 with the output of
  dpkg-query -Wf '${source:Package} (= ${source:Version})' P2

debian/rules could still use variables, but would not be forced to
deal with dpkg-query anymore.
  override_dh_gencontrol:
    dh_gencontrol -- -VBuilt-Using:P1=$(if TEST,P2)

Especially, conditions depending on architectures or build profiles
could be expressed directly within debian/control:
  Built-Using: P2 [!arm64]

The rewriting should only affect valid package identitiers without
version restriction (after variable substitutions and architecture or
profile restrictions).  Since the Policy requires values matching
'SOURCE (= VERSION)', single identifiers are currently invalid.
Hence, the change would not affect existing packages or, more
generally, explicit values from the maintainer.

--- End Message ---
--- Begin Message ---
Hello.
Dh-builtusing is available in unstable.

--- End Message ---

Reply via email to