public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-commits] repo/gentoo:master commit in: app-emulation/aranym/files/, app-emulation/aranym/
@ 2022-04-16 14:37 James Le Cuirot
  0 siblings, 0 replies; 3+ messages in thread
From: James Le Cuirot @ 2022-04-16 14:37 UTC (permalink / raw
  To: gentoo-commits

commit:     e8ba90674eb9321d64f79d341b7aede07c5a8bd5
Author:     James Le Cuirot <chewi <AT> gentoo <DOT> org>
AuthorDate: Sat Apr 16 14:37:06 2022 +0000
Commit:     James Le Cuirot <chewi <AT> gentoo <DOT> org>
CommitDate: Sat Apr 16 14:37:06 2022 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=e8ba9067

app-emulation/aranym: Patch to fix musl build

Closes: https://bugs.gentoo.org/830437
Signed-off-by: James Le Cuirot <chewi <AT> gentoo.org>

 app-emulation/aranym/aranym-1.1.0.ebuild           |  1 +
 .../aranym/files/aranym-1.1.0-libcwrap.patch       | 24 ++++++++++++++++++++++
 2 files changed, 25 insertions(+)

diff --git a/app-emulation/aranym/aranym-1.1.0.ebuild b/app-emulation/aranym/aranym-1.1.0.ebuild
index fe2c0f728ab6..87efc9b39976 100644
--- a/app-emulation/aranym/aranym-1.1.0.ebuild
+++ b/app-emulation/aranym/aranym-1.1.0.ebuild
@@ -38,6 +38,7 @@ BDEPEND="virtual/pkgconfig"
 
 PATCHES=(
 	"${FILESDIR}"/${PN}-1.1.0-conditional-installs.patch
+	"${FILESDIR}"/${PN}-1.1.0-libcwrap.patch
 )
 
 ECONF_SOURCE="${S}"

diff --git a/app-emulation/aranym/files/aranym-1.1.0-libcwrap.patch b/app-emulation/aranym/files/aranym-1.1.0-libcwrap.patch
new file mode 100644
index 000000000000..39ef32c7cc41
--- /dev/null
+++ b/app-emulation/aranym/files/aranym-1.1.0-libcwrap.patch
@@ -0,0 +1,24 @@
+From baa00c51d3cd63602912ee1b252fa774a43b042f Mon Sep 17 00:00:00 2001
+From: James Le Cuirot <chewi@gentoo.org>
+Date: Sat, 16 Apr 2022 10:41:44 +0100
+Subject: [PATCH] Use libcwrap.h specifically with glibc, not just Linux, to
+ fix musl
+
+---
+ src/include/linux/libcwrap.h | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/src/include/linux/libcwrap.h b/src/include/linux/libcwrap.h
+index f68bafb1..9c5c6b8e 100644
+--- a/src/include/linux/libcwrap.h
++++ b/src/include/linux/libcwrap.h
+@@ -1,5 +1,5 @@
+ /* glibc bindings for target ABI version glibc 2.11 */
+-#if defined(__linux__) && !defined (__LIBC_CUSTOM_BINDINGS_H__) && !defined(__ANDROID__)
++#if defined(__GLIBC__) && defined(__linux__) && !defined (__LIBC_CUSTOM_BINDINGS_H__) && !defined(__ANDROID__)
+ 
+ #if defined (__cplusplus)
+ extern "C" {
+-- 
+2.34.1
+


^ permalink raw reply related	[flat|nested] 3+ messages in thread
* [gentoo-commits] repo/gentoo:master commit in: app-emulation/aranym/files/, app-emulation/aranym/
@ 2023-02-14 23:04 Sam James
  0 siblings, 0 replies; 3+ messages in thread
From: Sam James @ 2023-02-14 23:04 UTC (permalink / raw
  To: gentoo-commits

commit:     9c3d39f3f2a9d82d9d47032bfa6577f75be67439
Author:     Sam James <sam <AT> gentoo <DOT> org>
AuthorDate: Tue Feb 14 22:59:29 2023 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Tue Feb 14 23:03:53 2023 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=9c3d39f3

app-emulation/aranym: fix build w/ clang 16

Closes: https://bugs.gentoo.org/894446
Signed-off-by: Sam James <sam <AT> gentoo.org>

 app-emulation/aranym/aranym-1.1.0.ebuild           |   3 +-
 .../files/aranym-1.1.0-clang-16-register.patch     | 219 +++++++++++++++++++++
 2 files changed, 221 insertions(+), 1 deletion(-)

diff --git a/app-emulation/aranym/aranym-1.1.0.ebuild b/app-emulation/aranym/aranym-1.1.0.ebuild
index 291f5a97220e..5c33cc4b867c 100644
--- a/app-emulation/aranym/aranym-1.1.0.ebuild
+++ b/app-emulation/aranym/aranym-1.1.0.ebuild
@@ -1,4 +1,4 @@
-# Copyright 1999-2019 Gentoo Authors
+# Copyright 1999-2023 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
 EAPI=7
@@ -40,6 +40,7 @@ PATCHES=(
 	"${FILESDIR}"/${PN}-1.1.0-conditional-installs.patch
 	"${FILESDIR}"/${PN}-1.1.0-libcwrap.patch
 	"${FILESDIR}"/${PN}-1.1.0-ar.patch
+	"${FILESDIR}"/${PN}-1.1.0-clang-16-register.patch
 )
 
 ECONF_SOURCE="${S}"

diff --git a/app-emulation/aranym/files/aranym-1.1.0-clang-16-register.patch b/app-emulation/aranym/files/aranym-1.1.0-clang-16-register.patch
new file mode 100644
index 000000000000..2adc5fb3c1fe
--- /dev/null
+++ b/app-emulation/aranym/files/aranym-1.1.0-clang-16-register.patch
@@ -0,0 +1,219 @@
+https://bugs.gentoo.org/894446
+https://github.com/aranym/aranym/commit/e19e21151d5e394dd45d4db08e68245e86e32ab7
+https://github.com/aranym/aranym/commit/64414e43deebc665772481d802b6c1c88d752ac3
+
+From e19e21151d5e394dd45d4db08e68245e86e32ab7 Mon Sep 17 00:00:00 2001
+From: Thorsten Otto <admin@tho-otto.de>
+Date: Tue, 2 Aug 2022 18:12:19 +0200
+Subject: [PATCH] Remove obsolete register keywords
+
+--- a/src/blitter.cpp
++++ b/src/blitter.cpp
+@@ -114,8 +114,8 @@ void BLITTER::SM_UW(memptr addr, UW value) {
+ #define HOP_OPS(_fn_name,_op,_do_source_shift,_get_source_data,_shifted_hopd_data, _do_halftone_inc) \
+ static void _fn_name ( BLITTER& b ) \
+ {												\
+-	register unsigned int skew       = (unsigned int) b.skewreg & 15;		\
+-	register unsigned int source_buffer=0;				\
++	unsigned int skew       = b.skewreg & 15;		\
++	unsigned int source_buffer=0;				\
+ 	if (b.hop & 1) {										\
+ 		if (b.line_num & 0x20) 		 					\
+ 			b.halftone_curroffset = b.skewreg & 15;			\
+@@ -127,7 +127,7 @@ static void _fn_name ( BLITTER& b ) \
+ 			b.halftone_direction = -1;					\
+ 	}													\
+ 	do 								\
+-	{	register UW x,dst_data,opd_data;			\
++	{	UW x,dst_data,opd_data;			\
+ 		if (b.FXSR) 						\
+ 		{ 	_do_source_shift; 				\
+ 			_get_source_data;				\
+--- a/src/md5.cpp
++++ b/src/md5.cpp
+@@ -168,7 +168,7 @@ MD5::MD5Final(md5byte digest[16])
+ void
+ MD5::MD5Transform(UWORD32 buf[4], UWORD32 const in[16])
+ {
+-	register UWORD32 a, b, c, d;
++	UWORD32 a, b, c, d;
+ 
+ 	a = buf[0];
+ 	b = buf[1];
+
+From 64414e43deebc665772481d802b6c1c88d752ac3 Mon Sep 17 00:00:00 2001
+From: Thorsten Otto <admin@tho-otto.de>
+Date: Tue, 9 Aug 2022 09:17:31 +0200
+Subject: [PATCH] Remove more obsolete register keywords
+
+--- a/src/disasm/disasm-builtin.cpp
++++ b/src/disasm/disasm-builtin.cpp
+@@ -277,7 +277,7 @@ static const char *const bitfieldtable[] =
+ 
+ static void ps(m68k_disasm_info *info, const char *str)
+ {
+-	register char c;
++	char c;
+ 
+ 	while ((c = *str++) != '\0')
+ 	{
+@@ -486,7 +486,7 @@ static void oadi(m68k_disasm_info *info, int regnum)
+ 
+ static int os(m68k_disasm_info *info, int opcode)
+ {
+-	register int size;
++	int size;
+ 
+ 	size = insize(opcode);
+ 	sputc('.');
+@@ -501,7 +501,7 @@ static int os(m68k_disasm_info *info, int opcode)
+ 
+ static int os2(m68k_disasm_info *info, int opcode)
+ {
+-	register int size;
++	int size;
+ 
+ 	size = (opcode >> 9) & 3;
+ 	sputc('.');
+@@ -968,10 +968,10 @@ static void doextended(m68k_disasm_info *info, int opcode2, int srcr)
+ 
+ static void doea(m68k_disasm_info *info, int opcode, int size)
+ {
+-	register int srcr;
+-	register int opcode2;
++	int srcr;
++	int opcode2;
+ 	uae_s32 offset;
+-	register uae_s32 adr;
++	uae_s32 adr;
+ 
+ 	srcr = srcreg(opcode);
+ 	switch (srcmod(opcode))
+@@ -1071,7 +1071,7 @@ static void doea(m68k_disasm_info *info, int opcode, int size)
+ 
+ static void reglist(m68k_disasm_info *info, int regmask)
+ {
+-	register int regnum;
++	int regnum;
+ 	int liststart;
+ 	int lastreg;
+ 	int status;
+@@ -1113,8 +1113,8 @@ static void reglist(m68k_disasm_info *info, int regmask)
+ 
+ static int revbits(int mask, int n)
+ {
+-	register int i;
+-	register int newmask;
++	int i;
++	int newmask;
+ 
+ 	for (newmask = 0, i = n; i > 0; i--)
+ 	{
+@@ -1390,7 +1390,7 @@ static void group0(m68k_disasm_info *info, int opcode)
+ 
+ static void group11(m68k_disasm_info *info, int opcode)
+ {
+-	register int size;
++	int size;
+ 
+ 	if ((opcode & 0x0100) != 0 && insize(opcode) != 3)
+ 	{
+@@ -1441,7 +1441,7 @@ static void group11(m68k_disasm_info *info, int opcode)
+ 
+ static void group1(m68k_disasm_info *info, int opcode)
+ {
+-	register int size = 0;
++	int size = 0;
+ 
+ 	ps(info, "move");
+ 	if (dstmod(opcode) == 1)
+@@ -1475,7 +1475,7 @@ static void group1(m68k_disasm_info *info, int opcode)
+ 
+ static void group14(m68k_disasm_info *info, int opcode)
+ {
+-	register short size;
++	short size;
+ 	unsigned int opcode2;
+ 	unsigned int bf;
+ 	
+@@ -2069,7 +2069,7 @@ static enum fpu_size print_fpsize(m68k_disasm_info *info, int mask)
+ static void print_freglist(m68k_disasm_info *info, int regmask, int mode, bool cntl)
+ {
+ 	const char *const * regs;
+-	register int regnum;
++	int regnum;
+ 	int liststart;
+ 	int lastreg;
+ 	int status;
+@@ -3011,8 +3011,8 @@ static void pspreg(m68k_disasm_info *info, int mask)
+ 
+ static void group4(m68k_disasm_info *info, int opcode)
+ {
+-	register int mask;
+-	register int size;
++	int mask;
++	int size;
+ 
+ 	if (opcode & 0x0100)
+ 	{
+@@ -3540,7 +3540,7 @@ static void group4(m68k_disasm_info *info, int opcode)
+ 
+ static void group5(m68k_disasm_info *info, int opcode)
+ {
+-	register uae_s32 adr;
++	uae_s32 adr;
+ 	
+ 	if (insize(opcode) == 3)
+ 	{
+@@ -3603,9 +3603,9 @@ static void group5(m68k_disasm_info *info, int opcode)
+ 
+ static void group6(m68k_disasm_info *info, int opcode)
+ {
+-	register uae_s32 adr;
+-	register int cond;
+-	register signed char dist;
++	uae_s32 adr;
++	int cond;
++	signed char dist;
+ 
+ 	/* 0110 cccc dddddddd */
+ 	switch (cond = (opcode >> 8) & 0x000f)
+@@ -3686,7 +3686,7 @@ static void group7(m68k_disasm_info *info, int opcode)
+ 
+ static void g812(m68k_disasm_info *info, int opcode, const char *andor, const char *muldiv, const char *as)
+ {
+-	register int size;
++	int size;
+ 
+ 	info->num_oper = 2;
+ 	if (dstmod(opcode) == 3)
+@@ -3772,7 +3772,7 @@ static void group8(m68k_disasm_info *info, int opcode)
+ 
+ static void group12(m68k_disasm_info *info, int opcode)
+ {
+-	register int d5;
++	int d5;
+ 
+ 	if ((d5 = (opcode >> 3) & 0x003f) == 0x0028)
+ 	{
+@@ -3813,7 +3813,7 @@ static void group12(m68k_disasm_info *info, int opcode)
+ 
+ static void g913(m68k_disasm_info *info, int opcode, const char *addsub)
+ {
+-	register int size;
++	int size;
+ 
+ 	ps(info, addsub);
+ 	if ((opcode & 0x0100) != 0 && insize(opcode) != 3 && ((opcode >> 4) & 3) == 0)
+@@ -4125,8 +4125,8 @@ static void (*const grphdlrs[])(m68k_disasm_info *, int) = {
+ 
+ int m68k_disasm_builtin(m68k_disasm_info *info)
+ {
+-    register int opcode;
+-    register void (*hdlr)(m68k_disasm_info *info, int opcode);
++    int opcode;
++    void (*hdlr)(m68k_disasm_info *info, int opcode);
+     unsigned int insn_size;
+ 	struct priv_data *priv;
+ 	
+


^ permalink raw reply related	[flat|nested] 3+ messages in thread
* [gentoo-commits] repo/gentoo:master commit in: app-emulation/aranym/files/, app-emulation/aranym/
@ 2023-03-19  2:10 Sam James
  0 siblings, 0 replies; 3+ messages in thread
From: Sam James @ 2023-03-19  2:10 UTC (permalink / raw
  To: gentoo-commits

commit:     2bac2b7b6edcd8b849b20578bc9e70302091f6a3
Author:     Sam James <sam <AT> gentoo <DOT> org>
AuthorDate: Sun Mar 19 02:04:10 2023 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Sun Mar 19 02:07:38 2023 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=2bac2b7b

app-emulation/aranym: fix configure w/ clang 16

Closes: https://bugs.gentoo.org/883583
Closes: https://bugs.gentoo.org/900322
Signed-off-by: Sam James <sam <AT> gentoo.org>

 ...{aranym-1.1.0.ebuild => aranym-1.1.0-r1.ebuild} |  1 +
 .../files/aranym-1.1.0-configure-clang16.patch     | 30 ++++++++++++++++++++++
 2 files changed, 31 insertions(+)

diff --git a/app-emulation/aranym/aranym-1.1.0.ebuild b/app-emulation/aranym/aranym-1.1.0-r1.ebuild
similarity index 98%
rename from app-emulation/aranym/aranym-1.1.0.ebuild
rename to app-emulation/aranym/aranym-1.1.0-r1.ebuild
index 5c33cc4b867c..6746e9ba4b47 100644
--- a/app-emulation/aranym/aranym-1.1.0.ebuild
+++ b/app-emulation/aranym/aranym-1.1.0-r1.ebuild
@@ -41,6 +41,7 @@ PATCHES=(
 	"${FILESDIR}"/${PN}-1.1.0-libcwrap.patch
 	"${FILESDIR}"/${PN}-1.1.0-ar.patch
 	"${FILESDIR}"/${PN}-1.1.0-clang-16-register.patch
+	"${FILESDIR}"/${PN}-1.1.0-configure-clang16.patch
 )
 
 ECONF_SOURCE="${S}"

diff --git a/app-emulation/aranym/files/aranym-1.1.0-configure-clang16.patch b/app-emulation/aranym/files/aranym-1.1.0-configure-clang16.patch
new file mode 100644
index 000000000000..66d2c091b860
--- /dev/null
+++ b/app-emulation/aranym/files/aranym-1.1.0-configure-clang16.patch
@@ -0,0 +1,30 @@
+https://github.com/aranym/aranym/pull/102
+
+From ef9ba74fcbf868aeb1b0e0b02e53775a14cda0f7 Mon Sep 17 00:00:00 2001
+From: Sam James <sam@gentoo.org>
+Date: Sun, 19 Mar 2023 01:56:56 +0000
+Subject: [PATCH] configure.ac: fix -Wimplicit-function-declaration in TUN/TAP
+ test
+
+Clang 16 makes -Wimplicit-function-declaration an error by default.
+
+Unfortunately, this can lead to misconfiguration or miscompilation of software as configure
+tests may then return the wrong result.
+
+For more information, see LWN.net [0] or LLVM's Discourse [1], the Gentoo wiki [2],
+or the (new) c-std-porting mailing list [3].
+
+[0] https://lwn.net/Articles/913505/
+[1] https://discourse.llvm.org/t/configure-script-breakage-with-the-new-werror-implicit-function-declaration/65213
+[2] https://wiki.gentoo.org/wiki/Modern_C_porting
+[3] hosted at lists.linux.dev.
+--- a/configure.ac
++++ b/configure.ac
+@@ -539,6 +539,7 @@ AC_CACHE_CHECK([whether TUN/TAP is supported],
+     #include <net/if.h>
+     #include <net/if_tun.h>
+     #endif
++    #include <string.h>
+   ], [
+     struct ifreq ifr;
+     memset(&ifr, 0, sizeof(ifr));


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

end of thread, other threads:[~2023-03-19  2:10 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-04-16 14:37 [gentoo-commits] repo/gentoo:master commit in: app-emulation/aranym/files/, app-emulation/aranym/ James Le Cuirot
  -- strict thread matches above, loose matches on Subject: below --
2023-02-14 23:04 Sam James
2023-03-19  2:10 Sam James

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