[lsb-discuss] Getting started with LSB

Jeff Johnson n3npq at mac.com
Tue Apr 22 07:24:43 PDT 2008

On Apr 22, 2008, at 9:56 AM, Wichmann, Mats D wrote:

>>> My system is *not* RPM based (it is built form source) so the 2nd
>>> point may be something to do with not having /bin/sh in the rpm
>>> database.
>> That's very likely.  However, it also looks like a bug in our  
>> package;
>> we should not include such a dependency in our packages.
>> I've filed bug 2060 for this problem:
>> http://bugs.linuxbase.org/show_bug.cgi?id=2060
> It's an unremovable artifact of constructing an rpm
> (rpm considers this a hard dependency for running
> pre/post scripts and will always put it in, even if
> you tell it not to generate dependencies).
> Instructions for working around this were emailed
> earlier but apparently didn't go out - they should
> be on the list by the time this gets there.

I should note that rpmbuild --lsb removes the /bin/sh dependency (iirc,
noone but me and a single RU has ever used rpmbuild --lsb afaik):

     if (!(rpmExpandNumeric("%{?_disable_shell_interpreter_deps}")
      && !strcmp(progArgv[0], "/bin/sh")))

         (void) addReqProv(spec, pkg->header, RPMTAG_REQUIRENAME,
                 progArgv[0], NULL, (tagflags | RPMSENSE_INTERP), 0);

What's sad is the logical inconsistency of expecting an
installer to run pre/post scripts but demanding that the
obvious prerequisite cannot be represented by anything
other than
     Requires: /bin/sh

Equally sad is that this LSB discussion is occurring in 2008.

Invoking /bin/sh to run a script is hardly s surprising feature of UNIX,
even if LINUX may wish to be different.

73 de Jeff

More information about the lsb-discuss mailing list