pkgsrc-WIP-changes archive

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

ppsspp: Better method of disabling ASLR



Module Name:	pkgsrc-wip
Committed By:	Charlotte Koch <charlotte%NetBSD.org@localhost>
Pushed By:	cfkoch
Date:		Wed Aug 9 23:06:32 2023 -0700
Changeset:	111e71760a25202a027b94028a1dc567edf324f5

Modified Files:
	ppsspp/Makefile
	ppsspp/TODO
Removed Files:
	ppsspp/MESSAGE.NetBSD

Log Message:
ppsspp: Better method of disabling ASLR

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

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

diffstat:
 ppsspp/MESSAGE.NetBSD | 9 ---------
 ppsspp/Makefile       | 1 +
 ppsspp/TODO           | 1 -
 3 files changed, 1 insertion(+), 10 deletions(-)

diffs:
diff --git a/ppsspp/MESSAGE.NetBSD b/ppsspp/MESSAGE.NetBSD
deleted file mode 100644
index f0df7fae5f..0000000000
--- a/ppsspp/MESSAGE.NetBSD
+++ /dev/null
@@ -1,9 +0,0 @@
-===========================================================================
-$NetBSD$
-
-If PPSSPP seems to crash often (especially while launching a game), try
-disabling ASLR:
-
-    sysctl -w security.pax.aslr.enabled=0
-
-===========================================================================
diff --git a/ppsspp/Makefile b/ppsspp/Makefile
index a287f39332..7a26eacd36 100644
--- a/ppsspp/Makefile
+++ b/ppsspp/Makefile
@@ -33,6 +33,7 @@ CMAKE_ARGS+=	-DUSE_SYSTEM_MINIUPNPC=ON
 CMAKE_ARGS+=	-DUSE_SYSTEM_SNAPPY=ON
 CMAKE_ARGS+=	-DUSE_SYSTEM_ZSTD=ON
 
+NOT_PAX_ASLR_SAFE+=	bin/PPSSPPSDL
 NOT_PAX_MPROTECT_SAFE+=	bin/PPSSPPSDL
 
 .include "../../mk/compiler/clang.mk"
diff --git a/ppsspp/TODO b/ppsspp/TODO
index db8af81348..ca8ee1b0d9 100644
--- a/ppsspp/TODO
+++ b/ppsspp/TODO
@@ -1,4 +1,3 @@
 PPSSPP TODO:
 
 - audio problems on NetBSD
-- unclear if ASLR needs to be disabled at build-time as well as runtime


Home | Main Index | Thread Index | Old Index