[Users] Schedule for Ubuntu PPA Update

Holger Berndt berndth at gmx.de
Wed May 29 02:19:18 CEST 2013


Hello Ricardo,

On Fr, 24.05.2013 00:33, Ricardo Mones wrote:

>> >  There's even a third possibility, forget about triplets and just
>> > extract
>> >the .so symlink location from python itself by running
>> >“python-config --ldflags” and some sed/grep plumbing and readlink to
>> >get the real location.
>> 
>> That gives you the so name, but not the location. The problem is the
>> location, not the name.
>
>  Not sure what you mean, I was referring to these (for standard and
>  multi-arch hosts):
>
>$ python-config --ldflags
>-L/usr/lib/python2.7/config -lpthread -ldl -lutil -lm -lpython2.7 -Xlinker -export-dynamic -Wl,-O1 -Wl,-Bsymbolic-functions
>  ^^^^^^^^^^^^^^^^^^^^^^^^^
>
>$ python-config --ldflags
>-L/usr/lib/python2.7/config-x86_64-linux-gnu -L/usr/lib -lpthread -ldl  -lutil -lm  -lpython2.7 -Xlinker -export-dynamic -Wl,-O1 -Wl,-Bsymbolic-functions
>  ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
>
>  Not the real location, but directly related, AFAICS.

That's coincidence. Here, it looks like this:

$ python-config --ldflags
-lpthread -ldl -lutil -lm -lpython2.7 -Xlinker -export-dynamic

Neither is the existence of the path guaranteed, nor the position in
the command line if it's there.

Sure, one could start parsing that line, and search for the existence
of the shared lib in any path given, and fall back to standard
locations otherwise. Or maybe a runtime-dependency on ldd? Parsing the
elf directly? (I'm not even sure myself if I'm actually joking or not.)

I can't believe it's so hard to locate a shared library that one links
to. Anyways...

>  Which I guess could be joined-if-not-none in the middle of LIBDIR
>  and LDLIBRARY values. I'm not the pythonist, so no idea how to :) 

... I'm more and more leaning towards removing all that cruft, and
seeing if any real world problems occur. All that scripting and
workarounds for a solution to a problem whose existence is unknown...

Holger
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 198 bytes
Desc: not available
URL: <http://lists.claws-mail.org/pipermail/users/attachments/20130529/1790d622/attachment.sig>


More information about the Users mailing list