public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-commits] repo/gentoo:master commit in: dev-perl/Crypt-Cracklib/files/, dev-perl/Crypt-Cracklib/
@ 2019-10-16  4:14 Andreas K. Hüttel
  0 siblings, 0 replies; 2+ messages in thread
From: Andreas K. Hüttel @ 2019-10-16  4:14 UTC (permalink / raw
  To: gentoo-commits

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();


^ permalink raw reply related	[flat|nested] 2+ messages in thread

* [gentoo-commits] repo/gentoo:master commit in: dev-perl/Crypt-Cracklib/files/, dev-perl/Crypt-Cracklib/
@ 2020-06-30 14:00 Kent Fredric
  0 siblings, 0 replies; 2+ messages in thread
From: Kent Fredric @ 2020-06-30 14:00 UTC (permalink / raw
  To: gentoo-commits

commit:     1d79ac57f4449ed34d97ddea06fedcfd479f5a5c
Author:     Kent Fredric <kentnl <AT> gentoo <DOT> org>
AuthorDate: Tue Jun 30 13:59:30 2020 +0000
Commit:     Kent Fredric <kentnl <AT> gentoo <DOT> org>
CommitDate: Tue Jun 30 13:59:57 2020 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=1d79ac57

dev-perl/Crypt-Cracklib: -r bump for EAPI7 and fixes

- EAPI7
- Expand dependencies better
- Migrade "sed" hackery to a patch
- Rework existing patch into git format
- Unconditionally patch out bad tests
- Ensure CFLAGS passed through to make

Package-Manager: Portage-2.3.100, Repoman-2.3.22
Signed-off-by: Kent Fredric <kentnl <AT> gentoo.org>

 .../Crypt-Cracklib-1.700.0-r3.ebuild               | 39 ++++++++++++++++++++++
 .../files/Crypt-Cracklib-1.7-CFLAGS-1.patch        | 25 ++++++++++++++
 .../files/Crypt-Cracklib-1.7-no-dot-inc.patch      | 21 ++++++++++++
 3 files changed, 85 insertions(+)

diff --git a/dev-perl/Crypt-Cracklib/Crypt-Cracklib-1.700.0-r3.ebuild b/dev-perl/Crypt-Cracklib/Crypt-Cracklib-1.700.0-r3.ebuild
new file mode 100644
index 00000000000..9d86b5c2aae
--- /dev/null
+++ b/dev-perl/Crypt-Cracklib/Crypt-Cracklib-1.700.0-r3.ebuild
@@ -0,0 +1,39 @@
+# Copyright 1999-2020 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+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"
+RESTRICT="!test? ( test )"
+
+RDEPEND="sys-libs/cracklib"
+DEPEND="${RDEPEND}"
+BDEPEND="${RDEPEND}
+	>=virtual/perl-ExtUtils-MakeMaker-6.420.0
+	test? (
+		>=virtual/perl-Test-Simple-0.470.0
+	)
+"
+
+PATCHES=(
+	"${FILESDIR}/${PN}-1.7-CFLAGS-1.patch"
+	"${FILESDIR}/${PN}-1.7-no-dot-inc.patch"
+)
+PERL_RM_FILES=(
+	t/pod-coverage.t
+	t/pod.t
+)
+src_compile() {
+	mymake=(
+		"OPTIMIZE=${CFLAGS}"
+	)
+	perl-module_src_compile
+}

diff --git a/dev-perl/Crypt-Cracklib/files/Crypt-Cracklib-1.7-CFLAGS-1.patch b/dev-perl/Crypt-Cracklib/files/Crypt-Cracklib-1.7-CFLAGS-1.patch
new file mode 100644
index 00000000000..fbc5517efec
--- /dev/null
+++ b/dev-perl/Crypt-Cracklib/files/Crypt-Cracklib-1.7-CFLAGS-1.patch
@@ -0,0 +1,25 @@
+From 160ea833ef64916906c9334f7da12db3208293eb Mon Sep 17 00:00:00 2001
+From: =?UTF-8?q?Andreas=20K=2E=20H=C3=BCttel?= <dilfridge@gentoo.org>
+Date: Wed, 16 Oct 2019 17:00:25 +1300
+Subject: Avoid clobbering CFLAGS in Makefile.pl
+
+Bug: https://bugs.gentoo.org/658000
+---
+ Makefile.PL | 1 -
+ 1 file changed, 1 deletion(-)
+
+diff --git a/Makefile.PL b/Makefile.PL
+index 34f1008..6ede3a6 100644
+--- a/Makefile.PL
++++ b/Makefile.PL
+@@ -15,7 +15,6 @@ test_requires 'Test::More' => '0.47';
+ requires_external_cc();
+ 
+ cc_lib_links('crack');
+-cc_optimize_flags('-g -Wall -Werror');
+ 
+ auto_install();
+ WriteAll();
+-- 
+2.27.0
+

diff --git a/dev-perl/Crypt-Cracklib/files/Crypt-Cracklib-1.7-no-dot-inc.patch b/dev-perl/Crypt-Cracklib/files/Crypt-Cracklib-1.7-no-dot-inc.patch
new file mode 100644
index 00000000000..0af640bcf48
--- /dev/null
+++ b/dev-perl/Crypt-Cracklib/files/Crypt-Cracklib-1.7-no-dot-inc.patch
@@ -0,0 +1,21 @@
+From 8dd70878d095fa0b35b81ee6e21c2b1fc010b41b Mon Sep 17 00:00:00 2001
+From: Kent Fredric <kentnl@gentoo.org>
+Date: Wed, 1 Jul 2020 01:23:46 +1200
+Subject: Include '.' in @INC for perl 5.26+
+
+---
+ Makefile.PL | 1 +
+ 1 file changed, 1 insertion(+)
+
+diff --git a/Makefile.PL b/Makefile.PL
+index 6ede3a6..d793c3b 100644
+--- a/Makefile.PL
++++ b/Makefile.PL
+@@ -1,3 +1,4 @@
++use lib '.';
+ use inc::Module::Install;
+ 
+ name('Crypt-Cracklib');
+-- 
+2.27.0
+


^ permalink raw reply related	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2020-06-30 14:00 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2019-10-16  4:14 [gentoo-commits] repo/gentoo:master commit in: dev-perl/Crypt-Cracklib/files/, dev-perl/Crypt-Cracklib/ Andreas K. Hüttel
  -- strict thread matches above, loose matches on Subject: below --
2020-06-30 14:00 Kent Fredric

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox