Package: debian-policy
Version: 4.0.0.4
Severity: minor

--

The Debian Policy Manual, Section 11.8.5, "Packages providing fonts",
states in item 12:

"Font packages must invoke update-fonts-dir on each directory into
which they install fonts.  This invocation must occur in both the
postinst (for all arguments) and postrm (for all arguments except
upgrade) scripts."

Strictly speaking this is correct, but it could be taken to mean that
a font packager must have postinst and postrm scripts in their
package's debian directory.  That is no longer necessary.  I suggest
appending the following to the above paragraph:

"Note: if your build scripts invoke dh_installxfonts, this is handled
automatically and it is not necessary to create postinst or postrm
files in your debian directory for this purpose.  See
dh_installxfonts(1)."

The man page for dh_installxfonts(1) states:

"Your package should depend on xfonts-utils so that the update-fonts-*
commands are available. (This program adds that dependency to
${misc:Depends}.)

"This program automatically generates the postinst and postrm commands
needed to register X fonts. These commands are inserted into the
maintainer scripts by dh_installdeb. See dh_installdeb(1) for an
explanation of how this works."

See also the Debian Fonts Packaging Policy page at
https://wiki.debian.org/Fonts/PackagingPolicy.

The new "dh $@" rules format invokes dh_installxfonts on a font
package at the appropriate time.

Thank you,


Paul Hardy

Reply via email to