On Fri, 26 Dec 2025 13:47:41 +0100 Sebastiaan Couwenberg
<[email protected]> wrote:
Control: tags -1 ftbfs patch
On Thu, 18 Dec 2025 13:46:04 +0100 Guillem Jover <[email protected]> wrote:
> With the new dpkg >= 1.23.0 release series, which contains several
> deprecations that emit warnings and is more strict when parsing data,
> the autopkgtests for this package are failing, making it also affect
> dpkg's own migration.
>
> The lintian test suite might also be failing I guess.
One of the failures is:
t/recipes/debian/test-out/packages/checks/debian/control/field/build-profiles/fields-build-profiles-general:
[...]
dpkg-source: error: '<<in<valid>>' is not a valid build profile restriction
formula
That seems be caused by this change in dpkg 1.23.0:
https://git.dpkg.org/cgit/dpkg/dpkg.git/commit/?id=7ef1a039771fc833ca0518e50cc68c21c8c6f872
I guess we'd need to use valid syntax in the source package that gets built,
and then modify the generated package to reintroduce the invalid value.
Alternatively drop/disable the check because dpkg now catches it.
According to UDD there are no affected packages:
https://udd.debian.org/lintian-tag/invalid-restriction-formula-in-build-profiles-field?affected=yes
The same dpkg-source error is causing a second test to fail:
t/recipes/debian/test-out/packages/checks/fields/package-relations/fields-build-profiles-general:
[...]
dpkg-source: error: '<<in<valid>>' is not a valid build profile restriction
formula
A different test failure is in between the above two:
t/recipes/debian/test-out/packages/checks/debian/rules/rules-symlink:
[...]
dpkg-source: warning: --auto-commit is not a valid option for
Dpkg::Source::Package::V3::Native
debian/rules clean
Can't exec "debian/rules": Permission denied at
/usr/share/perl5/Dpkg/BuildDriver/DebianRules.pm line 200.
dpkg-buildpackage: error: debian/rules clean subprocess failed with unknown
status code -1
Making rules.real executable resolves this issue.
The attached patch fixes the FTFBS by dropping the
invalid-restriction-formula-in-build-profiles-field check and making the rules
files executable.
Kind Regards,
Bas
--
PGP Key ID: 4096R/6750F10AE88D4AF1
Fingerprint: 8182 DE41 7056 408D 6146 50D1 6750 F10A E88D 4AF1
Greatly appreciated.
I'll test, merge and release :)
--
⢀⣴⠾⠻⢶⣦⠀
⣾⠁⢠⠒⠀⣿⡁ Louis-Philippe Véronneau
⢿⡄⠘⠷⠚⠋ [email protected] / veronneau.org
⠈⠳⣄