pkgsrc-WIP-changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

retroarch: Reintroduce workaround for netbsd pthread local storage, the assert fail on exit still happens (load a game first).



Module Name:	pkgsrc-wip
Committed By:	Nia Alarie <nia.alarie%gmail.com@localhost>
Pushed By:	nee
Date:		Mon Nov 27 22:24:21 2017 +0000
Changeset:	a08b09e8af68324ef3abc214e9b7755ad9a424da

Modified Files:
	retroarch/Makefile

Log Message:
retroarch: Reintroduce workaround for netbsd pthread local storage,
the assert fail on exit still happens (load a game first).

To see a diff of this commit:
https://wip.pkgsrc.org/cgi-bin/gitweb.cgi?p=pkgsrc-wip.git;a=commitdiff;h=a08b09e8af68324ef3abc214e9b7755ad9a424da

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

diffstat:
 retroarch/Makefile | 8 ++++++++
 1 file changed, 8 insertions(+)

diffs:
diff --git a/retroarch/Makefile b/retroarch/Makefile
index f273a32918..5a98a85885 100644
--- a/retroarch/Makefile
+++ b/retroarch/Makefile
@@ -32,6 +32,14 @@ CPPFLAGS+=	-DPREFIX=\"${PREFIX}\"
 
 .include "../../mk/bsd.fast.prefs.mk"
 
+# On exit (load a game first):
+# assertion "pthread__tsd_destructors[key] != NULL" failed:
+# file "/usr/src/lib/libpthread/pthread_tsd.c", line 287, function "pthread_key_delete"
+# [1]   Abort trap (core dumped) retroarch
+.if ${OPSYS} == "NetBSD"
+CONFIGURE_ARGS+=       --disable-thread_storage
+.endif
+
 .include "options.mk"
 .include "../../devel/zlib/buildlink3.mk"
 .include "../../net/miniupnpc/buildlink3.mk"


Home | Main Index | Thread Index | Old Index