Package: postgresql-prioritize
Version: 1.0.4-1
Severity: grave
User: pkg-postgresql-pub...@lists.alioth.debian.org
Usertag: migration-94

Hi,

postgresql-prioritize ships a 9.1 extension. With the move to
postgresql-9.4, the package needs to be recompiled to produce the new
module. I'm attaching a short diff that at least makes the package
depend on the proper server version.

Ideally, the package would not just build one module, but for all
currently supported by /usr/share/postgresql-common/supported-versions.
The file debian/pgversions isn't used at all now. (I'm updating it
anyway to "all", and also bumping the postgresql-server-dev-all
version to support this value; see pg_buildext(1).)

Mit freundlichen Grüßen,
Christoph Berg
-- 
Senior Berater, Tel.: +49 (0)21 61 / 46 43-187
credativ GmbH, HRB Mönchengladbach 12080, USt-ID-Nummer: DE204566209
Hohenzollernstr. 133, 41061 Mönchengladbach
Geschäftsführung: Dr. Michael Meskes, Jörg Folz, Sascha Heuer
pgp fingerprint: 5C48 FE61 57F4 9179 5970  87C6 4C5A 6BAB 12D2 A7AE
Control files: lines which differ (wdiff format)
------------------------------------------------
Build-Depends: debhelper (>= 8.0.0), postgresql-server-dev-all {+(>= 148~)+}
Depends: ${shlibs:Depends}, [-${misc:Depends}-] {+${misc:Depends}, postgresql-${postgresql:Version}+}

diff -Nru postgresql-prioritize-1.0.4/debian/changelog postgresql-prioritize-1.0.4/debian/changelog
--- postgresql-prioritize-1.0.4/debian/changelog	2014-08-11 12:23:37.000000000 +0200
+++ postgresql-prioritize-1.0.4/debian/changelog	2014-08-11 12:23:37.000000000 +0200
@@ -1,3 +1,10 @@
+postgresql-prioritize (1.0.4-1.1) unstable; urgency=medium
+
+  * Rebuild for postgresql-9.4.
+  * Set explicit dependency on postgresql version supported.
+
+ -- Christoph Berg <christoph.b...@credativ.de>  Mon, 11 Aug 2014 12:16:49 +0200
+
 postgresql-prioritize (1.0.4-1) unstable; urgency=low
 
   * New upstream release (Closes: #706560).
diff -Nru postgresql-prioritize-1.0.4/debian/control postgresql-prioritize-1.0.4/debian/control
--- postgresql-prioritize-1.0.4/debian/control	2014-08-11 12:23:37.000000000 +0200
+++ postgresql-prioritize-1.0.4/debian/control	2014-08-11 12:23:37.000000000 +0200
@@ -3,13 +3,13 @@
 Priority: optional
 Maintainer: Cyril Bouthors <c...@debian.org>
 Uploaders: Cyril Bouthors <cy...@bouthors.org>
-Build-Depends: debhelper (>= 8.0.0), postgresql-server-dev-all
+Build-Depends: debhelper (>= 8.0.0), postgresql-server-dev-all (>= 148~)
 Standards-Version: 3.9.3
 Homepage: http://pgxn.org/dist/prioritize/
 
 Package: postgresql-prioritize
 Architecture: any
-Depends: ${shlibs:Depends}, ${misc:Depends}
+Depends: ${shlibs:Depends}, ${misc:Depends}, postgresql-${postgresql:Version}
 Description: Get and set the nice priorities of PostgreSQL backends
  This module implements an interface to getpriority() and setpriority() for
  PostgreSQL backends, callable from SQL functions. Essentially, this module
diff -Nru postgresql-prioritize-1.0.4/debian/pgversions postgresql-prioritize-1.0.4/debian/pgversions
--- postgresql-prioritize-1.0.4/debian/pgversions	2014-08-11 12:23:37.000000000 +0200
+++ postgresql-prioritize-1.0.4/debian/pgversions	2014-08-11 12:23:37.000000000 +0200
@@ -1,4 +1 @@
-8.4
-9.0
-9.1
-9.2
+all
diff -Nru postgresql-prioritize-1.0.4/debian/rules postgresql-prioritize-1.0.4/debian/rules
--- postgresql-prioritize-1.0.4/debian/rules	2014-08-11 12:23:37.000000000 +0200
+++ postgresql-prioritize-1.0.4/debian/rules	2014-08-11 12:23:37.000000000 +0200
@@ -1,5 +1,10 @@
 #!/usr/bin/make -f
 # -*- makefile -*-
 
+PGVERSION=$(shell pg_config --version | sed -e 's/PostgreSQL \([0-9.]\+\).*/\1/')
+
+override_dh_gencontrol:
+	dh_gencontrol -- -Vpostgresql:Version=$(PGVERSION)
+
 %:
 	dh $@

Attachment: signature.asc
Description: Digital signature

Reply via email to