-
Notifications
You must be signed in to change notification settings - Fork 2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
games-roguelike/dwarf-fortress: add ncurses-patch
libgraphics.so now opens libncursesw.so.6 first before libncursesw.so.5 and others. DEPEND on ncurses-combat has been replaced to ncurses. Bug: https://bugs.gentoo.org/729002 Reviewed-by: James Le Cuirot <chewi@aura-online.co.uk> Package-Manager: Portage-3.0.9, Repoman-3.0.2 Signed-off-by: Sven Eusewig <sveneusewig@yahoo.de>
- Loading branch information
1 parent
cf30ca8
commit 954787d
Showing
2 changed files
with
28 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
22 changes: 22 additions & 0 deletions
22
games-roguelike/dwarf-fortress/files/dwarf-fortress-0.47.04-ncurses.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
diff --git a/g_src/renderer_curses.cpp b/g_src/renderer_curses.cpp | ||
index 2d90d9c..a5d6282 100644 | ||
--- a/g_src/renderer_curses.cpp | ||
+++ b/g_src/renderer_curses.cpp | ||
@@ -294,6 +294,8 @@ extern "C" { | ||
if (!stub_initialized) { | ||
stub_initialized = true; | ||
// We prefer libncursesw, but we'll accept libncurses if we have to | ||
+ handle = dlopen("libncursesw.so.6", RTLD_LAZY); | ||
+ if (handle) goto opened; | ||
handle = dlopen("libncursesw.so.5", RTLD_LAZY); | ||
if (handle) goto opened; | ||
handle = dlopen("libncursesw.so", RTLD_LAZY); | ||
@@ -302,6 +304,8 @@ extern "C" { | ||
sleep(5); | ||
handle = dlopen("libncurses.dylib", RTLD_LAZY); | ||
if (handle) goto opened; | ||
+ handle = dlopen("libncurses.so.6", RTLD_LAZY); | ||
+ if (handle) goto opened; | ||
handle = dlopen("libncurses.so.5", RTLD_LAZY); | ||
if (handle) goto opened; | ||
handle = dlopen("libncurses.so", RTLD_LAZY); |