25840776 Since removal of '.' from @INC some components don't compile
authorVladimir Marek <Vladimir.Marek@oracle.com>
Thu, 06 Apr 2017 09:10:58 +0200
changeset 7841 d2c207b77abb
parent 7840 6eb80902a873
child 7842 d4c93736cade
25840776 Since removal of '.' from @INC some components don't compile
components/perl_modules/authen-pam/patches/02_UNSAFE_INC.patch
components/perl_modules/net-ssleay/patches/UNSAFE_INC.patch
components/perl_modules/xml-namespacesupport/patches/UNSAFE_INC.patch
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/components/perl_modules/authen-pam/patches/02_UNSAFE_INC.patch	Thu Apr 06 09:10:58 2017 +0200
@@ -0,0 +1,16 @@
+Makefile.PL relied on the fact that current directory is in @INC. Fix is to
+force to read the configuration from current directory instead.
+
+Upstream bug: https://rt.cpan.org/Public/Bug/Display.html?id=120930
+
+--- Authen-PAM-0.16/Makefile.PL	2017-04-05 10:08:12.853541342 +0000
++++ Authen-PAM-0.16/Makefile.PL	2017-04-05 10:07:05.413120561 +0000
+@@ -10,7 +10,7 @@ sub configure {
+ 
+     # returns a reference to anonymous hash which is then interpreted as
+     # additional options to the WriteMakeFile
+-    $options = require "pam.cfg";
++    $options = require "./pam.cfg";
+ 
+     if ( $Config{'osname'} eq 'solaris' && $Config{'osvers'} eq '2.6') {
+       print "Adding a workaround for a bug in the Solaris 2.6 pam library\n";
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/components/perl_modules/net-ssleay/patches/UNSAFE_INC.patch	Thu Apr 06 09:10:58 2017 +0200
@@ -0,0 +1,15 @@
+Makefile.PL relied on the fact that current directory is in @INC. Fix is to
+force to read the configuration from current directory instead.
+
+Upstream fix: https://anonscm.debian.org/viewvc/net-ssleay?view=revision&revision=489
+
+--- Net-SSLeay-1.78/Makefile.PL	2017-04-05 10:42:56.999409375 +0000
++++ Net-SSLeay-1.78/Makefile.PL	2017-04-05 10:40:21.465210478 +0000
+@@ -3,6 +3,7 @@
+ use strict;
+ use warnings;
+ use lib 'ext';
++use lib '.';
+ use inc::Module::Install;
+ use Config;
+ use File::Spec;
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/components/perl_modules/xml-namespacesupport/patches/UNSAFE_INC.patch	Thu Apr 06 09:10:58 2017 +0200
@@ -0,0 +1,13 @@
+Makefile.PL relied on the fact that current directory is in @INC. Fix is to
+force to read the configuration from current directory instead.
+
+This is workaround till we update to XML::NamespaceSupport version 1.12.
+
+--- XML-NamespaceSupport-1.11/Makefile.PL	2017-04-05 10:47:43.914243383 +0000
++++ XML-NamespaceSupport-1.11/Makefile.PL	2017-04-05 10:47:42.828641419 +0000
+@@ -1,4 +1,5 @@
+ # Load the Module::Install bundled in ./inc/
++use lib '.';
+ use inc::Module::Install;
+
+ # Define metadata