ppisar pushed to perl-Makefile-Parser (master). "Do not auto_install run-time only dependencies (..more)"

notifications at fedoraproject.org notifications at fedoraproject.org
Wed Sep 30 11:38:35 UTC 2015


From 28d03353b77fb902e8f3eb012de53f0c70ebe727 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Petr=20P=C3=ADsa=C5=99?= <ppisar at redhat.com>
Date: Wed, 30 Sep 2015 13:14:33 +0200
Subject: Do not auto_install run-time only dependencies

Auto_installing File::Slurp poinsons build system that tries to
install into site directory then.

diff --git a/Makefile-Parser-0.216-Disable-installing-dependencies-from-CPAN.patch b/Makefile-Parser-0.216-Disable-installing-dependencies-from-CPAN.patch
new file mode 100644
index 0000000..f725bcc
--- /dev/null
+++ b/Makefile-Parser-0.216-Disable-installing-dependencies-from-CPAN.patch
@@ -0,0 +1,30 @@
+From 1f8065f3ec5963bc7450a415c316c90c74f0f82c Mon Sep 17 00:00:00 2001
+From: =?UTF-8?q?Petr=20P=C3=ADsa=C5=99?= <ppisar at redhat.com>
+Date: Wed, 30 Sep 2015 13:11:10 +0200
+Subject: [PATCH] Disable installing dependencies from CPAN
+MIME-Version: 1.0
+Content-Type: text/plain; charset=UTF-8
+Content-Transfer-Encoding: 8bit
+
+File::Slurp is not needed at tests, yet auto_install will install it
+from CPAN because it's a run-time dependency.
+
+Signed-off-by: Petr Písař <ppisar at redhat.com>
+---
+ Makefile.PL | 1 -
+ 1 file changed, 1 deletion(-)
+
+diff --git a/Makefile.PL b/Makefile.PL
+index 89401ed..d54fc37 100644
+--- a/Makefile.PL
++++ b/Makefile.PL
+@@ -28,6 +28,5 @@ build_requires  ('IPC::Run3' => '0.036');
+ 
+ use_test_base;
+ 
+-auto_install;
+ WriteAll;
+ 
+-- 
+2.4.3
+
diff --git a/perl-Makefile-Parser.spec b/perl-Makefile-Parser.spec
index f956ea9..c0224f6 100644
--- a/perl-Makefile-Parser.spec
+++ b/perl-Makefile-Parser.spec
@@ -1,6 +1,6 @@
 Name:           perl-Makefile-Parser
 Version:        0.216
-Release:        1%{?dist}
+Release:        2%{?dist}
 Summary:        Simple parser for Makefiles
 License:        GPL+ or Artistic
 Group:          Development/Libraries
@@ -12,6 +12,8 @@ Patch0:         Makefile-Parser-0.216-make-4.0-compatibility.patch
 Patch1:         Makefile-Parser-0.216-Remove-use-lib.patch
 # Do not use /usr/bin/env, CPAN RT#107237
 Patch2:         Makefile-Parser-0.216-Do-not-use-usr-bin-env.patch
+# Do not auto_install run-time only dependencies
+Patch3:         Makefile-Parser-0.216-Disable-installing-dependencies-from-CPAN.patch
 BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
 BuildArch:      noarch
 BuildRequires:  coreutils
@@ -79,6 +81,7 @@ satisfactory for this purpose, so I decided to build one of my own.
 %patch0 -p1
 %patch1 -p1
 %patch2 -p1
+%patch3 -p1
 # Remove bundled modules
 rm -r ./inc
 sed -i -e '/^inc\//d' MANIFEST
@@ -118,6 +121,9 @@ rm -rf $RPM_BUILD_ROOT
 %{_bindir}/plmake
 
 %changelog
+* Wed Sep 30 2015 Petr Pisar <ppisar at redhat.com> - 0.216-2
+- Do not auto_install run-time only dependencies
+
 * Tue Sep 22 2015 Petr Pisar <ppisar at redhat.com> - 0.216-1
 - 2.016 bump
 
-- 
cgit v0.10.2


	http://pkgs.fedoraproject.org/cgit/perl-Makefile-Parser.git/commit/?h=master&id=28d03353b77fb902e8f3eb012de53f0c70ebe727


More information about the perl-devel mailing list