[OE-core] [PATCH v2] libsolv: don't pick up bundled db from host rpm
Max Krummenacher
max.oss.09 at gmail.com
Mon May 29 13:00:16 UTC 2017
2017-05-29 12:50 GMT+02:00 Alexander Kanavin
<alexander.kanavin at linux.intel.com>:
> On 05/26/2017 11:35 PM, Max Krummenacher wrote:
>>
>> +- # check if rpm contains a bundled berkeley db
>> +- CHECK_INCLUDE_FILE(rpm/db.h HAVE_RPM_DB_H)
>> ++ set(HAVE_RPM_DB_H 0)
>
>
> Have you looked into what CHECK_INCLUDE_FILE does, and whether it can be
> fixed? I'd like to hear about your findings.
Yes, I did.
I creates a c file and tries to compile it with the CFLAGS specified
in CMaketext.
<<<<<<<<
#include "rpm/db.h"
int main () {
return 0;
}
>>>>>>>>
As we're talking about libsolv-native here it uses the build host's
gcc which has the standard include directory
/usr/include and thus finds a /usr/include/rpm/db.h
And again, I do not think that it is an error to find/use headers from
the build host's /usr/include for a *-native
build.
Max
More information about the Openembedded-core
mailing list