From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2.migadu.com ([2001:41d0:403:4876::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms13.migadu.com with LMTPS id B5ySChdYbmdBWQAAe85BDQ:P1 (envelope-from ) for ; Fri, 27 Dec 2024 07:32:39 +0000 Received: from aspmx1.migadu.com ([2001:41d0:403:4876::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2.migadu.com with LMTPS id B5ySChdYbmdBWQAAe85BDQ (envelope-from ) for ; Fri, 27 Dec 2024 08:32:39 +0100 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=none; spf=pass (aspmx1.migadu.com: domain of "guix-devel-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-devel-bounces+larch=yhetil.org@gnu.org"; dmarc=pass (policy=none) header.from=gnu.org ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1735284758; h=from:from:sender:sender:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:list-id:list-help: list-unsubscribe:list-subscribe:list-post; bh=FlZlziYHd5uIz5kbr9qjBEEyE7fOB6MtA/EaBn8w3sQ=; b=RUU5E7FW66dHB5zKmd19JuwqEDKOXj72ompgoe1OwU+29jjjuVS9nvjAzvZncAdfKhUcpS lf3gSCQrYxj9s++BqVnj62pnwSPGCLfI/ISow9scBl1Dr9TkGZHRhrrtO+jdj60WOj+JjY Wmq3loZ97AocgtMsARz/J6q1Xvgm80V3eA8E1JTpjAhjWU+xQlKt5yuqbjzLsTksXA/ePe W1sX+pMSXZWomJ5t3P7OhnjkIyJGMk2mdnZJhFtiCjeRT1BPiKw/bP0W0yp1JD9ilZgVWx 3E/Wq9VVvNow+5wzwpk70E/n9FYA3DHH2pZua3Vlq7Rc+j/5Pn8kTLg6tG8LFw== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=none; spf=pass (aspmx1.migadu.com: domain of "guix-devel-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-devel-bounces+larch=yhetil.org@gnu.org"; dmarc=pass (policy=none) header.from=gnu.org ARC-Seal: i=1; s=key1; d=yhetil.org; t=1735284758; a=rsa-sha256; cv=none; b=ibMr+z5CITdIVvHquUB/zi8hAkN9x4n7+zo2vTmrAVfBQRrR5KCBgOXNhlFc1dQTL9ZDGH mvIhseVtgIXInTSwl+6GcYoJRjfqwlIKuhaAFZM4j8tn6Xjx6ZBWyWY2l1cnq7ZDK9FIz/ CMcTcAgOeGoVS721TO9St5jzj/l6ffdQm6vTWHs0KifRg4vmvszORaVwFjHJ6u0mcEmU4v 7FhzoVj6B6vQZltCzQrJRdir/qeWGrCrGnnHHsc2EFKbgYKEkjrUbXOyetbhEjpfZkBkLJ T2/7E1k5kAQ+Wc30rEM2Hrv2WF9zUGgWmJmtwcqfW/722BV/YJgqDSZqIIQI8w== 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 3DBCC19C74 for ; Fri, 27 Dec 2024 08:32:38 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1tR4pJ-0001EN-7P; Fri, 27 Dec 2024 02:32:05 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1tR4pF-0001E6-VU for guix-devel@gnu.org; Fri, 27 Dec 2024 02:32:02 -0500 Received: from mail.envs.net ([5.199.136.28]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1tR4pD-0007Tb-IT for guix-devel@gnu.org; Fri, 27 Dec 2024 02:32:01 -0500 Received: from localhost (mail.envs.net [127.0.0.1]) by mail.envs.net (Postfix) with ESMTP id 1C33038A3E37; Fri, 27 Dec 2024 07:31:56 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at mail.envs.net Received: from mail.envs.net ([127.0.0.1]) by localhost (mail.envs.net [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id EPyG2sRQh4in; Fri, 27 Dec 2024 07:31:53 +0000 (UTC) Received: from localhost (unknown [112.44.73.41]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-256) server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by mail.envs.net (Postfix) with ESMTPSA; Fri, 27 Dec 2024 07:31:52 +0000 (UTC) Received: from localhost (localhost [local]) by localhost (OpenSMTPD) with ESMTPA id a10dfb96; Fri, 27 Dec 2024 07:34:56 +0000 (UTC) To: Bodertz Cc: guix-devel@gnu.org Subject: Re: How to remove output from inherited package? In-Reply-To: <87h66p917p.fsf@gmail.com> (bodertz@gmail.com's message of "Thu, 26 Dec 2024 21:52:42 -0700") References: <87jzbnjg19.fsf@gmail.com> <87jzblevc0.fsf@envs.net> <87h66p917p.fsf@gmail.com> Date: Fri, 27 Dec 2024 15:34:56 +0800 Message-ID: <878qs14lzz.fsf@envs.net> User-Agent: Gnus/5.13 (Gnus v5.13) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Received-SPF: pass client-ip=5.199.136.28; envelope-from=iyzsong@envs.net; helo=mail.envs.net X-Spam_score_int: -18 X-Spam_score: -1.9 X-Spam_bar: - X-Spam_report: (-1.9 / 5.0 requ) BAYES_00=-1.9, RCVD_IN_VALIDITY_RPBL_BLOCKED=0.001, RCVD_IN_VALIDITY_SAFE_BLOCKED=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, UNPARSEABLE_RELAY=0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: guix-devel@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "Development of GNU Guix and the GNU System distribution." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-to: =?utf-8?B?5a6L5paH5q2m?= From: =?utf-8?B?5a6L5paH5q2m?= via "Development of GNU Guix and the GNU System distribution." Errors-To: guix-devel-bounces+larch=yhetil.org@gnu.org Sender: guix-devel-bounces+larch=yhetil.org@gnu.org X-Migadu-Country: US X-Migadu-Flow: FLOW_IN X-Migadu-Spam-Score: -5.69 X-Spam-Score: -5.69 X-Migadu-Queue-Id: 3DBCC19C74 X-Migadu-Scanner: mx10.migadu.com X-TUID: 5MkXOfZD7+C4 Bodertz writes: > =E5=AE=8B=E6=96=87=E6=AD=A6 via "Development of GNU Guix and the GNU Syst= em distribution." > writes: > >> I think you should not reuse phases from transmisison, the error came >> from '#$phases', which has reference to 'gui' output. so: >> >> ... >> (inherit transmission) >> (name "transmission-qt") >> (outputs '("out") >> (arguments >> (list ...)) ; instead of 'substitute-keyword-arguments' >> ... > > Hmm, you appear to be right, but I don't understand why, as I removed > the tests that referenced the :gui output: 'move-gui, 'glib-or-gtk-wrap, > and 'wrap-program. > > Do you understand it? Did I miss one? As described in the manual (8.12 G-Expressions), gexp is used to embed "build code" into "host code". In: (substitute-keyword-arguments (package-arguments transmission) ((#:phases phases) #~(modify-phases #$phases (delete 'move-gui) (delete 'glib-or-gtk-wrap) (delete 'wrap-program))))) 'substitute-keywoard-arguments', 'package-arguments' and 'transmission' will be executed by the host guile, while 'modify-phases' will be executed by the builder of 'transmission-qt'. So in this case, the phases have "gui" was deleted too late, if we managed to delete them before the builder: (substitute-keyword-arguments (package-arguments transmission) ((#:phases phases) (modify-phases/xxx phases (delete 'move-gui) (delete 'glib-or-gtk-wrap) (delete 'wrap-program))))) That could work. But since phases of 'transmission' is a gexp object, not a alist suitable for 'modify-phases', it not reusable now...