From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1 ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id mCt1IXku4GDEHgAAgWs5BA (envelope-from ) for ; Sat, 03 Jul 2021 11:31:37 +0200 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1 with LMTPS id 6IghHXku4GBZPAAAbx9fmQ (envelope-from ) for ; Sat, 03 Jul 2021 09:31:37 +0000 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id C1B7718CE7 for ; Sat, 3 Jul 2021 11:31:36 +0200 (CEST) Received: from localhost ([::1]:59304 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lzbzr-0005qe-RS for larch@yhetil.org; Sat, 03 Jul 2021 05:31:35 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:37388) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lzbzK-0005oK-8K for guix-patches@gnu.org; Sat, 03 Jul 2021 05:31:05 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:54631) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lzbzK-0005Nl-0X for guix-patches@gnu.org; Sat, 03 Jul 2021 05:31:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1lzbzJ-00057C-Rn for guix-patches@gnu.org; Sat, 03 Jul 2021 05:31:01 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#49329] [PATCH v2 1/5] gnu: python2-renpy: Drop unused Ren'py sources. References: In-Reply-To: Resent-From: Leo Prikler Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Sat, 03 Jul 2021 09:31:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 49329 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 49329@debbugs.gnu.org Received: via spool by 49329-submit@debbugs.gnu.org id=B49329.162530462219578 (code B ref 49329); Sat, 03 Jul 2021 09:31:01 +0000 Received: (at 49329) by debbugs.gnu.org; 3 Jul 2021 09:30:22 +0000 Received: from localhost ([127.0.0.1]:37935 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lzbyg-00055c-3z for submit@debbugs.gnu.org; Sat, 03 Jul 2021 05:30:22 -0400 Received: from mailrelay.tugraz.at ([129.27.2.202]:19714) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lzbyb-00055C-Jf for 49329@debbugs.gnu.org; Sat, 03 Jul 2021 05:30:21 -0400 Received: from localhost.localdomain (80-121-26-175.adsl.highway.telekom.at [80.121.26.175]) by mailrelay.tugraz.at (Postfix) with ESMTPSA id 4GH69y24vBz1DH93 for <49329@debbugs.gnu.org>; Sat, 3 Jul 2021 11:30:14 +0200 (CEST) DKIM-Filter: OpenDKIM Filter v2.11.0 mailrelay.tugraz.at 4GH69y24vBz1DH93 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=tugraz.at; s=mailrelay; t=1625304614; bh=lA5L/EsAsgLJWfrQOoiB16ZKio35y+k8aIbb7YRTpDE=; h=From:To:Subject:Date:From; b=uqxnLcmdY12IydZxxbNLDLhoICwLUGIS6A344T8pfGkH7QxFrS7v3LmJ78DyoG1EG Fm1vRK9Q/jG4k52VmKOitU4Qf0f+AmJs6Fz0twjk8Yn3XLj7eURQ3AzRoAYa/X+CSB xiUIausNBsqIpXLjdnZAJZSn5yg5iHAAVLG1wYEs= From: Leo Prikler Date: Sat, 3 Jul 2021 11:28:39 +0200 Message-Id: <20210703092842.32189-1-leo.prikler@student.tugraz.at> X-Mailer: git-send-email 2.32.0 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-TUG-Backscatter-control: bt4lQm5Tva3SBgCuw0EnZw X-Spam-Scanner: SpamAssassin 3.003001 X-Spam-Score-relay: -1.9 X-Scanned-By: MIMEDefang 2.74 on 129.27.10.117 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: guix-patches@gnu.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+larch=yhetil.org@gnu.org Sender: "Guix-patches" X-Migadu-Flow: FLOW_IN ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1625304696; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding:resent-cc: resent-from:resent-sender:resent-message-id:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=lA5L/EsAsgLJWfrQOoiB16ZKio35y+k8aIbb7YRTpDE=; b=EujmxbOodzIvphRxv7b6ExlgsoUdKoeRSjDUeqxgds7AUTjtB5WDIVY+jwIH4ukc51plfi 4buHiBW5LKJNXFvC2v1GFJgTQn5Kr3f1FLgjdgQBXCq1oED8q0U44NXJsIwOUzSie0eKYc kmQSRRqHtUvZMVyEhgz56zDvT1VXJlLKM4TT+NUN3t3KHL9BeJrQCAbKw6LwHirluVPFY+ Qdnc8k1Lz1lnqJxKy9w0lZalm6twDBtopsQtU+g0DxmZEjfX33G88ZB7eH1Xkw4fHrwbTj qdlmUvWuvRA7NiEvgTKIxt6yV4fyCCJSGP7CtmvASHoUWy562Y6fVJn+8ndCwA== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1625304696; a=rsa-sha256; cv=none; b=I3AhlTSpBVt00otAhGuIRAgYVTsq4a9u12aw36enbvHMR4JpW3SgqoHjUImejCXd+KtFn/ wM18D4OycDZghnUwDuXV5HEbeqHg/FclmMt4B+Pm5KipDFIth4syxm+PSGBWYRIWnLW+M1 ltFATNptfcNBIdkiVQNyXYzUz1jgPtxOz2JDnU/u1OjOhAbAxV68+cD/GWRWK91hgqWIc7 jTw/ilGNvcvkG6rz3JcfWVzcwc3/IVfcduT0PIxOB6J3tvsSlsbBHi9OvjXWLupb2cMjv7 jeKkpY/40Mmz9b6BHh9xEKREfFskfGEk8EncYwALMfCux0WPBs7lhkQv8s4M+g== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=tugraz.at header.s=mailrelay header.b=uqxnLcmd; spf=pass (aspmx1.migadu.com: domain of guix-patches-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=guix-patches-bounces@gnu.org X-Migadu-Spam-Score: 3.69 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=tugraz.at header.s=mailrelay header.b=uqxnLcmd; dmarc=fail reason="SPF not aligned (relaxed)" header.from=student.tugraz.at (policy=none); spf=pass (aspmx1.migadu.com: domain of guix-patches-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=guix-patches-bounces@gnu.org X-Migadu-Queue-Id: C1B7718CE7 X-Spam-Score: 3.69 X-Migadu-Scanner: scn0.migadu.com X-TUID: PPGAeJ2xGi7g These sources are written in Ren'py (the language) and thus not particularly useful before renpy itself is built. In particular, they serve no purpose when installed without prior compilation. * gnu/packages/game-development.scm (python2-renpy)[#:phases]: Drop installed "common" folder. (renpy)[#:phases]: Adjust comment accordingly. --- 0001 up to 0004 are identical to v1. gnu/packages/game-development.scm | 22 ++++++++++++++-------- 1 file changed, 14 insertions(+), 8 deletions(-) diff --git a/gnu/packages/game-development.scm b/gnu/packages/game-development.scm index 9069b88d0c..22c44a585c 100644 --- a/gnu/packages/game-development.scm +++ b/gnu/packages/game-development.scm @@ -1230,7 +1230,8 @@ developed mainly for Ren'py.") (with-directory-excursion "module" (apply (assoc-ref %standard-phases 'install) args)) (copy-recursively "renpy" - (string-append out site "/renpy"))) + (string-append out site "/renpy")) + (delete-file-recursively (string-append out site "/renpy/common"))) #t))))) (inputs `(("ffmpeg" ,ffmpeg) @@ -1304,11 +1305,14 @@ modules of Ren'py.") ;; After finishing this step, "out" will have the following: ;; |-- bin/renpy ;; `-- share/renpy ; i.e. path_to_renpy_base() - ;; `-- common + ;; |-- common + ;; `-- gui ;; - ;; Note that common is also a de facto unused directory in - ;; python2-renpy. On other systems, renpy_base would point to - ;; site-packages or even somewhere in /opt. + ;; Note that common shares the source files that would be installed + ;; by python2-renpy (which are instead deleted from that package), + ;; but also contains their byte-compiled versions. + ;; On other systems, renpy_base would point to site-packages or + ;; even somewhere in /opt. ;; The former approach is not as straightforward as it seems ;; -- it causes renpy to load files twice for some weird reason -- ;; and the latter is impossible on Guix. Hence the detour through @@ -1319,9 +1323,11 @@ modules of Ren'py.") ;; well. This differs from the traditional layout, which is ;; roughly the following: ;; `-- Super Awesome Game - ;; |-- game ; <- the folder we actually want - ;; |-- lib ; compiled renpy module and dependencies - ;; |-- renpy ; Ren'py python code (source + compiled) + ;; |-- game ; <- the folder we actually want + ;; |-- lib ; compiled renpy module and dependencies + ;; |-- renpy ; yet another copy of Ren'py's code + ;; | |-- common ; the common folder from above + ;; | `-- ... ; Python code (source + compiled) ;; |-- Super Awesome Game.py ;; `-- Super Awesome Game.sh (let* ((out (assoc-ref outputs "out")) -- 2.32.0