Bug#1033617: libopenexr-dev: Cannot just upgrade libopenexr-dev to 3.1.5-4 because of file conflict with older version of libilmbase-dev

Andreas Metzler ametzler at bebt.de
Fri Mar 31 14:06:14 BST 2023


Control: tags -1 confirmed patch

On 2023-03-28 Felix Stupp <me+debian-bugs at banananet.work> wrote:
> Package: libopenexr-dev
> Version: 3.1.5-4
> Severity: serious
> Justification: Policy 7.4
> X-Debbugs-Cc: me+debian-bugs at banananet.work

> Dear Maintainer,

> I cannot upgrade this package from version 2.5.7-1 to version 3.1.5-4
> due to a file conflict with the package libilmbase-dev on version
[...]

Thank you Felix! dist-upgrading from libopenexr{25,-dev} 2.5.7-1 and
libilmbase{25,-dev} 2.5.7-2+b1 fails with

Preparing to unpack .../libopenexr-dev_3.1.5-4_amd64.deb ...
Unpacking libopenexr-dev (3.1.5-4) over (2.5.7-1) ...
dpkg: error processing archive /var/cache/apt/archives/libopenexr-dev_3.1.5-4_amd64.deb (--unpack):
 trying to overwrite '/usr/include/OpenEXR/Iex.h', which is also in package libilmbase-dev:amd64 2.5.7-2+b1

due to the versioning of the Breaks:/Replaces which was not binNMU-safe:
ametzler at argenau:/tmp$ dpkg --info /var/cache/apt/archives/libopenexr-dev_3.1.5-4_amd64.deb  | grep 'Breaks\|Repl'
 Breaks: libilmbase-dev (<= 2.5.7-2)
 Replaces: libilmbase-dev (<= 2.5.7-2)

I think 2.5.7-2 was the last sourceful < 3 upload, so (<< 2.5.7-3)
should work.

---------------------------------------
diff --git a/debian/changelog b/debian/changelog
index 9c5fae4..fa9c263 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,3 +1,11 @@
+openexr (3.1.5-4.1) UNRELEASED; urgency=medium
+
+  * Non-maintainer upload.
+  * Make versioning of libilmbase-dev Breaks/Replaces binNMU-safe.
+    Closes: #1033617
+
+ -- Andreas Metzler <ametzler at debian.org>  Fri, 31 Mar 2023 15:02:17 +0200
+
 openexr (3.1.5-4) unstable; urgency=medium

   * d/control: Add missing zlib1g-dev dependency. Closes: #1017516
diff --git a/debian/control b/debian/control
index 5fecc23..3d783c2 100644
--- a/debian/control
+++ b/debian/control
@@ -49,8 +49,8 @@ Package: libopenexr-dev
 Section: libdevel
 Architecture: any
 Pre-Depends: ${misc:Pre-Depends}
-Replaces: libilmbase-dev (<= 2.5.7-2)
-Breaks: libilmbase-dev (<= 2.5.7-2)
+Replaces: libilmbase-dev (<< 2.5.7-3)
+Breaks: libilmbase-dev (<< 2.5.7-3)
 Depends: libimath-dev (>= 3.1.2),
          libopenexr-3-1-30 (= ${binary:Version}),
          zlib1g-dev,
--------------------------------------

cu Andreas

-- 
`What a good friend you are to him, Dr. Maturin. His other friends are
so grateful to you.'
`I sew his ears on from time to time, sure'



More information about the Pkg-phototools-devel mailing list