[OE-core] image build with python fails due to missing berkeley db 5.3

Lewis, Nick nick.lewis at usa.g4s.com
Mon Aug 18 14:50:19 UTC 2014


>> My image build on yocto master fails reporting that python-bsddb
>> cannot be installed as no package provides libdb-5.3.so. On
>> examination it is evident that the "bitbake db" command builds
>> BerkeleyDB 6.0 instead of 5.3

> PREFERRED_VERSION_db = "5.3.28"

Thanks Martin - is there also a version specific variant of RDEPENDS that can be added to python-bsddb to get this working without manual intervention?

>> As an experiment I added "#define HAVE_CXX_STDHEADERS" to the top of
>> this file (I guess I should have made a patch or passed it from the
>> recipe). The db_5.3.28.bb recipe then built okay and the image build
>> stopped complaining about missing libdb-5.3 when installing
>> python-bsddb

> I had similar issue with db-4.8* and zeroc-ice, HAVE_CXX_STDHEADERS is defined by default, when db recipes passes --enable-cxx, then <iostream> is included instead of iostream.h and zeroc-ice builds ok.

I see that recipe-support/db/db_5.3.28.bb already has --enable-cxx so I am a bit confused why it failed

>> Does anyone else have this issue? Should python-bsddb be using BerkeleyDB 6.0 now?

It seems unfortunate that python-bsddb needs libdb 5.3 when everything else in the master is using 6.0. What would need to change in the recipes-devtools/python/python/python-2.7.3-berkeley-db-5.3.patch to get it to work with libdb 6.0?

Nick


The details of this company are as follows:
G4S Technology Limited, Registered Office: Challenge House, International Drive, Tewkesbury, Gloucestershire GL20 8UQ, Registered in England No. 2382338.

This communication may contain information which is confidential, personal and/or privileged.

It is for the exclusive use of the intended recipient(s).
If you are not the intended recipient(s), please note that any distribution, forwarding, copying or use of this communication or the information in it is strictly prohibited.

Any personal views expressed in this e-mail are those of the individual sender and the company does not endorse or accept responsibility for them.

Prior to taking any action based upon this e-mail message, you should seek appropriate confirmation of its authenticity.

This e-mail has been scanned for all viruses by MessageLabs.



More information about the Openembedded-core mailing list