From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms11 with LMTPS id iOO4IXaIsl+MNwAA0tVLHw (envelope-from ) for ; Mon, 16 Nov 2020 14:11:02 +0000 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2 with LMTPS id 4BKkHXaIsl8FYQAAB5/wlQ (envelope-from ) for ; Mon, 16 Nov 2020 14:11:02 +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 2DD679402C8 for ; Mon, 16 Nov 2020 14:11:01 +0000 (UTC) Received: from localhost ([::1]:58552 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kefDf-0004xI-U5 for larch@yhetil.org; Mon, 16 Nov 2020 09:10:59 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:54072) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kefBK-00033m-6K for guix-devel@gnu.org; Mon, 16 Nov 2020 09:08:34 -0500 Received: from mail-wm1-x329.google.com ([2a00:1450:4864:20::329]:39671) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1kefBI-0006Hj-90; Mon, 16 Nov 2020 09:08:33 -0500 Received: by mail-wm1-x329.google.com with SMTP id s13so23722794wmh.4; Mon, 16 Nov 2020 06:08:30 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:in-reply-to:references:date:message-id :mime-version:content-transfer-encoding; bh=HwgAaUG56ra/Hff62vhmG1l4g+aHSOpxdjqPyq7pUmY=; b=JzD8WQhY23xCObXumasXaWkB0xEoK7U/zc4zdfO0MkENW5OfuVA8Uc2iy4+QUWCXHm aOR1qprEEDpOdKoiCoPudYZDo4R4wAuTGsyPTGMQDIT5W6biOXnswlTvBOWy480vo3sa fXk/KHyaS5nTgH9v56Hpw0zjanZsftGbY0bbsOR4BP/o977SxxW4Q+U/LR+olTlji+sV FgjXo75jMGnDU9h42BqBrc4CUz7kmTpkVHBOTWeWKMTmHRNZUbt1wVwd/xya0Lb0+Hhm uBc4mDMhHd6cSij75Z/pyPViuNtkMAMyW1llw+N67ux3eREAqls3IPSE7rXB4szrVfUW Ffgw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:in-reply-to:references:date :message-id:mime-version:content-transfer-encoding; bh=HwgAaUG56ra/Hff62vhmG1l4g+aHSOpxdjqPyq7pUmY=; b=AIfiHCOcMRTFfsAM8ZAp4waQZTsDIBC4lBi2fVOCSF3Uy9BApsl+kg4yZj1mKt4FnS 3h+o4uq6ZSD7NBsuqhAN0gocnsMUde5z0zkNwAu2zM+xP1ZM6nonNZzM6FTZQ6WUkLZM M9Z48P238vbqYYY8ilJoCMQo32k72AGv46VjN+0901NZTijE0jaohGWVN67LhuiajMH1 l6D75x7DMj2w2iCp1RA8txZdTNnLfUAZB26IO7ftQg2abHHEIhVbkNVAgD+TdrVg2rSV l5xgGCHblI6g6V7rpMHU+JF3Vg/f4m5TtOdHfpRZkvbeQlp8XtNgkNTngCt3/l/C2f1B lDLw== X-Gm-Message-State: AOAM533ghlmAdIAwHaEwE78jXUJWEwJVtQ9xopkKlxSfzgoILUbkQ2dJ 9sCxzMtTV/vqJSqx9RfgKjY= X-Google-Smtp-Source: ABdhPJz9DdfCcEo/ZC816TOvSixyrR4ovO5WwAjAweAEkK0x5D+cstrY/l2n73QGALzEmpOu1qzDoA== X-Received: by 2002:a1c:1bcb:: with SMTP id b194mr560978wmb.139.1605535709341; Mon, 16 Nov 2020 06:08:29 -0800 (PST) Received: from lili ([2a01:e0a:59b:9120:65d2:2476:f637:db1e]) by smtp.gmail.com with ESMTPSA id u23sm21248048wmc.32.2020.11.16.06.08.28 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 16 Nov 2020 06:08:28 -0800 (PST) From: zimoun To: Pierre Neidhardt , Ludovic =?utf-8?Q?Court=C3=A8s?= Subject: Re: A plan for parameterized packages In-Reply-To: <87r1otbjat.fsf@ambrevar.xyz> References: <87eeku8trb.fsf@gnu.org> <87mtzi8r4j.fsf@guixSD.i-did-not-set--mail-host-address--so-tickle-me> <875z665xbv.fsf@ambrevar.xyz> <87y2j1y0z4.fsf@gnu.org> <87r1otbjat.fsf@ambrevar.xyz> Date: Mon, 16 Nov 2020 15:05:04 +0100 Message-ID: <864klps8hb.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::329; envelope-from=zimon.toutoune@gmail.com; helo=mail-wm1-x329.google.com X-detected-operating-system: by eggs.gnu.org: No matching host in p0f cache. That's all we know. X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, 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=ham autolearn_force=no X-Spam_action: no action X-BeenThere: guix-devel@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "Development of GNU Guix and the GNU System distribution." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: guix-devel@gnu.org, =?utf-8?Q?Nicol=C3=B2?= Balzarotti Errors-To: guix-devel-bounces+larch=yhetil.org@gnu.org Sender: "Guix-devel" X-Scanner: ns3122888.ip-94-23-21.eu Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20161025 header.b=JzD8WQhY; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (aspmx1.migadu.com: domain of guix-devel-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=guix-devel-bounces@gnu.org X-Spam-Score: -1.71 X-TUID: x2L96dBszXbl Hi, On Mon, 16 Nov 2020 at 13:03, Pierre Neidhardt wrote: > See point 7. about conflicts: > > https://lists.gnu.org/archive/html/guix-devel/2020-01/msg00026.html Quoting for instance the 2 examples: For instance, use guile-2.2.4 instead of guile for all guile libraries, or use pulseaudio everywhere, including in dependencies that are not explicitly installed to the user profile. >From my understanding, the first case (guile) is now covered by the =E2=80=9Cpackage rewriting=E2=80=9D transformation (see package-input-rewri= ting IIUC). The issue with the second case is below. > and comments: > > https://lists.gnu.org/archive/html/guix-devel/2020-01/msg00177.html >From my understanding of the Ludo=E2=80=99s patch and from the Marius=E2=80= =99s message, the both looks really similar. :-) > https://lists.gnu.org/archive/html/guix-devel/2020-01/msg00181.html Quoting: To be usable, we would need something to say "build bar and all its inputs without pulseaudio, except for some given packages". While this is OK with 1 parameter, it's quickly gets much more complicated when packages have multiple parameters that maybe confl= ict with one another. Is the combinatorial conflict solvable in advance? Well, from my point of view, it cannot be via package transformation. For example, let=E2=80=99s consider the Emacs packages and #41732. Quoting= [1]: > Perhaps then, > > --8<---------------cut here---------------start------------->8--- > guix build -m manifest.scm --with-input=3Demacs-minimal=3Demacs-n= ext \ > --with-input=3Demacs=3Demacs-next > --8<---------------cut here---------------end--------------->8--- Possibly. And then Magit uses emacs-no-x as an input, so we may need to also add --with-input=3Demacs-no-x=3Demacs-next to the command. I'm just pointing out that the process is not as straightforward as it might seem. So, it doesn't sound right to simply suggest and [2]: For example, the package emacs-magit drags emacs-no-x because of emacs-libgit, why is emacs-minimal not enough here? Well, the emacs-build-system depends (implicitly) on emacs-minimal, only. And the initial patch `package-with-emacs-next' was changing this, only. However, the package emacs-libgit is cmake-build-system and the package emacs-no-x is an explicit dependency; which is anot= her story. :-) these both examples show that it is already complex enough just to rebuild all the Emacs packages using another Emacs VM (emacs-next or REmacs, etc.). To be clear, I am not convinced that the current package recipes are functional enough to be able to keep under control the combinatorial conflict; in the general case. 1: 2: All the best, simon