%post and sub packages
Jason Pyeron
jpyeron at pdinc.us
Sun Apr 26 03:28:15 UTC 2009
> -----Original Message-----
> From: rpm-list-bounces at lists.rpm.org
> [mailto:rpm-list-bounces at lists.rpm.org] On Behalf Of Jos Vos
> Sent: Saturday, April 25, 2009 13:28
> To: General discussion about the RPM package manager
> Subject: Re: %post and sub packages
>
> 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}"
No this is valid. See attached spec file.
>
> 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.
Exactly the purpose needed, assumed one could pass args to exec (man exec -S3)
>
> --
> -- Jos Vos <jos at xos.nl>
> -- X/OS Experts in Open Systems BV | Phone: +31 20 6938364
> -- Amsterdam, The Netherlands | Fax: +31 20 6948204
> _______________________________________________
> Rpm-list mailing list
> Rpm-list at lists.rpm.org
> http://lists.rpm.org/mailman/listinfo/rpm-list
>
--
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
- -
- Jason Pyeron PD Inc. http://www.pdinc.us -
- Principal Consultant 10 West 24th Street #100 -
- +1 (443) 269-1555 x333 Baltimore, Maryland 21218 -
- -
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
This message is copyright PD Inc, subject to license 20080407P00.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: test.spec
Type: application/octet-stream
Size: 665 bytes
Desc: not available
URL: <http://lists.rpm.org/pipermail/rpm-list/attachments/20090425/a2a9240b/attachment.obj>
More information about the Rpm-list
mailing list