From 2ae34aa3d157e7d14a0e9849bc1275d4c95cc71c Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Petr=20P=C3=ADsa=C5=99?= <ppi...@redhat.com>
Date: Thu, 18 May 2017 12:50:41 +0200
Subject: Fix building on Perl without "." in @INC

---
 ....14-Fix-building-on-Perl-without-.-in-INC.patch | 29 ++++++++++++++++++++++
 perl-Sys-Path.spec                                 |  9 ++++++-
 2 files changed, 37 insertions(+), 1 deletion(-)
 create mode 100644 Sys-Path-0.14-Fix-building-on-Perl-without-.-in-INC.patch

diff --git a/Sys-Path-0.14-Fix-building-on-Perl-without-.-in-INC.patch 
b/Sys-Path-0.14-Fix-building-on-Perl-without-.-in-INC.patch
new file mode 100644
index 0000000..b2bc27c
--- /dev/null
+++ b/Sys-Path-0.14-Fix-building-on-Perl-without-.-in-INC.patch
@@ -0,0 +1,29 @@
+From a9bf3679abbf5c5d4bc3a5834c46187f155b10a8 Mon Sep 17 00:00:00 2001
+From: =?UTF-8?q?Petr=20P=C3=ADsa=C5=99?= <ppi...@redhat.com>
+Date: Thu, 18 May 2017 12:47:27 +0200
+Subject: [PATCH] Fix building on Perl without "." in @INC
+MIME-Version: 1.0
+Content-Type: text/plain; charset=UTF-8
+Content-Transfer-Encoding: 8bit
+
+https://github.com/jozef/Sys-Path/issues/8
+Signed-off-by: Petr Písař <ppi...@redhat.com>
+---
+ Build.PL | 1 +
+ 1 file changed, 1 insertion(+)
+
+diff --git a/Build.PL b/Build.PL
+index 826a2a3..6d16b3f 100644
+--- a/Build.PL
++++ b/Build.PL
+@@ -1,6 +1,7 @@
+ use strict;
+ use warnings;
+ 
++BEGIN { push @INC, '.'; }
+ use inc::MyBuilder;
+ 
+ use FindBin '$Bin';
+-- 
+2.9.4
+
diff --git a/perl-Sys-Path.spec b/perl-Sys-Path.spec
index 7699c4e..e47caf0 100644
--- a/perl-Sys-Path.spec
+++ b/perl-Sys-Path.spec
@@ -1,11 +1,14 @@
 Name:           perl-Sys-Path
 Version:        0.14
-Release:        4%{?dist}
+Release:        5%{?dist}
 Summary:        Supply autoconf style installation directories
 License:        GPL+ or Artistic
 Group:          Development/Libraries
 URL:            http://search.cpan.org/dist/Sys-Path/
 Source0:        
http://www.cpan.org/modules/by-module/Sys/Sys-Path-%{version}.tar.gz
+# Fix building on Perl without "." in @INC,
+# <https://github.com/jozef/Sys-Path/issues/8>
+Patch0:         Sys-Path-0.14-Fix-building-on-Perl-without-.-in-INC.patch
 BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
 BuildArch:      noarch
 BuildRequires:  coreutils
@@ -41,6 +44,7 @@ The goal is that Sys::Path provides autoconf style system 
paths.
 
 %prep
 %setup -q -n Sys-Path-%{version}
+%patch0 -p1
 
 %build
 PERL_MM_USE_DEFAULT=1 %{__perl} Build.PL installdirs=vendor 
@@ -67,6 +71,9 @@ rm -rf $RPM_BUILD_ROOT
 %{_mandir}/man3/*
 
 %changelog
+* Thu May 18 2017 Petr Pisar <ppi...@redhat.com> - 0.14-5
+- Fix building on Perl without "." in @INC
+
 * Sat Feb 11 2017 Fedora Release Engineering <rel...@fedoraproject.org> - 
0.14-4
 - Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
 
-- 
cgit v1.1


        
https://src.fedoraproject.org/cgit/perl-Sys-Path.git/commit/?h=master&id=2ae34aa3d157e7d14a0e9849bc1275d4c95cc71c
_______________________________________________
perl-devel mailing list -- perl-devel@lists.fedoraproject.org
To unsubscribe send an email to perl-devel-le...@lists.fedoraproject.org

Reply via email to