Your message dated Sun, 10 Aug 2014 11:00:17 +0000
with message-id <[email protected]>
and subject line Bug#725795: fixed in postgresql-debversion 1.0.7-4
has caused the Debian Bug report #725795,
regarding debversion should use pg_buildext to build for multiple PostgreSQL 
versions
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 [email protected]
immediately.)


-- 
725795: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=725795
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Source: postgresql-debversion
Version: 1.0.7-3
Severity: wishlist
Tags: patch

Hi,

the attached patch makes postgresql-debversion use pg_buildext to
dynamically build for the list of supported PostgreSQL versions.

I would like to properly have debversion on apt.postgresql supported
for all PostgreSQL versions (modulo 8.4 where it doesn't compile atm),
but this patch will also ease transitioning to new PostgreSQL versions
in unstable. (Moving to 9.3 is due as 9.1 will be removed shortly
there.)

Thanks for considering,
Christoph
-- 
[email protected] | http://www.df7cb.de/
diff --git a/debian/control b/debian/control
index 9873a85..2ac7e7e 100644
--- a/debian/control
+++ b/debian/control
@@ -3,14 +3,14 @@ Section: database
 Priority: extra
 Maintainer: Debian buildd-tools Developers <[email protected]>
 Uploaders: Michael Banck <[email protected]>, Roger Leigh <[email protected]>, Francesco Paolo Lovergine <[email protected]>
-Build-Depends: debhelper (>= 9), autotools-dev, libapt-pkg-dev, postgresql-server-dev-9.1, postgresql-server-dev-9.2
+Build-Depends: debhelper (>= 9), autotools-dev, libapt-pkg-dev, postgresql-server-dev-all
 Standards-Version: 3.9.3
 Vcs-Browser: http://git.debian.org/?p=buildd-tools/postgresql-debversion.git
 Vcs-Git: git://git.debian.org/git/buildd-tools/postgresql-debversion
 
-Package: postgresql-9.2-debversion
+Package: postgresql-9.3-debversion
 Architecture: any
-Depends: ${misc:Depends}, ${shlibs:Depends}, postgresql-9.2
+Depends: ${misc:Depends}, ${shlibs:Depends}, postgresql-9.3
 Description: Debian version number type for PostgreSQL
  Debian version numbers, used to version Debian binary and source
  packages, have a defined format, including specifications for how
@@ -34,28 +34,3 @@ Description: Debian version number type for PostgreSQL
   * Operator classes for btree and hash indexes
   * The aggregate functions min() and max()
 
-Package: postgresql-9.1-debversion
-Architecture: any
-Depends: ${misc:Depends}, ${shlibs:Depends}, postgresql-9.1
-Description: Debian version number type for PostgreSQL
- Debian version numbers, used to version Debian binary and source
- packages, have a defined format, including specifications for how
- versions should be compared in order to sort them.  This package
- implements a "debversion" type to represent Debian version numbers
- within the PostgreSQL database.  This also includes operators for
- version comparison and index operator classes for creating indexes on
- the debversion type.
- .
- Version comparison uses the algorithm used by the Debian package
- manager, dpkg, using the implementation from libapt-pkg.  This means
- that columns in tables using the debversion type may be sorted and
- compared correctly using the same logic as "dpkg --compare-versions".
- It is also possible to create indexes on these columns.
- .
- postgresql-debversion implements the following features:
- .
-  * The "debversion" type (internally derived from the "text" type)
-  * A full set of operators for version comparison (< <= = <> >= >)
-    including commutator and negator optimisation hints
-  * Operator classes for btree and hash indexes
-  * The aggregate functions min() and max()
diff --git a/debian/control.in b/debian/control.in
new file mode 100644
index 0000000..61d3d41
--- /dev/null
+++ b/debian/control.in
@@ -0,0 +1,35 @@
+Source: postgresql-debversion
+Section: database
+Priority: extra
+Maintainer: Debian buildd-tools Developers <[email protected]>
+Uploaders: Michael Banck <[email protected]>, Roger Leigh <[email protected]>, Francesco Paolo Lovergine <[email protected]>
+Build-Depends: debhelper (>= 9), autotools-dev, libapt-pkg-dev, postgresql-server-dev-all
+Standards-Version: 3.9.3
+Vcs-Browser: http://git.debian.org/?p=buildd-tools/postgresql-debversion.git
+Vcs-Git: git://git.debian.org/git/buildd-tools/postgresql-debversion
+
+Package: postgresql-PGVERSION-debversion
+Architecture: any
+Depends: ${misc:Depends}, ${shlibs:Depends}, postgresql-PGVERSION
+Description: Debian version number type for PostgreSQL
+ Debian version numbers, used to version Debian binary and source
+ packages, have a defined format, including specifications for how
+ versions should be compared in order to sort them.  This package
+ implements a "debversion" type to represent Debian version numbers
+ within the PostgreSQL database.  This also includes operators for
+ version comparison and index operator classes for creating indexes on
+ the debversion type.
+ .
+ Version comparison uses the algorithm used by the Debian package
+ manager, dpkg, using the implementation from libapt-pkg.  This means
+ that columns in tables using the debversion type may be sorted and
+ compared correctly using the same logic as "dpkg --compare-versions".
+ It is also possible to create indexes on these columns.
+ .
+ postgresql-debversion implements the following features:
+ .
+  * The "debversion" type (internally derived from the "text" type)
+  * A full set of operators for version comparison (< <= = <> >= >)
+    including commutator and negator optimisation hints
+  * Operator classes for btree and hash indexes
+  * The aggregate functions min() and max()
diff --git a/debian/pgversions b/debian/pgversions
new file mode 100644
index 0000000..69176fd
--- /dev/null
+++ b/debian/pgversions
@@ -0,0 +1,3 @@
+# 8.4 doesn't compile
+# we include 9.0 here even if it doesn't have extensions, the .sql file is still present in the packages
+9.0+
diff --git a/debian/postgresql-9.1-debversion.docs b/debian/postgresql-9.1-debversion.docs
deleted file mode 100644
index 8913f46..0000000
--- a/debian/postgresql-9.1-debversion.docs
+++ /dev/null
@@ -1,2 +0,0 @@
-NEWS
-README.md
diff --git a/debian/postgresql-9.1-debversion.install b/debian/postgresql-9.1-debversion.install
deleted file mode 100644
index e44b8f9..0000000
--- a/debian/postgresql-9.1-debversion.install
+++ /dev/null
@@ -1,2 +0,0 @@
-debian/install-9.1/usr/lib/postgresql/9.1/lib/debversion.so  usr/lib/postgresql/9.1/lib
-debian/install-9.1/usr/share/postgresql                      usr/share
diff --git a/debian/postgresql-9.2-debversion.docs b/debian/postgresql-9.2-debversion.docs
deleted file mode 100644
index 8913f46..0000000
--- a/debian/postgresql-9.2-debversion.docs
+++ /dev/null
@@ -1,2 +0,0 @@
-NEWS
-README.md
diff --git a/debian/postgresql-9.2-debversion.install b/debian/postgresql-9.2-debversion.install
deleted file mode 100644
index 4e2f545..0000000
--- a/debian/postgresql-9.2-debversion.install
+++ /dev/null
@@ -1,2 +0,0 @@
-debian/install-9.2/usr/lib/postgresql/9.2/lib/debversion.so  usr/lib/postgresql/9.2/lib
-debian/install-9.2/usr/share/postgresql                      usr/share
diff --git a/debian/rules b/debian/rules
index 9ad5cc7..c1409e8 100755
--- a/debian/rules
+++ b/debian/rules
@@ -1,5 +1,13 @@
 #!/usr/bin/make -f
 
+# Rebuild debian/control from debian/control.in
+SRCDIR = $(CURDIR)
+include /usr/share/postgresql-common/pgxs_debian_control.mk
+clean: debian/control
+.PHONY: debian/control
+
+SUPPORTED_VERSIONS = $(shell pg_buildext supported-versions)
+
 DH_OPTIONS = --with autotools_dev
 
 DH_INSTALL_FILES = $(basename $(wildcard debian/*.install.in))
@@ -8,35 +16,34 @@ DH_INSTALL_FILES = $(basename $(wildcard debian/*.install.in))
 %:
 	dh $@ $(DH_OPTIONS)
 
-override_dh_auto_configure: debian/build-9.1/config.status debian/build-9.2/config.status
-
-debian/build-9.1/config.status: configure
-	dh_auto_configure --builddirectory=debian/build-9.1 -- \
-	  --enable-extension \
-	  PG_CONFIG=/usr/lib/postgresql/9.1/bin/pg_config
-	dh_testdir
-
-debian/build-9.2/config.status: configure
-	dh_auto_configure --builddirectory=debian/build-9.2 -- \
-	  --enable-extension \
-	  PG_CONFIG=/usr/lib/postgresql/9.2/bin/pg_config
-	dh_testdir
+override_dh_auto_configure: configure
+	set -e; for v in $(SUPPORTED_VERSIONS); do \
+	  dh_auto_configure --builddirectory=debian/build-$$v -- \
+	    --enable-extension \
+	    PG_CONFIG=/usr/lib/postgresql/$$v/bin/pg_config; \
+	done
 
 override_dh_auto_build:
-	$(MAKE) -C debian/build-9.1 all
-	$(MAKE) -C debian/build-9.2 all
+	set -e; for v in $(SUPPORTED_VERSIONS); do \
+	  $(MAKE) -C debian/build-$$v all; \
+	done
 
 override_dh_auto_clean:
-	dh_auto_clean --builddirectory=debian/build-9.1
-	dh_auto_clean --builddirectory=debian/build-9.2
-	rm -rf debian/install-9.1
-	rm -rf debian/install-9.2
+	set -e; for v in $(SUPPORTED_VERSIONS); do \
+	  dh_auto_clean --builddirectory=debian/build-$$v; \
+	  rm -rf debian/install-$$v; \
+	done
 
 override_dh_auto_install:
-	$(MAKE) -C debian/build-9.1 DESTDIR=$(CURDIR)/debian/install-9.1 install
-	$(MAKE) -C debian/build-9.2 DESTDIR=$(CURDIR)/debian/install-9.2 install
+	set -e; for v in $(SUPPORTED_VERSIONS); do \
+	  $(MAKE) -C debian/build-$$v DESTDIR=$(CURDIR)/debian/postgresql-$$v-debversion install; \
+	  find $(CURDIR)/debian/postgresql-$$v-debversion -name \*.la | xargs -r rm; \
+	done
 
 override_dh_installchangelogs:
 	dh_installchangelogs ChangeLog
 
-.PHONY: override_dh_auto_configure override_dh_auto_clean override_dh_auto_build override_dh_auto_install override_dh_installchangelogs
+override_dh_installdocs:
+	dh_installdocs --all NEWS README.md
+
+.PHONY: override_dh_auto_configure override_dh_auto_clean override_dh_auto_build override_dh_auto_install override_dh_installchangelogs override_dh_installdocs

Attachment: signature.asc
Description: Digital signature


--- End Message ---
--- Begin Message ---
Source: postgresql-debversion
Source-Version: 1.0.7-4

We believe that the bug you reported is fixed in the latest version of
postgresql-debversion, which is due to be installed in the Debian FTP archive.

A summary of the changes between this version and the previous one is
attached.

Thank you for reporting the bug, which will now be closed.  If you
have further comments please address them to [email protected],
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Roger Leigh <[email protected]> (supplier of updated postgresql-debversion 
package)

(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing [email protected])


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512

Format: 1.8
Date: Sat, 09 Aug 2014 21:34:41 +0100
Source: postgresql-debversion
Binary: postgresql-9.4-debversion
Architecture: source amd64
Version: 1.0.7-4
Distribution: unstable
Urgency: low
Maintainer: Debian buildd-tools Developers 
<[email protected]>
Changed-By: Roger Leigh <[email protected]>
Description:
 postgresql-9.4-debversion - Debian version number type for PostgreSQL
Closes: 725795 732925 757335
Changes:
 postgresql-debversion (1.0.7-4) unstable; urgency=low
 .
   * debian/rules, debian/control.in:
     - Build for multiple PostgreSQL versions using
       postgresql-server-dev-all (Closes: #725795).  Thanks to
       Christoph Berg for this patch.
     - Upgrade to Standards-Version 3.9.3 (no changes).
     - Use dh-autoreconf (Closes: #732925).  Thanks to Logan Rosen
       for this patch.
   * Drop support for postgresql 9.3, replaced by support for 9.4
     (Closes: #757335).
Checksums-Sha1:
 8c060afd77b1772f8ea402eb4ca52316f9b0b2f2 2119 postgresql-debversion_1.0.7-4.dsc
 e98b61556b7ccaa8ee377260f5e05cdcf7153a1c 2511 
postgresql-debversion_1.0.7-4.diff.gz
 61b9ebd33e3a237aae8315fa7e66b70d737fabc4 14058 
postgresql-9.4-debversion_1.0.7-4_amd64.deb
Checksums-Sha256:
 aa59a50ff35927c0c135a86717bfc79c86e1394317fecd77b960fedd175b5ac7 2119 
postgresql-debversion_1.0.7-4.dsc
 af60e096ddc129748e78aca4bf8641e9de7aed56fc14fe03fc40492f13ad7844 2511 
postgresql-debversion_1.0.7-4.diff.gz
 3b021d826a1802686192a61246f6b4f6c77b9d1e5153647899b8ffc90bc0f189 14058 
postgresql-9.4-debversion_1.0.7-4_amd64.deb
Files:
 ce91222e989af80884b4c54213bbed7a 14058 database extra 
postgresql-9.4-debversion_1.0.7-4_amd64.deb
 2149748851471601c73838c550527ad4 2119 database extra 
postgresql-debversion_1.0.7-4.dsc
 9cd64d3a69ceaab9637ad2036a031daf 2511 database extra 
postgresql-debversion_1.0.7-4.diff.gz

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1

iQIcBAEBCgAGBQJT5pQbAAoJEOJSSsUKn1xZ7X8P/0pQAkYAU0z5TOUCp9zCKTU0
uKBuUYINRzXUvrWt2eleLSIF04csx/Gt9v0LPOEZCKTrAk2wpI8aB0LGgt2Kz6Pq
ebfTrcAgIDZknYdbWYpxnV2QzmBc0cwM8/d/XdIt9uQ/QcxDSNxuFXuBJfWE4T0V
+BF2SfRzCpfT4gVWsELbmif4x59ipZIUr2DppGqzqr5sxvolWe7r6k+76aLmdFc2
CDwF3THfScmW022ylKQDBAtu1wL61JsXsfC8HWX0/JOwuMBQeBuAAmt481wePh4W
oCp9UPSGrrFQ/FlaoOu6ax6YEMC0eicaoHtdfHXwpzIWGLHsbvqtAcLoyotScWqa
dyaJvKi9uwfPmQ+Owji8enlgzky9dgpz75PU5td0hI2NAj001Psrz5jPy0UcanA0
6Kv+hB6BcO3w2QbGI7oji4zHFyAf2Jwqf9P7uhYDH7EZfqVWR5fm2b6SKqfGSRrF
ATtfoulPcBDQBYJbUX/6sb2n9Gp4po/SkHsYlSHkwQEXudsi3npgAwXPpYCg6IXA
lmou4pf9UifLo1cBYjAPj+RVqgsd0tSIaClEahocFMF/CMmHZpP0jj8D3BIrkXp3
tPtqt+cH3XftQ1eDgMj03SUjteJsDDuqa2eqmpPHP4CEflRwL/ohzeszxu7rvmnv
vFM5PRt4h/KzlRUWA4g1
=3pNT
-----END PGP SIGNATURE-----

--- End Message ---

Reply via email to