Bug#989597: release.debian.org: upgrade issue: non-coinstallability of libgdal20 and libgdal28
Package: release.debian.org
Severity: normal
Let's start with the debian-release@ discussion here, this may be turned
into an unblock request later.
On Tue, 18 May 2021 20:36:23 +0200 Dennis Filder <d.filder@web.de> wrote:
> One more observation: Bullseye's gdal-data 3.2.1+dfsg-1 defines a
> Breaks: libgdal20 (< 2.5.0~), but the libgdal20 in Buster is 2.4.0,
> and postgresql-11-postgis-2.5 depends on that. libgdal28 depends on
> gdal-data (>=3.2.1+dfsg-1). To me it looks like there's no way to
> keep postgresql-11-postgis-2.5 around if anything that depends on
> libgdal28 (postgis, libopencv-imgcodecs4.5, ...) gets installed.
https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=988722#31
gdal can rename gdal-data to gdal3-data, build with
--datadir=/sur/share/gdal3 and drop the Breaks on libgdal20.
Thus libgdal20 + gdal-data from buster should be co-installable with
libgdal28 + gdal3-data from bullseye and survive the upgrade if needed.
A patch doing this is attached, I'm now testing the upgrade paths
(along the introduction of the libhdf5*-103 metapackages).
A good gdal bug to reuse would be #986975
Updating gdal may be a bit more tricky, because testing has 3.2.1 while
sid has 3.2.2.
Andreas
diff -Nru gdal-3.2.1+dfsg/debian/changelog gdal-3.2.1+dfsg/debian/changelog
--- gdal-3.2.1+dfsg/debian/changelog 2021-01-04 13:49:29.000000000 +0100
+++ gdal-3.2.1+dfsg/debian/changelog 2021-06-07 09:02:51.000000000 +0200
@@ -1,3 +1,12 @@
+gdal (3.2.1+dfsg-1.1) UNRELEASED; urgency=medium
+
+ * Non-maintainer upload.
+ * Rename gdal-data to gdal3-data and build with --datadir=/usr/share/gdal3.
+ This is a workaround for upgrade issues caused by libgdal20 (in buster)
+ and libgdal28 (in bullseye) not being co-installable. (Closes: #xxxxxx)
+
+ -- Andreas Beckmann <anbe@debian.org> Mon, 07 Jun 2021 09:02:51 +0200
+
gdal (3.2.1+dfsg-1) unstable; urgency=medium
* New upstream release.
diff -Nru gdal-3.2.1+dfsg/debian/control gdal-3.2.1+dfsg/debian/control
--- gdal-3.2.1+dfsg/debian/control 2021-01-04 13:44:44.000000000 +0100
+++ gdal-3.2.1+dfsg/debian/control 2021-06-07 09:02:51.000000000 +0200
@@ -68,7 +68,7 @@
Package: libgdal28
Architecture: any
Section: libs
-Depends: gdal-data (>= ${source:Version}),
+Depends: gdal3-data (>= ${source:Version}),
${shlibs:Depends},
${misc:Depends}
Recommends: proj-bin
@@ -189,11 +189,10 @@
namely gdal_translate, gdalinfo, gdaladdo, gdalwarp, ogr2ogr, ogrinfo,
ogrtindex.
-Package: gdal-data
+Package: gdal3-data
Architecture: all
Multi-Arch: foreign
Depends: ${misc:Depends}
-Breaks: libgdal20 (<< 2.5.0~)
Description: Geospatial Data Abstraction Library - Data files
GDAL is a translator library for raster geospatial data formats.
As a library, it presents a single abstract data model to the
diff -Nru gdal-3.2.1+dfsg/debian/gdal-data.install gdal-3.2.1+dfsg/debian/gdal-data.install
--- gdal-3.2.1+dfsg/debian/gdal-data.install 2020-10-20 05:44:12.000000000 +0200
+++ gdal-3.2.1+dfsg/debian/gdal-data.install 1970-01-01 01:00:00.000000000 +0100
@@ -1 +0,0 @@
-usr/share/gdal
diff -Nru gdal-3.2.1+dfsg/debian/gdal-data.lintian-overrides gdal-3.2.1+dfsg/debian/gdal-data.lintian-overrides
--- gdal-3.2.1+dfsg/debian/gdal-data.lintian-overrides 2020-10-24 06:58:20.000000000 +0200
+++ gdal-3.2.1+dfsg/debian/gdal-data.lintian-overrides 1970-01-01 01:00:00.000000000 +0100
@@ -1,6 +0,0 @@
-# Not a problem
-national-encoding usr/share/gdal/s57expectedinput.csv
-
-# Not documentation
-package-contains-documentation-outside-usr-share-doc usr/share/gdal/pci_*.txt
-
diff -Nru gdal-3.2.1+dfsg/debian/gdal3-data.install gdal-3.2.1+dfsg/debian/gdal3-data.install
--- gdal-3.2.1+dfsg/debian/gdal3-data.install 1970-01-01 01:00:00.000000000 +0100
+++ gdal-3.2.1+dfsg/debian/gdal3-data.install 2021-06-07 09:02:01.000000000 +0200
@@ -0,0 +1 @@
+usr/share/gdal3
diff -Nru gdal-3.2.1+dfsg/debian/gdal3-data.lintian-overrides gdal-3.2.1+dfsg/debian/gdal3-data.lintian-overrides
--- gdal-3.2.1+dfsg/debian/gdal3-data.lintian-overrides 1970-01-01 01:00:00.000000000 +0100
+++ gdal-3.2.1+dfsg/debian/gdal3-data.lintian-overrides 2021-06-07 09:01:48.000000000 +0200
@@ -0,0 +1,6 @@
+# Not a problem
+national-encoding usr/share/gdal3/s57expectedinput.csv
+
+# Not documentation
+package-contains-documentation-outside-usr-share-doc usr/share/gdal3/pci_*.txt
+
diff -Nru gdal-3.2.1+dfsg/debian/rules gdal-3.2.1+dfsg/debian/rules
--- gdal-3.2.1+dfsg/debian/rules 2021-01-04 13:44:33.000000000 +0100
+++ gdal-3.2.1+dfsg/debian/rules 2021-06-07 09:02:46.000000000 +0200
@@ -117,6 +117,7 @@
override_dh_auto_configure:
for V in $(PYVERS); do \
PYTHON=/usr/bin/python$$V ./configure --prefix=/usr \
+ --datadir=\$$\{prefix\}/share/gdal3 \
--mandir=\$$\{prefix\}/share/man \
--includedir=\$$\{prefix\}/include/gdal \
--with-hide-internal-symbols=yes \
Reply to: