From patchwork Mon Nov 12 03:40:56 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: pkill9 X-Patchwork-Id: 178 Return-Path: X-Original-To: patchwork@mira.cbaines.net Delivered-To: patchwork@mira.cbaines.net Received: by mira.cbaines.net (Postfix, from userid 113) id 28813167F0; Mon, 12 Nov 2018 03:42:12 +0000 (GMT) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on mira.cbaines.net X-Spam-Level: X-Spam-Status: No, score=-6.9 required=5.0 tests=BAYES_00,FREEMAIL_FROM, RCVD_IN_DNSWL_HI,T_DKIM_INVALID,UNPARSEABLE_RELAY,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.0 Received: from lists.gnu.org (lists.gnu.org [IPv6:2001:4830:134:3::11]) by mira.cbaines.net (Postfix) with ESMTPS id 9CFB516779 for ; Mon, 12 Nov 2018 03:42:11 +0000 (GMT) Received: from localhost ([::1]:44635 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gM374-0001of-Iq for patchwork@mira.cbaines.net; Sun, 11 Nov 2018 22:42:10 -0500 Received: from eggs.gnu.org ([2001:4830:134:3::10]:43685) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gM371-0001nd-V2 for guix-patches@gnu.org; Sun, 11 Nov 2018 22:42:09 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gM36w-0000J4-UQ for guix-patches@gnu.org; Sun, 11 Nov 2018 22:42:07 -0500 Received: from debbugs.gnu.org ([208.118.235.43]:42659) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1gM36w-0000I2-Qf for guix-patches@gnu.org; Sun, 11 Nov 2018 22:42:02 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1gM36w-0007vG-Jp for guix-patches@gnu.org; Sun, 11 Nov 2018 22:42:02 -0500 X-Loop: help-debbugs@gnu.org Subject: [bug#33351] gnu: xonotic: Symlink to xonotic data instead of copying into xonotic. Resent-From: Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Mon, 12 Nov 2018 03:42:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 33351 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: To: 33351@debbugs.gnu.org X-Debbugs-Original-To: "guix-patches" Received: via spool by submit@debbugs.gnu.org id=B.154199407530382 (code B ref -1); Mon, 12 Nov 2018 03:42:02 +0000 Received: (at submit) by debbugs.gnu.org; 12 Nov 2018 03:41:15 +0000 Received: from localhost ([127.0.0.1]:46917 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gM36A-0007tw-8k for submit@debbugs.gnu.org; Sun, 11 Nov 2018 22:41:14 -0500 Received: from eggs.gnu.org ([208.118.235.92]:33877) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gM368-0007tf-FR for submit@debbugs.gnu.org; Sun, 11 Nov 2018 22:41:13 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gM362-0006AH-CP for submit@debbugs.gnu.org; Sun, 11 Nov 2018 22:41:07 -0500 Received: from lists.gnu.org ([2001:4830:134:3::11]:60996) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1gM362-00069Y-7Y for submit@debbugs.gnu.org; Sun, 11 Nov 2018 22:41:06 -0500 Received: from eggs.gnu.org ([2001:4830:134:3::10]:43467) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gM361-0001PN-CH for guix-patches@gnu.org; Sun, 11 Nov 2018 22:41:06 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gM35w-0005sW-DW for guix-patches@gnu.org; Sun, 11 Nov 2018 22:41:05 -0500 Received: from aibo.runbox.com ([91.220.196.211]:34592) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1gM35v-0005ka-U0 for guix-patches@gnu.org; Sun, 11 Nov 2018 22:41:00 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=runbox.com; s=rbselector1; h=Message-Id:Content-Type:Date:Subject:To:From:MIME-Version; bh=ZT8HUKPguJqHepk/b7TgYtS3eG1PiyDLN90kpWFjI2U=; b=DMRjOgudUeAZ1Um7RoSOvfxaV M0X8+k5I8xGD6BgVnG5EZ9HaNrK5J+Zg9Oq2+oM7rCMANUoHCGrFd1/IDXx7XU7AfhweESwgtHWjb jH/nRaC1cgmYnZQNRytyqGT1xKtz/TJsFXCoYEuW21cqQiGUestJQbbP58i0OAdOkEQo1Y8y768NX rcHq9XqUtiCAaizFGdN4jYZZ/XIY9CTZwIJg0jBKYlLXpUaTtOSTE/fFY0IMvK1kyqrcbVZG84OmD 0L4u9z7nWVdvct4iv7ZwtrharV/DR2MoPz53gY33fcHJ8XU41PD+ckLClyvMRvDbJrz7tcFkmnmTs /aU1ircIQ==; Received: from [10.9.9.128] (helo=rmmprod06.runbox) by mailtransmit02.runbox with esmtp (Exim 4.86_2) (envelope-from ) id 1gM35s-0001qr-W3 for guix-patches@gnu.org; Mon, 12 Nov 2018 04:40:57 +0100 Received: from mail by rmmprod06.runbox with local (Exim 4.86_2) (envelope-from ) id 1gM35s-00079t-V8 for guix-patches@gnu.org; Mon, 12 Nov 2018 04:40:56 +0100 MIME-Version: 1.0 Received: from [Authenticated user (850733)] by runbox.com with http (RMM6); for ; Mon, 12 Nov 2018 03:40:56 GMT From: Date: Mon, 12 Nov 2018 03:40:56 +0000 (GMT) X-Mailer: RMM6 Message-Id: X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 208.118.235.43 X-BeenThere: guix-patches@gnu.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+patchwork=mira.cbaines.net@gnu.org Sender: "Guix-patches" X-getmail-retrieved-from-mailbox: Patches 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. From 0396ed08ca9fe936e2a89f830fbee1ecfc408b9b Mon Sep 17 00:00:00 2001 From: Pkill -9 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