RE: %post and sub packages

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

 



 

> -----Original Message-----
> From: rpm-list-bounces@xxxxxxxxxxxxx 
> [mailto:rpm-list-bounces@xxxxxxxxxxxxx] 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@xxxxxx>
> --    X/OS Experts in Open Systems BV   |   Phone: +31 20 6938364
> --    Amsterdam, The Netherlands        |     Fax: +31 20 6948204
> _______________________________________________
> Rpm-list mailing list
> Rpm-list@xxxxxxxxxxxxx
> 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.

Attachment: test.spec
Description: Binary data

_______________________________________________
Rpm-list mailing list
Rpm-list@xxxxxxxxxxxxx
http://lists.rpm.org/mailman/listinfo/rpm-list

[Index of Archives]     [RPM Ecosystem]     [Linux Kernel]     [Red Hat Install]     [PAM]     [Red Hat Watch]     [Red Hat Development]     [Red Hat]     [Gimp]     [Yosemite News]     [IETF Discussion]

  Powered by Linux