* tony mancill <tmanc...@debian.org>, 2010-06-22, 22:24:
As part of the BSP for RC bugs, I've prepared an NMU for smart(versioned as 1.3-1.1)I've just noticed a minor glitch in the current package, which my patch didn't fix: /usr/share/smart/smart has a /usr/bin/pythonX.Y shebang. It should be /usr/bin/python istead.and uploaded it to DELAYED/14.I'm afraid we can't wait so long.I took a look at this, and smart uses /usr/bin/env python - i.e. it appears that it's CDBS that's creating those shebang lines based on the list of supported python versions. I'm not familiar with CDBS, so the rest of this is pretty much guessing.
The idiomatic approach to unwanted shebags is to fix them by sed. I attach patch contributed by Piotr Ożarowski (not tested by me - sorry).
-- Jakub Wilk
diff -u smart-1.3/debian/rules smart-1.3/debian/rules --- smart-1.3/debian/rules +++ smart-1.3/debian/rules @@ -12,6 +12,8 @@ dh_movefiles -psmartpm-core dh_movefiles -ppython-smartpm mv $(CURDIR)/debian/tmp/usr/bin/smart $(CURDIR)/debian/python-smartpm/usr/share/smart/smart + # use default Python version in shebang + sed -i -e '1s,usr/bin/.*,usr/bin/python,' $(CURDIR)/debian/python-smartpm/usr/share/smart/smart clean:: rm -f locale/*/LC_MESSAGES/smart.mo
signature.asc
Description: Digital signature