all messages for Guix-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: <pkill9@runbox.com>
To: 33351@debbugs.gnu.org
Subject: [bug#33351] gnu: xonotic: Symlink to xonotic data instead of copying into xonotic.
Date: Mon, 12 Nov 2018 03:40:56 +0000 (GMT)	[thread overview]
Message-ID: <E1gM35s-00079t-V8@rmmprod06.runbox> (raw)

[-- Attachment #1: Type: text/plain, Size: 353 bytes --]

This patch changes the 'install-data phase of the xonotic package so that it creates a symlink to xonotic's data ('xonotic-data' package) instead of copying it. This reduces the package download size from 880mb to 12mb.

The xonotic-data package is already an input in the xonotic package rather than a native-input, so that didn't need to be changed.

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: 0001-gnu-xonotic-Symlink-to-xonotic-data-instead-of-copyi.patch --]
[-- Type: text/x-patch; name="0001-gnu-xonotic-Symlink-to-xonotic-data-instead-of-copyi.patch", Size: 1305 bytes --]

From 0396ed08ca9fe936e2a89f830fbee1ecfc408b9b Mon Sep 17 00:00:00 2001
From: Pkill -9 <pkill9@runbox.com>
Date: Mon, 12 Nov 2018 03:14:15 +0000
Subject: [PATCH] gnu: xonotic: Symlink to xonotic data instead of copying into
 xonotic.

* gnu/packages/games.scm (xonotic)[arguments]: Modify the phase
'install-data so it creates a symlink to xonotic's data instead of
copying it into the xonotic package.
---
 gnu/packages/games.scm | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/gnu/packages/games.scm b/gnu/packages/games.scm
index 3679aa09c..bc5d3d581 100644
--- a/gnu/packages/games.scm
+++ b/gnu/packages/games.scm
@@ -5606,8 +5606,8 @@ quotation from a collection of quotes.")
            (lambda* (#:key outputs inputs #:allow-other-keys)
              (let* ((out (assoc-ref outputs "out"))
                     (data (assoc-ref inputs "xonotic-data")))
-               (copy-recursively (string-append data "/share/xonotic")
-                                 (string-append out "/share/xonotic"))
+               (symlink (string-append data "/share/xonotic")
+                        (string-append out "/share/xonotic"))
                #t)))
          (add-after 'install-binaries 'wrap-binaries
            (lambda* (#:key outputs inputs #:allow-other-keys)
-- 
2.19.1


             reply	other threads:[~2018-11-12  3:42 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-11-12  3:40 pkill9 [this message]
2018-11-19 21:40 ` bug#33351: gnu: xonotic: Symlink to xonotic data instead of copying into xonotic Ludovic Courtès

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

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

  git send-email \
    --in-reply-to=E1gM35s-00079t-V8@rmmprod06.runbox \
    --to=pkill9@runbox.com \
    --cc=33351@debbugs.gnu.org \
    /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.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/guix.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.