Re: dh_strip and Python Extensions

2011-05-26 Thread Christian Kastner
Hi,

On 05/26/2011 02:32 AM, Nikolaus Rath wrote:
 I'm not quite sure when this started, but dh_strip is placing my Python
 .so extensions into /usr/lib/debug/..., which makes Lintian complain:
 [...]
 
 $ lintian ../python-llfuse-dbg_0.31-1_amd64.deb
 W: python-llfuse-dbg: python-debug-in-wrong-location 
 usr/lib/debug/usr/lib/pyshared/python2.6/llfuse.so 
 /usr/lib/debug/usr/lib/pymodules/python2.6/llfuse.so
 W: python-llfuse-dbg: python-debug-in-wrong-location 
 usr/lib/debug/usr/lib/pyshared/python2.6/llfuse_d.so 
 /usr/lib/debug/usr/lib/pymodules/python2.6/llfuse_d.so

The first path is where dh_strip has installed the files. The second
path, however, is where they are expected. See [0] for a fix, and [1]
for a rationale.

HTH,
Christian

[0] http://wiki.debian.org/Python/DbgBuilds#line-165
[1] http://bugs.debian.org/576014



signature.asc
Description: OpenPGP digital signature


Re: dh_strip and Python Extensions

2011-05-26 Thread Piotr Ożarowski
[Christian Kastner, 2011-05-26]
 On 05/26/2011 02:32 AM, Nikolaus Rath wrote:
  I'm not quite sure when this started, but dh_strip is placing my Python
  .so extensions into /usr/lib/debug/..., which makes Lintian complain:
  [...]
  
  $ lintian ../python-llfuse-dbg_0.31-1_amd64.deb
  W: python-llfuse-dbg: python-debug-in-wrong-location 
  usr/lib/debug/usr/lib/pyshared/python2.6/llfuse.so 
  /usr/lib/debug/usr/lib/pymodules/python2.6/llfuse.so
  W: python-llfuse-dbg: python-debug-in-wrong-location 
  usr/lib/debug/usr/lib/pyshared/python2.6/llfuse_d.so 
  /usr/lib/debug/usr/lib/pymodules/python2.6/llfuse_d.so
 
 The first path is where dh_strip has installed the files. The second
 path, however, is where they are expected. See [0] for a fix, and [1]
 for a rationale.

you can also use dh_python2
-- 
Piotr Ożarowski Debian GNU/Linux Developer
www.ozarowski.pl  www.griffith.cc   www.debian.org
GPG Fingerprint: 1D2F A898 58DA AF62 1786 2DF7 AEF6 F1A2 A745 7645


-- 
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/20110526091243.gh17...@piotro.eu



Re: dh_strip and Python Extensions

2011-05-26 Thread Nikolaus Rath
Piotr Ożarowski pi...@debian.org writes:
 [Christian Kastner, 2011-05-26]
 On 05/26/2011 02:32 AM, Nikolaus Rath wrote:
  I'm not quite sure when this started, but dh_strip is placing my Python
  .so extensions into /usr/lib/debug/..., which makes Lintian complain:
  [...]
  
  $ lintian ../python-llfuse-dbg_0.31-1_amd64.deb
  W: python-llfuse-dbg: python-debug-in-wrong-location 
  usr/lib/debug/usr/lib/pyshared/python2.6/llfuse.so 
  /usr/lib/debug/usr/lib/pymodules/python2.6/llfuse.so
  W: python-llfuse-dbg: python-debug-in-wrong-location 
  usr/lib/debug/usr/lib/pyshared/python2.6/llfuse_d.so 
  /usr/lib/debug/usr/lib/pymodules/python2.6/llfuse_d.so
 
 The first path is where dh_strip has installed the files. The second
 path, however, is where they are expected. See [0] for a fix, and [1]
 for a rationale.

 you can also use dh_python2

I am using dh_python2 - does that mean I should not be calling dh_strip?

Thanks,

   -Nikolaus

-- 
 »Time flies like an arrow, fruit flies like a Banana.«

  PGP fingerprint: 5B93 61F8 4EA2 E279 ABF6  02CF A9AD B7F8 AE4E 425C


--
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/878vttlf4e@inspiron.ap.columbia.edu



Re: dh_strip and Python Extensions

2011-05-26 Thread Piotr Ożarowski
[Nikolaus Rath, 2011-05-26]
 I am using dh_python2 - does that mean I should not be calling dh_strip?

can you point me to source package?
-- 
Piotr Ożarowski Debian GNU/Linux Developer
www.ozarowski.pl  www.griffith.cc   www.debian.org
GPG Fingerprint: 1D2F A898 58DA AF62 1786 2DF7 AEF6 F1A2 A745 7645


-- 
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/20110526145248.gi17...@piotro.eu



Re: dh_strip and Python Extensions

2011-05-26 Thread Piotr Ożarowski
[Nikolaus Rath, 2011-05-26]
 Piotr Ożarowski pi...@debian.org writes:
  [Nikolaus Rath, 2011-05-26]
  I am using dh_python2 - does that mean I should not be calling dh_strip?
 
  can you point me to source package?
 
 http://mentors.debian.net/debian/pool/main/p/python-llfuse
 
 dget 
 http://mentors.debian.net/debian/pool/main/p/python-llfuse/python-llfuse_0.31-1.dsc
 
 Work in progress, but any comments are appreciated.

sorry, cannot reproduce it in Sid, after adding python3-all-dev and
python3-all-dbg to build depends and fixing syntax error in debian/rules
I'm getting this:

$ debc python-llfuse_0.31-1_amd64.changes | grep \\.so
-rw-r--r-- root/root388560 2011-05-26 22:42 
./usr/lib/python2.7/dist-packages/llfuse.so
-rw-r--r-- root/root388560 2011-05-26 22:42 
./usr/lib/python2.6/dist-packages/llfuse.so
lrwxrwxrwx root/root 0 2011-05-26 22:42 
./usr/lib/pyshared/python2.7/llfuse.so - 
../../python2.7/dist-packages/llfuse.so
lrwxrwxrwx root/root 0 2011-05-26 22:42 
./usr/lib/pyshared/python2.6/llfuse.so - 
../../python2.6/dist-packages/llfuse.so
-rw-r--r-- root/root963327 2011-05-26 22:42 
./usr/lib/debug/usr/lib/python2.7/dist-packages/llfuse_d.so
-rw-r--r-- root/root782910 2011-05-26 22:42 
./usr/lib/debug/usr/lib/python2.7/dist-packages/llfuse.so
-rw-r--r-- root/root963255 2011-05-26 22:42 
./usr/lib/debug/usr/lib/python2.6/dist-packages/llfuse_d.so
-rw-r--r-- root/root782854 2011-05-26 22:42 
./usr/lib/debug/usr/lib/python2.6/dist-packages/llfuse.so
-rw-r--r-- root/root786555 2011-05-26 22:42 
./usr/lib/debug/usr/lib/python3/dist-packages/llfuse.cpython-32mu.so
-rw-r--r-- root/root951641 2011-05-26 22:42 
./usr/lib/debug/usr/lib/python3/dist-packages/llfuse.cpython-32dmu.so
-rw-r--r-- root/root504048 2011-05-26 22:42 
./usr/lib/python2.7/dist-packages/llfuse_d.so
-rw-r--r-- root/root504048 2011-05-26 22:42 
./usr/lib/python2.6/dist-packages/llfuse_d.so
-rw-r--r-- root/root378272 2011-05-26 22:42 
./usr/lib/python3/dist-packages/llfuse.cpython-32mu.so
-rw-r--r-- root/root502880 2011-05-26 22:42 
./usr/lib/python3/dist-packages/llfuse.cpython-32dmu.so
-- 
Piotr Ożarowski Debian GNU/Linux Developer
www.ozarowski.pl  www.griffith.cc   www.debian.org
GPG Fingerprint: 1D2F A898 58DA AF62 1786 2DF7 AEF6 F1A2 A745 7645


-- 
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/20110526205104.gj17...@piotro.eu



dh_strip and Python Extensions

2011-05-25 Thread Nikolaus Rath
Hello,

I'm not quite sure when this started, but dh_strip is placing my Python
.so extensions into /usr/lib/debug/..., which makes Lintian complain:

$ dpkg-buildpackage
[...]
dh_strip -v -a -ppython-llfuse --dbg-package=python-llfuse-dbg;
install -d 
debian/python-llfuse-dbg/usr/lib/debug//usr/lib/pyshared/python2.6
objcopy --only-keep-debug 
debian/python-llfuse/usr/lib/pyshared/python2.6/llfuse.so 
debian/python-llfuse-dbg/usr/lib/debug//usr/lib/pyshared/python2.6/llfuse.so
chmod 644 
debian/python-llfuse-dbg/usr/lib/debug//usr/lib/pyshared/python2.6/llfuse.so
strip --remove-section=.comment --remove-section=.note --strip-unneeded 
debian/python-llfuse/usr/lib/pyshared/python2.6/llfuse.so
objcopy --add-gnu-debuglink 
debian/python-llfuse-dbg/usr/lib/debug//usr/lib/pyshared/python2.6/llfuse.so 
debian/python-llfuse/usr/lib/pyshared/python2.6/llfuse.so
[...]

$ lintian ../python-llfuse-dbg_0.31-1_amd64.deb
W: python-llfuse-dbg: python-debug-in-wrong-location 
usr/lib/debug/usr/lib/pyshared/python2.6/llfuse.so 
/usr/lib/debug/usr/lib/pymodules/python2.6/llfuse.so
W: python-llfuse-dbg: python-debug-in-wrong-location 
usr/lib/debug/usr/lib/pyshared/python2.6/llfuse_d.so 
/usr/lib/debug/usr/lib/pymodules/python2.6/llfuse_d.so


Did I accidentally change something? Has dh_strip's behaviour changed?


Thanks,

   -Nikolaus

-- 
 »Time flies like an arrow, fruit flies like a Banana.«

  PGP fingerprint: 5B93 61F8 4EA2 E279 ABF6  02CF A9AD B7F8 AE4E 425C


--
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/8739k2cnda@vostro.rath.org