Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 469654

Summary: dev-python/pypy-2.0_beta2 fails unconditionally with sqlite disabled
Product: Gentoo Linux Reporter: René 'Necoro' Neumann <gentoo>
Component: New packagesAssignee: Python Gentoo Team <python>
Status: RESOLVED FIXED    
Severity: normal CC: yac
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description René 'Necoro' Neumann 2013-05-13 06:46:11 UTC
When compiled with USE=-sqlite, dev-python-2.0_beta2 fails unconditionally. This is due to the following line in src_install:

use sqlite && runpython -c "import _sqlite3" || die "Failed to import _sqlite3"

The line should read:

use sqlite && { runpython -c "import _sqlite3" || die "Failed to import _sqlite3"; }

To see that this line is indeed wrong,
necoro@Zakarumiy ~ % bash
necoro@Zakarumiy ~ $ false && true || echo "dying"
dying
necoro@Zakarumiy ~ $ false && { true || echo "dying"; }
necoro@Zakarumiy ~ $
Comment 1 Mike Gilbert gentoo-dev 2013-05-13 18:19:21 UTC
Thanks for the report.

+  13 May 2013; Mike Gilbert <floppym@gentoo.org> pypy-2.0_beta2.ebuild:
+  Fix build with sqlite disabled, bug 469654 by René 'Necoro' Neumann.