[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]
Re: turning off /bin/sh auto-require
- From: Jeff Johnson <jbj JBJ ORG>
- To: rpm-list redhat com
- Subject: Re: turning off /bin/sh auto-require
- Date: Sat, 1 Dec 2001 08:01:14 -0500
On Fri, Nov 30, 2001 at 04:47:47PM -0600, Tim Mooney wrote:
> In regard to: turning off /bin/sh auto-require, Dano Carroll said (at...:
>
> >I compiled rpm 4.0.2 for Solaris 2.6. I've turned off auto requires in
> >the spec file (autoreqprov: no) to prevent library dependency
> >additions. However, the rpm created still adds /bin/sh as a
> >dependency. Of course this file exists on the system I'm doing the
> >install on, but it isn't listed in the rpm database since it is
> >provided by the Solaris package system. How do I prevent this
> >requirement from being added to my rpm?
>
> If there are any scripts (e.g. %post, %pre, etc) then you can't prevent
> /bin/sh as a dependency unless you actually edit the source code for RPM
> and remove the section that emits that dependency.
>
> Your options:
>
> 1) add
>
> Provides: /bin/sh
>
> to /etc/rpmrc on your Solaris box.
>
Be forewarned:
This mechanism is a hack, and is gonna disappear w/o warning
one of these rpm releases. Use the virtual package mechanism
in 2) please. I've almost managed to remove the mechanism from
rpm 3 times now, will get there yet.
> or
>
> 2) build a virtual package that provides the necessary functionality (and
> other stuff if you want -- that way you can leave the AutoReqProv on),
> as described in previous messages on this list. See also the
> vpkg-provides.sh and brethren that are shipped as contributed materials
> with RPM 4.0.x.
>
And thank you, Tim, for providing the rplacement for /etc/rpmrc Provides: :-)
73 de Jeff
--
Jeff Johnson ARS N3NPQ
jbj@jbj.org (jbj@redhat.com)
Chapel Hill, NC
[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]
[]