commit:     785b732be3914227b8455af1a69dcb15ad781ab6
Author:     Leonardo Hernández Hernández <leohdz172 <AT> proton <DOT> me>
AuthorDate: Mon Dec 11 23:11:32 2023 +0000
Commit:     Florian Schmaus <flow <AT> gentoo <DOT> org>
CommitDate: Wed Dec 13 07:50:10 2023 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=785b732b

app-text/rman: update EAPI 7 -> 8, fix -Wincompatible-pointer-types

Closes: https://bugs.gentoo.org/880523
Signed-off-by: Leonardo Hernández Hernández <leohdz172 <AT> proton.me>
Closes: https://github.com/gentoo/gentoo/pull/34244
Signed-off-by: Florian Schmaus <flow <AT> gentoo.org>

 .../rman-3.2-incompatible-pointer-types.patch      | 24 ++++++++++++++++
 app-text/rman/rman-3.2-r2.ebuild                   | 32 ++++++++++++++++++++++
 2 files changed, 56 insertions(+)

diff --git a/app-text/rman/files/rman-3.2-incompatible-pointer-types.patch 
b/app-text/rman/files/rman-3.2-incompatible-pointer-types.patch
new file mode 100644
index 000000000000..bb7645c23f34
--- /dev/null
+++ b/app-text/rman/files/rman-3.2-incompatible-pointer-types.patch
@@ -0,0 +1,24 @@
+From 1120713781a5da03a56d3f8d59904c0fd20f6dd6 Mon Sep 17 00:00:00 2001
+From: =?UTF-8?q?Leonardo=20Hern=C3=A1ndez=20Hern=C3=A1ndez?=
+ <[email protected]>
+Date: Mon, 11 Dec 2023 17:05:26 -0600
+Subject: [PATCH] fix build with -Werror=incompatible-pointer-types
+MIME-Version: 1.0
+Content-Type: text/plain; charset=UTF-8
+Content-Transfer-Encoding: 8bit
+
+Signed-off-by: Leonardo Hernández Hernández <[email protected]>
+--- a/rman.c
++++ b/rman.c
+@@ -268,7 +268,7 @@ stricmp(const char *s1, const char *s2) {
+       else return 1;
+ }
+ 
+-int lcexceptionscmp(const char **a, const char **b) { return stricmp(*a, *b); 
}
++int lcexceptionscmp(const void *a, const void *b) { return stricmp((const 
char *)a, (const char *)b); }
+ 
+ int
+ strincmp(const char *s1, const char *s2, size_t n) {
+-- 
+2.43.0
+

diff --git a/app-text/rman/rman-3.2-r2.ebuild b/app-text/rman/rman-3.2-r2.ebuild
new file mode 100644
index 000000000000..a6e49555a341
--- /dev/null
+++ b/app-text/rman/rman-3.2-r2.ebuild
@@ -0,0 +1,32 @@
+# Copyright 1999-2023 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+inherit toolchain-funcs
+
+DESCRIPTION="PolyGlotMan man page translator AKA RosettaMan"
+HOMEPAGE="https://sourceforge.net/projects/polyglotman/";
+SRC_URI="mirror://sourceforge/polyglotman/${P}.tar.gz"
+
+LICENSE="Artistic"
+SLOT="0"
+KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~loong ~mips ~ppc ~ppc64 
~riscv ~s390 ~sparc ~x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos 
~x64-solaris"
+
+RESTRICT="test"
+
+PATCHES=(
+       "${FILESDIR}"/${P}-gentoo.patch
+       "${FILESDIR}"/${P}-ldflags.patch
+       "${FILESDIR}"/${P}-format-security.patch
+       "${FILESDIR}"/${P}-incompatible-pointer-types.patch
+)
+
+src_compile() {
+       emake CC="$(tc-getCC)" CFLAGS="${CFLAGS}"
+}
+
+src_install() {
+       dobin ${PN}
+       doman ${PN}.1
+}

Reply via email to