This patch is required in order to automatically detect the perl version and to track the perl API which a module is built against.
Signed-off-by: Stefan Schantl stefan.schantl@ipfire.org --- pakfire/pakfire.nm | 2 +- pakfire/patches/0002-pakfire-perl_version.patch | 21 +++++++++++++++++++++ 2 files changed, 22 insertions(+), 1 deletion(-) create mode 100644 pakfire/patches/0002-pakfire-perl_version.patch
diff --git a/pakfire/pakfire.nm b/pakfire/pakfire.nm index 45a1c25..21e2bfa 100644 --- a/pakfire/pakfire.nm +++ b/pakfire/pakfire.nm @@ -5,7 +5,7 @@
name = pakfire version = 0.9.26 -release = 3 +release = 3.1
maintainer = Michael Tremer michael.tremer@ipfire.org groups = System/Packaging diff --git a/pakfire/patches/0002-pakfire-perl_version.patch b/pakfire/patches/0002-pakfire-perl_version.patch new file mode 100644 index 0000000..6b5faea --- /dev/null +++ b/pakfire/patches/0002-pakfire-perl_version.patch @@ -0,0 +1,21 @@ +commit 582d5734cfcd11de7563366f9788ea72803277e6 +Author: Stefan Schantl stefan.schantl@ipfire.org +Date: Sat Apr 4 15:33:58 2015 +0200 + + perl.macro: Add "perl_version". + + This variable is used to store the current used perl version, which + will be used in various external perl modules to track API dependencies. + +diff --git a/macros/perl.macro b/macros/perl.macro +index b29e028..aa8fa81 100644 +--- a/macros/perl.macro ++++ b/macros/perl.macro +@@ -7,6 +7,7 @@ perl_vendorarch = %(eval "$(%{perl} -V:installvendorarch)"; echo ${installvendor + perl_vendorlib = %(eval "$(%{perl} -V:installvendorlib)"; echo ${installvendorlib}) + perl_archlib = %(eval "$(%{perl} -V:installarchlib)"; echo ${installarchlib}) + perl_privlib = %(eval "$(%{perl} -V:installprivlib)"; echo ${installprivlib}) ++perl_version = %(eval "$(%{perl} -V:version)"; echo ${version}) + + perl_all_paths = {%{perl_vendorarch},%{perl_vendorlib},%{perl_archlib},%{perl_privlib}} +