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 <[email protected]> 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.
_______________________________________________ debian-med-commit mailing list [email protected] https://alioth-lists.debian.net/cgi-bin/mailman/listinfo/debian-med-commit
