From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms11 with LMTPS id 6OOAHBHHgF+RPAAA0tVLHw (envelope-from ) for ; Fri, 09 Oct 2020 20:24:49 +0000 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0 with LMTPS id kF6AGBHHgF/bQwAA1q6Kng (envelope-from ) for ; Fri, 09 Oct 2020 20:24:49 +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 15533940223 for ; Fri, 9 Oct 2020 20:24:49 +0000 (UTC) Received: from localhost ([::1]:42082 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kQywa-0006VC-1f for larch@yhetil.org; Fri, 09 Oct 2020 16:24:48 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:59912) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kQyn8-0007Rs-Kt for bug-guix@gnu.org; Fri, 09 Oct 2020 16:15:04 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:53032) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1kQyn8-0008GZ-4j for bug-guix@gnu.org; Fri, 09 Oct 2020 16:15:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1kQyn8-000684-0I for bug-guix@gnu.org; Fri, 09 Oct 2020 16:15:02 -0400 X-Loop: help-debbugs@gnu.org Subject: bug#43890: =?UTF-8?Q?=E2=80=98package-input-rewriting/spec=E2=80=99?= can introduce unnecessary variants Resent-From: Ludovic =?UTF-8?Q?Court=C3=A8s?= Original-Sender: "Debbugs-submit" Resent-CC: bug-guix@gnu.org Resent-Date: Fri, 09 Oct 2020 20:15:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 43890 X-GNU-PR-Package: guix X-GNU-PR-Keywords: To: 43890@debbugs.gnu.org X-Debbugs-Original-To: bug-guix@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.160227446823493 (code B ref -1); Fri, 09 Oct 2020 20:15:01 +0000 Received: (at submit) by debbugs.gnu.org; 9 Oct 2020 20:14:28 +0000 Received: from localhost ([127.0.0.1]:36345 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kQymZ-00066q-Tz for submit@debbugs.gnu.org; Fri, 09 Oct 2020 16:14:28 -0400 Received: from lists.gnu.org ([209.51.188.17]:40448) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kQymX-00066h-Sx for submit@debbugs.gnu.org; Fri, 09 Oct 2020 16:14:26 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:59786) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kQymX-0006tx-M5 for bug-guix@gnu.org; Fri, 09 Oct 2020 16:14:25 -0400 Received: from mail2-relais-roc.national.inria.fr ([192.134.164.83]:29049) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kQymV-0008CG-Aw for bug-guix@gnu.org; Fri, 09 Oct 2020 16:14:25 -0400 X-IronPort-AV: E=Sophos;i="5.77,355,1596492000"; d="scan'208";a="471864653" Received: from 91-160-117-201.subs.proxad.net (HELO ribbon) ([91.160.117.201]) by mail2-relais-roc.national.inria.fr with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 09 Oct 2020 22:14:09 +0200 From: Ludovic =?UTF-8?Q?Court=C3=A8s?= X-URL: http://www.fdn.fr/~lcourtes/ X-Revolutionary-Date: 18 =?UTF-8?Q?Vend=C3=A9miaire?= an 229 de la =?UTF-8?Q?R=C3=A9volution?= X-PGP-Key-ID: 0x090B11993D9AEBB5 X-PGP-Key: http://www.fdn.fr/~lcourtes/ludovic.asc X-PGP-Fingerprint: 3CE4 6455 8A84 FDC6 9DB4 0CFB 090B 1199 3D9A EBB5 X-OS: x86_64-pc-linux-gnu Date: Fri, 09 Oct 2020 22:14:08 +0200 Message-ID: <87v9fji2cv.fsf@inria.fr> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.1 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Received-SPF: pass client-ip=192.134.164.83; envelope-from=ludovic.courtes@inria.fr; helo=mail2-relais-roc.national.inria.fr X-detected-operating-system: by eggs.gnu.org: First seen = 2020/10/09 16:14:18 X-ACL-Warn: Detected OS = ??? X-Spam_score_int: -68 X-Spam_score: -6.9 X-Spam_bar: ------ X-Spam_report: (-6.9 / 5.0 requ) BAYES_00=-1.9, RCVD_IN_DNSWL_HI=-5, RCVD_IN_MSPIKE_H3=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Spam-Score: -1.3 (-) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-Spam-Score: -2.3 (--) X-BeenThere: bug-guix@gnu.org List-Id: Bug reports for GNU Guix List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-guix-bounces+larch=yhetil.org@gnu.org Sender: "bug-Guix" X-Scanner: scn0 Authentication-Results: aspmx1.migadu.com; dkim=none; dmarc=none; spf=pass (aspmx1.migadu.com: domain of bug-guix-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=bug-guix-bounces@gnu.org X-Spam-Score: -1.01 X-TUID: 2K1TcU/hAmOR Consider this example: --8<---------------cut here---------------start------------->8--- $ guix describe Generacio 162 Oct 01 2020 00:23:38 (nuna) guix 7607ace repository URL: https://git.savannah.gnu.org/git/guix.git branch: master commit: 7607ace5091aea0157ba5c8a508129cc5fc4f931 $ guix build inkscape --no-grafts -d /gnu/store/arjs5hb4wmy6dh5d3y8bbs808ki9abf8-inkscape-1.0.1.drv $ guix build inkscape --no-grafts -d --with-graft=3Dglib=3Dglib-networking /gnu/store/zd8mm3w6x9c97anfaly77fz28s5y3i5h-inkscape-1.0.1.drv $ guix build inkscape --no-grafts -d --with-graft=3Dlibreoffice=3Dabiword /gnu/store/arjs5hb4wmy6dh5d3y8bbs808ki9abf8-inkscape-1.0.1.drv --8<---------------cut here---------------end--------------->8--- The last one is fine: it has no effect. The second one is problematic: since we=E2=80=99re using =E2=80=98--no-graf= ts=E2=80=99, the =E2=80=98--with-graft=E2=80=99 option should have absolutely no effect; yet= , it yields a different derivation. On closer inspection, we see that the core issue is that =E2=80=98gobject-introspection=E2=80=99 in the second case ends up with =E2= =80=98libffi=E2=80=99 twice in its =E2=80=98*-guile-builder=E2=80=99 script, a problem similar to . (=E2=80=98libffi=E2=80=99 is propagat= ed by both =E2=80=98glib=E2=80=99 and =E2=80=98gobject-introspection=E2=80=99.) Ludo=E2=80=99.