unofficial mirror of help-guix@gnu.org 
 help / color / mirror / Atom feed
From: phodina <phodina@protonmail.com>
To: help-guix <help-guix@gnu.org>, Xinglu Chen <public@yoctocell.xyz>,
	Nicolas Goaziou <mail@nicolasgoaziou.fr>
Subject: [PATCH] gnu: Update sdlpop.
Date: Mon, 08 Nov 2021 18:45:09 +0000	[thread overview]
Message-ID: <T4b-2rDuZuxJ5jEMKTXnADdelI079nt3AFPBN-2HUePlGS6RtawrAMlZOZlsRgdXZn1GNI5Npaz-5pdYHCf19jP5hk1puc6NskOxBpui2So=@protonmail.com> (raw)
In-Reply-To: <x3ClS50H19-yYoOiRBdCI9bUA_pGJY46i8mEx3xshrOPkfVew13D-4n6n4VB_Q3PVfV762zwgCDdQ_4eNTZ0DDrIKJKxL347wwy9fHIqMnU=@protonmail.com>

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



       reply	other threads:[~2021-11-08 18:46 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <x3ClS50H19-yYoOiRBdCI9bUA_pGJY46i8mEx3xshrOPkfVew13D-4n6n4VB_Q3PVfV762zwgCDdQ_4eNTZ0DDrIKJKxL347wwy9fHIqMnU=@protonmail.com>
2021-11-08 18:45 ` phodina [this message]
2021-11-09 12:28   ` [PATCH] gnu: Update sdlpop Nicolas Goaziou

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://guix.gnu.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='T4b-2rDuZuxJ5jEMKTXnADdelI079nt3AFPBN-2HUePlGS6RtawrAMlZOZlsRgdXZn1GNI5Npaz-5pdYHCf19jP5hk1puc6NskOxBpui2So=@protonmail.com' \
    --to=phodina@protonmail.com \
    --cc=help-guix@gnu.org \
    --cc=mail@nicolasgoaziou.fr \
    --cc=public@yoctocell.xyz \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).