From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp12.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms9.migadu.com with LMTPS id oC+lMEKoB2RS/QAASxT56A (envelope-from ) for ; Tue, 07 Mar 2023 22:10:26 +0100 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp12.migadu.com with LMTPS id uMeLMEKoB2TgBQAAauVa8A (envelope-from ) for ; Tue, 07 Mar 2023 22:10:26 +0100 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 A1E0910BF9 for ; Tue, 7 Mar 2023 22:10:26 +0100 (CET) Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20210112 header.b=mFCYwOLl; 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=gmail.com ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1678223426; h=from:from:sender:sender: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:dkim-signature; bh=Bc17jOA+uCTPaBZojLyV48wdR7n3Rszrcq5+9DTV04k=; b=iiPOU+21uPED8qJaVYMgeoTSV//KKTgakRg3/5sLOHJpsi4NoFVJIz5Zld8loaz2Gj48sg Oy/0kFGgR1HC25pYOTVL4eOUCx5H0kUyhymDvmg2XlhxyT3iPRm98VzrBnrv/ESD6fumm2 Wzgeyocpmu3CYyEYV3ap+FN61Pn2BlB9D/sgeaj1ZXbGQ3Nf+fntvyh01WMi+lLIBT5hgN UiGqSoTds9fG26OYxmLhQqRyUpmcb5ClKUheY2gHY1hOa3DKcA70o/7tPWLFayYvRFFYUT oPfvW3ISqaNkxbaOBA/zsatx//IQuxAKFT3EfLP0/+SrF/Vm/JpS5a4x+5BYFw== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1678223426; a=rsa-sha256; cv=none; b=L+PrqctGFIHrGQDT96RjNG+3NiqZOidKuxzXyktVMEA4QdZi9tsNWttBLcPqFaTsK76rla vw+ODwAjdyTGsTd+vbQzn909kbqjsaflUWFBFBn8VHz7LC5OUxCIhjweCsY2/Qopz5L4vE JzAZKrl3K1fS2YsnAnkyuvfUIUw1TVb5Ah4tYR6Du9be3/eTZ8ufKqGhEy1nvvrU4FAToW 67Uo6omMmOMNBB8udGMz80qxJqldZbvcSHXjh3CamAKh7wzMbMHbD8I8+dTTFNBpJtAfsV i9jjEmuGTmpZq2doscbBW2ySGHspKSgaSsG8A7gSjUjDfH/lt+I3RHlXXt1c/w== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20210112 header.b=mFCYwOLl; 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=gmail.com Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pZeZJ-00077H-Rq; Tue, 07 Mar 2023 16:09:57 -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 1pZeZI-0006yd-Oz for guix-devel@gnu.org; Tue, 07 Mar 2023 16:09:56 -0500 Received: from mail-wr1-x436.google.com ([2a00:1450:4864:20::436]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1pZeZG-0004In-4q for guix-devel@gnu.org; Tue, 07 Mar 2023 16:09:56 -0500 Received: by mail-wr1-x436.google.com with SMTP id t15so13475089wrz.7 for ; Tue, 07 Mar 2023 13:09:51 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; t=1678223391; h=content-transfer-encoding:mime-version:message-id:date:references :in-reply-to:subject:cc:to:from:from:to:cc:subject:date:message-id :reply-to; bh=Bc17jOA+uCTPaBZojLyV48wdR7n3Rszrcq5+9DTV04k=; b=mFCYwOLl5PYLDPUd7tnvVs703UjGUMWQe+pXMydmIdZER6bm4lhMKN3SbRdzT9bL0G 7CtwRGviNDKmjq9uzp0m8/7TYSGruYvObhRVae3LYuAvW8xbV1+dnS6M7oNGEXS7Jot2 L2hXlPRYz+TVhBLmI1fpw2i1cw4sspbKe/lhwm+oUodZeWUL0QW+o6lkSRstoYc+rQ4t FxdzOGZ9t3W0prWReF61c+/sEtHVzspP5BRZpqjG+aqqWyelvfzbOUVmVN/NDz6DHHb9 iziGWBkkNJwShSV2bN73M469m6ENvo2+yYB8tERXIVrdqx3s7vmSeS20mEamT4ksdApE LF+g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1678223391; h=content-transfer-encoding:mime-version:message-id:date:references :in-reply-to:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=Bc17jOA+uCTPaBZojLyV48wdR7n3Rszrcq5+9DTV04k=; b=aec7SG5Cnr7fkLOYcOHBwgW0Zm70oV9ghaXR+yZ31u7aC7nVtKJREavhceSm/C+se6 WIghbsdlzHNKaFwaCUvWdmQImjG70rV6cFwRE8gVEimQaeNLjEaQqGWop0FuA+dZMffj tWa6gT4CpgRbEahiRjJnEy1qhCI7CEImrH7yEkgpzAB2lPawKzqrf9xewQPkMpyTncxf ezYL7kT7uAFI8QX5ECSFs3LFbVoA8+pwoE1ZkZB+JyV27umY3qgR7t3QeVby6e3IctYc xHGE3tuYB1tXQ2buwGiZSvDmhzciKQJGCTjjXmAZv8+XosbyoWH4AYRQ7szsgpOkOBpD QnJw== X-Gm-Message-State: AO0yUKWzBYtnb+jbXck20Au9jJYlqbZz9BNIqzSwg/yMjzSuSXgBlyZZ 4MPZNTh5hu51NLHbaadk0VCcoY/S6fs= X-Google-Smtp-Source: AK7set9yBXuzWou2CE5+8KKMpNf0Xkz7vxgqLR3a89/SNtCE+db/j4+XEuFI1FBD2z9ezfuKPeagLA== X-Received: by 2002:a5d:5949:0:b0:2ca:efcb:a5b5 with SMTP id e9-20020a5d5949000000b002caefcba5b5mr263125wri.5.1678223390889; Tue, 07 Mar 2023 13:09:50 -0800 (PST) Received: from lili ([2a01:e0a:59b:9120:65d2:2476:f637:db1e]) by smtp.gmail.com with ESMTPSA id q30-20020a05600c331e00b003dc5b59ed7asm13684686wmp.11.2023.03.07.13.09.50 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 07 Mar 2023 13:09:50 -0800 (PST) From: Simon Tournier To: Maxim Cournoyer Cc: Tobias Geerinckx-Rice , Guix Devel Subject: Re: The package/inherit trap In-Reply-To: <87bkl4y0kh.fsf@gmail.com> References: <20230221130600.18932-1-sharlatanus@gmail.com> <20230226004406.6215-1-sharlatanus@gmail.com> <87ilfmhkuh.fsf_-_@gnu.org> <87lekijcwi.fsf@gmail.com> <87v8jixg6u.fsf@gnu.org> <87o7p94yqk.fsf@gmail.com> <87jzzxy6l0.fsf@nckx> <86lek8dbsf.fsf@gmail.com> <87bkl4y0kh.fsf@gmail.com> Date: Tue, 07 Mar 2023 18:46:50 +0100 Message-ID: <86o7p4a1yt.fsf@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Received-SPF: pass client-ip=2a00:1450:4864:20::436; envelope-from=zimon.toutoune@gmail.com; helo=mail-wr1-x436.google.com X-Spam_score_int: -4 X-Spam_score: -0.5 X-Spam_bar: / X-Spam_report: (-0.5 / 5.0 requ) BAYES_00=-1.9, DATE_IN_PAST_03_06=1.592, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, 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: X-Migadu-Scanner: scn0.migadu.com X-Migadu-Queue-Id: A1E0910BF9 X-Spam-Score: -6.43 X-Migadu-Spam-Score: -6.43 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-Flow: FLOW_IN X-Migadu-Country: US X-TUID: DugQMR221GOM Hi Maxim, On Tue, 07 Mar 2023 at 11:43, Maxim Cournoyer w= rote: >> @lisp >> (use-modules (gnu packages gdb)) ;for 'gdb' >> >> (define gdb-sans-guile >> (package >> (inherit gdb) >> (inputs (modify-inputs (package-inputs gdb) >> (delete "guile"))))) >> @end lisp > > Do you mean inconsistent because based on what I wrote it should have > used "package/inherit gdb ..." instead of (package (inherit gdb) ...) ? Based on my understanding about what you wrote. > If so, I agree. It could be modified to use the former and an extra > explanation offered about why package/inherit is used here when it's to > be preferred to plain inheritance. Well, from my point of view, we have a trap because the documentation is not clear. :-) Well, I think it is not only by replacing in the example. I think the manual should provide 2 examples and makes a clear line when one needs to pick =E2=80=99inherit=E2=80=99 or when one needs to pick =E2=80=99packag= e/inherit=E2=80=99. Somehow, we have a similar issue as we had before with =E2=80=9CSnippet vs Phases=E2=80=9C. It would help to have plain words for =E2=80=99package/in= herit=E2=80=99 use cases; assuming all the other use cases are covered by =E2=80=99inherit=E2= =80=99. ;-) Cheers, simon