summaryrefslogtreecommitdiffstats
path: root/meta-openstack/recipes-devtools/python/python-psycopg2/remove-pg-config.patch
diff options
context:
space:
mode:
Diffstat (limited to 'meta-openstack/recipes-devtools/python/python-psycopg2/remove-pg-config.patch')
-rw-r--r--meta-openstack/recipes-devtools/python/python-psycopg2/remove-pg-config.patch20
1 files changed, 20 insertions, 0 deletions
diff --git a/meta-openstack/recipes-devtools/python/python-psycopg2/remove-pg-config.patch b/meta-openstack/recipes-devtools/python/python-psycopg2/remove-pg-config.patch
new file mode 100644
index 0000000..104d692
--- /dev/null
+++ b/meta-openstack/recipes-devtools/python/python-psycopg2/remove-pg-config.patch
@@ -0,0 +1,20 @@
1Upstream-status: Inappropriate [embedded specific]
2
3The package uses the pg_config command to detect the libdir and includedir path.
4Commented the lines because the command is not available at buildtime and the
5package succesfully build without them.
6
7Index: psycopg2-2.5/setup.py
8===================================================================
9--- psycopg2-2.5.orig/setup.py
10+++ psycopg2-2.5/setup.py
11@@ -377,9 +377,6 @@ class psycopg_build_ext(build_ext):
12 self.libraries.append("pq")
13
14 try:
15- self.library_dirs.append(pg_config_helper.query("libdir"))
16- self.include_dirs.append(pg_config_helper.query("includedir"))
17- self.include_dirs.append(pg_config_helper.query("includedir-server"))
18 try:
19 # Here we take a conservative approach: we suppose that
20 # *at least* PostgreSQL 7.4 is available (this is the only