Skip to contentSkip to conversation

python2: Fix disabling module bsddb

PATCH New Bernd Kuhls 2 participants 2 messages May 21, 2014 – May 26, 2014

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 python2: Fix disabling module bsddb

Using this minimal defconfig

BR2_TOOLCHAIN_EXTERNAL=y
BR2_PACKAGE_PYTHON=y
BR2_PACKAGE_BERKELEYDB=y

the current code does not prevent the build of

output/build/python-2.7.6/Modules/_bsddb.o

because the module is really called _bsddb,
see python-2.7.6/Modules/_bsddb.c, line 9604.

---
 package/python/python-110-optional-db.patch |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
package/python/python-110-optional-db.patch +1 -1
index ea756da..a3e5fe8 100644
@@ -70,7 +70,7 @@ Index: b/configure.ac
 +	AS_HELP_STRING([--disable-bsddb], [disable BerkeyleyDB]),
 +	[ if test "$enableval" = "no"; then
 +    	     BSDDB=no
-+    	     DISABLED_EXTENSIONS="${DISABLED_EXTENSIONS} bsddb"
++    	     DISABLED_EXTENSIONS="${DISABLED_EXTENSIONS} _bsddb"
 +  	  else
 +	     BSDDB=yes
 +  	  fi], [ BSDDB=yes ])
Signature · 1 line
1.7.10.4
#1 lore raw

PATCH 1/1 python2: Fix disabling module bsddb

Quoted 7 lines
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

"Bernd" == Bernd Kuhls <[email protected]> writes:

Using this minimal defconfig
BR2_TOOLCHAIN_EXTERNAL=y
BR2_PACKAGE_PYTHON=y
BR2_PACKAGE_BERKELEYDB=y

Quoted 8 lines

the current code does not prevent the build of

output/build/python-2.7.6/Modules/_bsddb.o

because the module is really called _bsddb,
see python-2.7.6/Modules/_bsddb.c, line 9604.

Committed, thanks.

Signature · 1 line
Bye, Peter Korsgaard