From owner-freebsd-ports-bugs@FreeBSD.ORG Wed Aug 20 13:10:01 2008 Return-Path: Delivered-To: freebsd-ports-bugs@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 1534D1065683 for ; Wed, 20 Aug 2008 13:10:01 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id E0E808FC22 for ; Wed, 20 Aug 2008 13:10:00 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.14.2/8.14.2) with ESMTP id m7KDA00v046726 for ; Wed, 20 Aug 2008 13:10:00 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.2/8.14.1/Submit) id m7KDA0hq046725; Wed, 20 Aug 2008 13:10:00 GMT (envelope-from gnats) Resent-Date: Wed, 20 Aug 2008 13:10:00 GMT Resent-Message-Id: <200808201310.m7KDA0hq046725@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-ports-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, Vitaly Magerya Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 24B261065678 for ; Wed, 20 Aug 2008 13:00:07 +0000 (UTC) (envelope-from nobody@FreeBSD.org) Received: from www.freebsd.org (www.freebsd.org [IPv6:2001:4f8:fff6::21]) by mx1.freebsd.org (Postfix) with ESMTP id 0611C8FC17 for ; Wed, 20 Aug 2008 13:00:07 +0000 (UTC) (envelope-from nobody@FreeBSD.org) Received: from www.freebsd.org (localhost [127.0.0.1]) by www.freebsd.org (8.14.2/8.14.2) with ESMTP id m7KD062K032757 for ; Wed, 20 Aug 2008 13:00:06 GMT (envelope-from nobody@www.freebsd.org) Received: (from nobody@localhost) by www.freebsd.org (8.14.2/8.14.1/Submit) id m7KD06nN032756; Wed, 20 Aug 2008 13:00:06 GMT (envelope-from nobody) Message-Id: <200808201300.m7KD06nN032756@www.freebsd.org> Date: Wed, 20 Aug 2008 13:00:06 GMT From: Vitaly Magerya To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-3.1 Cc: Subject: ports/126680: [patch] games/wormux: would not start X-BeenThere: freebsd-ports-bugs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Ports bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 20 Aug 2008 13:10:01 -0000 >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@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: