public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-commits] repo/gentoo:master commit in: app-text/rman/files/, app-text/rman/
@ 2020-12-28 14:48 David Seifert
  0 siblings, 0 replies; 2+ messages in thread
From: David Seifert @ 2020-12-28 14:48 UTC (permalink / raw
  To: gentoo-commits

commit:     47a906a1763d185c40f5e12e351b6f553573817a
Author:     Jakov Smolic <jakov.smolic <AT> sartura <DOT> hr>
AuthorDate: Mon Dec 28 14:47:52 2020 +0000
Commit:     David Seifert <soap <AT> gentoo <DOT> org>
CommitDate: Mon Dec 28 14:47:52 2020 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=47a906a1

app-text/rman: Port to EAPI 7

Closes: https://bugs.gentoo.org/757570
Package-Manager: Portage-3.0.9, Repoman-3.0.1
Signed-off-by: Jakov Smolic <jakov.smolic <AT> sartura.hr>
Signed-off-by: David Seifert <soap <AT> gentoo.org>

 app-text/rman/files/rman-3.2-format-security.patch       |  5 -----
 .../{rman-3.2-gentoo.diff => rman-3.2-gentoo.patch}      |  5 ++---
 app-text/rman/files/rman-3.2-ldflags.patch               |  6 ++----
 app-text/rman/rman-3.2-r1.ebuild                         | 16 +++++++---------
 4 files changed, 11 insertions(+), 21 deletions(-)

diff --git a/app-text/rman/files/rman-3.2-format-security.patch b/app-text/rman/files/rman-3.2-format-security.patch
index 77070026bdb..4ea7740a682 100644
--- a/app-text/rman/files/rman-3.2-format-security.patch
+++ b/app-text/rman/files/rman-3.2-format-security.patch
@@ -1,8 +1,3 @@
- rman.c | 2 +-
- 1 file changed, 1 insertion(+), 1 deletion(-)
-
-diff --git a/rman.c b/rman.c
-index d09e547..e5fc88d 100644
 --- a/rman.c
 +++ b/rman.c
 @@ -1372,7 +1372,7 @@ HTML(enum command cmd) {

diff --git a/app-text/rman/files/rman-3.2-gentoo.diff b/app-text/rman/files/rman-3.2-gentoo.patch
similarity index 69%
rename from app-text/rman/files/rman-3.2-gentoo.diff
rename to app-text/rman/files/rman-3.2-gentoo.patch
index ece1e3807e6..676d555ce37 100644
--- a/app-text/rman/files/rman-3.2-gentoo.diff
+++ b/app-text/rman/files/rman-3.2-gentoo.patch
@@ -1,6 +1,5 @@
-diff -urN rman-3.2.orig/Makefile rman-3.2/Makefile
---- rman-3.2.orig/Makefile	2003-07-26 12:15:00.000000000 -0700
-+++ rman-3.2/Makefile	2005-07-12 01:01:37.000000000 -0700
+--- a/Makefile
++++ b/Makefile
 @@ -15,13 +15,8 @@
  #    this must be a directory that's in your bin PATH.
  # MANDIR holds the man page.

diff --git a/app-text/rman/files/rman-3.2-ldflags.patch b/app-text/rman/files/rman-3.2-ldflags.patch
index 4a6f5f5d9ea..7f0745b2e0f 100644
--- a/app-text/rman/files/rman-3.2-ldflags.patch
+++ b/app-text/rman/files/rman-3.2-ldflags.patch
@@ -1,7 +1,5 @@
-Index: rman-3.2/Makefile
-===================================================================
---- rman-3.2.orig/Makefile
-+++ rman-3.2/Makefile
+--- a/Makefile
++++ b/Makefile
 @@ -102,7 +102,7 @@ all:  rman
  
  # everyone but me zaps assertions with the -DNDEBUG flag

diff --git a/app-text/rman/rman-3.2-r1.ebuild b/app-text/rman/rman-3.2-r1.ebuild
index d57e0cb0ab0..e27b09503ee 100644
--- a/app-text/rman/rman-3.2-r1.ebuild
+++ b/app-text/rman/rman-3.2-r1.ebuild
@@ -1,9 +1,9 @@
 # Copyright 1999-2020 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
-EAPI=5
+EAPI=7
 
-inherit eutils toolchain-funcs
+inherit toolchain-funcs
 
 DESCRIPTION="PolyGlotMan man page translator AKA RosettaMan"
 HOMEPAGE="https://sourceforge.net/projects/polyglotman/"
@@ -12,16 +12,14 @@ SRC_URI="mirror://sourceforge/polyglotman/${P}.tar.gz"
 LICENSE="Artistic"
 SLOT="0"
 KEYWORDS="~alpha amd64 arm arm64 hppa ~ia64 ~mips ppc ppc64 s390 sparc x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~sparc-solaris ~x64-solaris ~x86-solaris"
-IUSE=""
 
 RESTRICT="test"
 
-src_prepare() {
-	epatch \
-		"${FILESDIR}"/${P}-gentoo.diff \
-		"${FILESDIR}"/${P}-ldflags.patch \
-		"${FILESDIR}"/${P}-format-security.patch
-}
+PATCHES=(
+	"${FILESDIR}"/${P}-gentoo.patch
+	"${FILESDIR}"/${P}-ldflags.patch
+	"${FILESDIR}"/${P}-format-security.patch
+)
 
 src_compile() {
 	emake CC="$(tc-getCC)" CFLAGS="${CFLAGS}"


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

* [gentoo-commits] repo/gentoo:master commit in: app-text/rman/files/, app-text/rman/
@ 2023-12-13  7:54 Florian Schmaus
  0 siblings, 0 replies; 2+ messages in thread
From: Florian Schmaus @ 2023-12-13  7:54 UTC (permalink / raw
  To: gentoo-commits

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?=
+ <leohdz172@proton.me>
+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 <leohdz172@proton.me>
+--- 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
+}


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

end of thread, other threads:[~2023-12-13  7:54 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-12-13  7:54 [gentoo-commits] repo/gentoo:master commit in: app-text/rman/files/, app-text/rman/ Florian Schmaus
  -- strict thread matches above, loose matches on Subject: below --
2020-12-28 14:48 David Seifert

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