# HG changeset patch # User Jan Nieuwenhuizen # Date 1346075193 -7200 # Node ID a82f41987a164377ec489c53f665f26aac8d86c1 # Parent 13f63473dac4ddb004fd4497b2dba66bd1def762 Revert "tools::python: explicitly set flags for building dbm module" This reverts commit aa457a0bd04f15a53e35827b6478127171877030. The real fix is teaching setup.py about cross compilation. diff -r 13f63473dac4 -r a82f41987a16 gub/specs/python.py --- a/gub/specs/python.py Mon Aug 27 12:16:16 2012 +0200 +++ b/gub/specs/python.py Mon Aug 27 15:46:33 2012 +0200 @@ -182,7 +182,6 @@ 'python-2.4.5-regen.patch', 'python-2.4.5-gcc-R.patch', 'python-2.4.5-Setup-crypt.patch', - 'python-2.4.5-Setup-dbm.patch', ] dependencies = [ 'autoconf', @@ -191,6 +190,6 @@ ] force_autoupdate = True parallel_build_broken = True - make_flags = Python.make_flags + ' LIBC="-lcrypt -ldb"' + make_flags = Python.make_flags + ' LIBC=-lcrypt' def patch (self): Python.patch (self) diff -r 13f63473dac4 -r a82f41987a16 patches/python-2.4.5-Setup-dbm.patch --- a/patches/python-2.4.5-Setup-dbm.patch Mon Aug 27 12:16:16 2012 +0200 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,11 +0,0 @@ ---- python-2.4.5/Modules/Setup.dist~ 2012-08-26 17:54:57.188647513 +0200 -+++ python-2.4.5/Modules/Setup.dist 2012-08-26 18:10:03.592290524 +0200 -@@ -377,7 +377,7 @@ - # - # First, look at Setup.config; configure may have set this for you. - --#dbm dbmmodule.c # dbm(3) may require -lndbm or similar -+dbm dbmmodule.c -DHAVE_BERKDB_H -DDB_DBM_HSEARCH -ldb # dbm(3) may require -lndbm or similar - - # Anthony Baxter's gdbm module. GNU dbm(3) will require -lgdbm: - #