FAQ Search Today's Posts Mark Forums Read
» Video Reviews

» Linux Archive

Linux-archive is a website aiming to archive linux email lists and to make them easily accessible for linux users/developers.


» Sponsor

» Partners

» Sponsor

Go Back   Linux Archive > Redhat > RPM Package Manager

 
 
LinkBack Thread Tools
 
Old 01-17-2008, 09:13 AM
 
Default How to disable running installation scriptlets during build time

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.


Is there a way to disable
this execution, because I do some things which cannot be possibly done on the
building platform.


Regards,


¬*


mailto: patrice.elasri@sofrecom.com

phone: +33 1
43985883


¬*







_______________________________________________
Rpm-list mailing list
Rpm-list@redhat.com
https://www.redhat.com/mailman/listinfo/rpm-list
 
Old 01-17-2008, 02:36 PM
"Jeff Johnson"
 
Default 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#------------------------------------------------------------------------
# executable(...) configuration.## Path to scripts to autogenerate executable(foo) script dependencies,## Note: Used iff _use_internal_dependency_generator is non-zero. The
# helpers are also used by %{_rpmhome}/rpmdeps {--provides|--requires}.#%__executable_provides %{_rpmhome}/executabledeps.sh --provides#%__executable_requires %{_rpmhome}/executabledeps.sh --requires
%__scriptlet_requires * /bin/bash --rpm-requiresTokens in an executable context are parsed as dependencies. E.g. thisscriptlet** *rm -rf %{buildroot}
will generate** *Requires: executable(rm)and an executable called "rm" will be checked for on PATH duringinstallation during dependency checking, just like which(1) or bash(1)
would do.Meanwhile, note that bash --rpm-requires is not perfect. The patchto bash needs to be improved before the mechanism is 100% reliable.
*





Is there a way to disable
this execution, because I do some things which cannot be possibly done on the
building platform.
I'm not sure what you ask. You can disable the mechanism on the build system,yes. But the mechanism is entirely done on the install, not the build, platform if
used correctly.73 de Jeff*
_______________________________________________
Rpm-list mailing list
Rpm-list@redhat.com
https://www.redhat.com/mailman/listinfo/rpm-list
 

Thread Tools




All times are GMT. The time now is 10:11 PM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright ©2007 - 2008, www.linux-archive.org