ports/126680: [patch] games/wormux: would not start
Vitaly Magerya
vmagerya at gmail.com
Wed Aug 20 13:10:01 UTC 2008
>Number: 126680
>Category: ports
>Synopsis: [patch] games/wormux: would not start
>Confidential: no
>Severity: serious
>Priority: low
>Responsible: freebsd-ports-bugs
>State: open
>Quarter:
>Keywords:
>Date-Required:
>Class: sw-bug
>Submitter-Id: current-users
>Arrival-Date: Wed Aug 20 13:10:00 UTC 2008
>Closed-Date:
>Last-Modified:
>Originator: Vitaly Magerya
>Release: FreeBSD 7.0-RELEASE
>Organization:
>Environment:
FreeBSD landmine 7.0-RELEASE FreeBSD 7.0-RELEASE #0: Mon Aug 11 22:56:39 EEST 2008
root at landmine:/usr/obj/usr/src/sys/T40
>Description:
This is what I get after installing and running games/wormux:
----------------
! Error in tool/resource_manager.cpp:187: ResourceManager: can't load profile /usr/local/share/wormuxwormux_default_config.xml
tool/error.cpp:85: Missed assertion "false".
terminate called after throwing an instance of 'CError'
what(): ResourceManager: can't load profile /usr/local/share/wormuxwormux_default_config.xml
Abort (core dumped)
----------------
There's a slash after /usr/local/share/wormux missing.
That slash is supposed to be added by the configure script, but it is currently patched out by files/patch-configure patch. The reason behind this is that wormux would not even install with that slash added -- it would apparently try to create the directory twice and complain about directory already created.
There are several ways to add this missing slash, and I'm including a patch with one of them (it's a quick way to do this, not the right one).
>How-To-Repeat:
Install and run port games/wormux.
>Fix:
Apply included patch to the port.
Patch attached with submission follows:
diff -ruN wormux/files/patch-config.h wormux-fixed/files/patch-config.h
--- wormux/files/patch-config.h 1970-01-01 03:00:00.000000000 +0300
+++ wormux-fixed/files/patch-config.h 2008-08-20 13:37:51.000000000 +0300
@@ -0,0 +1,11 @@
+--- src/game/config.h.orig 2008-08-20 13:36:54.000000000 +0300
++++ src/game/config.h 2008-08-20 13:35:42.000000000 +0300
+@@ -126,7 +126,7 @@
+
+ const std::string& GetTtfFilename();
+
+- std::string GetDataDir() const { return data_dir; };
++ std::string GetDataDir() const { return data_dir + "/"; };
+ std::string GetLocaleDir() const { return locale_dir; };
+ std::string GetPersonalDataDir() const { return personal_data_dir; };
+ std::string GetChatLogDir() const { return chat_log_dir; };
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the freebsd-ports-bugs
mailing list