From debbugs-submit-bounces@debbugs.gnu.org Fri Nov 08 16:06:42 2019 Received: (at 38100) by debbugs.gnu.org; 8 Nov 2019 21:06:42 +0000 Received: from localhost ([127.0.0.1]:47782 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iTBSs-0002sP-4V for submit@debbugs.gnu.org; Fri, 08 Nov 2019 16:06:42 -0500 Received: from eggs.gnu.org ([209.51.188.92]:46007) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iTBSp-0002sB-UB for 38100@debbugs.gnu.org; Fri, 08 Nov 2019 16:06:40 -0500 Received: from fencepost.gnu.org ([2001:470:142:3::e]:55842) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1iTBSk-0000NP-Sn for 38100@debbugs.gnu.org; Fri, 08 Nov 2019 16:06:34 -0500 Received: from [2a01:e0a:1d:7270:af76:b9b:ca24:c465] (port=42390 helo=ribbon) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1iTBSk-0004Di-73 for 38100@debbugs.gnu.org; Fri, 08 Nov 2019 16:06:34 -0500 From: =?utf-8?Q?Ludovic_Court=C3=A8s?= To: 38100@debbugs.gnu.org Subject: Re: bug#38100: =?utf-8?Q?=E2=80=98--with-input=E2=80=99?= causes unintended rebuilds References: <87eeyjsw3g.fsf@inria.fr> Date: Fri, 08 Nov 2019 22:06:32 +0100 In-Reply-To: <87eeyjsw3g.fsf@inria.fr> ("Ludovic \=\?utf-8\?Q\?Court\=C3\=A8s\=22\?\= \=\?utf-8\?Q\?'s\?\= message of "Thu, 07 Nov 2019 13:35:15 +0100") Message-ID: <87ftiydqnb.fsf@gnu.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.3 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 38100 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: -3.3 (---) Hi, Ludovic Court=C3=A8s skribis: > Indeed, evaluating: > > (bag-transitive-inputs > (package->bag ((package-input-rewriting '()) glib))) > > shows that we have two =E2=80=9Cpython=E2=80=9D packages there that are n= ot =E2=80=98eq?=E2=80=99. The problem is that =E2=80=98glib=E2=80=99 depends on =E2=80=98python-libxm= l2=E2=80=99, which uses =E2=80=98python-build-system=E2=80=99 and thus has =E2=80=98python=E2=80=99= as an implicit input. =E2=80=98package-input-rewriting=E2=80=99 doesn=E2=80=99t touch implicit in= puts so it leaves that implicit =E2=80=98python=E2=80=99 untouched. Since =E2=80=98transitive-inputs=E2=80=99 (used by =E2=80=98bag-transitive-= inputs=E2=80=99) uses pointer equality, we end up with two =E2=80=9Cpython=E2=80=9D packages that are not= =E2=80=98eq?=E2=80=99 but are functionally equivalent: the one produced by =E2=80=98package-input-rewriting=E2=80=99, and the implicit dependency of =E2=80=98python-libxml2=E2=80=99. QED. (This is essentially the same as .) I=E2=80=99m not sure how to address it. Ludo=E2=80=99.