* [bug#33351] gnu: xonotic: Symlink to xonotic data instead of copying into xonotic.
@ 2018-11-12 3:40 pkill9
2018-11-19 21:40 ` bug#33351: " Ludovic Courtès
0 siblings, 1 reply; 2+ messages in thread
From: pkill9 @ 2018-11-12 3:40 UTC (permalink / raw)
To: 33351
[-- 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
^ permalink raw reply related [flat|nested] 2+ messages in thread
* bug#33351: gnu: xonotic: Symlink to xonotic data instead of copying into xonotic.
2018-11-12 3:40 [bug#33351] gnu: xonotic: Symlink to xonotic data instead of copying into xonotic pkill9
@ 2018-11-19 21:40 ` Ludovic Courtès
0 siblings, 0 replies; 2+ messages in thread
From: Ludovic Courtès @ 2018-11-19 21:40 UTC (permalink / raw)
To: pkill9; +Cc: 33351-done
Hello,
<pkill9@runbox.com> skribis:
> 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.
Good catch.
> 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.
>
> 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.
Applied, thanks!
Ludo’.
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2018-11-19 21:42 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-11-12 3:40 [bug#33351] gnu: xonotic: Symlink to xonotic data instead of copying into xonotic pkill9
2018-11-19 21:40 ` bug#33351: " Ludovic Courtès
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/guix.git
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).