[DRE-maint] Bug#790332: dh_ruby: adds shebangs to ELF executables

Dmitry Smirnov onlyjob at debian.org
Sun Jun 28 07:05:20 UTC 2015


Package: gem2deb
Version: 0.17
Severity: normal

While refreshing "opennebula" packaging I wanted to use dh_ruby to update 
existing shebangs "#!/usr/bin/env ruby" as follows:

    DH_RUBY_USE_DH_AUTO_INSTALL_DESTDIR=1 dh_ruby --install debian/tmp

(XS-Ruby-Versions: all).
Opennebula install mix of Ruby, shell and ELF executables to "/usr/bin".
To my surprise dh_ruby added "#!/usr/bin/ruby" shebang to all ELF binaries.
dh_ruby was able to skip only shell scripts ("#!/bin/bash" and "#!/bin/sh").

Please introduce checks/safeguards to avoid corrupting ELF binaries.

-- 
Regards,
 Dmitry Smirnov
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: This is a digitally signed message part.
URL: <http://lists.alioth.debian.org/pipermail/pkg-ruby-extras-maintainers/attachments/20150628/fbb6d868/attachment-0001.sig>


More information about the Pkg-ruby-extras-maintainers mailing list