rpmbuild: Bad Requireflags: qualifiers: Requires(posttrans)

Panu Matilainen pmatilai at laiskiainen.org
Tue Jan 25 12:54:24 UTC 2011


On 01/24/2011 11:16 PM, Matt McCutchen wrote:
> On Mon, 2011-01-24 at 14:02 -0500, Bill Nottingham wrote:
>> I believe folding any requirements for %posttrans scripts into
>> 'Requires(post)' should be sufficient.
>
> I don't think so... IIUC, Requires(post) only applies until installation
> is complete, but a %posttrans script also runs following uninstallation.
> Granted, it may not be a problem for other reasons.

%posttrans does NOT run on uninstallation. So in that sense 
Requires(post) is in fact more correct than plain Requires.
It really does need its own dependency type to be handled correctly 
though: %posttrans dependencies should not be taken into account on 
ordering, and it should be possible to remove such dependencies after 
installation (provided that nothing else depends on them of course). 
%posttrans dependencies only need to guarantee the dependency doesn't 
get removed in the same transaction.

	- Panu -



More information about the devel mailing list