From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 1E954158011 for ; Mon, 10 Jan 2022 14:07:08 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 7B9052BC026; Mon, 10 Jan 2022 14:07:01 +0000 (UTC) Received: from mail-ed1-x529.google.com (mail-ed1-x529.google.com [IPv6:2a00:1450:4864:20::529]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 4D7212BC00D for ; Mon, 10 Jan 2022 14:07:00 +0000 (UTC) Received: by mail-ed1-x529.google.com with SMTP id q25so45410564edb.2 for ; Mon, 10 Jan 2022 06:07:00 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:references:in-reply-to:from:date:message-id:subject:to; bh=YCeD3fTDezstKbNvdJT+/ORUTvPsYh6Fkp8bP0vumXE=; b=liweX5z4wu7722N3ymI3rPqlG7gBIdTpJlcoKJWqI1iUCa1g7VLTjqVClmRKiRh/MH xos5KoujmuBeedGqmWLTrNUsgaDIKkttLZNzNtyHD5n0YehSdw/ER0BkKV4uSZ/iVxbJ 0XtLbVFZpkmKntkaLM0+WjBKhTSjLRNpR65AsI1XVbx1yQviYQNCTWSSGZCIzAhHsZf2 kFpyH9y6Znc8fcw9KcwDbEWHbVF6ED700LS9Z+3cKOI0N5oqouX0fse2Y93WeDEG7G9X 6QmooCCV4OECtn2YwydOAWSH9i6S1vEEUilFNHzY1tFm89Wxmyu2sSn1+Tbnrg605wrv yFZw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to; bh=YCeD3fTDezstKbNvdJT+/ORUTvPsYh6Fkp8bP0vumXE=; b=o+VEPF6ccAFxB7Wao3d/rwx9I/pM+Lsl+YAnRxSaeuQ9GWA/ysEmiB/HKTvOdIj0Td bcvHHBFZsL9geySMQIKWUKcppDkRBJKAAirQ383eaK1xDbe+8HSG0fv0rKrZWerQn70J wm/utjHjcKu9BXLdAO/pZY+EMxNaex5UxmYJjf6TKIueYYjaQ3jmDJdXGIQPEMq8ORM3 iECBolewSYJtKhzbdph0zBtBe6Jb9WPLAZI6sz5ve9P5NL8BNNC/2oEqpR6np4NWbF4j PcVehk/YUDsWfNwIkx6jGOZQqs/M6l5eReiAj3nu8TrPo5bfwDp7DdFaFGmH2npp3CiV Yh9g== X-Gm-Message-State: AOAM532vIbQVtjpfBUlVa5Zz8/9wgrt4gf44QyoMeVM0mN8ksn9+jlWO nYh+b/vFAE4D/7IimWtX0szRT4LD/WybW5cwzNJDH8tG9rQ= X-Google-Smtp-Source: ABdhPJz2yU36iaMCtPNcXaWSeT56GEkoZ/1OlmO7Q66sbA/qd43IoRYi5BGx32KTGsxt93Ug0XAu/ubfH3zIr/dL9ws= X-Received: by 2002:a17:906:6a0c:: with SMTP id qw12mr6068172ejc.620.1641823618893; Mon, 10 Jan 2022 06:06:58 -0800 (PST) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-dev@lists.gentoo.org Reply-to: gentoo-dev@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply MIME-Version: 1.0 References: <908ab66e71703930054cdbfd1cf63eb888ea35e2.camel@gentoo.org> In-Reply-To: <908ab66e71703930054cdbfd1cf63eb888ea35e2.camel@gentoo.org> From: Francesco Riosa Date: Mon, 10 Jan 2022 15:06:48 +0100 Message-ID: Subject: Re: [gentoo-dev] Looking for a solution to the distutils/setuptools .egg-info mess To: gentoo development , =?UTF-8?B?TWljaGHFgiBHw7Nybnk=?= Content-Type: multipart/alternative; boundary="000000000000968ba505d53ad9f1" X-Archives-Salt: 1778e3d4-f9f2-482c-b9fe-b56783f25917 X-Archives-Hash: 04570cddbeb3a772ed75316515419d37 --000000000000968ba505d53ad9f1 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Il giorno lun 10 gen 2022 alle ore 06:39 Micha=C5=82 G=C3=B3rny ha scritto: [...] > > The big problem is that switching implies changing the format, so if you > install foo-X, then switch, then reinstall the same version of foo, > you're going to have the file replaced by a directory. This is not > supported by the PMS, and Portage handles it somewhat suboptimally > (renaming the old file and leaving it orphaned). > > Is it possible to force the package to own the file may be touching it in src_install() ? This way we have a dirty installation but no orphaned file and it would be back to normal at next install --000000000000968ba505d53ad9f1 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable


=
Il giorno lun 10 gen 2022 alle ore 06= :39 Micha=C5=82 G=C3=B3rny <mgorny@= gentoo.org> ha scritto:
[...]

The big problem is that switching implies changing the format, so if you install foo-X, then switch, then reinstall the same version of foo,
you're going to have the file replaced by a directory.=C2=A0 This is no= t
supported by the PMS, and Portage handles it somewhat suboptimally
(renaming the old file and leaving it orphaned).

I= s it possible to force the package to own the file may be touching it in=C2= =A0 src_install() ?

This way we have a dirty installation but no orp= haned file and it would be back to normal at next install

--000000000000968ba505d53ad9f1--