How to disable running installation scriptlets during build time
I do a relative symlink
in the post scriptlet. The problem is when I install the package with a
relocation, rpm looks for a dependence on the linked file in its original directory.
Moreover, at install
time, I run rpm from a Shell script which sets environment variables that I use
in the scriptlets, especially to chown delivered files to a user known at this
time only. That’s why those scriptlets cannot be ran at build time.
Â*
Does I need just to set %__scriptlet_requires
to %{nil} to disable it ?
Â*
Â*
-----Message d'origine-----
DeÂ*:
rpm-list-bounces@redhat.com [mailto:rpm-list-bounces@redhat.com] De la part de Jeff Johnson
ObjetÂ*: Re: How to disable
running installation scriptlets during build time
Â*
Â*
2008/1/17 <patrice.elasri@sofrecom.com>:
rpm : 4.4.7
platforms : HPUX 11.23 / ia64, aix 5.3
Â*
Hi,
Building a rpm package, I
noticed that, right now, installation scriptlets are run at build time, during
the "processing files" step. It seems to me having seen on Internet
that this is for finding required files/commands used in those scriptlets.
Â*
There is a means to
automate scriptlet dependencies using bash --rpm-requires.
Â*
In rpm-4.4.4 (and later)
the mechanism for automating has been added