[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#363005: using update-fonts-dir --x11r7-layout in maintainer scripts breaks partial upgrades



Hi,

while looking at #380396, I noted the breakage is actually in an
unfortunate combination of update-fonts-dir (in xfonts-utils)
requiring the --x11r7-layout option and debhelper unconditionally
putting it in generated postinst/postrm files (dh_installxfonts).

Adding ${misc:Depends} adds the (previously missing) dependency on
xfonts-utils, but does not make it versioned.

postinst:
# Automatically added by dh_installxfonts
if which update-fonts-dir >/dev/null 2>&1; then
	update-fonts-dir --x11r7-layout misc;update-fonts-alias misc
fi
# End automatically added section

postrm:
# Automatically added by dh_installxfonts
if [ -x "`which update-fonts-dir 2>/dev/null`" ]; then
update-fonts-dir --x11r7-layout misc;update-fonts-alias misc
fi
# End automatically added section


I believe the fix is to make --x11r7-layout the default (#363005) and
at the same time revert the debhelper change (#362820). All xfonts
using debhelper would then need (bin?)nmus to get maintainer scripts
without --x11r7-layout.

Christoph
-- 
cb@df7cb.de | http://www.df7cb.de/

Attachment: signature.asc
Description: Digital signature


Reply to: