From: Marcel Denia Date: Wed, 23 Jul 2014 09:46:17 +0000 (+0200) Subject: lang/perl: Strip encoding pragma X-Git-Url: http://git.99rst.org/?a=commitdiff_plain;h=3e7876c22f2bca4a3273dc8844d3724652cc7824;p=openwrt-packages.git lang/perl: Strip encoding pragma The "encoding" pragma is officially deprecated. Makes HTML::Parser/HTML::Entities work. Signed-off-by: Marcel Denia --- diff --git a/lang/perl/perlmod.mk b/lang/perl/perlmod.mk index f8f0d036c..05bcc5e74 100644 --- a/lang/perl/perlmod.mk +++ b/lang/perl/perlmod.mk @@ -89,8 +89,8 @@ define perlmod/Install @echo "---> Stripping modules in: $(strip $(1))$(PERL_SITELIB)" find $(strip $(1))$(PERL_SITELIB) -name \*.pm -or -name \*.pl | \ xargs -r sed -i \ - -e '/^=\(head\|pod\|item\|over\|back\)/,/^=cut/d' \ - -e '/^=\(head\|pod\|item\|over\|back\)/,$$$$d' \ + -e '/^=\(head\|pod\|item\|over\|back\|encoding\)/,/^=cut/d' \ + -e '/^=\(head\|pod\|item\|over\|back\|encoding\)/,$$$$d' \ -e '/^#$$$$/d' \ -e '/^#[^!"'"'"']/d' endef