#1094227 dpkg-dev: The `dpkg-gencontrol` was about a unused substvar that is used

#1094227#5
Date:
2025-01-26 10:07:39 UTC
From:
To:
Hi,

Doing an update of `architecture-properties`, I added two substvars to
be expanded the description of `cross-exe-wrapper`'s description.


In `debian/rules`, I have the following definition.

When the package is built, I get the following warnings:

But the generated .deb does seem to have used the substvar:


Best regards,
Niels

#1094227#10
Date:
2025-01-26 12:42:26 UTC
From:
To:
Hi!

Ah, that looked very surprising indeed. Started to check what might
have broken on the dpkg-dev side, but then built the package with
DH_VERBOSE=1 and -j1, and got this invocation sequence:

  dpkg-gencontrol -pcross-exe-wrapper -ldebian/changelog \
    -Tdebian/cross-exe-wrapper.substvars -cdebian/control \
    -Pdebian/.debhelper/cross-exe-wrapper/dbgsym-root \
    -UPre-Depends -URecommends -USuggests -UEnhances -UProvides \
    -UEssential -UConflicts -DPriority=optional -UHomepage \
    -UImportant -DAuto-Built-Package=debug-symbols -UProtected \
    -UBuilt-Using -UStatic-Built-Using \
    -DPackage=cross-exe-wrapper-dbgsym \
    "-DDepends=cross-exe-wrapper (= \${binary:Version})" \
    "-DDescription=debug symbols for cross-exe-wrapper" \
    -DBuild-Ids=edede37420ad37957c6efc1b90ec8747e296da5a \
    -DSection=debug -UReplaces -UBreaks

And then:

  dpkg-gencontrol -pcross-exe-wrapper -ldebian/changelog \
     -Tdebian/cross-exe-wrapper.substvars -cdebian/control \
     -Pdebian/cross-exe-wrapper

The first is the one generating the warnings, because its overridden
Description does not use the substvars.

This seems to be part of debhelper automatic debug package generation,
where it's trying to share most of the parent package to generate the
automatic one, but where the substvar inheritance does not seem to be
playing nice.

I don't think this is a problem in dpkg-dev, I guess it could be
considered a bug in debhelper? (If so, feel free to reassign, or to
close. :)

Thanks,
Guillem

#1094227#15
Date:
2025-02-03 11:05:51 UTC
From:
To:
Hi!

Ok, let me reassign to get it out of the way (for dpkg), and then you
can deal with it however you prefer. :)

Thanks,
Guillem