From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from firstgate.proxmox.com (firstgate.proxmox.com [212.224.123.68]) (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 lists.proxmox.com (Postfix) with ESMTPS id 909C770C95 for ; Mon, 9 May 2022 16:50:18 +0200 (CEST) Received: from firstgate.proxmox.com (localhost [127.0.0.1]) by firstgate.proxmox.com (Proxmox) with ESMTP id 7F42F2E08B for ; Mon, 9 May 2022 16:49:48 +0200 (CEST) Received: from proxmox-new.maurer-it.com (proxmox-new.maurer-it.com [94.136.29.106]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by firstgate.proxmox.com (Proxmox) with ESMTPS id B11BD2E080 for ; Mon, 9 May 2022 16:49:46 +0200 (CEST) Received: from proxmox-new.maurer-it.com (localhost.localdomain [127.0.0.1]) by proxmox-new.maurer-it.com (Proxmox) with ESMTP id 8682B4324B for ; Mon, 9 May 2022 16:49:46 +0200 (CEST) Date: Mon, 09 May 2022 16:49:39 +0200 From: Fabian =?iso-8859-1?q?Gr=FCnbichler?= To: Proxmox VE development discussion References: <20220509101751.1520625-1-s.ivanov@proxmox.com> In-Reply-To: <20220509101751.1520625-1-s.ivanov@proxmox.com> MIME-Version: 1.0 User-Agent: astroid/0.15.0 (https://github.com/astroidmail/astroid) Message-Id: <1652107665.f72eqikjsb.astroid@nora.none> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-SPAM-LEVEL: Spam detection results: 0 AWL 0.173 Adjusted score from AWL reputation of From: address BAYES_00 -1.9 Bayes spam probability is 0 to 1% KAM_DMARC_STATUS 0.01 Test Rule for DKIM or SPF Failure with Strict Alignment SPF_HELO_NONE 0.001 SPF: HELO does not publish an SPF Record SPF_PASS -0.001 SPF: sender matches SPF record T_SCC_BODY_TEXT_LINE -0.01 - Subject: Re: [pve-devel] [PATCH proxmox-perl-rs] common: d/control: break/replace libpve-rs-perl (<< 0.6.0) X-BeenThere: pve-devel@lists.proxmox.com X-Mailman-Version: 2.1.29 Precedence: list List-Id: Proxmox VE development discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 09 May 2022 14:50:18 -0000 On May 9, 2022 12:17 pm, Stoiko Ivanov wrote: > libproxmox-rs-perl ships /usr/share/perl5/PVE/RS/CalendarEvent.pm, > which was also present in libpve-rs-perl until version 0.5.1 >=20 > This can lead to a (racy) issue while upgrading - depending > on which of libproxmox-rs-perl or libpve-rs-perl gets unpacked first > we potentially run into: > ``` > dpkg: error processing archive \ > /tmp/apt-dpkg-install-lNBzMn/48-libproxmox-rs-perl_0.1.0_amd64.deb (--unp= ack): > trying to overwrite '/usr/share/perl5/PVE/RS/CalendarEvent.pm', \ > which is also in package libpve-rs-perl 0.5.1 > ``` >=20 > This patch follows the debian policy manual for these situations: > https://www.debian.org/doc/debian-policy/ch-relationships.html#s-breaks >=20 > Signed-off-by: Stoiko Ivanov Reviewed-by: Fabian Gr=C3=BCnbichler Acked-by: Fabian Gr=C3=BCnbichler I noticed this a few weeks back, but it seems it slipped through a=20 second time ;) so unless this was intentionally left out when applying=20 the original series/patches for some reason I am missing, this seems=20 like the correct path to take! > --- > Sadly was not able to trigger this issue on any of my systems (and a VM w= ith > a fresh 7.1 ISO install). >=20 > common/pkg/debian/control | 2 ++ > 1 file changed, 2 insertions(+) >=20 > diff --git a/common/pkg/debian/control b/common/pkg/debian/control > index cdda8c5..8bc510c 100644 > --- a/common/pkg/debian/control > +++ b/common/pkg/debian/control > @@ -17,6 +17,8 @@ Depends: > ${perl:Depends}, > ${shlibs:Depends}, > libpve-rs-perl (>=3D 0.6.0) | libpmg-rs-perl (>=3D 0.5.0), > +Breaks: libpve-rs-perl (<< 0.6.0) > +Replaces: libpve-rs-perl (<< 0.6.0) > Description: PVE/PMG common parts which have been ported to Rust - Perl = packages > Contains the perl side of modules provided by the libraries of both lib= pve-rs-perl and > libpmg-rs-perl, loading whichever is available. > --=20 > 2.30.2 >=20 >=20 >=20 > _______________________________________________ > pve-devel mailing list > pve-devel@lists.proxmox.com > https://lists.proxmox.com/cgi-bin/mailman/listinfo/pve-devel >=20 >=20 >=20