[pg_comparator] 09/12: Add patch to create extension control file.

Bas Couwenberg sebastic at debian.org
Fri Jul 7 09:12:01 UTC 2017


This is an automated email from the git hooks/post-receive script.

sebastic pushed a commit to branch master
in repository pg_comparator.

commit aed8d4ad17a2e3e8b6f746a80f994a2a53ffc43e
Author: Bas Couwenberg <sebastic at xs4all.nl>
Date:   Fri Jul 7 10:43:23 2017 +0200

    Add patch to create extension control file.
---
 debian/changelog                       |  1 +
 debian/patches/extension-control.patch | 41 ++++++++++++++++++++++++++++++++++
 debian/patches/series                  |  1 +
 3 files changed, 43 insertions(+)

diff --git a/debian/changelog b/debian/changelog
index 6672bfa..fe0be5e 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -7,6 +7,7 @@ pg-comparator (2.3.0-1) UNRELEASED; urgency=medium
   * Refresh patches.
   * Update copyright years for Fabien Coelho.
   * Add patch to not remove pg_comparator script in clean target.
+  * Add patch to create extension control file.
 
  -- Bas Couwenberg <sebastic at debian.org>  Fri, 07 Jul 2017 09:22:36 +0200
 
diff --git a/debian/patches/extension-control.patch b/debian/patches/extension-control.patch
new file mode 100644
index 0000000..edf9487
--- /dev/null
+++ b/debian/patches/extension-control.patch
@@ -0,0 +1,41 @@
+Description: Add extension control file.
+ Fixes build failure:
+  make[1]: *** No rule to make target 'pgcmp.control', needed by 'all'.  Stop.
+Author: Bas Couwenberg <sebastic at debian.org>
+
+--- /dev/null
++++ b/pgcmp.control.in
+@@ -0,0 +1,3 @@
++# pg_comparator extension
++comment = 'pg_comparator extension'
++default_version = @EXTVERSION@
+--- a/Makefile
++++ b/Makefile
+@@ -6,13 +6,15 @@
+ 
+ name		= pg_comparator
+ 
++EXTVERSION      = 3.0
++
+ EXTENSION	= pgcmp
+ SCRIPTS		= $(name)
+ MODULES		= $(EXTENSION)
+-DATA		= pgcmp--3.0.sql
++DATA		= $(EXTENSION)--$(EXTVERSION).sql
+ DOCS		= README.$(name)
+ 
+-EXTRA_CLEAN	= $(name).1 $(name).html pod2htm?.tmp
++EXTRA_CLEAN	= $(name).1 $(name).html pod2htm?.tmp $(EXTENSION).control
+ 
+ # get postgresql extension infrastructure
+ PG_CONFIG	= pg_config
+@@ -35,6 +37,9 @@ pgcmp.o: jenkins.c fnv.c
+ pgsql_install: install
+ pgsql_uninstall: uninstall
+ 
++$(EXTENSION).control: $(EXTENSION).control.in
++	sed -e 's/@EXTVERSION@/$(EXTVERSION)/g' $< > $@
++
+ #
+ # MySQL stuff
+ #
diff --git a/debian/patches/series b/debian/patches/series
index 79757f4..c68d963 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -3,3 +3,4 @@ against-typo.patch
 below-typo.patch
 minimum-typo.patch
 make-clean.patch
+extension-control.patch

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-grass/pg_comparator.git



More information about the Pkg-grass-devel mailing list