From debbugs-submit-bounces@debbugs.gnu.org Fri Oct 09 16:14:28 2020 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: =?utf-8?Q?Ludovic_Court=C3=A8s?= To: bug-guix@gnu.org Subject: =?utf-8?Q?=E2=80=98package-input-rewriting=2Fspec=E2=80=99?= can introduce unnecessary variants 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-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -2.3 (--) 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.