[Bug 1003962] New: RPM scriptlet -p option not documented

bugzilla at redhat.com bugzilla at redhat.com
Tue Sep 3 14:59:42 UTC 2013


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 at gmail.com
          Reporter: daniel.neuberger at gmail.com
        QA Contact: docs-qa at lists.fedoraproject.org
                CC: bcotton+fedora at gmail.com, pkovar at redhat.com,
                    zach at 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/RPM_Guide/ch09s04s05.html,
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.


More information about the docs-qa mailing list