[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Generally fixing wrong-path-for-interpreter



Hi,

lots of Debian Med packages are affected by

   wrong-path-for-interpreter ... (#!/usr/bin/env perl != /usr/bin/perl)

I usually fix this by

override_dh_install:
        dh_install
        for pl in `grep -Rl '#!/usr/bin/env[[:space:]]\+perl' debian/*/usr/*` ; do \
            sed -i '1s?^#!/usr/bin/env[[:space:]]\+perl?#!/usr/bin/perl?' $${pl} ; \
        done

Since this is a more general problem:  Do you think it would be a good
idea to integrate such a code snippet into dh_perl (or any other
sensible debhelper tool instead of forcing single maintainers to do
this manually (and may be failing to do this a long time).

Kind regards

       Andreas.

PS: Similar things exist with Python and probably other interpreters but
    I stumbled by far most about Perl.  If you think there should be a
    more general solution feel free to move the thread to debian-devel
    or whatever place might seem appropriate.

-- 
http://fam-tille.de


Reply to: