Building debs with SWIG libraries do not work

Bug #635273 reported by Robert J. Hansen
10
This bug affects 1 person
Affects Status Importance Assigned to Milestone
python-support (Ubuntu)
Fix Released
High
Unassigned
Lucid
Won't Fix
Medium
Canonical Foundations Team

Bug Description

Affected systems: Ubuntu 10.04 LTS, x86. (x86_64 has not been tested.)

I am attempting to put together a .deb for Djinni, a metaheuristic modeling tool. Djinni consists of a C++ core, with SWIG-generated Python bindings to those C++ libraries. After creating and installing the .deb, the pure Python files are installed correctly, but the C++ libraries are not.

E.g., 'import djinni' works fine, since the djinni package is pure Python: 'import djinni.ca_tsp' does not, since this depends on the .so file _ca_tsp, which cannot be found.

The .so files are present in the .deb, getting installed to /usr/lib/pyshared/python2.6/djinni.

The .dsc file can be obtained from http://sixdemonbag.org/packaging/djinni_2.2.4-1.dsc . A complete source tree can also be found there.

Scott K in #debian-python has checked this out on Debian Sid and reports it works correctly. Likewise, this bug is not reproducible on Ubuntu 10.10. He was able to reproduce it on Ubuntu 10.04.

Revision history for this message
Scott Kitterman (kitterman) wrote :

Seems to be related to how python-support builds symlinks. Works in maverick, but not 10.04.

affects: ubuntu → python-support (Ubuntu)
Changed in python-support (Ubuntu):
importance: Undecided → High
milestone: none → ubuntu-10.04.2
status: New → Fix Released
Revision history for this message
Scott Kitterman (kitterman) wrote :

debc snippet from maverick/sid:

drwxr-xr-x root/root 0 2010-09-10 18:02 ./usr/lib/pyshared/
drwxr-xr-x root/root 0 2010-09-10 18:02 ./usr/lib/pyshared/python2.6/
drwxr-xr-x root/root 0 2010-09-10 18:02 ./usr/lib/pyshared/python2.6/djinni/
-rw-r--r-- root/root 101712 2010-09-10 18:02 ./usr/lib/pyshared/python2.6/djinni/_sa_tsp.so.0.0.0
-rw-r--r-- root/root 81776 2010-09-10 18:02 ./usr/lib/pyshared/python2.6/djinni/_tsp.so.0.0.0
-rw-r--r-- root/root 102704 2010-09-10 18:02 ./usr/lib/pyshared/python2.6/djinni/_ca_tsp.so.0.0.0
lrwxrwxrwx root/root 0 2010-09-10 18:02 ./usr/lib/pyshared/python2.6/djinni/_sa_tsp.so -> _sa_tsp.so.0.0.0
lrwxrwxrwx root/root 0 2010-09-10 18:02 ./usr/lib/pyshared/python2.6/djinni/_ca_tsp.so -> _ca_tsp.so.0.0.0
lrwxrwxrwx root/root 0 2010-09-10 18:02 ./usr/lib/pyshared/python2.6/djinni/_tsp.so -> _tsp.so.0.0.0
lrwxrwxrwx root/root 0 2010-09-10 18:02 ./usr/lib/pyshared/python2.6/djinni/_ca_tsp.so.0 -> _ca_tsp.so.0.0.0
lrwxrwxrwx root/root 0 2010-09-10 18:02 ./usr/lib/pyshared/python2.6/djinni/_sa_tsp.so.0 -> _sa_tsp.so.0.0.0
lrwxrwxrwx root/root 0 2010-09-10 18:02 ./usr/lib/pyshared/python2.6/djinni/_tsp.so.0 -> _tsp.so.0.0.0

From 10.04 (doesn't work):

drwxr-xr-x root/root 0 2010-09-10 18:41 ./usr/lib/pyshared/
drwxr-xr-x root/root 0 2010-09-10 18:41 ./usr/lib/pyshared/python2.6/
drwxr-xr-x root/root 0 2010-09-10 18:41 ./usr/lib/pyshared/python2.6/djinni/
-rw-r--r-- root/root 101808 2010-09-10 18:41 ./usr/lib/pyshared/python2.6/djinni/_sa_tsp.so.0.0.0
-rw-r--r-- root/root 85104 2010-09-10 18:41 ./usr/lib/pyshared/python2.6/djinni/_tsp.so.0.0.0
-rw-r--r-- root/root 105968 2010-09-10 18:41 ./usr/lib/pyshared/python2.6/djinni/_ca_tsp.so.0.0.0
lrwxrwxrwx root/root 0 2010-09-10 18:41 ./usr/lib/pyshared/python2.6/djinni/_sa_tsp.so -> ../../../python2.6/dist-packages/djinni/_sa_tsp.so.0.0.0
lrwxrwxrwx root/root 0 2010-09-10 18:41 ./usr/lib/pyshared/python2.6/djinni/_ca_tsp.so -> ../../../python2.6/dist-packages/djinni/_ca_tsp.so.0.0.0
lrwxrwxrwx root/root 0 2010-09-10 18:41 ./usr/lib/pyshared/python2.6/djinni/_tsp.so -> ../../../python2.6/dist-packages/djinni/_tsp.so.0.0.0
lrwxrwxrwx root/root 0 2010-09-10 18:41 ./usr/lib/pyshared/python2.6/djinni/_ca_tsp.so.0 -> ../../../python2.6/dist-packages/djinni/_ca_tsp.so.0.0.0
lrwxrwxrwx root/root 0 2010-09-10 18:41 ./usr/lib/pyshared/python2.6/djinni/_sa_tsp.so.0 -> ../../../python2.6/dist-packages/djinni/_sa_tsp.so.0.0.0
lrwxrwxrwx root/root 0 2010-09-10 18:41 ./usr/lib/pyshared/python2.6/djinni/_tsp.so.0 -> ../../../python2.6/dist-packages/djinni/_tsp.so.0.0.0

Changed in python-support (Ubuntu Lucid):
status: New → Confirmed
importance: Undecided → High
Changed in python-support (Ubuntu):
milestone: ubuntu-10.04.2 → none
Changed in python-support (Ubuntu Lucid):
milestone: none → ubuntu-10.04.2
Changed in python-support (Ubuntu Lucid):
assignee: nobody → Canonical Foundations Team (canonical-foundations)
Changed in python-support (Ubuntu Lucid):
milestone: ubuntu-10.04.2 → ubuntu-10.04.3
Colin Watson (cjwatson)
Changed in python-support (Ubuntu Lucid):
milestone: ubuntu-10.04.3 → ubuntu-10.04.4
Martin Pitt (pitti)
Changed in python-support (Ubuntu Lucid):
importance: High → Medium
Revision history for this message
Martin Pitt (pitti) wrote :

Dropping 10.04.4 milestone. We are past the 10.04.4 freeze, and this doesn't look like a very urgent bug to fix in lucid now.

Changed in python-support (Ubuntu Lucid):
milestone: ubuntu-10.04.4 → none
Revision history for this message
Rolf Leggewie (r0lf) wrote :

lucid has seen the end of its life and is no longer receiving any updates. Marking the lucid task for this ticket as "Won't Fix".

Changed in python-support (Ubuntu Lucid):
status: Confirmed → Won't Fix
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.