On 8/15/23 14:07, Adrian Bunk wrote:
On Tue, Aug 15, 2023 at 05:28:25AM +0200, Bas Couwenberg wrote:
zlib1g-dev fails to upgrade due to a file confict with libminizip-dev:
Preparing to unpack .../zlib1g-dev_1%3a1.2.13.dfsg-2_amd64.deb ...
Unpacking zlib1g-dev:amd64 (1:1.2.13.dfsg-2) over (1:1.2.13.dfsg-1) ...
dpkg: error processing archive
/var/cache/apt/archives/zlib1g-dev_1%3a1.2.13.dfsg-2_amd64.deb (--unpack):
trying to overwrite '/usr/include/minizip/crypt.h', which is also in package
libminizip-dev:amd64 1:1.2.13.dfsg-2
dpkg-deb: error: paste subprocess was killed by signal (Broken pipe)
Errors were encountered while processing:
/var/cache/apt/archives/zlib1g-dev_1%3a1.2.13.dfsg-2_amd64.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)
Breaks/Replaces or Conflicts seem to be missing.
No, the bug is that the /usr/include/minizip headers are shipped in both
zlib1g-dev and libminizip-dev, and that they should never have been in
zlib1g-dev.
Yes, usr/include/* in zlib1g-dev.install is problematic because that
also matches usr/include/minizip.
This may suffice to resolve that:
--- debian/rules.orig 2023-08-15 14:23:13.505744473 +0200
+++ debian/rules 2023-08-15 14:22:00.029708908 +0200
@@ -207,6 +207,7 @@
dh_installdocs -a
dh_installexamples -a
dh_install -a --sourcedir=debian/tmp
+ $(RM) -r debian/zlib1g-dev/usr/include/minizip
dh_installman -a
dh_lintian -a
dh_link -a
Kind Regards,
Bas
--
GPG Key ID: 4096R/6750F10AE88D4AF1
Fingerprint: 8182 DE41 7056 408D 6146 50D1 6750 F10A E88D 4AF1