]> git.ipfire.org Git - people/ms/ipfire-3.x.git/commitdiff
pakfire: Add upstream patch for perl version.
authorStefan Schantl <stefan.schantl@ipfire.org>
Sun, 31 May 2015 10:00:05 +0000 (12:00 +0200)
committerMichael Tremer <michael.tremer@ipfire.org>
Sun, 31 May 2015 13:45:19 +0000 (15:45 +0200)
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>
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
pakfire/pakfire.nm
pakfire/patches/0002-pakfire-perl_version.patch [new file with mode: 0644]

index 45a1c2505bcede23c58449412a475c23204638ea..21e2bfacb56808a8ff3a07d7b67213883d36e255 100644 (file)
@@ -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 (file)
index 0000000..6b5faea
--- /dev/null
@@ -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}}