commit:     974c3c3a68dc7390ef544b261b83d8d1ba797f67
Author:     Andreas K. Hüttel <dilfridge <AT> gentoo <DOT> org>
AuthorDate: Wed Oct 16 04:00:25 2019 +0000
Commit:     Andreas K. Hüttel <dilfridge <AT> gentoo <DOT> org>
CommitDate: Wed Oct 16 04:00:25 2019 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=974c3c3a

dev-perl/Crypt-Cracklib: don't "enhance" CFLAGS in Makefile.PL, bug 658000

Bug: https://bugs.gentoo.org/658000
Package-Manager: Portage-2.3.76, Repoman-2.3.17
Signed-off-by: Andreas K. Hüttel <dilfridge <AT> gentoo.org>

 .../Crypt-Cracklib-1.700.0-r2.ebuild               | 26 ++++++++++++++++++++++
 .../files/Crypt-Cracklib-1.700.0-CFLAGS.patch      | 11 +++++++++
 2 files changed, 37 insertions(+)

diff --git a/dev-perl/Crypt-Cracklib/Crypt-Cracklib-1.700.0-r2.ebuild 
b/dev-perl/Crypt-Cracklib/Crypt-Cracklib-1.700.0-r2.ebuild
new file mode 100644
index 00000000000..19885fe803a
--- /dev/null
+++ b/dev-perl/Crypt-Cracklib/Crypt-Cracklib-1.700.0-r2.ebuild
@@ -0,0 +1,26 @@
+# Copyright 1999-2019 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+DIST_AUTHOR=DANIEL
+DIST_VERSION=1.7
+inherit perl-module
+
+DESCRIPTION="Perl interface to Alec Muffett's Cracklib"
+
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="test"
+
+RDEPEND="sys-libs/cracklib"
+DEPEND="${RDEPEND}"
+
+PATCHES=( "${FILESDIR}/${P}-CFLAGS.patch" )
+
+src_prepare() {
+       use test && perl_rm_files t/pod-coverage.t t/pod.t
+       sed -i -e 's/use inc::Module::Install;/use lib q[.]; use 
inc::Module::Install;/' Makefile.PL ||
+               die "Can't patch Makefile.PL for 5.26 dot-in-inc"
+       perl-module_src_prepare
+}

diff --git a/dev-perl/Crypt-Cracklib/files/Crypt-Cracklib-1.700.0-CFLAGS.patch 
b/dev-perl/Crypt-Cracklib/files/Crypt-Cracklib-1.700.0-CFLAGS.patch
new file mode 100644
index 00000000000..d483d0d9b12
--- /dev/null
+++ b/dev-perl/Crypt-Cracklib/files/Crypt-Cracklib-1.700.0-CFLAGS.patch
@@ -0,0 +1,11 @@
+diff -ruN Crypt-Cracklib-1.7.orig/Makefile.PL Crypt-Cracklib-1.7/Makefile.PL
+--- Crypt-Cracklib-1.7.orig/Makefile.PL        2019-10-16 05:55:37.321262001 
+0200
++++ Crypt-Cracklib-1.7/Makefile.PL     2019-10-16 05:56:38.585611172 +0200
+@@ -15,7 +15,6 @@
+ requires_external_cc();
+ 
+ cc_lib_links('crack');
+-cc_optimize_flags('-g -Wall -Werror');
+ 
+ auto_install();
+ WriteAll();

Reply via email to