[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Re: svn commit: r16237 - trunk/packages/rpm/redhat-7.x

From: David Summers <david_at_summersoft.fay.ar.us>
Date: 2005-09-24 19:24:55 CEST

On Sat, 24 Sep 2005, David James wrote:

> On 9/24/05, david@tigris.org <david@tigris.org> wrote:
>> # Install Python bindings.
>> -make install-swig-py DESTDIR=$RPM_BUILD_ROOT DISTUTIL_PARAM=--prefix=$RPM_BUILD_ROOT
>> +make install-swig-py DESTDIR=$RPM_BUILD_ROOT
>> mkdir -p $RPM_BUILD_ROOT/usr/lib/python2.2/site-packages
>> mv $RPM_BUILD_ROOT/usr/lib/svn-python/* $RPM_BUILD_ROOT/usr/lib/python2.2/site-packages
>> +(cd $RPM_BUILD_DIR/%{name}-%{version}/subversion/bindings/swig/python/.libs/
>> +for i in _*.soU
>> +do
>> + n=`basename $i U`
>> + mv $i $RPM_BUILD_ROOT/usr/lib/python2.2/site-packages/libsvn/$n
>> +done
>> +)
>> rmdir $RPM_BUILD_ROOT/usr/lib/svn-python

> David, thanks for figuring out the solution to this problem! I'd like
> to move your code into the standard Python installer, so that we can
> correctly do "DESTDIR" installations out of the box on all systems
> which require this extra incantation. Ideas?
>

Desperate times call for desperate measures. :-)

I think the problem I worked around is that the libtool is not finding the
-lsvn_swig_py during the (re?)link and so it doesn't create the
appropriate _*.so file but the _*.soU files are there. The correct answer
is to figure out why the libtool can't relink it correctly. What I did
was just a desparate hack to try to get something to work without really
understanding the basis for the problem.

Short answer: No, I don't have any ideas other than fixing the libtool or
what it operates on.

I think if the libtool would correctly link it then the DESTDIR would work
fine (it does on RHEL-4).

--
David Wayne Summers        "Linux: Because reboots are for hardware upgrades!"
david_at_summersoft.fay.ar.us PGP Key: http://summersoft.fay.ar.us/~david/pgp.txt
PGP Key fingerprint =  0B44 B118 85CC F4EC 7021  1ED4 1516 5B78 E320 2001
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Sat Sep 24 19:25:43 2005

This is an archived mail posted to the Subversion Dev mailing list.