[Pkg-postgresql-public] bug #305200: use pg_wrapper for pg_config

Stefan Huehner stefan@huehner.org
Fri, 6 May 2005 16:28:15 +0200


--LZvS9be/3tNcYl/X
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline

Hi,

pg_config locates the different directories relatively to the binary
dir. Installing pg_config in /usr/lib/postgresql/8.0/bin solves the
--pgxs bug and resolves the libdir correctly. The attached patches 
modify packaging to use pg_wrapper also for the pg_config binary.

Should the 7.4 packages now also ship the pg_config binary? If so this
one should automatically resolve the correct directories.

Regards,
Stefan Huehner


--LZvS9be/3tNcYl/X
Content-Type: text/plain; charset=us-ascii
Content-Disposition: attachment; filename="postgresql-8.0-pg_wrapper.patch"

diff -ur orig/postgresql-8.0-8.0.2/debian/libpq-dev.install deb/postgresql-8.0-8.0.2/debian/libpq-dev.install
--- orig/postgresql-8.0-8.0.2/debian/libpq-dev.install	2005-05-06 15:49:11.000000000 +0200
+++ deb/postgresql-8.0-8.0.2/debian/libpq-dev.install	2005-05-06 15:00:12.000000000 +0200
@@ -6,6 +6,6 @@
 usr/lib/postgresql/8.0/lib/libpgport.a /usr/lib/
 usr/lib/postgresql/8.0/lib/libpq.a /usr/lib
 usr/lib/postgresql/8.0/lib/libpq.so /usr/lib/
-usr/lib/postgresql/8.0/bin/pg_config usr/bin
+usr/lib/postgresql/8.0/bin/pg_config
 usr/share/postgresql/8.0/man/man1/pg_config.1
 usr/share/locale/*/LC_MESSAGES/pg_config-8.0.mo

--LZvS9be/3tNcYl/X
Content-Type: text/plain; charset=us-ascii
Content-Disposition: attachment; filename="postgresql-common-pg_wrapper.patch"

diff -ur orig/postgresql-common-7/debian/postgresql-common.links deb/postgresql-common-7.1/debian/postgresql-common.links
--- orig/postgresql-common-7/debian/postgresql-common.links	2005-02-20 23:54:08.000000000 +0100
+++ deb/postgresql-common-7.1/debian/postgresql-common.links	2005-05-06 15:02:39.000000000 +0200
@@ -11,3 +11,4 @@
 usr/share/postgresql-common/pg_wrapper usr/bin/psql
 usr/share/postgresql-common/pg_wrapper usr/bin/vacuumdb
 usr/share/postgresql-common/pg_wrapper usr/bin/vacuumlo
+usr/share/postgresql-common/pg_wrapper usr/bin/pg_config
diff -ur orig/postgresql-common-7/pg_wrapper deb/postgresql-common-7.1/pg_wrapper
--- orig/postgresql-common-7/pg_wrapper	2005-04-06 22:03:26.000000000 +0200
+++ deb/postgresql-common-7.1/pg_wrapper	2005-05-06 15:45:27.000000000 +0200
@@ -9,7 +9,7 @@
 use PgCommon;
 
 @commands = qw/clusterdb createdb createlang createuser dropdb droplang dropuser pg_dump
-    pg_dumpall pg_restore psql vacuumdb vacuumlo/;
+    pg_dumpall pg_restore psql vacuumdb vacuumlo pg_config/;
 
 $cmd = (split '/', $0)[-1];
 grep { $cmd eq $_ } @commands or die "pg_wrapper: invalid command name $cmd";

--LZvS9be/3tNcYl/X--