From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0.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 6PF5AVlZbmeVbgEAqHPOHw:P1 (envelope-from ) for ; Fri, 27 Dec 2024 07:38:01 +0000 Received: from aspmx1.migadu.com ([2001:41d0:403:4876::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0.migadu.com with LMTPS id 6PF5AVlZbmeVbgEAqHPOHw (envelope-from ) for ; Fri, 27 Dec 2024 08:38:01 +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=1735285080; 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=FEYMOKMbxRJUx2BLKsXOaPiwKP7dBtPQ6MIET3FwCz0=; b=awANbq/lZ6B+42yCd+5T1em6Pyq8JihOh36yflssogcJNBJVBIXn9Pg6aZKqCkvHQ6ufz1 oQdY7zwBYtoiclWuZ50fi9F/6rwbFyGP7x7n+F9cBAooLiDSjm89yjOz8lZ01PcvWj3zKP RTBF7qzVqWP7ZuMW/swyPt4pAKjS1/Co1GuQ6HRaqOZEO63wcy8ypLYPp5Nf1SsDyBj/ho 1wzQPlKDTPmUSn0amxchzoyCncHzS8ukeOX9wm0Hw/1uuI7fPvDhl7G3Gg7qbR1APbCEdK c+kqBvXd1QjnxeYpApPm4a/BWDbh3sw4/etjIZeDxhvNmg+tUO7zctvoU1xvOQ== 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=1735285080; a=rsa-sha256; cv=none; b=hBF4WwAPNqI8X3NcnlFECLuekB6A4F58F0XA2k7cyi78o8EhkzROG4LiBtovqeHJ9jBNAy WuPv8kvEaMDak/LMdB7Y0SHTUwXwEO4NwqqYHvyCrwEjwT0SXZJyTuXNMh0f1sy6CS4E1j lTMk2wSBUvRJEyu9N3m1woWddqxNI5DxDFuz2MYP6zXyq/M7We9GzT0pbi+xHtmmEzCHBL ovetcpjUptFBPQ/eBWil2IZ2aHU99d9rqcqcRr5XatZF1Gy0av0giXiyzKzTJcIMOMtSHb yURFH6p0I+CRxkdCy+ucmceDLTPh/PmZuuSgMR1te3vbW/HklEIAAyP1ffptRg== 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 7265B19EFC for ; Fri, 27 Dec 2024 08:38:00 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1tR4Fw-0001Uw-RH; Fri, 27 Dec 2024 01:55:32 -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 1tR4Fu-0001Un-TL for guix-devel@gnu.org; Fri, 27 Dec 2024 01:55:30 -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 1tR4Ft-0003Lu-IT for guix-devel@gnu.org; Fri, 27 Dec 2024 01:55:30 -0500 Received: from list by ciao.gmane.io with local (Exim 4.92) (envelope-from ) id 1tR4Fq-0004Fu-B2 for guix-devel@gnu.org; Fri, 27 Dec 2024 07:55:26 +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 23:55:16 -0700 Message-ID: <87cyhd8vjf.fsf@gmail.com> References: <87jzbnjg19.fsf@gmail.com> <87jzblevc0.fsf@envs.net> <87h66p917p.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain Content-Transfer-Encoding: quoted-printable User-Agent: Gnus/5.13 (Gnus v5.13) Cancel-Lock: sha1:W30csF9GYw+Bvbje9iGVxXDR1dA= 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: 7 X-Spam_score: 0.7 X-Spam_bar: / X-Spam_report: (0.7 / 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, URI_NOVOWEL=0.5 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-Spam-Score: 0.79 X-Spam-Score: 0.79 X-Migadu-Queue-Id: 7265B19EFC X-Migadu-Scanner: mx10.migadu.com X-TUID: pgF8wmviaxb6 Hmm, I see that the delete in modify-phases doesn't "actually" delete what you tell it to, but rather just adds (delete _) to the end of the list: (apologies for the long text; just notice that move-gui, for example isn't actually removed from the output, and that (delete (quote move-gui)) is added at the end) --8<---------------cut here---------------start------------->8--- scheme@(guix-user)> (substitute-keyword-arguments transmission-args ((#:pha= ses phases) #~(modify-phases #$phases (delete 'move-gui) (delete 'glib-or-g= tk-wrap) (delete 'wrap-program)))) $30 =3D (#:imported-modules ((guix build glib-or-gtk-build-system) (guix bu= ild cmake-build-system) (guix build gnu-build-system) (guix build utils) (g= uix build gremlin) (guix elf)) #:modules (((guix build glib-or-gtk-build-sy= stem) #:prefix glib-or-gtk:) (guix build cmake-build-system) (guix build ut= ils)) #:phases #st= ring (parallel-job-count)) "1")) (format #t "test suite not run~%")))) (add= -after (quote install) (quote move-gui) (lambda* (#:key outputs #:allow-oth= er-keys) (mkdir-p (string-append # "/bin")) (mkdir-p (stri= ng-append # "/share/man/man1")) (rename-file (string-appen= d # "/bin/transmission-gtk") (string-append # "/bin/transmission-gtk")) (for-each (lambda (dir) (rename-file (string= -append # "/share/" dir) (string-append #= "/share/" dir))) (quote ("applications" "icons" "metainfo"))) (rename-file= (string-append # "/share/man/man1/transmission-gtk.1") (s= tring-append # "/share/man/man1/transmission-gtk.1")))) (a= dd-after (quote move-gui) (quote glib-or-gtk-wrap) (lambda* (#:key outputs = #:allow-other-keys #:rest args) (apply (assoc-ref glib-or-gtk:%standard-pha= ses (quote glib-or-gtk-wrap)) #:glib-or-gtk-wrap-excluded-outputs (list "ou= t") args))) (add-after (quote glib-or-gtk-wrap) (quote wrap-program) (lambd= a* (#:key outputs #:allow-other-keys) (wrap-program (string-append # "/bin/transmission-gtk") (quasiquote ("GDK_PIXBUF_MODULE_FILE" = =3D ((unquote (getenv "GDK_PIXBUF_MODULE_FILE"))))))))) gnu/packages/bittor= rent.scm:113:8 7f08847bfcc0>:out> (delete (quote move-gui)) (delete (quote = glib-or-gtk-wrap)) (delete (quote wrap-program))) 7f088c309bd0>) --8<---------------cut here---------------end--------------->8--- Is this the problem? Is there some way to "actually" delete the offending entries that mention #?