[gamin] Re: gamin: libtool linking fix



Daniel Veillard wrote:
> On Wed, Sep 21, 2005 at 12:10:44PM +0200, Stanislav Brabec wrote:
> > Patch below removes illegal references to build directory in
> > installed .la files. Tested with gamin-0.1.5.
> > 
> > dependency_libs=' -L/usr/src/packages/BUILD/gamin-0.1.5/libgamin/.libs /usr/lib/libgamin-1.la'
> > found trace of $RPM_BUILD_ROOT or $RPM_BUILD_DIR in installed .la file
> > error: Bad exit status from /var/tmp/rpm-tmp.23652 (%install)
> > 
> > The patch is trivial and the result will be correct .la file.

>   Now if you run make tests in a build tree, will the python based tests
> use the system library or the one built on the tree ? I'm afraid this 
> may break "make tests" semantic. 

It seems that libtool is intelligent enough (probably thanks to
"installed=no") and everything uses just-built instance.

I did a following test:

Build and install:
rpm -Uhv /usr/src/packages/RPMS/x86_64/gamin-*

Clean and build again:
cd /usr/src/packages/BUILD/gamin-0.1.5/python/
make clean
strace -f -o pyth.str make
strace -f -o pytht.str make tests

Check, which libgamin was used:
fgrep /usr/lib64/libgamin-1. *.str
Not found.
fgrep libgamin-1. *.str
Many occurrences found, all refers to local directory.

-- 
Best Regards / S pozdravem,

Stanislav Brabec
software developer
---------------------------------------------------------------------
SuSE CR, s. r. o.                             e-mail: sbrabec suse cz
Drahobejlova 27                               tel: +420 296 542 382
190 00 Praha 9                                fax: +420 296 542 374
Czech Republic                                http://www.suse.cz/




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]