%post and sub packages
Jos Vos
jos at xos.nl
Sat Apr 25 17:28:02 UTC 2009
On Sat, Apr 25, 2009 at 01:18:10PM -0400, Jason Pyeron wrote:
> %post -p /sbin/ldconfig
>
> %post
> /sbin/ldconfig
>
> %post subpackage
> /sbin/chkconfig --add %{name}
>
> This does not work:
>
> %post subpackage -p "/sbin/chkconfig --add %{name}"
Why should this work? I assume
%post -p "/sbin/chkconfig --add %{name}"
won't work either, as the -p flag requires an executable program
as parameter, which is substantially different from a command.
For the rest,
%post -p /sbin/ldconfig
is just a kind of trick to to not fork a shell to run a script,
but to fork /sbin/ldconfig directly instead.
--
-- Jos Vos <jos at xos.nl>
-- X/OS Experts in Open Systems BV | Phone: +31 20 6938364
-- Amsterdam, The Netherlands | Fax: +31 20 6948204
More information about the Rpm-list
mailing list