Red Hat Bugzilla – Bug 78045
libgnomecanvas binary rpm doesn't build
Last modified: 2015-01-07 19:01:44 EST
From Bugzilla Helper:
User-Agent: Mozilla/5.0 (X11; U; Linux ppc; en-US; rv:0.9.8) Gecko/20020310
Description of problem:
Building a binary RPM from the source RPM fails, unless an old version of the
binary RPM is already installed on the build host.
Version-Release number of selected component (if applicable):
Steps to Reproduce:
rpm -e libgnomecanvas libgnomecanvas-devel
rpm -ivh libgnomecanvas-2.0.2-1.src.rpm
rpmbuild -bb SPECS/libgnomecanvas.spec
Actual Results: rpmbuild fails in %install:
libtool doesn't find libcanvas-2.so to re-link libglade/2.0/libcanvas.so
Expected Results: binary RPM should be built.
libtool wants to perform a re-link step to install libglade/2.0/libcanvas.so to
the build root. libtool assumes that libcanvas-2.so has already been installed
to its final destination, /usr/lib, but it's in the build root instead.
This can be fixed by pointing the environment var LIBRARY_PATH into the build
root while %installing.
Created attachment 85404 [details]
patch to the spec file
Hmm, I thought we'd fixed libtool not to do this.
We have, but it looks like the "ltmain.sh" in libgnomecanvas
wasn't generated with it...
(The relink patch is not upstream yet.)
Just need to run libtoolize in libgnomecanvas spec file I guess.
Fixed in libgnomecanvas-2.1.90-2. (I just added libtoolize -f to %build)