Re: Scons build system

2011-10-25 Thread Bernd Zeimetz
Hi,

On 10/24/2011 05:51 PM, José Luis Segura Lucas wrote:
 I'm starting to package a C++ library for Debian and it uses scons to 
 generate the binaries.

Poor you ;)

 The problem is that scons doesn't set the soname on the generated .so file.

Scons doesn't know about it. Telling it about sonames is a mess... Also
if your upstream doesn;t care about sonames (otherwise they would have
stumbled upon this issue) you might want to teach them about sonames and
that yo need to be able to rely on them.

http://git.savannah.gnu.org/cgit/gpsd.git/tree/SConstruct is a big mess
of example on how you coudl do it, search for the VersionedSharedLibrary
function...

Cheers,

Bernd
-- 
 Bernd ZeimetzDebian GNU/Linux Developer
 http://bzed.dehttp://www.debian.org
 GPG Fingerprints: ECA1 E3F2 8E11 2432 D485 DD95 EB36 171A 6FF9 435F


-- 
To UNSUBSCRIBE, email to debian-python-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Archive: http://lists.debian.org/4ea6c7ea.1090...@bzed.de



Re: Scons build system

2011-10-24 Thread Chow Loong Jin
On 24/10/2011 23:51, José Luis Segura Lucas wrote:
 Hello people.
 
 I don't know if this list is appropiate to discuss about Scons. If it isn't,
 please redirect me to the right one.
 
 I'm starting to package a C++ library for Debian and it uses scons to generate
 the binaries.
 
 The problem is that scons doesn't set the soname on the generated .so file.
 
 I was able to fix that, but I had to modify the upstream scons stuff. It's 
 there
 any way to set the sonane using environment variables instead patching the
 upstream sources?
 
 I'm looking for something like
 
 LINKFLAGS=-Wl,-soname=mylib.version.so http://mylib.version.so


I've actually packaged one such package in the past, i.e. sigx. You can take a
look at the packaging if you like (which would really be a blast from the past
because the package hasn't been updated for a few years).

There really isn't a way to set the soname in scons unless the SConstruct things
have provisions for setting LDFLAGS and such already. In fact, one of the major
problems with scons was the lack of DESTDIR support and the need to manually
implement it.

Based on my experience with scons at that time, I think it wouldn't be too far
from the truth to compare scons with raw Makefiles. It's such a crappy build
system I don't even know why people even use it.

Good luck.

-- 
Kind regards,
Loong Jin



signature.asc
Description: OpenPGP digital signature