Source: apache2 Version: 2.4.18-2 Severity: minor Tags: patch Hi Stephan and Arno,
attached is a patch that makes a2enmod to run on Ubuntu Precise with perl 5.14 while hopefully not breaking anything else :). While looking into perl code, I felt as if millions of voices suddenly cried out in terror, and were suddenly silenced, so this might also be horribly wrong :) Cheers, Ondrej -- System Information: Debian Release: stretch/sid APT prefers testing APT policy: (900, 'testing'), (800, 'unstable'), (700, 'experimental') Architecture: amd64 (x86_64) Foreign Architectures: i386 Kernel: Linux 4.4.0-1-amd64 (SMP w/4 CPU cores) Locale: LANG=en_DK.UTF-8, LC_CTYPE=en_DK.UTF-8 (charmap=UTF-8) Shell: /bin/sh linked to /bin/dash Init: systemd (via /run/systemd/system)
>From 5035e4f5a1feff5b1f20ecfff6ae786ff3214816 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ond=C5=99ej=20Sur=C3=BD?= <[email protected]> Date: Wed, 20 Apr 2016 16:09:30 +0200 Subject: [PATCH] Don't require perl 5.16 just for 'no warnings experimental::smartmatch;' --- debian/a2enmod | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/debian/a2enmod b/debian/a2enmod index 196b22d..350a285 100755 --- a/debian/a2enmod +++ b/debian/a2enmod @@ -11,8 +11,8 @@ use File::Spec; use File::Basename; use File::Path; use Getopt::Long; -use feature ':5.16'; -no warnings "experimental::smartmatch"; +use 5.014; +no if $] >= 5.017011, warnings => 'experimental::smartmatch'; my $quiet; my $force; -- 2.1.4

