[prev in list] [next in list] [prev in thread] [next in thread] 

List:       openbsd-ports
Subject:    Re: games/gemrb unable to create cache directory
From:       "Kirill Bychkov" <kirby () linklevel ! net>
Date:       2019-07-30 17:09:38
Message-ID: 5553d20d09962c8b7297385b2e1f142f.squirrel () mail ! linklevel ! net
[Download RAW message or body]

On Mon, July 29, 2019 11:27, Nam Nguyen wrote:
> I pasted a diff for games/gemrb that:
> * adds a README
> * fixes LOCALBASE typo in files/baldurs_gate_1.cfg
> * remove GameOverridePath option in files/baldurs_gate1.cfg
>   (from /usr/local/share/examples/gemrb/GemRB.cfg.sample:
>   "You probably do NOT want to specify this!")
> * backported fix from upstream for "Unable to create cache directory"
>

Hi.
There is /etc/gemrb/GemRB.cfg and gemrb also looks into
~/.gemrb/gemrb.cfg so the "config file" part is unnecessary.
Configuration is also explained in gemrb manual.
I used small rewording to encourage people to use packages instead
of ports.
Thanks for the fixes!

[...]

Index: Makefile
===================================================================
RCS file: /cvs/ports/games/gemrb/Makefile,v
retrieving revision 1.13
diff -u -p -r1.13 Makefile
--- Makefile	12 Jul 2019 20:46:18 -0000	1.13
+++ Makefile	30 Jul 2019 17:04:40 -0000
@@ -5,7 +5,7 @@ SHARED_LIBS += 		gemrb_core 0.0
 COMMENT =		open-source implementation of Bioware's Infinity Engine

 DISTNAME =		gemrb-0.8.5
-REVISION =		2
+REVISION =		3

 CATEGORIES =		games emulators x11

Index: files/baldurs_gate_1.cfg
===================================================================
RCS file: /cvs/ports/games/gemrb/files/baldurs_gate_1.cfg,v
retrieving revision 1.1.1.1
diff -u -p -r1.1.1.1 baldurs_gate_1.cfg
--- files/baldurs_gate_1.cfg	21 Aug 2015 09:14:22 -0000	1.1.1.1
+++ files/baldurs_gate_1.cfg	30 Jul 2019 17:04:40 -0000
@@ -10,8 +10,7 @@ CaseSensitive=1
 Width=640
 Height=480
 Fullscreen=1
-GemRBPath=${LOCALASE}/share/gemrb
-GameOverridePath=/data
+GemRBPath=${LOCALBASE}/share/gemrb
 CachePath=/tmp/cache/
 PluginsPath=${LOCALBASE}/lib/gemrb/plugins
 SavePath=~/.baldursgate
Index: patches/patch-gemrb_core_System_VFS_cpp
===================================================================
RCS file: patches/patch-gemrb_core_System_VFS_cpp
diff -N patches/patch-gemrb_core_System_VFS_cpp
--- /dev/null	1 Jan 1970 00:00:00 -0000
+++ patches/patch-gemrb_core_System_VFS_cpp	30 Jul 2019 17:04:40 -0000
@@ -0,0 +1,26 @@
+$OpenBSD$
+
+Fixes [Core/FATAL]: Unable to create cache directory '/tmp/cache'
+Upstream commit 3225a40f0f0c236934feba773d0be0cc2a14c64b
+
+Index: gemrb/core/System/VFS.cpp
+--- gemrb/core/System/VFS.cpp.orig
++++ gemrb/core/System/VFS.cpp
+@@ -413,7 +413,7 @@ bool MakeDirectories(const char* path)
+ 	assert(strnlen(path, _MAX_PATH/2) < _MAX_PATH/2);
+ 	strcpy(Tokenized, path);
+
+-	char* Token = strtok(Tokenized, &PathDelimiter);
++	char* Token = strtok(Tokenized, SPathDelimiter);
+ 	while(Token != NULL) {
+ 		if(TempFilePath[0] == 0) {
+ 			if(path[0] == PathDelimiter) {
+@@ -428,7 +428,7 @@ bool MakeDirectories(const char* path)
+ 		if(!MakeDirectory(TempFilePath))
+ 			return false;
+
+-		Token = strtok(NULL, &PathDelimiter);
++		Token = strtok(NULL, SPathDelimiter);
+ 	}
+ 	return true;
+ }
Index: pkg/PLIST
===================================================================
RCS file: /cvs/ports/games/gemrb/pkg/PLIST,v
retrieving revision 1.5
diff -u -p -r1.5 PLIST
--- pkg/PLIST	29 Jun 2018 22:16:13 -0000	1.5
+++ pkg/PLIST	30 Jul 2019 17:04:40 -0000
@@ -138,6 +138,7 @@ share/doc/gemrb/en/Tables/wstwohnd.txt
 share/doc/gemrb/en/Tables/wstwowpn.txt
 share/doc/gemrb/en/default_ini.txt
 share/doc/gemrb/en/gemrb_ini.txt
+share/doc/pkg-readmes/${PKGSTEM}
 share/examples/gemrb/
 @sample ${SYSCONFDIR}/gemrb/
 share/examples/gemrb/GemRB.cfg.noinstall.sample
Index: pkg/README
===================================================================
RCS file: pkg/README
diff -N pkg/README
--- /dev/null	1 Jan 1970 00:00:00 -0000
+++ pkg/README	30 Jul 2019 17:04:40 -0000
@@ -0,0 +1,16 @@
+$OpenBSD$
+
++-------------------------------------------------------------------------------
+| Running ${PKGSTEM} on OpenBSD
++-------------------------------------------------------------------------------
+
+Getting the games
+=================
+GemRB requires the original game files. These can be from original CDs or
+GOG.com.
+
+Extracting
+----------
+innoextract from packages can be used to extract the GOG.com version.
+
+$ innoextract -g -m setup_baldurs_gate_2.0.0.20.exe


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic