* [gentoo-commits] repo/gentoo:master commit in: dev-perl/Crypt-Twofish/, dev-perl/Crypt-Twofish/files/
@ 2023-01-04 4:32 Sam James
0 siblings, 0 replies; only message in thread
From: Sam James @ 2023-01-04 4:32 UTC (permalink / raw
To: gentoo-commits
commit: ff1fcba28ce2f58511dafeaf24ba726feef774f9
Author: Sam James <sam <AT> gentoo <DOT> org>
AuthorDate: Wed Jan 4 04:30:53 2023 +0000
Commit: Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Wed Jan 4 04:32:02 2023 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=ff1fcba2
dev-perl/Crypt-Twofish: fix configure w/ clang 16
Signed-off-by: Sam James <sam <AT> gentoo.org>
...ofish-2.180.0.ebuild => Crypt-Twofish-2.180.0-r1.ebuild} | 6 +++++-
.../files/Crypt-Twofish-2.180.0-configure-clang16.patch | 13 +++++++++++++
2 files changed, 18 insertions(+), 1 deletion(-)
diff --git a/dev-perl/Crypt-Twofish/Crypt-Twofish-2.180.0.ebuild b/dev-perl/Crypt-Twofish/Crypt-Twofish-2.180.0-r1.ebuild
similarity index 77%
rename from dev-perl/Crypt-Twofish/Crypt-Twofish-2.180.0.ebuild
rename to dev-perl/Crypt-Twofish/Crypt-Twofish-2.180.0-r1.ebuild
index 08416159288b..5468e3cab0b2 100644
--- a/dev-perl/Crypt-Twofish/Crypt-Twofish-2.180.0.ebuild
+++ b/dev-perl/Crypt-Twofish/Crypt-Twofish-2.180.0-r1.ebuild
@@ -1,4 +1,4 @@
-# Copyright 1999-2021 Gentoo Authors
+# Copyright 1999-2023 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=7
@@ -12,6 +12,10 @@ DESCRIPTION="The Twofish Encryption Algorithm"
SLOT="0"
KEYWORDS="amd64 ~ia64 ~ppc sparc x86 ~amd64-linux ~x86-linux ~ppc-macos ~x86-solaris"
+PATCHES=(
+ "${FILESDIR}"/${PN}-2.180.0-configure-clang16.patch
+)
+
src_compile() {
mymake=(
"OPTIMIZE=${CFLAGS}"
diff --git a/dev-perl/Crypt-Twofish/files/Crypt-Twofish-2.180.0-configure-clang16.patch b/dev-perl/Crypt-Twofish/files/Crypt-Twofish-2.180.0-configure-clang16.patch
new file mode 100644
index 000000000000..4dbb15364190
--- /dev/null
+++ b/dev-perl/Crypt-Twofish/files/Crypt-Twofish-2.180.0-configure-clang16.patch
@@ -0,0 +1,13 @@
+https://gitlab.com/fweimer-rh/fedora-modernc/-/commit/1dfd7bb468b91abb93f6b3c54c8b1dcdaf8ccdff
+https://rt.cpan.org/Public/Bug/Display.html?id=145461
+--- a/Makefile.PL
++++ b/Makefile.PL
+@@ -6,6 +6,7 @@ use ExtUtils::MakeMaker;
+
+ ($stdint = <<"TEST") =~ s/^\| {0,3}//gm;
+ | #include <stdint.h>
++| #include <stdio.h>
+ | int main(void) {
+ | printf("%d%d", sizeof(uint16_t), sizeof(uint32_t));
+ | return 0;
+
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2023-01-04 4:32 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-01-04 4:32 [gentoo-commits] repo/gentoo:master commit in: dev-perl/Crypt-Twofish/, dev-perl/Crypt-Twofish/files/ Sam James
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox