* [gentoo-commits] repo/gentoo:master commit in: dev-perl/Unicode-Map8/, dev-perl/Unicode-Map8/files/
@ 2024-03-12 5:53 Sam James
0 siblings, 0 replies; only message in thread
From: Sam James @ 2024-03-12 5:53 UTC (permalink / raw
To: gentoo-commits
commit: 79a66e0737d26f0ee0cce3bf370e16e6abe91ca2
Author: Sam James <sam <AT> gentoo <DOT> org>
AuthorDate: Tue Mar 12 05:47:34 2024 +0000
Commit: Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Tue Mar 12 05:48:13 2024 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=79a66e07
dev-perl/Unicode-Map8: fix modern C issues
This didn't even work on amd64 until now. No comment.
I hereby certify this as One Of The Examples The Modern C Work Is Good.
Closes: https://bugs.gentoo.org/834518
Closes: https://bugs.gentoo.org/856574
Closes: https://bugs.gentoo.org/883709
Signed-off-by: Sam James <sam <AT> gentoo.org>
.../Unicode-Map8/Unicode-Map8-0.130.0-r3.ebuild | 22 ++++++++++
.../files/Unicode-Map8-0.130.0-c99.patch | 48 ++++++++++++++++++++++
2 files changed, 70 insertions(+)
diff --git a/dev-perl/Unicode-Map8/Unicode-Map8-0.130.0-r3.ebuild b/dev-perl/Unicode-Map8/Unicode-Map8-0.130.0-r3.ebuild
new file mode 100644
index 000000000000..54b99dcb0732
--- /dev/null
+++ b/dev-perl/Unicode-Map8/Unicode-Map8-0.130.0-r3.ebuild
@@ -0,0 +1,22 @@
+# Copyright 1999-2024 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+DIST_AUTHOR=GAAS
+DIST_VERSION=0.13
+inherit perl-module
+
+DESCRIPTION="Convert between most 8bit encodings"
+
+SLOT="0"
+KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sparc ~x86"
+
+RDEPEND="
+ >=dev-perl/Unicode-String-2.60.0
+"
+BDEPEND="${RDEPEND}"
+
+PATCHES=(
+ "${FILESDIR}"/${PN}-0.130.0-c99.patch
+)
diff --git a/dev-perl/Unicode-Map8/files/Unicode-Map8-0.130.0-c99.patch b/dev-perl/Unicode-Map8/files/Unicode-Map8-0.130.0-c99.patch
new file mode 100644
index 000000000000..7305438159c4
--- /dev/null
+++ b/dev-perl/Unicode-Map8/files/Unicode-Map8-0.130.0-c99.patch
@@ -0,0 +1,48 @@
+https://bugs.gentoo.org/834518
+https://bugs.gentoo.org/856574
+https://bugs.gentoo.org/883709
+
+https://rt.cpan.org/Ticket/Display.html?id=24652
+https://rt.cpan.org/Ticket/Display.html?id=126031
+https://rt.cpan.org/Ticket/Display.html?id=70534
+https://rt.cpan.org/Ticket/Display.html?id=43404
+--- a/Map8.xs
++++ b/Map8.xs
+@@ -218,7 +218,7 @@ map8_to_char8(map, uc)
+ U16 uc
+
+ SV*
+-to8(map, str16)
++to8(map, xstr16)
+ Map8* map
+ PREINIT:
+ STRLEN len;
+@@ -282,7 +282,7 @@ to8(map, str16)
+ RETVAL
+
+ SV*
+-to16(map, str8)
++to16(map, xstr8)
+ Map8* map
+ PREINIT:
+ STRLEN len;
+@@ -347,7 +347,7 @@ recode8(m1, m2, str)
+ Map8* m2
+ PREINIT:
+ STRLEN len;
+- STRLEN rlen;
++ int rlen;
+ char* res;
+ INPUT:
+ char* str = SvPV(ST(2), len);
+--- a/map8.h
++++ b/map8.h
+@@ -80,7 +80,7 @@ void map8_free(Map8*);
+
+ U16* map8_to_str16(Map8*, U8*, U16*, int, int*);
+ U8* map8_to_str8 (Map8*, U16*, U8*, int, int*);
+-U8* map8_recode_8(Map8*, Map8*, U8*, U8*, int, int*);
++U8* map8_recode8(Map8*, Map8*, U8*, U8*, int, int*);
+
+ int map8_empty_block(Map8*, U8);
+
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2024-03-12 5:53 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-03-12 5:53 [gentoo-commits] repo/gentoo:master commit in: dev-perl/Unicode-Map8/, dev-perl/Unicode-Map8/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