🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: linux.debian.bugs.dist
Article #4474

Bug#1153965: trixie-pu: package mobilitydb/1.2.0-2+deb13u1

#4474
From: Christoph Berg
Date: Sat, 14 Nov 2026 11:50
121 lines
5177 bytes
Package: release.debian.org
Severity: normal
Tags: trixie
X-Debbugs-Cc: mobilitydb@packages.debian.org
Control: affects -1 + src:mobilitydb
User: release.debian.org@packages.debian.org
Usertags: pu

Please accept mobilitydb into trixie.

[ Reason ]
The current PostgreSQL version 17.12 got stricter in validating
operators created. The update fixes preexisting problems that are now
fatal.

[ Impact ]
Users cannot create new mobilitydb instances.

[ Tests ]
Upstream testsuite and manual testing.

[ Checklist ]
  [x] *all* changes are documented in the d/changelog
  [x] I reviewed all changes and I approve them
  [x] attach debdiff against the package in (old)stable
  [x] the issue is verified as fixed in unstable

Christoph

diff --git a/debian/changelog b/debian/changelog
index b00a448..4c66217 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,3 +1,11 @@
+mobilitydb (1.2.0-2+deb13u1) trixie; urgency=medium
+
+  * Remove COMMUTATOR from *(date, datespanset) operators to fix loading the
+    extension in PG 18.7 and 17.12.
+  * The commutator of #> is #<, not #<=.
+
+ -- Christoph Berg <myon@debian.org>  Wed, 11 Nov 2026 16:52:33 +0100
+
 mobilitydb (1.2.0-2) unstable; urgency=medium

   [ Bradford D. Boyle ]
diff --git a/debian/patches/series b/debian/patches/series
index 5f3639c..f617ace 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -1,2 +1,4 @@
 generate-configure-file-in-build-dir
 improve-npoint-tests.patch
+spanset_ops
+temporal_compops
diff --git a/debian/patches/spanset_ops b/debian/patches/spanset_ops
new file mode 100644
index 0000000..10ff178
--- /dev/null
+++ b/debian/patches/spanset_ops
@@ -0,0 +1,30 @@
+Remove COMMUTATOR from *(date, datespanset) operators
+
+The datatype of one of the underlying functions is wrong, and PG 18.7 refuses
+to load the extension now. A proper fix needs writing upgrade scripts, we just
+work around for now.
+
+--- a/mobilitydb/sql/general/009_spanset_ops.in.sql
++++ b/mobilitydb/sql/general/009_spanset_ops.in.sql
+@@ -2516,8 +2516,8 @@ CREATE FUNCTION span_intersection(datesp
+
+ CREATE OPERATOR * (
+   PROCEDURE = span_intersection,
+-  LEFTARG = date, RIGHTARG = datespanset,
+-  COMMUTATOR = *
++  LEFTARG = date, RIGHTARG = datespanset
++  -- COMMUTATOR = *
+ );
+ CREATE OPERATOR * (
+   PROCEDURE = span_intersection,
+@@ -2526,8 +2526,8 @@ CREATE OPERATOR * (
+ );
+ CREATE OPERATOR * (
+   PROCEDURE = span_intersection,
+-  LEFTARG = datespanset, RIGHTARG = date,
+-  COMMUTATOR = *
++  LEFTARG = datespanset, RIGHTARG = date
++  -- COMMUTATOR = *
+ );
+ CREATE OPERATOR * (
+   PROCEDURE = span_intersection,
diff --git a/debian/patches/temporal_compops b/debian/patches/temporal_compops
new file mode 100644
index 0000000..f73c85d
--- /dev/null
+++ b/debian/patches/temporal_compops
@@ -0,0 +1,25 @@
+The commutator of #> is #<, not #<=.
+
+--- a/mobilitydb/sql/general/030_temporal_compops.in.sql
++++ b/mobilitydb/sql/general/030_temporal_compops.in.sql
+@@ -1804,17 +1804,17 @@ CREATE FUNCTION temporal_tgt(ttext, ttex
+ CREATE OPERATOR #> (
+   PROCEDURE = temporal_tgt,
+   LEFTARG = text, RIGHTARG = ttext,
+-  COMMUTATOR = #<=
++  COMMUTATOR = #<
+ );
+ CREATE OPERATOR #> (
+   PROCEDURE = temporal_tgt,
+   LEFTARG = ttext, RIGHTARG = text,
+-  COMMUTATOR = #<=
++  COMMUTATOR = #<
+ );
+ CREATE OPERATOR #> (
+   PROCEDURE = temporal_tgt,
+   LEFTARG = ttext, RIGHTARG = ttext,
+-  COMMUTATOR = #<=
++  COMMUTATOR = #<
+ );
+
+ /*****************************************************************************
Technical Details
Message-ID: <NZkqB-bPrA-9@gated-at.bofh.it>
Path: mbox-mo1.pugleaf.net!news-lax.pugleaf.net!srl.newsdeef.eu!news.samoylyk.net!gothmog.csi.it!bofh.it!news.nic.it!robomod

Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!news-lax.pugleaf.net!srl.newsdeef.eu!news.samoylyk.net!gothmog.csi.it!bofh.it!news.nic.it!robomod
From: Christoph Berg <myon@debian.org>
Newsgroups: linux.debian.bugs.dist,linux.debian.devel.release
Subject: Bug#1153965: trixie-pu: package mobilitydb/1.2.0-2+deb13u1
Date: Sat, 14 Nov 2026 12:50:01 +0100
Message-ID: <NZkqB-bPrA-9@gated-at.bofh.it>
X-Mailbox-Line: From debian-bugs-dist-request@lists.debian.org  Sat Nov 14 11:43:09 2026
Old-Return-Path: <debbugs@buxtehude.debian.org>
X-Spam-Flag: NO
X-Spam-Score: -1.7
Reply-To: Christoph Berg <myon@debian.org>, 1153965@bugs.debian.org
Resent-To: debian-bugs-dist@lists.debian.org
Resent-Cc: mobilitydb@packages.debian.org, debian-release@lists.debian.org
X-Debian-Pr-Message: report 1153965
X-Debian-Pr-Package: release.debian.org
X-Debian-Pr-Keywords: trixie
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
X-Reportbug-Version: 13.2.0+nmu1
X-Debian-User: myon
X-Debian-Message: from BTS
X-Mailing-List: <debian-bugs-dist@lists.debian.org> archive/latest/2002551
List-ID: <debian-bugs-dist.lists.debian.org>
List-URL: <https://lists.debian.org/debian-bugs-dist/>
Approved: robomod@news.nic.it
Lines: 121
Organization: linux.* mail to news gateway
Sender: robomod@news.nic.it
X-Original-Date: Sat, 14 Nov 2026 12:40:55 +0100
X-Original-Message-ID: <avhIx-tWgWBQrFZr@msg.df7cb.de>