https://bugzilla.redhat.com/show_bug.cgi?id=1003962
Bug ID: 1003962
Summary: RPM scriptlet -p option not documented
Product: Fedora Documentation
Version: devel
Component: rpm-guide
Assignee: bcotton+fedora(a)gmail.com
Reporter: daniel.neuberger(a)gmail.com
QA Contact: docs-qa(a)lists.fedoraproject.org
CC: bcotton+fedora(a)gmail.com, pkovar(a)redhat.com,
zach(a)oglesby.co
The fedora RPM guide does not document the -p option that can be passed to the
RPM scriptlets. It should probably be located here
http://docs.fedoraproject.org/en-US/Fedora_Draft_Documentation/0.1/html/R...,
but I looked through the entire guide and couldn't find it.
The only only place I could find it documented is here
https://fedoraproject.org/wiki/Packaging:ScriptletSnippets, but what it says is
wrong. It says:
"The basic syntax is similar to the %build, %install, and other sections of the
rpm spec file. The scripts support a special flag, -p which allows the
scriptlet to invoke a single program directly rather than having to spawn a
shell to invoke the programs. (ie: %post -p /sbin/ldconfig)"
A more accurate description is:
"The basic syntax is similar to the %build, %install, and other sections of the
rpm spec file.
The scripts support a special flag, -p which specifies the interPreter that
should be used to run the script (the default is /bin/sh). Sometimes the -p
option is used with no body in order to run a single command directly rather
than having to spawn a shell to invoke the programs (i.e. %post -p
/sbin/ldconfig). Note that this form requires that there be nothing but white
space (not even comments) until the next section begins."
--
You are receiving this mail because:
You are the QA Contact for the bug.