python-db/python-db.patch

Mon, 28 Mar 2011 19:41:02 +0200

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Mon, 28 Mar 2011 19:41:02 +0200
changeset 332
2289d64c2123
parent 313
fc0449ec63bb
permissions
-rw-r--r--

Completely rework package including...
Simpify 64-bit -fPIC logic, instruct make to build in parallel,
force error condition on failed profile dependency, build the
standard 'bootstrap' target as suggested, correct grammar, wording,
and punctuation in general, upgrade to latest upstream vendor version,
rearrange package dependencies mpc, mpfr, and gmp, correct buildconf
thanks to new lto-plugin forced, avoid failed platform specific stage
comparison, adjust patch code to reflect new version update, and most
importantly adjust optimization flags to platform. Please note that
block 'correct hardcoded paths' is likely no yet complete.

michael@314 1 Index: psycopg2-2.4/psycopg/config.h
michael@314 2 diff -Nau psycopg2-2.4psycopg/config.h.orig/ psycopg2-2.4/psycopg/config.h
michael@314 3 --- psycopg2-2.4/psycopg/config.h.orig 2011-02-27 12:44:55.000000000 +0100
michael@314 4 +++ psycopg2-2.4/psycopg/config.h 2011-03-22 19:19:11.648184363 +0100
michael@314 5 @@ -141,10 +141,11 @@
michael@313 6
michael@313 7 #if (defined(__FreeBSD__) && __FreeBSD_version < 503000) || (defined(_WIN32) && !defined(__GNUC__)) || defined(__sun__) || defined(sun)
michael@313 8 /* what's this, we have no round function either? */
michael@313 9 -static double round(double num)
michael@313 10 +static double my_round(double num)
michael@313 11 {
michael@313 12 return (num >= 0) ? floor(num + 0.5) : ceil(num - 0.5);
michael@313 13 }
michael@313 14 +#define round(num) my_round(num)
michael@313 15 #endif
michael@313 16
michael@313 17 /* postgresql < 7.4 does not have PQfreemem */
michael@314 18 Index: psycopg2-2.4/setup.py
michael@314 19 diff -Nau psycopg2-2.4/setup.py.orig/ psycopg2-2.4/setup.py
michael@314 20 --- psycopg2-2.4/setup.py.orig 2011-02-27 12:46:47.000000000 +0100
michael@314 21 +++ psycopg2-2.4/setup.py 2011-03-22 19:36:51.906859031 +0100
michael@314 22 @@ -269,6 +269,9 @@
michael@313 23 os.path.join(self.get_pg_config("libdir"), "libpq.a"))
michael@313 24 else:
michael@313 25 self.libraries.append("pq")
michael@313 26 + self.libraries.append("ssl")
michael@313 27 + self.libraries.append("crypto")
michael@313 28 + self.libraries.append("crypt")
michael@313 29
michael@313 30 try:
michael@313 31 self.library_dirs.append(self.get_pg_config("libdir"))

mercurial