From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1.migadu.com ([2001:41d0:303:e16b::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms13.migadu.com with LMTPS id UPSzB84ybmfBEQAA62LTzQ:P1 (envelope-from ) for ; Fri, 27 Dec 2024 04:53:34 +0000 Received: from aspmx1.migadu.com ([2001:41d0:303:e16b::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1.migadu.com with LMTPS id UPSzB84ybmfBEQAA62LTzQ (envelope-from ) for ; Fri, 27 Dec 2024 05:53:34 +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=fail reason="SPF not aligned (relaxed), No valid DKIM" header.from=gmail.com (policy=none) ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1735275214; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post; bh=uOU1Y4+izxmRYIwgsveZDGzfM99+Dc3B9Ej06MCPRPo=; b=JtpixQAFFEhQzqxviA5vUscwhT65biKbxj80TwGau3JeUJbHsR1d6idhMj0OWviUTJ9oqQ 2zzOvtMfCPoMC/jrRYfuyvWoFkNer3H6r7ysPEMJX+quDOeHubfcmbDUYdWYyDe/Lxpkmv mJ0o5Dwf9p7Y2QduH0jlqrpB+bcYBFoqjoomIAkVfwh91byJFWZDT6i4K4LNc+mpWKfawf SCeeTwM35bKV7BlcrgmISXgkH3c5+nyOJbtNj9oWhKO++lhZHs4JKxunnzPPcYbyZ5vxKh EseBTBwYKC2ji3FyVyMLml4ShnmuNtX67Q+TepjdIMtngsAO23919q+SkhgnaA== 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=fail reason="SPF not aligned (relaxed), No valid DKIM" header.from=gmail.com (policy=none) ARC-Seal: i=1; s=key1; d=yhetil.org; t=1735275214; a=rsa-sha256; cv=none; b=aHlrw6kEId0Usa1RfyWHldYxfOoucdcr7VFqsmmlZmexNZZSU8r+rhDbFMpfascEshH+FD lS7kxOdPrta4+HTitCa814Jw8l0ERGj+rZh5Fw/l63XyRHs/rWxqAtVR9171eCfpmws8VZ 2uAAR/rAryGeULSj9WwAYMQhyKIMugUgQAWK+a4h6CzZEhV3pl+F8kFKuW6CPQWeYDkE1V S67PSDYjWWwj45n5dmaX1jEv4IdS2k4Gs/CNIXEb2C+K2UNmP0j5N+CmGeO5mS0PJGKqjP TErY9wCiFs66gQQpA8doOhIGe0Q2ArTnpJSbQcr39W1Tzq+bB/hO6A1e26Kgpw== 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 E1F4C56B28 for ; Fri, 27 Dec 2024 05:53:33 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1tR2LL-0000vS-W1; Thu, 26 Dec 2024 23:53:00 -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 1tR2LK-0000ul-3f for guix-devel@gnu.org; Thu, 26 Dec 2024 23:52:58 -0500 Received: from ciao.gmane.io ([116.202.254.214]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1tR2LI-0006yA-Sw for guix-devel@gnu.org; Thu, 26 Dec 2024 23:52:57 -0500 Received: from list by ciao.gmane.io with local (Exim 4.92) (envelope-from ) id 1tR2LF-0004Rj-0N for guix-devel@gnu.org; Fri, 27 Dec 2024 05:52:53 +0100 X-Injected-Via-Gmane: http://gmane.org/ To: guix-devel@gnu.org From: Bodertz Subject: Re: How to remove output from inherited package? Date: Thu, 26 Dec 2024 21:52:42 -0700 Message-ID: <87h66p917p.fsf@gmail.com> References: <87jzbnjg19.fsf@gmail.com> <87jzblevc0.fsf@envs.net> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit User-Agent: Gnus/5.13 (Gnus v5.13) Cancel-Lock: sha1:cxXcAg8ZgmXzC9o5cRMn16v1PfU= Received-SPF: pass client-ip=116.202.254.214; envelope-from=gcggd-guix-devel@m.gmane-mx.org; helo=ciao.gmane.io X-Spam_score_int: 2 X-Spam_score: 0.2 X-Spam_bar: / X-Spam_report: (0.2 / 5.0 requ) BAYES_00=-1.9, DKIM_ADSP_CUSTOM_MED=0.001, FORGED_GMAIL_RCVD=1, FREEMAIL_FORGED_FROMDOMAIN=0.001, FREEMAIL_FROM=0.001, HEADER_FROM_DIFFERENT_DOMAINS=0.169, NML_ADSP_CUSTOM_MED=0.9, RCVD_IN_VALIDITY_RPBL_BLOCKED=0.001, RCVD_IN_VALIDITY_SAFE_BLOCKED=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=no 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: , 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-Queue-Id: E1F4C56B28 X-Migadu-Scanner: mx13.migadu.com X-Migadu-Spam-Score: -1.39 X-Spam-Score: -1.39 X-TUID: MgmSE2m+1NL4 宋文武 via "Development of GNU Guix and the GNU System 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? When I try to build without using any of the inherited phases, a test fails (the transmission package included a phase to remove that test), so for now I'm building without tests: (define-public transmission-qt-without-arguments (package (inherit transmission) (outputs '("out")) (name "transmission-qt-without-arguments") (arguments (list)) (inputs (modify-inputs (package-inputs transmission) (delete "gtkmm") (append qtbase qttools qtsvg))))) ~ guix build transmission-qt-without-arguments --without-tests=transmission-qt-without-arguments successfully built /gnu/store/i78ffafvchfn886b17s5vdwjqs387f98-transmission-qt-without-arguments-4.0.6.drv Will I have to manually add back the phase that deals with removing that test? I was hoping to avoid that sort of thing by inheriting from transmission in the first place... Thanks.