[med-svn] [Git][med-team/plip][master] 2 commits: d/rules: Rewrite the shebang to deal with fallout from setuptools.
Sergio Durigan Junior (@sergiodj)
gitlab at salsa.debian.org
Fri Apr 18 21:46:21 BST 2025
Sergio Durigan Junior pushed to branch master at Debian Med / plip
Commits:
49a6bdfc by Sergio Durigan Junior at 2025-04-18T16:42:11-04:00
d/rules: Rewrite the shebang to deal with fallout from setuptools.
setuptools has recently broken how shebangs are generated for
scripts (see Debian bug 1103150), and while the right thing to do here
would be to use dh_python3's --shebang option, it doesn't work. So
let's rewrite the shebang ourselves.
Closes: #1103196
- - - - -
3195f931 by Sergio Durigan Junior at 2025-04-18T16:42:39-04:00
Update changelog for 2.4.0+dfsg-3 release
- - - - -
2 changed files:
- debian/changelog
- debian/rules
Changes:
=====================================
debian/changelog
=====================================
@@ -1,3 +1,14 @@
+plip (2.4.0+dfsg-3) unstable; urgency=medium
+
+ * Team upload.
+ * d/rules: Rewrite the shebang to deal with fallout from setuptools.
+ setuptools has recently broken how shebangs are generated for
+ scripts (see Debian bug 1103150), and while the right thing to do here
+ would be to use dh_python3's --shebang option, it doesn't work. So
+ let's rewrite the shebang ourselves. (Closes: #1103196)
+
+ -- Sergio Durigan Junior <sergiodj at debian.org> Fri, 18 Apr 2025 16:42:39 -0400
+
plip (2.4.0+dfsg-2) unstable; urgency=medium
* Update d/tests/control, add python3-lxml as a dependency
=====================================
debian/rules
=====================================
@@ -13,6 +13,16 @@ PYTHON_DEFAULT_VERSION := $(shell py3versions -d)
override_dh_auto_install:
dh_auto_install
+
+# Unfortunately, dh_python3's --shebang option doesn't work in this
+# case. We have to rewrite the shebang ourselves.
+#
+# See https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1103150 for
+# more information.
+ find $(CURDIR)/debian/$(PYBUILD_NAME)/usr/bin \
+ -executable -type f \
+ -exec sed -i 's,^#!python$$,#!/usr/bin/python3,' '{}' ';'
+
rm -rvf $(CURDIR)/debian/$(PYBUILD_NAME)/usr/bin/plip
mv $(CURDIR)/debian/$(PYBUILD_NAME)/usr/bin/plipcmd.py \
$(CURDIR)/debian/$(PYBUILD_NAME)/usr/bin/plipcmd
View it on GitLab: https://salsa.debian.org/med-team/plip/-/compare/190fd2b1965013212b6f58f4a6f1f6c368ad157f...3195f931d57dcec353f790e9d03f4f73ed1ec850
--
View it on GitLab: https://salsa.debian.org/med-team/plip/-/compare/190fd2b1965013212b6f58f4a6f1f6c368ad157f...3195f931d57dcec353f790e9d03f4f73ed1ec850
You're receiving this email because of your account on salsa.debian.org.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://alioth-lists.debian.net/pipermail/debian-med-commit/attachments/20250418/78aed286/attachment-0001.htm>
More information about the debian-med-commit
mailing list