Re: %post and sub packages

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

 



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@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

[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