[Bug 1675340] Re: dh_fixperms unsets X permission to node.js scripts
Niels Thykier
niels at thykier.net
Sat Nov 4 10:47:51 UTC 2017
Sorry, misread the bug and unfortunately it seems I cannot undo the fact
that bug is closed.
--
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to debhelper in Ubuntu.
https://bugs.launchpad.net/bugs/1675340
Title:
dh_fixperms unsets X permission to node.js scripts
Status in debhelper package in Ubuntu:
Fix Released
Bug description:
Ubuntu 16.04.2 LTS
debhelper version 9.20160115ubuntu3
Expected: executable *.js scripts retain X permission
Happened: permissions of all *.js files are set to 0644
1) Node.js packages are often contain javascript files which supposed to be run just like ordinary shell, python or perl scripts without explicit interpreter designation (i.e. './scriptname.js' instead of 'nodejs ./scriptname.js')
2) These scripts may or may not include '.js' extension in their names, nevertheless they are still executable scripts and should have X permission.
3) dh_fixperms, which is a part of package debhelper shipped with ubuntu 16.04, unsets that permission to all *.js files because it treats them like "Web application related files".
4) This new behaviour of dh_fixperms (compared with older Ubuntu releases) makes described above node.js scripts broken if they happened to be a part of deb package, because they can no longer be called without interpreter:
$ ./bin/scriptname.js
-bash: ./bin/scriptname.js: Permission denied
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/debhelper/+bug/1675340/+subscriptions
More information about the foundations-bugs
mailing list