GNU bug report logs -
#76359
[PATCH] gnu: supertuxkart: Split assets into separate package.
Previous Next
Reported by: Eric Bavier <bavier <at> posteo.net>
Date: Mon, 17 Feb 2025 05:47:03 UTC
Severity: normal
Tags: patch
Done: Eric Bavier <bavier <at> posteo.net>
Bug is archived. No further changes may be made.
Full log
Message #8 received at 76359 <at> debbugs.gnu.org (full text, mbox):
Hi Eric,
Eric Bavier <bavier <at> posteo.net> skribis:
> This allows smaller substitutes in case of updated dependencies.
>
> * gnu/packages/games.scm (%supertuxkart-version): New variable.
> (supertuxkart-source): Separate from supertuxkart in order to use in...
> (supertuxkart-data): ... this new package.
> (supertuxkart)[origin]: Use supertuxkart-source.
> [arguments]: Add configure-flags to embed reference to supertuxkart-data.
> [inputs]: Use new style.
>
> Change-Id: I7777574bf11fdc28047ad238468e5ec4094caeab
Overall LGTM. One question:
> - (uri (string-append "https://github.com/supertuxkart/stk-code/"
> - "releases/download/"
> - version "/SuperTuxKart-" version "-src.tar.xz"))
[...]
> + (uri (svn-reference
> + (url "https://svn.code.sf.net/p/supertuxkart/code/stk-assets")
> + (revision (string->number commit))))
How come the assets are at sf.net, in an svn repo, when the rest is in
Git at github.com?
> + #~(modify-phases %standard-phases
> + (add-after 'unpack 'copy-code-data
> + (lambda _
> + (copy-recursively
> + (string-append #$supertuxkart-source "/data/")
> + "."))))))
I’d suggest adding ‘supertuxkart-source’ to the ‘inputs’ field and, in
the phase above, do:
(copy-recursively
#$(this-package-input (git-file-name "supertuxkart" %supertuxkart-version))
".")
It’s more verbose, but more transparent: code the traverses the package
grafts “sees” this.
Ludo’.
This bug report was last modified 138 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.