On 2024-02-28 07:16:07 +0000, Warlich, Christof wrote: > Subject: apache2: (Legacy?) "Depends: apache2-data (= ${source:Version})," in > debian/control breaks binNMU builds. > Source: apache2 > X-Debbugs-Cc: christof.warl...@siemens.com > Version: 2.4.57-2 > Severity: serious > Justification: fails to build from source (but built successfully in the past) > Tags: patch ftbfs > > Dear Maintainer, > > (re)building apache2 as binNMU (i.e. with appending "+b<someNumber> to the > package version") > works, but installation of the resulting apache2 package fails due to the > following dependency > in debian/control: > > Depends: apache2-data (= ${source:Version}), > > It causes apt-get to look for the dependency "apache2-data" (= 2.4.57-2) > which does not exist > in the newly built packages. Instead, the dependency should be satisfied by > "apache2-data (= 2.4.57-2+b<someNumber>)". > > The folliwing patch fixes the issue: > > diff --git a/debian/control b/debian/control > index 2eddc60..31121fa 100644 > --- a/debian/control > +++ b/debian/control > @@ -34,7 +34,7 @@ Rules-Requires-Root: binary-targets > Package: apache2 > Architecture: any > Depends: apache2-bin (= ${binary:Version}), > - apache2-data (= ${source:Version}), > + apache2-data (= ${binary:Version}), > apache2-utils (= ${binary:Version}), > lsb-base, > media-types, > > Please consider applying the patch.
This is wrong. apache2-data is an Architecture: all package, but apache2 is Architecture: any. So using ${source:Version} here is correct. Note that Debian does not currently support binNMUs for Architecture: all packages, so apache2-data will never have a +bX version. Cheers > > Best regards, > > Christof Warlich > > P.S.: Note that the information below, being produced by "reportbug", is > irrelevant as I executed "reportbug" > on WSL2 on Windows 10. The actual Debian version is "bookworm". > > -- System Information: > Debian Release: bookworm/sid > APT prefers jammy-updates > APT policy: (500, 'jammy-updates'), (500, 'jammy-security'), (500, > 'jammy'), (100, 'jammy-backports') > Architecture: amd64 (x86_64) > > Kernel: Linux 5.10.102.1-microsoft-standard-WSL2+ (SMP w/16 CPU threads) > Locale: LANG=C.UTF-8, LC_CTYPE=C.UTF-8 (charmap=UTF-8), LANGUAGE not set > Shell: /bin/sh linked to /usr/bin/dash > Init: systemd (via /run/systemd/system) -- Sebastian Ramacher