🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: linux.debian.devel.release
Article #1063

Bug#1153932: marked as done (trixie-pu: package postgresql-common/278+deb13u1)

#1063
From: Debian Bug Tracking System
Date: Sat, 21 Nov 2026 09:50
310 lines
14901 bytes
This is a multi-part message in MIME format...

------------=_1795253401-3309950-0
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable
Content-Type: text/plain; charset="utf-8"

Your message dated Sat, 21 Nov 2026 09:28:03 +0000
with message-id <E1xUhO7-00000008t2P-2qBr@coccia.debian.org>
and subject line Released in 13.8
has caused the Debian Bug report #1153932,
regarding trixie-pu: package postgresql-common/278+deb13u1
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact owner@bugs.debian.org
immediately.)


--=20
1153932: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=3D1153932
Debian Bug Tracking System
Contact owner@bugs.debian.org with problems

------------=_1795253401-3309950-0
Content-Type: message/rfc822
Content-Disposition: inline
Content-Transfer-Encoding: 7bit

Received: (at submit) by bugs.debian.org; 13 Nov 2026 19:12:13 +0000
X-Spam-Checker-Version: SpamAssassin 4.0.1-bugs.debian.org_2005_01_02
	(2024-03-25) on buxtehude.debian.org
X-Spam-Level: 
X-Spam-Status: No, score=-132.1 required=4.0 tests=ALL_TRUSTED,BAYES_00,
	BODY_INCLUDES_CONTROL_AFFECTS,BODY_INCLUDES_PACKAGE,DKIMWL_WL_HIGH,
	DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FOURLA,
	FROMDEVELOPER,HAS_PACKAGE,MD5_SHA1_SUM,SPF_HELO_NONE,SPF_PASS,
	USER_IN_DKIM_WELCOMELIST,X_DEBBUGS_NO_ACK autolearn=ham
	autolearn_force=no version=4.0.1-bugs.debian.org_2005_01_02
X-Spam-Bayes: score:0.0000 Tokens: new, 56; hammy, 150; neutral, 237; spammy,
	0. spammytokens:
	hammytokens:0.000-+--Hx-spam-relays-external:sk:stravin,
	0.000-+--H*RT:sk:stravin, 0.000-+--Hx-spam-relays-external:311,
	0.000-+--H*RT:311, 0.000-+--H*RT:108
Return-path: <myon@debian.org>
Received: from stravinsky.debian.org ([2001:41b8:202:deb::311:108]:37932)
	by buxtehude.debian.org with esmtps (TLS1.3:ECDHE_SECP256R1__RSA_PSS_RSAE_SHA256__AES_256_GCM:256)
	(Exim 4.96)
	(envelope-from <myon@debian.org>)
	id 1xRwh3-006A8x-0l
	for submit@bugs.debian.org;
	Fri, 13 Nov 2026 19:12:13 +0000
DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=debian.org;
	s=smtpauto.stravinsky; h=X-Debian-User:Content-Type:MIME-Version:Message-ID:
	Subject:To:From:Date:Reply-To:Cc:Content-Transfer-Encoding:Content-ID:
	Content-Description:In-Reply-To:References;
	bh=FqHdSL9e9F/BvRI519efg9nh1Bs11GZ48qJ7PTMNxAc=; b=ryUH4Ewh2dyd5BThfl2pF8cRWh
	3tWYHnOUZYG+1YUb2Foh7YEEiM2DQsVgAStdraGPfL29h+zLLCKapAThf99l3h7iT+s5zEsMcKQtA
	SpNr6pxbSQ+zIIF957jIJbGHNZuGEQkunmpt4b/wpg+QiuB2/5Fp59s3I7HQosVK8o+8D19YsxrBO
	nXBwIGnyi7CpGKn0ZbMbIdUHwjMU24sxtL3WlImdZN9gtdmyLJyXGJC1+WFze6wOGaLe7PBYCKmyg
	wFTDrx2/XlI28hp5BiKgpwqwje67NEyKwnxg1VP/2MFcPxZ1ypCwGbt+fwWsa+8s/8hoqswrM7DJ0
	iaOp/b5A==;
Received: from authenticated-user
	by stravinsky.debian.org with esmtpsa (TLS1.3:ECDHE_SECP256R1__RSA_PSS_RSAE_SHA256__AES_256_GCM:256)
	(Exim 4.96)
	(envelope-from <myon@debian.org>)
	id 1xRwh1-00EyLA-1q
	for submit@bugs.debian.org;
	Fri, 13 Nov 2026 19:12:11 +0000
Date: Fri, 13 Nov 2026 20:12:10 +0100
From: Christoph Berg <myon@debian.org>
To: Debian Bug Tracking System <submit@bugs.debian.org>
Subject: trixie-pu: package postgresql-common/278+deb13u1
Message-ID: <avdhCj_ZiPcDxqCM@msg.df7cb.de>
Mail-Followup-To: Christoph Berg <myon@debian.org>,
	Debian Bug Tracking System <submit@bugs.debian.org>
MIME-Version: 1.0
Content-Type: multipart/mixed; boundary="DTUiQgGf52pkFvmb"
Content-Disposition: inline
X-Reportbug-Version: 13.2.0+nmu1
X-Debbugs-No-Ack: please
X-Debian-User: myon
Delivered-To: submit@bugs.debian.org

--DTUiQgGf52pkFvmb
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline

Package: release.debian.org
Severity: normal
Tags: trixie
X-Debbugs-Cc: postgresql-common@packages.debian.org
Control: affects -1 + src:postgresql-common
User: release.debian.org@packages.debian.org
Usertags: pu

Please accept postgresql-common/278+deb13u1 into trixie.

[ Reason ]
It makes pg_buildext, the tool to compile PostgreSQL server
extensions, emit dependencies making sure that an extension compiled
against a PG server with the fix for CVE-2026-6460 also depends on the
version with that fix.

Older server versions were using a macro that now got converted into a
function, so packages compiled against the new version will get linker
errors when trying to run with older servers. The ">> $version"
dependency added prevents that.

[ Impact ]
Things will still work but without proper dependencies. The user can
still upgrade the PG server and extension packages in lockstep.

[ Tests ]
Manual tests confirmed that the dependency gets added, and
t/190_pg_buildext.t is also testing it.

[ Risks ]
The risk is that the generated dependency is bad, but tests have shown
it isn't.

[ 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

[ Other ]
This needs to be accepted before any extension rebuilds are triggered.
(And buildds have to use trixie-proposed-updates.)

Christoph

--DTUiQgGf52pkFvmb
Content-Type: text/x-diff; charset=us-ascii
Content-Disposition: attachment; filename=278+deb13u1.diff

commit be5983885ccd673288f357bcfef368b2bf1d985b
Author: Christoph Berg <myon@debian.org>
Date:   Mon Nov 9 15:11:45 2026 +0100

    pg_buildext, /etc/postgresql-common/minor_versions: Set minimum server versions
    
    ... to depend on when extensions are built. Start with the current minor
    versions just being released. This makes sure packages built with the
    fix for CVE-2026-6460 depend on a server with that fix.

diff --git a/debian/changelog b/debian/changelog
index 317ab769..72a366cf 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,3 +1,12 @@
+postgresql-common (278+deb13u1) trixie; urgency=medium
+
+  * pg_buildext, /etc/postgresql-common/minor_versions: Set minimum server
+    versions to depend on when extensions are built. Start with the current
+    minor versions just being released. This makes sure packages built with
+    the fix for CVE-2026-6460 depend on a server with that fix.
+
+ -- Christoph Berg <myon@debian.org>  Fri, 13 Nov 2026 17:09:50 +0100
+
 postgresql-common (278) unstable; urgency=medium
 
   * pg_upgradecluster: Do two vacuumdb runs in analyze hook for PG18+.
diff --git a/debian/minor_versions b/debian/minor_versions
new file mode 100644
index 00000000..eed22d60
--- /dev/null
+++ b/debian/minor_versions
@@ -0,0 +1,11 @@
+# This file is used by pg_buildext to map PostgreSQL major versions to the
+# minimum minor versions that extension packages built against the server
+# should depend on.
+
+20 20~~devel
+19 19~rc2
+18 18.7
+17 17.12
+16 16.16
+15 15.20
+14 14.25
diff --git a/debian/postgresql-common-dev.install b/debian/postgresql-common-dev.install
index 80e03f59..8ab5e238 100644
--- a/debian/postgresql-common-dev.install
+++ b/debian/postgresql-common-dev.install
@@ -1,5 +1,6 @@
 debhelper/Debian /usr/share/perl5
 debhelper/dh_pgxs_test /usr/bin
+debian/minor_versions etc/postgresql-common
 debian/supported-versions usr/share/postgresql-common
 dh_make_pgxs/debian /usr/share/postgresql-common/dh_make_pgxs
 dh_make_pgxs/dh_make_pgxs /usr/bin
diff --git a/pg_buildext b/pg_buildext
index 47b95b3a..4d810a14 100755
--- a/pg_buildext
+++ b/pg_buildext
@@ -4,7 +4,7 @@
 # versions
 #
 # (C) 2010 Dimitri Fontaine <dfontaine@hi-media.com>
-# (C) 2011-2025 Christoph Berg <myon@debian.org>
+# (C) 2011-2026 Christoph Berg <myon@debian.org>
 #
 #  This program is free software; you can redistribute it and/or modify
 #  it under the terms of the GNU General Public License as published by
@@ -91,7 +91,14 @@ substvars() {
     version="$1"
     package="$2"
 
-    depends="postgresql-$version"
+    # for major version $version, look up the minimum minor version to depend on
+    for file in debian/minor_versions /etc/postgresql-common/minor_versions; do
+        if test -f $file; then
+            minor_version=$(awk "/^$version/ { print \$2 }" $file)
+            break
+        fi
+    done
+    depends="postgresql-$version${minor_version:+ (>> $minor_version)}"
     if [ -d "debian/$package/usr/lib/postgresql/$version/lib/bitcode" ]; then
         pg_provides=$(dpkg-query --show --showformat='${Provides}' postgresql-$version | grep -o 'postgresql-[0-9]*-jit-llvm (= [0-9.]*')
         llvm_version=${pg_provides#*= }
diff --git a/t/190_pg_buildext.t b/t/190_pg_buildext.t
index 05f33692..200e3f74 100644
--- a/t/190_pg_buildext.t
+++ b/t/190_pg_buildext.t
@@ -51,6 +51,14 @@ program_ok 'nobody', 'cd foo-123 && DEB_BUILD_OPTIONS=nocheck dpkg-buildpackage
 foreach my $ver (@versions) {
     my $deb = "postgresql-$ver-foo_123-1_$arch.deb";
     ok (-f $deb, "$deb was built");
+    my $info = `dpkg-deb --info $deb control`;
+    like $info, qr/^Depends: postgresql-$ver/m, "correct postgresql dependency";
+    like $info, qr/^Depends: postgresql-$ver \(>> $ver/m, "correct versioned postgresql dependency" if ($ver >= 14);
+    my $dbgsym = "postgresql-$ver-foo-dbgsym_123-1_$arch.deb"; # Debian
+    my $ddbgsym = "postgresql-$ver-foo-dbgsym_123-1_$arch.ddeb"; # Ubuntu
+    ok (-f $dbgsym or -f $ddbgsym, "$dbgsym was built");
+
+    # test in-tree installcheck
     SKIP: {
         my $have_extension_destdir = `grep extension_destdir /usr/share/postgresql/$ver/postgresql.conf.sample`;
         skip "No in-tree installcheck on PG $ver (missing extension_destdir)", 2 unless ($have_extension_destdir);

--DTUiQgGf52pkFvmb--

------------=_1795253401-3309950-0
Content-Type: message/rfc822
Content-Disposition: inline
Content-Transfer-Encoding: 7bit

Received: (at 1153932-done) by bugs.debian.org; 21 Nov 2026 09:28:11 +0000
X-Spam-Checker-Version: SpamAssassin 4.0.1-bugs.debian.org_2005_01_02
	(2024-03-25) on buxtehude.debian.org
X-Spam-Level: 
X-Spam-Status: No, score=-105.1 required=4.0 tests=BAYES_00,DKIM_SIGNED,
	DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED,SPF_HELO_PASS,
	SPF_PASS,USER_IN_DKIM_WELCOMELIST,VERSION autolearn=ham
	autolearn_force=no version=4.0.1-bugs.debian.org_2005_01_02
X-Spam-Bayes: score:0.0000 Tokens: new, 6; hammy, 74; neutral, 16; spammy, 0.
	spammytokens: hammytokens:0.000-+--H*r:sk:coccia.,
	0.000-+--H*MI:coccia, 0.000-+--H*m:coccia, 0.000-+--H*r:submission,
	0.000-+--H*F:U*jmw
Return-path: <jmw@coccia.debian.org>
Received: from mitropoulos.debian.org ([2001:648:2ffc:deb:216:61ff:fe9d:958d]:60940)
	by buxtehude.debian.org with esmtps (TLS1.3:ECDHE_SECP256R1__RSA_PSS_RSAE_SHA256__AES_256_GCM:256)
	(Exim 4.96)
	(envelope-from <jmw@coccia.debian.org>)
	id 1xUhOG-00Drut-25
	for 1153932-done@bugs.debian.org;
	Sat, 21 Nov 2026 09:28:11 +0000
Received: via submission
	from C=NA,ST=NA,L=Ankh Morpork,O=Debian SMTP,OU=Debian SMTP CA,CN=coccia.debian.org,EMAIL=hostmaster@coccia.debian.org (verified)
	by mitropoulos.debian.org with esmtps (TLS1.3:ECDHE_SECP256R1__RSA_PSS_RSAE_SHA256__AES_256_GCM:256)
	(Exim 4.96)
	(envelope-from <jmw@coccia.debian.org>)
	id 1xUhO9-004ifM-0h
	for 1153932-done@bugs.debian.org;
	Sat, 21 Nov 2026 09:28:05 +0000
DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed;
	d=coccia.debian.org; s=smtpauto.coccia; h=Date:From:Message-Id:
	Content-Transfer-Encoding:Content-Type:MIME-Version:Subject:To:Reply-To:Cc:
	Content-ID:Content-Description:In-Reply-To:References;
	bh=j3C+QfqZhEAyGCz+F5Nny7uVPSJTnuL2JF6zBnHyDlM=; b=YnRISvylleLRk4jIDiVDegxLe4
	SiSKndbmmn42P9yxMALUNxQnRAVrvyLu5T//bktsgd2AtnW5YeHZchYIFzrC1beW8lODERvDKUb6e
	GUjWiADe68mIAinCSQx6P9jS/TEU2jO/hFkLgYEfGwENNaQteU1PqqChwewA+GGPZR5bpR5RgwDRc
	OgyF4EPQ2+ltgUthS7mwgyxdrqDcP8PhkmZvC8HPjgGH9yBP6+y8cpPQws618f0hBdq2ZxWjY60sU
	8+lgUXyf5OCnNe3oBPMaEGzQjA1Mt4eCXj7tLNJI9y50MY8mfaQebbf6JMDvdYvfCsA5Mv1tpT6/Y
	4Zm+7EPg==;
Received: from jmw by coccia.debian.org with local (Exim 4.98.2)
	(envelope-from <jmw@coccia.debian.org>)
	id 1xUhO7-00000008t2P-2qBr
	for 1153932-done@bugs.debian.org;
	Sat, 21 Nov 2026 09:28:03 +0000
To: 1153932-done@bugs.debian.org
Subject: Released in 13.8
MIME-Version: 1.0
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: 8bit
Message-Id: <E1xUhO7-00000008t2P-2qBr@coccia.debian.org>
From: Jonathan Wiltshire <jmw@coccia.debian.org>
Date: Sat, 21 Nov 2026 09:28:03 +0000
X-CrossAssassin-Score: 114

Version: 13.8

This update was released as part of 13.8.
------------=_1795253401-3309950-0--
Technical Details
Message-ID: <O1PTm-dfpW-243@gated-at.bofh.it>
Path: mbox-mo1.pugleaf.net!news-ams.pugleaf.net!srl.newsdeef.eu!newsfeed.bofh.team!usenet.goja.nl.eu.org!3.eu.feeder.erje.net!feeder.erje.net!newsfeed.pionier.net.pl!fu-berlin.de!bofh.it!news.nic.it!robomod
References: <O1PTm-dfpW-245@gated-at.bofh.it> <NZ4Yx-bGJ3-13@gated-at.bofh.it>

Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!news-ams.pugleaf.net!srl.newsdeef.eu!newsfeed.bofh.team!usenet.goja.nl.eu.org!3.eu.feeder.erje.net!feeder.erje.net!newsfeed.pionier.net.pl!fu-berlin.de!bofh.it!news.nic.it!robomod
From: "Debian Bug Tracking System" <owner@bugs.debian.org>
Newsgroups: linux.debian.devel.release
Subject: Bug#1153932: marked as done (trixie-pu: package postgresql-common/278+deb13u1)
Date: Sat, 21 Nov 2026 10:50:04 +0100
Message-ID: <O1PTm-dfpW-243@gated-at.bofh.it>
References: <O1PTm-dfpW-245@gated-at.bofh.it> <NZ4Yx-bGJ3-13@gated-at.bofh.it>
X-Mailbox-Line: From debian-release-request@lists.debian.org  Sat Nov 21 09:46:57 2026
Old-Return-Path: <debbugs@buxtehude.debian.org>
X-Amavis-Spam-Status: No, score=-2 tagged_above=-10000 required=5.3
 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1,
 RCVD_IN_DNSWL_NONE=-0.0001] autolearn=ham autolearn_force=no
MIME-Version: 1.0
X-Mailer: MIME-tools 5.510 (Entity 5.510)
X-Debian-Pr-Message: closed 1153932
X-Debian-Pr-Package: release.debian.org
X-Debian-Pr-Keywords: trixie
Reply-To: 1153932@bugs.debian.org
Content-Type: multipart/mixed; boundary="----------=_1795253401-3309950-0"
X-Mailing-List: <debian-release@lists.debian.org> archive/latest/189398
List-ID: <debian-release.lists.debian.org>
List-URL: <https://lists.debian.org/debian-release/>
List-Archive: https://lists.debian.org/msgid-search/handler.1153932.D1153932.17952532913306212.ackdone@bugs.debian.org
Approved: robomod@news.nic.it
Lines: 310
Organization: linux.* mail to news gateway
Sender: robomod@news.nic.it
X-Original-Date: Sat, 21 Nov 2026 09:30:01 +0000
X-Original-Message-ID: <handler.1153932.D1153932.17952532913306212.ackdone@bugs.debian.org>
X-Original-References: <E1xUhO7-00000008t2P-2qBr@coccia.debian.org>
 <avdhCj_ZiPcDxqCM@msg.df7cb.de>