On Wed, 24 Sep 2014 20:09:51 +0530, Lalatendu Mohanty wrote:

> On 09/24/2014 07:42 PM, Miloslav Trmač wrote:
> > Hello,
> > the “-p /sbin/ldconfig” syntax triggers a special behavior in RPM /if 
> > the scriptlet is otherwise empty/.  In your case, the “%post libs” 
> > scriptlet also actually, surprising as it may seem, includes the 
> > following lines:
> >
> >     
> > ##-----------------------------------------------------------------------------
> >     ## All %files should be placed here and keep them sorted
> >     ##
> >
> > and hence is not empty.  So RPM skips the special behavior, and 
> > executes /sbin/ldconfig with the usual additional value of $1 as 
> > described in 
> > https://fedoraproject.org/wiki/Packaging:ScriptletSnippets?rd=Packaging/ScriptletSnippets
> >  
> > .
> >
> 
> Mirek,
> 
> Thanks for your quick reply. I think it should be intelligent enough to 
> ignore comments as comments are supported in spec file. Looks like a bug 
> to me.

If it ignored the comments, you could not include any comments in shell
scriptlet sections (the default "-p /bin/sh").

Here the script interpreter is /sbin/ldconfig, which _theoretically_ could
accept scriptlet bodies and execute them - but ldconfig doesn't. ;-)
-- 
devel mailing list
devel@lists.fedoraproject.org
https://admin.fedoraproject.org/mailman/listinfo/devel
Fedora Code of Conduct: http://fedoraproject.org/code-of-conduct

Reply via email to