Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.debian.maint.python > #7835 > unrolled thread

Telling dh_python3 to skip a .so file

Started byDmitry Shachnev <mitya57@debian.org>
First post2015-11-07 20:20 +0100
Last post2015-11-10 14:00 +0100
Articles 5 — 2 participants

Back to article view | Back to linux.debian.maint.python


Contents

  Telling dh_python3 to skip a .so file Dmitry Shachnev <mitya57@debian.org> - 2015-11-07 20:20 +0100
    Re: Telling dh_python3 to skip a .so file Piotr Ożarowski <piotr@debian.org> - 2015-11-09 10:20 +0100
      Re: Telling dh_python3 to skip a .so file Dmitry Shachnev <mitya57@debian.org> - 2015-11-10 13:40 +0100
        Re: Telling dh_python3 to skip a .so file Dmitry Shachnev <mitya57@debian.org> - 2015-11-10 14:00 +0100
        Re: Telling dh_python3 to skip a .so file Piotr Ożarowski <piotr@debian.org> - 2015-11-10 14:00 +0100

#7835 — Telling dh_python3 to skip a .so file

FromDmitry Shachnev <mitya57@debian.org>
Date2015-11-07 20:20 +0100
SubjectTelling dh_python3 to skip a .so file
Message-ID<qshbP-6oV-5@gated-at.bofh.it>

[Multipart message — attachments visible in raw view] — view raw

Hi all,

In one of my packages (namely gnome-applets), I have a .so file that is not a
Python extension (but rather a generic plugin). However dh_python3 thinks that
it *is* a Python extension, adds an ABI tag to its name and then makes the
package depend on python3 (<< 3.5).

How can I tell dh_python3 to ignore that file? After adding --no-ext-rename it
does not rename it, but still considers it when calculating the dependencies
(and thus still adds the python3 (<< 3.5) thing). I also tries -X but that
didn't change anything.

Not running dh_python3 on that binary package is also not an option: that binary
package contains a Python script that needs its shebang changed.

Any ideas?

--
Dmitry Shachnev

[toc] | [next] | [standalone]


#7841

FromPiotr Ożarowski <piotr@debian.org>
Date2015-11-09 10:20 +0100
Message-ID<qsQMi-4tx-17@gated-at.bofh.it>
In reply to#7835
Hi,

[Dmitry Shachnev, 2015-11-07]
> Not running dh_python3 on that binary package is also not an option: that binary
> package contains a Python script that needs its shebang changed.

I don't see a single file in gnome-applets_3.18.1-1_amd64.deb that
justifies invoking dh_python3. Why do you need it? If you actually have
a script that needs shebang rewrite (and I somehow missed it), you can
use sed to do that.
-- 
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

[toc] | [prev] | [next] | [standalone]


#7843

FromDmitry Shachnev <mitya57@debian.org>
Date2015-11-10 13:40 +0100
Message-ID<qtgno-53E-19@gated-at.bofh.it>
In reply to#7841

[Multipart message — attachments visible in raw view] — view raw

Cześć Piotr,

On Mon, Nov 09, 2015 at 10:12:22AM +0100, Piotr Ożarowski wrote:
> I don't see a single file in gnome-applets_3.18.1-1_amd64.deb that
> justifies invoking dh_python3. Why do you need it? If you actually have
> a script that needs shebang rewrite (and I somehow missed it), you can
> use sed to do that.

Oops, there should be a file there, but looks like a new upstream release
introduced a new build-dependency for Python code so it is not built :/

I will fix it soon.

When that file is built, it needs dh_python3 to replace shebang and add
correct ${python3:Depends}. Of course I can do it manually, but my question
was about how to make dh_python3 ignore a particular .so file, and I am
still interested in that.

--
Dmitry Shachnev

[toc] | [prev] | [next] | [standalone]


#7844

FromDmitry Shachnev <mitya57@debian.org>
Date2015-11-10 14:00 +0100
Message-ID<qtgGJ-5by-1@gated-at.bofh.it>
In reply to#7843

[Multipart message — attachments visible in raw view] — view raw

On Tue, Nov 10, 2015 at 01:51:26PM +0100, Piotr Ożarowski wrote:
> there's --skip-private that will tell dh_python3 to not touch
> /usr/lib/gnome-applets/ if you plan to ship this script in /usr/bin/,
> if not, then:
> 
> override_dh_auto_install:
> 	dh_auto_install
> 	sed -i -e  '1s,/usr/bin/foo,/usr/bin/bar,' $CURDIR/debian/gnome-applets/usr/lib/gnome-applets/foo
> 
> not calling dh_python3 at all and add required interpreter to Depends by
> hand would be my suggestion. There are no other options right now (and
> I don't really plan to add them)

Ack, thanks!

--
Dmitry Shachnev

[toc] | [prev] | [next] | [standalone]


#7845

FromPiotr Ożarowski <piotr@debian.org>
Date2015-11-10 14:00 +0100
Message-ID<qtgGJ-5by-3@gated-at.bofh.it>
In reply to#7843
> Cześć Piotr,

Привет! :)

> When that file is built, it needs dh_python3 to replace shebang and add
> correct ${python3:Depends}. Of course I can do it manually, but my question
> was about how to make dh_python3 ignore a particular .so file, and I am
> still interested in that.

there's --skip-private that will tell dh_python3 to not touch
/usr/lib/gnome-applets/ if you plan to ship this script in /usr/bin/,
if not, then:

override_dh_auto_install:
	dh_auto_install
	sed -i -e  '1s,/usr/bin/foo,/usr/bin/bar,' $CURDIR/debian/gnome-applets/usr/lib/gnome-applets/foo

not calling dh_python3 at all and add required interpreter to Depends by
hand would be my suggestion. There are no other options right now (and
I don't really plan to add them)
-- 
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

[toc] | [prev] | [standalone]


Back to top | Article view | linux.debian.maint.python


csiph-web