Subject: Re: Virtual packages and package classes
To: None <tech-pkg@netbsd.org>
From: Roland Illig <rillig@NetBSD.org>
List: tech-pkg
Date: 06/27/2006 19:54:11
joerg@britannica.bec.de wrote:
> On Tue, Jun 27, 2006 at 01:40:53AM +0200, Roland Illig wrote:
> 
>>I suggest an alternative form:
>>
>>    lib/X11/fonts/X11/geni102.ttf
>>    @post-install register-truetype-font %f
>>    @pre-deinstall unregister-truetype-font %f
>>    lib/X11/fonts/X11/geni102.ttf
>>    @post-install register-truetype-font %f
>>    @pre-deinstall unregister-truetype-font %f
>>
>>This way it is clear which arguments the trigger gets (they will be 
>>parsed like in the shell, and %f expands to the properly quoted filename 
>>that occured last). You can also define triggers that don't take any 
>>arguments with this scheme.
> 
> 
> (a) What happens if a package "forgets" the pre-deinstall line? I
> explicitly want to avoid that since it is an implementation detail of
> the trigger whether or not it is actually a real function.

I don't understand these sentences.

What do you mean by "forgets"? That a package just registers a true-type 
font but never unregisters it? (=> make it a pkglint check)

Please explain the second sentence. I have absolutely no idea what you 
mean with "real function".

Roland