From unknown Tue Aug 12 08:33:54 2025 X-Loop: help-debbugs@gnu.org Subject: bug#34854: stepmania does not work Resent-From: Ricardo Wurmus Original-Sender: "Debbugs-submit" Resent-CC: bug-guix@gnu.org Resent-Date: Thu, 14 Mar 2019 08:32:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 34854 X-GNU-PR-Package: guix X-GNU-PR-Keywords: To: 34854@debbugs.gnu.org Cc: Nicolas Goaziou X-Debbugs-Original-To: bug-guix@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.155255231620933 (code B ref -1); Thu, 14 Mar 2019 08:32:01 +0000 Received: (at submit) by debbugs.gnu.org; 14 Mar 2019 08:31:56 +0000 Received: from localhost ([127.0.0.1]:42817 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1h4LmN-0005RZ-V9 for submit@debbugs.gnu.org; Thu, 14 Mar 2019 04:31:56 -0400 Received: from eggs.gnu.org ([209.51.188.92]:38626) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1h4LmL-0005RF-MZ for submit@debbugs.gnu.org; Thu, 14 Mar 2019 04:31:54 -0400 Received: from lists.gnu.org ([209.51.188.17]:35791) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1h4LmG-0002Zx-GZ for submit@debbugs.gnu.org; Thu, 14 Mar 2019 04:31:48 -0400 Received: from eggs.gnu.org ([209.51.188.92]:52852) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1h4LmF-0006Ed-Lm for bug-guix@gnu.org; Thu, 14 Mar 2019 04:31:48 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=0.8 required=5.0 tests=BAYES_50,RCVD_IN_DNSWL_NONE, URIBL_BLOCKED autolearn=disabled version=3.3.2 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1h4LZJ-0001gx-DW for bug-guix@gnu.org; Thu, 14 Mar 2019 04:18:27 -0400 Received: from sender-of-o51.zoho.com ([135.84.80.216]:21102) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1h4LZH-0001ZA-US for bug-guix@gnu.org; Thu, 14 Mar 2019 04:18:25 -0400 ARC-Seal: i=1; a=rsa-sha256; t=1552551460; cv=none; d=zoho.com; s=zohoarc; b=eACP/zqSUVkJNLRWWNOUKyxCaDiaHjylg305hj+ljzguVEb5gqc2kAcK2vEoS+xIusclqb2CVX4uQUYVYbs5DIqvQqoacJs0v59FppB6/vrH5kqCxl3nBKRYikdDN+lFYZkpHzL/s3dM8s2Nbynp3erMI8b82rPow1P4ljBUG8M= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zoho.com; s=zohoarc; t=1552551460; h=Content-Type:Content-Transfer-Encoding:Cc:Date:From:MIME-Version:Message-ID:Subject:To:ARC-Authentication-Results; bh=+3lP1SaRiv0Yhv/ysuW0RvXeQBpCTdk2I94VdE5sApQ=; b=T8a4558VJ9K/XThL+h7l5IfK2GI2IUXRJ13z+uvihQ2gWjRKZiGEeD+wfTu+0aylohhf5flCjuFKrWx0EbJhzFPpRVv4rbtwICVgTo9Gn2webRnuPJaWfuOBYg1X6WZc1XfiyEDtq/ibEEUhIyEMVD3rsglR1HYgiCqz3M2C1gY= ARC-Authentication-Results: i=1; mx.zoho.com; dkim=pass header.i=elephly.net; spf=pass smtp.mailfrom=rekado@elephly.net; dmarc=pass header.from= header.from= DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; t=1552551460; s=zoho; d=elephly.net; i=rekado@elephly.net; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version:Content-Type:Content-Transfer-Encoding; l=1059; bh=+3lP1SaRiv0Yhv/ysuW0RvXeQBpCTdk2I94VdE5sApQ=; b=CxZETrDow/9tlZskkjO7Xm6FLXKt4/DbZyVxu92lb10uZzvfqGNdbatfanlkqyap XPf9Knu+8vEN/3TtxubWfbAUY0DCGBCTxYups5vDi74Xbb7CAbhslhdkTLa1FZ3T32A 46EKuSu2smGQ1kmawx/VyoK0GkR2GfvV10SefCJk= Received: from localhost (p54AD4C6A.dip0.t-ipconnect.de [84.173.76.106]) by mx.zohomail.com with SMTPS id 1552551457762118.73270478562108; Thu, 14 Mar 2019 01:17:37 -0700 (PDT) User-agent: mu4e 1.0; emacs 26.1 From: Ricardo Wurmus X-URL: https://elephly.net X-PGP-Key: https://elephly.net/rekado.pubkey X-PGP-Fingerprint: BCA6 89B6 3655 3801 C3C6 2150 197A 5888 235F ACAC Date: Thu, 14 Mar 2019 09:17:33 +0100 Message-ID: <87imwl50pu.fsf@elephly.net> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-ZohoMailClient: External X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 135.84.80.216 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Spam-Score: 1.0 (+) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.0 (/) =E2=80=9Cstepmania=E2=80=9D cannot find its Songs directory, so I created i= t. After doing that, however, =E2=80=9Cstepmania=E2=80=9D still cannot be started as= it can=E2=80=99t find GtkModule.so. --8<---------------cut here---------------start------------->8--- $ /gnu/store/awp5w5v3hfg8zilviarwj85s2y820lyg-stepmania-5.1.0-b2/bin/stepma= nia --help ////////////////////////////////////////////////////// Exception: Couldn't find 'Songs' ////////////////////////////////////////////////////// Error: Couldn't find 'Songs' $ mkdir Songs $ /gnu/store/awp5w5v3hfg8zilviarwj85s2y820lyg-stepmania-5.1.0-b2/bin/stepma= nia=20 StepMania5.1-UNKNOWN Compiled 19700101 @ 00:00:01 (build UNKNOWN) Log starting 2019-03-14 09:15:27 Couldn't load driver gtk: dlopen(): /gnu/store/awp5w5v3hfg8zilviarwj85s2y82= 0lyg-stepmania-5.1.0-b2/bin/GtkModule.so: cannot open shared object file: N= o such file or directory Error: Couldn't open any loading windows. --8<---------------cut here---------------end--------------->8--- --=20 Ricardo From unknown Tue Aug 12 08:33:54 2025 X-Loop: help-debbugs@gnu.org Subject: bug#34854: stepmania does not work Resent-From: Nicolas Goaziou Original-Sender: "Debbugs-submit" Resent-CC: bug-guix@gnu.org Resent-Date: Thu, 14 Mar 2019 14:42:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 34854 X-GNU-PR-Package: guix X-GNU-PR-Keywords: To: Ricardo Wurmus Cc: 34854@debbugs.gnu.org X-Debbugs-Original-Cc: bug-guix@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.15525744891510 (code B ref -1); Thu, 14 Mar 2019 14:42:01 +0000 Received: (at submit) by debbugs.gnu.org; 14 Mar 2019 14:41:29 +0000 Received: from localhost ([127.0.0.1]:43853 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1h4RY1-0000OI-F6 for submit@debbugs.gnu.org; Thu, 14 Mar 2019 10:41:29 -0400 Received: from eggs.gnu.org ([209.51.188.92]:50829) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1h4RXz-0000O6-B3 for submit@debbugs.gnu.org; Thu, 14 Mar 2019 10:41:28 -0400 Received: from lists.gnu.org ([209.51.188.17]:54917) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1h4RXu-0002G0-0u for submit@debbugs.gnu.org; Thu, 14 Mar 2019 10:41:22 -0400 Received: from eggs.gnu.org ([209.51.188.92]:36928) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1h4RXs-0004cS-H0 for bug-guix@gnu.org; Thu, 14 Mar 2019 10:41:21 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-2.6 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_LOW, URIBL_BLOCKED autolearn=disabled version=3.3.2 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1h4RKx-00040s-AG for bug-guix@gnu.org; Thu, 14 Mar 2019 10:28:00 -0400 Received: from relay1-d.mail.gandi.net ([217.70.183.193]:53671) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1h4RKw-0003vK-NQ for bug-guix@gnu.org; Thu, 14 Mar 2019 10:27:59 -0400 X-Originating-IP: 185.131.40.67 Received: from localhost (40-67.ipv4.commingeshautdebit.fr [185.131.40.67]) (Authenticated sender: admin@nicolasgoaziou.fr) by relay1-d.mail.gandi.net (Postfix) with ESMTPSA id 5CAD5240025; Thu, 14 Mar 2019 14:27:52 +0000 (UTC) From: Nicolas Goaziou References: <87imwl50pu.fsf@elephly.net> Date: Thu, 14 Mar 2019 15:27:51 +0100 In-Reply-To: <87imwl50pu.fsf@elephly.net> (Ricardo Wurmus's message of "Thu, 14 Mar 2019 09:17:33 +0100") Message-ID: <875zslpm3c.fsf@nicolasgoaziou.fr> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.1 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 217.70.183.193 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Spam-Score: 0.7 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.3 (/) Hello, Ricardo Wurmus writes: > =E2=80=9Cstepmania=E2=80=9D cannot find its Songs directory, so I created= it. After > doing that, however, =E2=80=9Cstepmania=E2=80=9D still cannot be started = as it can=E2=80=99t > find GtkModule.so. > > --8<---------------cut here---------------start------------->8--- > $ /gnu/store/awp5w5v3hfg8zilviarwj85s2y820lyg-stepmania-5.1.0-b2/bin/step= mania --help > > ////////////////////////////////////////////////////// > Exception: Couldn't find 'Songs' > ////////////////////////////////////////////////////// > > Error: Couldn't find 'Songs' > > $ mkdir Songs > $ /gnu/store/awp5w5v3hfg8zilviarwj85s2y820lyg-stepmania-5.1.0-b2/bin/step= mania=20 > StepMania5.1-UNKNOWN > Compiled 19700101 @ 00:00:01 (build UNKNOWN) > Log starting 2019-03-14 09:15:27 > Couldn't load driver gtk: dlopen(): /gnu/store/awp5w5v3hfg8zilviarwj85s2y= 820lyg-stepmania-5.1.0-b2/bin/GtkModule.so: cannot open shared object file:= No such file or directory=07 > Error: Couldn't open any loading windows. > --8<---------------cut here---------------end--------------->8--- Oddly, I cannot reproduce the issue on a foreign distribution (Debian): the program runs properly. Nevertheless, as a hint, "GtkModule.so" is located in "/gnu/store/=E2=80=A6-stepmania-5.1.0-b2/share/stepmania/". If I read the following excerpt from Makefile.am correctly: --8<---------------cut here---------------start------------->8--- installFiles =3D src/stepmania if HAVE_GTK installFiles +=3D src/GtkModule.so endif [...] install-exec-hook: mkdir -p "$(DESTDIR)$(prefix)/stepmania-$(VERSION)" $(INSTALL) $(installFiles) "$(DESTDIR)$(prefix)/stepmania-$(VERSION)" --8<---------------cut here---------------end--------------->8--- "GtkModule.so" should be located in the same directory as the executable "stepmania". This is the case in our package: both are located in "=E2=80=A6stepmania-5.1.0-b2/share/stepmania/". However, our package definition also creates a symlink to the "stepmania" executable in the "bin/" directory. Since the symlink is launched, and not the executable, the working directory seems to be off. As another data point, the one place in the code base that actually makes use of "GtkModule.so" is "LoadingWindow/LoadingWindow_Gtk.cpp" file: --8<---------------cut here---------------start------------->8--- std::string LoadingWindow_Gtk::Init() { ASSERT( Handle =3D=3D nullptr ); Handle =3D dlopen( (RageFileManagerUtil::sDirOfExecutable + "/" + "GtkModu= le.so").c_str(), RTLD_NOW ); --8<---------------cut here---------------end--------------->8--- I'm not sure about how to proceed from there. Maybe use `wrap-program' around the "stepmania" symlink. If so, what to wrap? Another option is to patch the "LoadingWindow_Gtk.cpp" file like: --8<---------------cut here---------------start------------->8--- Handle =3D dlopen( (RageFileManagerUtil::sDirOfExecutable + "/" + "../share= /stepmania/GtkModule.so").c_str(), RTLD_NOW ); --8<---------------cut here---------------end--------------->8--- I'd favor the second option, but I cannot test the results since I cannot reproduce the problem. WDYT? Regards, --=20 Nicolas Goaziou From unknown Tue Aug 12 08:33:54 2025 X-Loop: help-debbugs@gnu.org Subject: bug#34854: stepmania does not work Resent-From: Ricardo Wurmus Original-Sender: "Debbugs-submit" Resent-CC: bug-guix@gnu.org Resent-Date: Fri, 29 Mar 2019 06:21:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 34854 X-GNU-PR-Package: guix X-GNU-PR-Keywords: To: Nicolas Goaziou Cc: 34854@debbugs.gnu.org Received: via spool by 34854-submit@debbugs.gnu.org id=B34854.15538404395088 (code B ref 34854); Fri, 29 Mar 2019 06:21:02 +0000 Received: (at 34854) by debbugs.gnu.org; 29 Mar 2019 06:20:39 +0000 Received: from localhost ([127.0.0.1]:34991 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1h9ksY-0001K0-GP for submit@debbugs.gnu.org; Fri, 29 Mar 2019 02:20:38 -0400 Received: from sender4-of-o53.zoho.com ([136.143.188.53]:21308) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1h9ksV-0001Jp-Hj for 34854@debbugs.gnu.org; Fri, 29 Mar 2019 02:20:36 -0400 ARC-Seal: i=1; a=rsa-sha256; t=1553840421; cv=none; d=zoho.com; s=zohoarc; b=Zq24KEjc/RnPl4N+0c9yS7NcqL9AwNPbaGccDairLI9VRHJSKqhi0DxTHnEU6UQuNXZB2lIBM+4CBvH6wH1ZxGXbf+WAnrg6fxXRFPanqTULn0tK2AlsAQc48+kUeW98kXXqXMPQRjfQPkP+CpEun7fN5fl16ZcfovFiZgSey18= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zoho.com; s=zohoarc; t=1553840421; h=Content-Type:Content-Transfer-Encoding:Cc:Date:From:In-Reply-To:MIME-Version:Message-ID:References:Subject:To:ARC-Authentication-Results; bh=kT0duYMLdzTZgKqFF3mOzta1/TlxvXdcDINnE6aRWZM=; b=JUMWo4AoiQV0TNt4swxgbfhO08wSl0yM38W+ushomsAn5I+C53Db5KE5G22fw6yH2pytBTuPO3bZL5PQwUs/RxaGvKmcuotFyPa52LswtO6FbDa8ZLUnEghh1vYegRSDr0VPD5x8x/iQ8ohBWDzxxHe2zd/c1u0KrrgJLHH1LXQ= ARC-Authentication-Results: i=1; mx.zoho.com; dkim=pass header.i=elephly.net; spf=pass smtp.mailfrom=rekado@elephly.net; dmarc=pass header.from= header.from= DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; t=1553840421; s=zoho; d=elephly.net; i=rekado@elephly.net; h=References:From:To:Cc:Subject:In-reply-to:Date:Message-ID:MIME-Version:Content-Type:Content-Transfer-Encoding; l=2038; bh=kT0duYMLdzTZgKqFF3mOzta1/TlxvXdcDINnE6aRWZM=; b=gSqNFgo6uh/9Lc7kmCBG4aYM5lSgWemk/3HUcLGiWVnvjep8ENH3e5P27/wQPG0Q BUj2wTAR6hA2+DDIlRK+wwICEWzllxRtgP3sTZD4zoF6kDP+qvovZld0lVJJdQxFIoU wpt26o60wcnwpNFLzTEak5GJXl1HQj2QU7j+/oyE= Received: from localhost (p54AD4D02.dip0.t-ipconnect.de [84.173.77.2]) by mx.zohomail.com with SMTPS id 1553840421226399.5117482024675; Thu, 28 Mar 2019 23:20:21 -0700 (PDT) References: <87imwl50pu.fsf@elephly.net> <875zslpm3c.fsf@nicolasgoaziou.fr> User-agent: mu4e 1.0; emacs 26.1 From: Ricardo Wurmus In-reply-to: <875zslpm3c.fsf@nicolasgoaziou.fr> X-URL: https://elephly.net X-PGP-Key: https://elephly.net/rekado.pubkey X-PGP-Fingerprint: BCA6 89B6 3655 3801 C3C6 2150 197A 5888 235F ACAC Date: Fri, 29 Mar 2019 07:20:16 +0100 Message-ID: <87d0ma19sv.fsf@elephly.net> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-ZohoMailClient: External X-Spam-Score: 0.0 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) Nicolas Goaziou writes: > "GtkModule.so" should be located in the same directory as the executable > "stepmania". This is the case in our package: both are located in > "=E2=80=A6stepmania-5.1.0-b2/share/stepmania/". > > However, our package definition also creates a symlink to the > "stepmania" executable in the "bin/" directory. Since the symlink is > launched, and not the executable, the working directory seems to be off. > > As another data point, the one place in the code base that actually > makes use of "GtkModule.so" is "LoadingWindow/LoadingWindow_Gtk.cpp" > file: > > --8<---------------cut here---------------start------------->8--- > std::string LoadingWindow_Gtk::Init() > { > ASSERT( Handle =3D=3D nullptr ); > > Handle =3D dlopen( (RageFileManagerUtil::sDirOfExecutable + "/" + "GtkMo= dule.so").c_str(), RTLD_NOW ); > --8<---------------cut here---------------end--------------->8--- > > I'm not sure about how to proceed from there. Maybe use `wrap-program' > around the "stepmania" symlink. If so, what to wrap? Another option is > to patch the "LoadingWindow_Gtk.cpp" file like: > > --8<---------------cut here---------------start------------->8--- > Handle =3D dlopen( (RageFileManagerUtil::sDirOfExecutable + "/" + "../sha= re/stepmania/GtkModule.so").c_str(), RTLD_NOW ); > --8<---------------cut here---------------end--------------->8--- > > I'd favor the second option, but I cannot test the results since > I cannot reproduce the problem. I implemented something similar in commit 45aba232abe50b6642abfaa06030985c7febbe07. There still are problems, though. The program expects a directory =E2=80=9CSongs=E2=80=9D to exist in the current working directory. It then= fails with this error: Error: No NoteSkins found This seems to work fine only when when =E2=80=9Cstepmania=E2=80=9D is execu= ted from within the =E2=80=9Cshare/stepmania=E2=80=9D directory. I suspect that thi= s is the same kind of problem. -- Ricardo From unknown Tue Aug 12 08:33:54 2025 MIME-Version: 1.0 X-Mailer: MIME-tools 5.505 (Entity 5.505) X-Loop: help-debbugs@gnu.org From: help-debbugs@gnu.org (GNU bug Tracking System) To: Ricardo Wurmus Subject: bug#34854: closed (Re: stepmania does not work) Message-ID: References: <875zs1253i.fsf@elephly.net> <87imwl50pu.fsf@elephly.net> X-Gnu-PR-Message: they-closed 34854 X-Gnu-PR-Package: guix Reply-To: 34854@debbugs.gnu.org Date: Fri, 29 Mar 2019 13:18:02 +0000 Content-Type: multipart/mixed; boundary="----------=_1553865482-32734-1" This is a multi-part message in MIME format... ------------=_1553865482-32734-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" Your bug report #34854: stepmania does not work which was filed against the guix package, has been closed. The explanation is attached below, along with your original report. If you require more details, please reply to 34854@debbugs.gnu.org. --=20 34854: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=3D34854 GNU Bug Tracking System Contact help-debbugs@gnu.org with problems ------------=_1553865482-32734-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at 34854-done) by debbugs.gnu.org; 29 Mar 2019 13:17:08 +0000 Received: from localhost ([127.0.0.1]:35097 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1h9rNc-0008Uk-8g for submit@debbugs.gnu.org; Fri, 29 Mar 2019 09:17:08 -0400 Received: from sender4-of-o53.zoho.com ([136.143.188.53]:21313) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1h9rNZ-0008Ua-KJ for 34854-done@debbugs.gnu.org; Fri, 29 Mar 2019 09:17:06 -0400 ARC-Seal: i=1; a=rsa-sha256; t=1553865400; cv=none; d=zoho.com; s=zohoarc; b=KXqANT2BcwJ0DNlEChqp1cPbQ7N5km8C28DVMcnp/QQpSIWHXxOY7CIukstkIDdB/gs62QDOqg7CYgFiuAvIv7m2i2rbc7sVOukwPTgUsU/NBI0t93sGo59o5V02AG7tfuL9JNIGg7iLfzighVbbc0vXWvGPLs1p+Gw/kWUClEQ= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zoho.com; s=zohoarc; t=1553865400; h=Content-Type:Content-Transfer-Encoding:Cc:Date:From:In-Reply-To:MIME-Version:Message-ID:References:Subject:To:ARC-Authentication-Results; bh=2lZHPq26QgfRLtpHaZcpuD6ozJX6t5ZjiPTDsqcbAdo=; b=GsacLFsZDaLhno2cPhb4CB9yR0UqCGzjoM8Cfa+5VB0Vr9QbALxW0EWd4T6EDjMWhvT0hfrzR4Wd5xhqogefygaS2nIrK1kkETSwXlNqe6v5gSRH0p5IUUSbEJAbqKjmVg4MySVrC01+2yjYhWok6wZpdyfKtvxqTp8ywlKeo8I= ARC-Authentication-Results: i=1; mx.zoho.com; dkim=pass header.i=elephly.net; spf=pass smtp.mailfrom=rekado@elephly.net; dmarc=pass header.from= header.from= DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; t=1553865400; s=zoho; d=elephly.net; i=rekado@elephly.net; h=References:From:To:Cc:Subject:In-reply-to:Date:Message-ID:MIME-Version:Content-Type:Content-Transfer-Encoding; l=2187; bh=2lZHPq26QgfRLtpHaZcpuD6ozJX6t5ZjiPTDsqcbAdo=; b=YlBe/T4KD9By5jh9HKA9FirClK1JPIfycM+D1HazEQJPotZyaVwJnKnw//mT+hY+ hiNwGZ0i85xb4RiOdbXzdxfw0UXDZyfM+6iNQsDd9U5KK2AUaTjT3YPJ2J/rR0kLvvC WtOElpapkimAJZSIMnEvxlMT2Gv2qTR8ywZ3h+bY= Received: from localhost (141.80.247.154 [141.80.247.154]) by mx.zohomail.com with SMTPS id 15538653969371008.6636547550753; Fri, 29 Mar 2019 06:16:36 -0700 (PDT) References: <87imwl50pu.fsf@elephly.net> <875zslpm3c.fsf@nicolasgoaziou.fr> <87d0ma19sv.fsf@elephly.net> User-agent: mu4e 1.0; emacs 26.1 From: Ricardo Wurmus To: Nicolas Goaziou Subject: Re: stepmania does not work In-reply-to: <87d0ma19sv.fsf@elephly.net> X-URL: https://elephly.net X-PGP-Key: https://elephly.net/rekado.pubkey X-PGP-Fingerprint: BCA6 89B6 3655 3801 C3C6 2150 197A 5888 235F ACAC Date: Fri, 29 Mar 2019 14:16:33 +0100 Message-ID: <875zs1253i.fsf@elephly.net> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-ZohoMailClient: External X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 34854-done Cc: 34854-done@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) Ricardo Wurmus writes: > Nicolas Goaziou writes: > >> "GtkModule.so" should be located in the same directory as the executable >> "stepmania". This is the case in our package: both are located in >> "=E2=80=A6stepmania-5.1.0-b2/share/stepmania/". >> >> However, our package definition also creates a symlink to the >> "stepmania" executable in the "bin/" directory. Since the symlink is >> launched, and not the executable, the working directory seems to be off. >> >> As another data point, the one place in the code base that actually >> makes use of "GtkModule.so" is "LoadingWindow/LoadingWindow_Gtk.cpp" >> file: >> >> --8<---------------cut here---------------start------------->8--- >> std::string LoadingWindow_Gtk::Init() >> { >> ASSERT( Handle =3D=3D nullptr ); >> >> Handle =3D dlopen( (RageFileManagerUtil::sDirOfExecutable + "/" + "GtkM= odule.so").c_str(), RTLD_NOW ); >> --8<---------------cut here---------------end--------------->8--- >> >> I'm not sure about how to proceed from there. Maybe use `wrap-program' >> around the "stepmania" symlink. If so, what to wrap? Another option is >> to patch the "LoadingWindow_Gtk.cpp" file like: >> >> --8<---------------cut here---------------start------------->8--- >> Handle =3D dlopen( (RageFileManagerUtil::sDirOfExecutable + "/" + "../sh= are/stepmania/GtkModule.so").c_str(), RTLD_NOW ); >> --8<---------------cut here---------------end--------------->8--- >> >> I'd favor the second option, but I cannot test the results since >> I cannot reproduce the problem. > > I implemented something similar in commit > 45aba232abe50b6642abfaa06030985c7febbe07. > > There still are problems, though. The program expects a directory > =E2=80=9CSongs=E2=80=9D to exist in the current working directory. It th= en fails with > this error: > > Error: No NoteSkins found > > This seems to work fine only when when =E2=80=9Cstepmania=E2=80=9D is exe= cuted from > within the =E2=80=9Cshare/stepmania=E2=80=9D directory. I suspect that t= his is the same > kind of problem. This is now fixed with commit 4774677228. --=20 Ricardo ------------=_1553865482-32734-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at submit) by debbugs.gnu.org; 14 Mar 2019 08:31:56 +0000 Received: from localhost ([127.0.0.1]:42817 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1h4LmN-0005RZ-V9 for submit@debbugs.gnu.org; Thu, 14 Mar 2019 04:31:56 -0400 Received: from eggs.gnu.org ([209.51.188.92]:38626) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1h4LmL-0005RF-MZ for submit@debbugs.gnu.org; Thu, 14 Mar 2019 04:31:54 -0400 Received: from lists.gnu.org ([209.51.188.17]:35791) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1h4LmG-0002Zx-GZ for submit@debbugs.gnu.org; Thu, 14 Mar 2019 04:31:48 -0400 Received: from eggs.gnu.org ([209.51.188.92]:52852) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1h4LmF-0006Ed-Lm for bug-guix@gnu.org; Thu, 14 Mar 2019 04:31:48 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=0.8 required=5.0 tests=BAYES_50,RCVD_IN_DNSWL_NONE, URIBL_BLOCKED autolearn=disabled version=3.3.2 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1h4LZJ-0001gx-DW for bug-guix@gnu.org; Thu, 14 Mar 2019 04:18:27 -0400 Received: from sender-of-o51.zoho.com ([135.84.80.216]:21102) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1h4LZH-0001ZA-US for bug-guix@gnu.org; Thu, 14 Mar 2019 04:18:25 -0400 ARC-Seal: i=1; a=rsa-sha256; t=1552551460; cv=none; d=zoho.com; s=zohoarc; b=eACP/zqSUVkJNLRWWNOUKyxCaDiaHjylg305hj+ljzguVEb5gqc2kAcK2vEoS+xIusclqb2CVX4uQUYVYbs5DIqvQqoacJs0v59FppB6/vrH5kqCxl3nBKRYikdDN+lFYZkpHzL/s3dM8s2Nbynp3erMI8b82rPow1P4ljBUG8M= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zoho.com; s=zohoarc; t=1552551460; h=Content-Type:Content-Transfer-Encoding:Cc:Date:From:MIME-Version:Message-ID:Subject:To:ARC-Authentication-Results; bh=+3lP1SaRiv0Yhv/ysuW0RvXeQBpCTdk2I94VdE5sApQ=; b=T8a4558VJ9K/XThL+h7l5IfK2GI2IUXRJ13z+uvihQ2gWjRKZiGEeD+wfTu+0aylohhf5flCjuFKrWx0EbJhzFPpRVv4rbtwICVgTo9Gn2webRnuPJaWfuOBYg1X6WZc1XfiyEDtq/ibEEUhIyEMVD3rsglR1HYgiCqz3M2C1gY= ARC-Authentication-Results: i=1; mx.zoho.com; dkim=pass header.i=elephly.net; spf=pass smtp.mailfrom=rekado@elephly.net; dmarc=pass header.from= header.from= DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; t=1552551460; s=zoho; d=elephly.net; i=rekado@elephly.net; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version:Content-Type:Content-Transfer-Encoding; l=1059; bh=+3lP1SaRiv0Yhv/ysuW0RvXeQBpCTdk2I94VdE5sApQ=; b=CxZETrDow/9tlZskkjO7Xm6FLXKt4/DbZyVxu92lb10uZzvfqGNdbatfanlkqyap XPf9Knu+8vEN/3TtxubWfbAUY0DCGBCTxYups5vDi74Xbb7CAbhslhdkTLa1FZ3T32A 46EKuSu2smGQ1kmawx/VyoK0GkR2GfvV10SefCJk= Received: from localhost (p54AD4C6A.dip0.t-ipconnect.de [84.173.76.106]) by mx.zohomail.com with SMTPS id 1552551457762118.73270478562108; Thu, 14 Mar 2019 01:17:37 -0700 (PDT) User-agent: mu4e 1.0; emacs 26.1 From: Ricardo Wurmus To: bug-guix@gnu.org Subject: stepmania does not work X-URL: https://elephly.net X-PGP-Key: https://elephly.net/rekado.pubkey X-PGP-Fingerprint: BCA6 89B6 3655 3801 C3C6 2150 197A 5888 235F ACAC Date: Thu, 14 Mar 2019 09:17:33 +0100 Message-ID: <87imwl50pu.fsf@elephly.net> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-ZohoMailClient: External X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 135.84.80.216 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Spam-Score: 1.0 (+) X-Debbugs-Envelope-To: submit Cc: Nicolas Goaziou X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.0 (/) =E2=80=9Cstepmania=E2=80=9D cannot find its Songs directory, so I created i= t. After doing that, however, =E2=80=9Cstepmania=E2=80=9D still cannot be started as= it can=E2=80=99t find GtkModule.so. --8<---------------cut here---------------start------------->8--- $ /gnu/store/awp5w5v3hfg8zilviarwj85s2y820lyg-stepmania-5.1.0-b2/bin/stepma= nia --help ////////////////////////////////////////////////////// Exception: Couldn't find 'Songs' ////////////////////////////////////////////////////// Error: Couldn't find 'Songs' $ mkdir Songs $ /gnu/store/awp5w5v3hfg8zilviarwj85s2y820lyg-stepmania-5.1.0-b2/bin/stepma= nia=20 StepMania5.1-UNKNOWN Compiled 19700101 @ 00:00:01 (build UNKNOWN) Log starting 2019-03-14 09:15:27 Couldn't load driver gtk: dlopen(): /gnu/store/awp5w5v3hfg8zilviarwj85s2y82= 0lyg-stepmania-5.1.0-b2/bin/GtkModule.so: cannot open shared object file: N= o such file or directory Error: Couldn't open any loading windows. --8<---------------cut here---------------end--------------->8--- --=20 Ricardo ------------=_1553865482-32734-1--