Hide Forgot
Description of problem: After new gdbm-1.9.1 will land in Fedora Rawhide, python won't be able to build with this new version support, if some changes bellow aren't applied. Version-Release number of selected component (if applicable): python-2.7.2-11 How reproducible: every-time Steps to Reproduce: 1. try to build python with gdbm-1.9.x support Actual results: test-suite fails during python build, so build fails Expected results: test-suite ends successfully so as build Additional info: I'll provide some more info and proposed patches in comments.
Created attachment 525575 [details] proposed patch to use dbmliborder explicitly We need to define "--with-dbmliborder" explicitly, since it's default value is "ndbm:gdbm:bdb". On the other hand, gdbm is used now, even if the order is by default set to "ndbm:gdbm:bdb". It is so because ndbm.h is not found in /usr/include/ndbm.h, but it is located in /usr/include/gdbm/ndbm.h instead in gdbm-1.8.3. In new gdbm-1.9.1 paths to header files are used the same as in upstream -- in /usr/include/ directly (e.g. /usr/include/ndbm.h). So, if we pass "gdbm:ndbm:bdb" explicitly, we will get the same result as the present (a bit broken) solution provides.
Created attachment 525582 [details] proposed patch for new magic values Since gdbm-1.9.1 uses two new magic values to distinguish format of db file, this should be reflected in whichdb test-suite.
(In reply to comment #2) > Created attachment 525582 [details] > proposed patch for new magic values (this is in the upstream bug tracker as: http://bugs.python.org/issue13007 )
Building python-2.7.2-16.fc17 for dist-rawhide Task info: http://koji.fedoraproject.org/koji/taskinfo?taskID=3394493 Building python3-3.2.2-7.fc17 for dist-rawhide Task info: http://koji.fedoraproject.org/koji/taskinfo?taskID=3394565