Bug#876009: shebang incorrectly set to /usr/bin/env python3

Michael Biebl biebl at debian.org
Sun Sep 17 11:47:25 UTC 2017


Package: libglib2.0-dev-bin
Version: 2.54.0-1
Severity: important
File: /usr/bin/glib-genmarshal

https://www.debian.org/doc/packaging-manuals/python-policy/ch-python.html#s-interpreter
states that the shebang of python scripts should not use /usr/bin/env,
yet we have /usr/bin/glib-genmarshal and /usr/bin/glib-mkenums which do
exactly that.

dh_python or dh_python3 are supposed to rewrite such a shebang which
apparently didn't happen in this case. I suppose this is due to
debian/rules overriding dh_python3 like this:

override_dh_python3:
        dh_python3 -plibglib2.0-dev-bin /usr/share/glib-2.0/codegen

I.e. we do explicitly skip the scripts in /usr/bin


-- System Information:
Debian Release: buster/sid
  APT prefers unstable
  APT policy: (500, 'unstable'), (200, 'experimental')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 4.12.0-1-amd64 (SMP w/4 CPU cores)
Locale: LANG=de_DE.utf8, LC_CTYPE=de_DE.utf8 (charmap=UTF-8), LANGUAGE=de_DE.utf8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)

Versions of packages libglib2.0-dev-bin depends on:
ii  libc6         2.24-17
ii  libglib2.0-0  2.54.0-1
ii  python3       3.5.3-3

libglib2.0-dev-bin recommends no packages.

libglib2.0-dev-bin suggests no packages.

-- no debconf information



More information about the pkg-gnome-maintainers mailing list