I've rebuilt apache2 as a binNMU, i.e. without patching the package itself, but 
only changing its build environment. Thus, I appended the string "+b1" to its 
version as described in https://wiki.debian.org/binNMU

All resulting packages compile without any problem, but when I try to install 
apache2 from these packages, I get the following error:

# apt install apache2
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:

The following packages have unmet dependencies:
 apache2 : Depends: apache2-data (= 2.4.57-2)
           Recommends: ssl-cert but it is not going to be installed
E: Unable to correct problems, you have held broken packages.

Searching for the root cause in debian/control, I see this:

Package: apache2
Architecture: any
Depends: apache2-bin (= ${binary:Version}),
         apache2-data (= ${source:Version}),
         apache2-utils (= ${binary:Version}),

In the apache2-data line, is $source intentionally be used instead of $binary? 
If so, why? Or is this a bug? Replacing ${source:Version} with 
${binary:Version} would at least fix the installation issue of my self-built 
binNMU.

Thanks for any advice.

Reply via email to