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 33846709FC for ; Mon, 9 May 2022 12:17:58 +0200 (CEST) Received: from firstgate.proxmox.com (localhost [127.0.0.1]) by firstgate.proxmox.com (Proxmox) with ESMTP id 2AC112B47A for ; Mon, 9 May 2022 12:17:58 +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 5972D2B470 for ; Mon, 9 May 2022 12:17:57 +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 1010043226 for ; Mon, 9 May 2022 12:17:57 +0200 (CEST) From: Stoiko Ivanov To: pve-devel@lists.proxmox.com Date: Mon, 9 May 2022 12:17:51 +0200 Message-Id: <20220509101751.1520625-1-s.ivanov@proxmox.com> X-Mailer: git-send-email 2.30.2 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-SPAM-LEVEL: Spam detection results: 0 AWL 0.201 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: [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 10:17:58 -0000 libproxmox-rs-perl ships /usr/share/perl5/PVE/RS/CalendarEvent.pm, which was also present in libpve-rs-perl until version 0.5.1 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 (--unpack): trying to overwrite '/usr/share/perl5/PVE/RS/CalendarEvent.pm', \ which is also in package libpve-rs-perl 0.5.1 ``` This patch follows the debian policy manual for these situations: https://www.debian.org/doc/debian-policy/ch-relationships.html#s-breaks Signed-off-by: Stoiko Ivanov --- Sadly was not able to trigger this issue on any of my systems (and a VM with a fresh 7.1 ISO install). common/pkg/debian/control | 2 ++ 1 file changed, 2 insertions(+) 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 (>= 0.6.0) | libpmg-rs-perl (>= 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 libpve-rs-perl and libpmg-rs-perl, loading whichever is available. -- 2.30.2