Red Hat RPM - Any rpmbuild gurus out there?

This is Interesting: Free IT Magazines  
Home > Archive > Red Hat RPM > November 2004 > Any rpmbuild gurus out there?





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author Any rpmbuild gurus out there?
FEEB

2004-11-10, 7:48 am

I would like to solicit help from any rpmbuild gurus out there.

I am building an RPM of a binary software package that resides in
/usr/local/package. Unfortunately, when the RPM is built, it also
contains
some dependency information about files which are actually not needed.
That
makes the RPM impossible to install without '--nodeps', which in turn
creates problems elsewhere.

The $10E6 question is: How can I disable the rpmbuild from creating the
list of dependencies in the first place, or at least from putting
irrelevant stuff on the list?

Thanks


Frank Bures, <feeb@chem.utoronto.ca>


Michal Jaegermann

2004-11-10, 5:50 pm

In linux.redhat.rpm FEEB <feeb@chem.utoronto.ca> wrote:
>
> The $10E6 question is: How can I disable the rpmbuild from creating the
> list of dependencies in the first place, or at least from putting
> irrelevant stuff on the list?


$ rpm --showrc | grep _require
-14: __find_requires /usr/lib/rpm/find-requires

where 'file /usr/lib/rpm/find-requires' prints "Bourne-Again shell
script text executable".

In other words you can redefine '__find_requires' to whatever you
please. Put that defininition in your ~/.rpmmacros and that is it.
It can be path to a script which runs /usr/lib/rpm/find-requires
and filters its output the way you desire, or /bin/true, or anything
else you would want it to be.

Michal
Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2008 webservertalk.com