Understanding rpmbuild check-rpath error

dexter dex.mbox at gmail.com
Mon Nov 12 23:27:45 UTC 2012


On 11 November 2012 01:21, Suvayu Ali <fatkasuvayu+linux at gmail.com> wrote:
> On Sat, Nov 10, 2012 at 10:53:15PM +0100, Suvayu Ali wrote:
>>
>> I'm trying to build a git snapshot rpm package of notmuch and I keep
>> running into a warning.  As I understand from the message, it can be
>> worked around but I would rather resolve the problem than sweep it under
>> the rug.  I'm using the spec file from the Fedora srpm with a couple of
>> changes to include the git commit in the package and tarball name.
>>
>> Could someone help me understand what the error is and where the problem
>> might be?
>>

RPATHS are considered bad in fedora but dont ask me why :-)

> I came across this:
>
> <http://www.rootninja.com/rpmbuild-check-rpaths-can-break-spec-files/>
>
> I guess that means in my case working around by setting QA_RPATHS is the
> best bet?

Alternatively you could try in your install section:
chrpath --delete %{buildroot}%{_bindir}%{name}
or
patch the configure script around line 491 to not include the rpath
linker flags.

   ...dex


More information about the users mailing list