-
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 version 0.47.04, bugfix
The bug has already been confirmed but has not yet been fixed. The changes for the bug fix were posted by the user Cheaterman https://www.bay12games.com/dwarves/mantisbt/view.php?id=11564 Signed-off-by: Sven Eusewig <sveneusewig@yahoo.de> Bug: https://bugs.gentoo.org/729002 Package-Manager: Portage-3.0.4, Repoman-3.0.1
- Loading branch information
1 parent
2cbe4d3
commit a7aa4f5
Showing
3 changed files
with
63 additions
and
6 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
DIST df_44_12_linux.tar.bz2 12081683 BLAKE2B 2410e8da6af6a8ced45d3e95dc06e2d0f4e31dbdcd6b8d9945a761d2278532bb24c1095418aa22639eedded256b3d485fa128984e6282a491d4dc7bd9af8671b SHA512 03cd7f6800d44873b573cc5bffb12c7a246c3aba0ee8535001372df689a5179dc02592670fd87f2fd5de82421605f34152f6241307c8f7b9fb4d7b8704aed70c | ||
DIST df_44_12_linux32.tar.bz2 12686340 BLAKE2B bf1e1370930d91d2c9e72d3366bc79706092d1505853eb63c6160fea39822551d3276958ac6d2916b8f7825be0c054a037219210f0c2c18a731065a2dd1bb842 SHA512 5cd352acf310592c7e30442205b7fe590f421c5e3562959dcfd32a17d3d562347c2b32e3bc5835637c5550ce2c696c17b6dc910ee4cf766be07af306e83537db | ||
DIST df_47_04_linux.tar.bz2 12719630 BLAKE2B f32a94b0db66bbcf84ed8f278871992ed56c1d4da4d3f0f88124db3074335a7f6b2a4c065e6a562e899ac54d9a786341ec21097032e58ce962ab29a10ba3043f SHA512 65f6cd39187afbb7b60ba72d0caf23c39d95674615ab718ad55c25cad23c08e42c1b911cfde7015b05a280325504f3b931f2c7defb34ee2ee6b725101c536cea | ||
DIST df_47_04_linux32.tar.bz2 13481027 BLAKE2B 30cc3a6c392a9336508bce75e47112c7086f5979006a3ffa56808a9b519aa738a31f811db2536a44cb9c66dc1f8880747f71ca797bd9323441adcae300b8d0b9 SHA512 d76286957ed3f1e677519c45b9644463e45c07c226ce3200f2db6a776396e77fc8aa3f5fdd697fdbde5efa49b7d0dce47b98dfe0a880b666e227ccb8b288a6c0 |
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
54 changes: 54 additions & 0 deletions
54
games-roguelike/dwarf-fortress/files/dwarf-fortress-0.47.04-segfault-fix-729002.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,54 @@ | ||
diff --git a/g_src/enabler.cpp b/g_src/enabler.cpp | ||
index c0cfda8..7db0142 100644 | ||
--- a/g_src/enabler.cpp | ||
+++ b/g_src/enabler.cpp | ||
@@ -590,6 +590,10 @@ int enablerst::loop(string cmdline) { | ||
|
||
// Clean up graphical resources | ||
delete renderer; | ||
+ | ||
+ // FIX infinite loop | ||
+ // https://www.bay12games.com/dwarves/mantisbt/view.php?id=11564 | ||
+ return 0; | ||
} | ||
|
||
void enablerst::override_grid_size(int x, int y) { | ||
diff --git a/g_src/music_and_sound_openal.cpp b/g_src/music_and_sound_openal.cpp | ||
index 1ee0941..fa431f3 100644 | ||
--- a/g_src/music_and_sound_openal.cpp | ||
+++ b/g_src/music_and_sound_openal.cpp | ||
@@ -250,7 +250,11 @@ void musicsoundst::deinitsound() { | ||
alDeleteBuffers(1, &buffer); | ||
} | ||
// Deinit OpenAL | ||
- alcMakeContextCurrent(NULL); | ||
+ | ||
+ // FIX infinite loop | ||
+ // https://www.bay12games.com/dwarves/mantisbt/view.php?id=11564 | ||
+ //alcMakeContextCurrent(NULL); | ||
+ | ||
alcDestroyContext(context); | ||
alcCloseDevice(device); | ||
|
||
@@ -480,7 +484,9 @@ static bool init_openal() { | ||
|
||
void alEnable( ALenum capability ) { _alEnable(capability); } | ||
void alDisable( ALenum capability ) { _alDisable(capability); } | ||
-ALboolean alIsEnabled( ALenum capability ) { _alIsEnabled(capability); } | ||
+// FIX return statement | ||
+// https://www.bay12games.com/dwarves/mantisbt/view.php?id=11564 | ||
+ALboolean alIsEnabled( ALenum capability ) { return _alIsEnabled(capability); } | ||
const ALchar* alGetString( ALenum param ) { return _alGetString(param); } | ||
void alGetBooleanv( ALenum param, ALboolean* data ) { _alGetBooleanv(param, data); } | ||
void alGetIntegerv( ALenum param, ALint* data ) { _alGetIntegerv(param, data); } | ||
@@ -490,7 +496,9 @@ ALboolean alGetBoolean( ALenum param ) { return _alGetBoolean(param); } | ||
ALint alGetInteger( ALenum param ) { return _alGetInteger(param); } | ||
ALfloat alGetFloat( ALenum param ) { return _alGetFloat(param); } | ||
ALdouble alGetDouble( ALenum param ) { return _alGetDouble(param); } | ||
-ALenum alGetError( void ) { _alGetError(); } | ||
+// FIX return statement | ||
+// https://www.bay12games.com/dwarves/mantisbt/view.php?id=11564 | ||
+ALenum alGetError( void ) { return _alGetError(); } | ||
ALboolean alIsExtensionPresent( const ALchar* extname ) { return _alIsExtensionPresent(extname); } | ||
void* alGetProcAddress( const ALchar* fname ) { return _alGetProcAddress(fname); } | ||
ALenum alGetEnumValue( const ALchar* ename ) { return _alGetEnumValue(ename); } |