unofficial mirror of help-guix@gnu.org 
 help / color / mirror / Atom feed
* [PATCH] gnu: Update sdlpop.
       [not found] <x3ClS50H19-yYoOiRBdCI9bUA_pGJY46i8mEx3xshrOPkfVew13D-4n6n4VB_Q3PVfV762zwgCDdQ_4eNTZ0DDrIKJKxL347wwy9fHIqMnU=@protonmail.com>
@ 2021-11-08 18:45 ` phodina
  2021-11-09 12:28   ` Nicolas Goaziou
  0 siblings, 1 reply; 2+ messages in thread
From: phodina @ 2021-11-08 18:45 UTC (permalink / raw)
  To: help-guix, Xinglu Chen, Nicolas Goaziou

Hi,

Unfotunately the price executable looks for a diractory DATA in the directory of argv[0], therefore the prince executable runs only from the /guix/store/xxx-sdlpop/bin directory.

The following patch replaces the former location with the latter.

* gnu/packages/games.scm (sdlpop)[arguments]: Substitute location of executable.

-------8<-------cut here--------------->8-------

diff --git a/gnu/packages/games.scm b/gnu/packages/games.scm
index a474933c93..62e753316e 100644
--- a/gnu/packages/games.scm
+++ b/gnu/packages/games.scm
@@ -12642,7 +12642,7 @@ (define-public sdlpop
                 "1yy5r1r0hv0xggk8qd8bwk2zy7abpv89nikq4flqgi53fc5q9xl7"))))
     (build-system gnu-build-system)
     (arguments
-     `(#:tests? #f ; no tests provided
+     `(#:tests? #f                      ; no tests provided
        #:phases
        (modify-phases %standard-phases
          (delete 'configure)
@@ -12666,6 +12666,8 @@ (define-public sdlpop
                (chdir "..")
                (install-file "prince" bin)
                (substitute* template (("\\$ROOT") out))
+               (substitute* "src/seg009.c" (("g_argv[0]") (string-append "\""
+                                                                         out "\"")))
                (install-file template app)
                (rename-file (string-append app "/SDLPoP.desktop.template")
                             (string-append app "/SDLPoP.desktop"))
--
2.33.1



^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [PATCH] gnu: Update sdlpop.
  2021-11-08 18:45 ` [PATCH] gnu: Update sdlpop phodina
@ 2021-11-09 12:28   ` Nicolas Goaziou
  0 siblings, 0 replies; 2+ messages in thread
From: Nicolas Goaziou @ 2021-11-09 12:28 UTC (permalink / raw)
  To: phodina; +Cc: Xinglu Chen, help-guix

Hello,

phodina <phodina@protonmail.com> writes:

> Unfotunately the price executable looks for a diractory DATA in the
> directory of argv[0], therefore the prince executable runs only from
> the /guix/store/xxx-sdlpop/bin directory.
>
> The following patch replaces the former location with the latter.
>
> * gnu/packages/games.scm (sdlpop)[arguments]: Substitute location of
> executable.

Applied. Thank you.

Regards,
-- 
Nicolas Goaziou


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2021-11-09 12:28 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <x3ClS50H19-yYoOiRBdCI9bUA_pGJY46i8mEx3xshrOPkfVew13D-4n6n4VB_Q3PVfV762zwgCDdQ_4eNTZ0DDrIKJKxL347wwy9fHIqMnU=@protonmail.com>
2021-11-08 18:45 ` [PATCH] gnu: Update sdlpop phodina
2021-11-09 12:28   ` Nicolas Goaziou

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).