summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--meta-openstack/recipes-devtools/python/python-psycopg2/quick-fix.patch17
-rw-r--r--meta-openstack/recipes-devtools/python/python-psycopg2_2.5.bb19
2 files changed, 36 insertions, 0 deletions
diff --git a/meta-openstack/recipes-devtools/python/python-psycopg2/quick-fix.patch b/meta-openstack/recipes-devtools/python/python-psycopg2/quick-fix.patch
new file mode 100644
index 0000000..0fa6e5e
--- /dev/null
+++ b/meta-openstack/recipes-devtools/python/python-psycopg2/quick-fix.patch
@@ -0,0 +1,17 @@
1Index: psycopg2-2.5/setup.py
2===================================================================
3--- psycopg2-2.5.orig/setup.py
4+++ psycopg2-2.5/setup.py
5@@ -377,9 +377,9 @@ class psycopg_build_ext(build_ext):
6 self.libraries.append("pq")
7
8 try:
9- self.library_dirs.append(pg_config_helper.query("libdir"))
10- self.include_dirs.append(pg_config_helper.query("includedir"))
11- self.include_dirs.append(pg_config_helper.query("includedir-server"))
12+ #self.library_dirs.append(pg_config_helper.query("libdir"))
13+ #self.include_dirs.append(pg_config_helper.query("includedir"))
14+ #self.include_dirs.append(pg_config_helper.query("includedir-server"))
15 try:
16 # Here we take a conservative approach: we suppose that
17 # *at least* PostgreSQL 7.4 is available (this is the only
diff --git a/meta-openstack/recipes-devtools/python/python-psycopg2_2.5.bb b/meta-openstack/recipes-devtools/python/python-psycopg2_2.5.bb
new file mode 100644
index 0000000..5206ae0
--- /dev/null
+++ b/meta-openstack/recipes-devtools/python/python-psycopg2_2.5.bb
@@ -0,0 +1,19 @@
1DESCRIPTION = "Python-PostgreSQL Database Adapter"
2HOMEPAGE = "http://initd.org/psycopg/"
3SECTION = "devel/python"
4LICENSE = "GPLv2"
5LIC_FILES_CHKSUM = "file://LICENSE;md5=2c9872d13fa571e7ba6de95055da1fe2"
6DEPENDS = "postgresql"
7
8PR = "r0"
9SRCNAME = "psycopg2"
10
11SRC_URI = "https://pypi.python.org/packages/source/p/${SRCNAME}/${SRCNAME}-${PV}.tar.gz \
12 file://quick-fix.patch"
13
14SRC_URI[md5sum] = "facd82faa067e99b80146a0ee2f842f6"
15SRC_URI[sha256sum] = "6b2f0cc9199de9eaa53ba10ff69b2741e73484b24657e69bdae259561c23bde4"
16
17S = "${WORKDIR}/${SRCNAME}-${PV}"
18
19inherit distutils