Hi, This is caused by a very weird behavior of dpkg-query. The package uses my packaging hints, where I said:
...
elif dpkg-query -f '${Version}' -W 'apache2.2-common' > /dev/null 2>&1
; then
[ -d /etc/apache2/conf.d/ ] && [ ! -L
/etc/apache2/conf.d/$CONF.conf ] && ln -s ../conf-available/$CONF.conf
/etc/apache2/conf.d/$CONF.conf
fi
...
However, it turns out that dpkg-query returns 0 for packages even if
they are not installed, but referenced from any package dependency only,
such as:
root@build:/# dpkg-query -f '${Status}\n' -W 'apache2-doc'
unknown ok not-installed
root@build:/# grep "apache2-doc" /var/lib/dpkg/status
Suggests: www-browser, apache2-doc, apache2-suexec-pristine |
apache2-suexec-custom
Suggests: www-browser, apache2-doc, apache2-suexec-pristine |
apache2-suexec-custom, apache2-utils
In contrast:
root@build:/# dpkg-query -f '${Status}\n' -W 'nosuchpackage'
dpkg-query: no packages found matching nosuchpackage
Well.
Can you rather try if this example fixes your problem:
http://paste.debian.net/7957/?
If yes, please update
http://wiki.debian.org/Apache/PackagingFor24#Making_web_applications_compatible_to_both.2C_Apache_2.2_and_2.4
too.
--
with kind regards,
Arno Töll
IRC: daemonkeeper on Freenode/OFTC
GnuPG Key-ID: 0x9D80F36D
signature.asc
Description: OpenPGP digital signature

