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

Bug#868496: debian-policy: Please Clarify Need for update-fonts-dir in postinst and postrm Scripts



Andrey,

On Sun, Jul 16, 2017 at 12:21 AM, Andrey Rahmatullin <wrar@debian.org> wrote:
> On Sat, Jul 15, 2017 at 09:57:32PM -0700, Paul Hardy wrote:
>> "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)."
> No, the policy doesn't talk about dh_* and other helpers (except in
> footnotes).

Then would you consider it acceptable to make some mention in a
footnote to the effect that with the latest "dh" build tools, it isn't
necessary to have postinst and postrm scripts in the debian directory
for this purpose?  Because otherwise, someone who did not already know
about this could misunderstand the implications of this requirement
and create redundant postinst and postrm scripts.

Thanks,


Paul Hardy


Reply to: