Return-Path: Received: from mga07.intel.com (mga07.intel.com [134.134.136.100]) by mail.openembedded.org (Postfix) with ESMTP id C3C4F780AC for ; Mon, 29 May 2017 15:55:56 +0000 (UTC) Received: from orsmga002.jf.intel.com ([10.7.209.21]) by orsmga105.jf.intel.com with ESMTP; 29 May 2017 08:55:57 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.38,415,1491289200"; d="scan'208";a="93146968" Received: from kanavin-desktop.fi.intel.com (HELO [10.237.68.161]) ([10.237.68.161]) by orsmga002.jf.intel.com with ESMTP; 29 May 2017 08:55:56 -0700 To: Max Krummenacher References: <20170526203537.30721-1-max.krummenacher@toradex.com> From: Alexander Kanavin Message-ID: Date: Mon, 29 May 2017 18:54:06 +0300 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.8.0 MIME-Version: 1.0 In-Reply-To: Cc: "Purdie, Richard" , Max Krummenacher , OE-core Subject: Re: [PATCH v2] libsolv: don't pick up bundled db from host rpm X-BeenThere: openembedded-core@lists.openembedded.org X-Mailman-Version: 2.1.12 Precedence: list List-Id: Patches and discussions about the oe-core layer List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 29 May 2017 15:55:56 -0000 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit On 05/29/2017 04:06 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. > > Maybe to add to 'can it be fixed?' > > As I said, IMHO it is not broken, but > yes, one could pass an additional parameter to the compiler '-nostdinc'. > CHECK_INCLUDE_FILE(rpm/db.h HAVE_RPM_DB_H, "-nostdinc") > But this would break the intention of the test on the not '-native' > build as there > the rpm headers whould actually be found in the standard include directories. > So if OE ever would decide to change the rpm recipe to have an included db > this would not be picked up by the test in the not '-native' tests. I see. You are right here. I admit I don't fully understand if it's generally okay for -native recipes to look around in (and later use) host include directories like that, as we're striving towards reproducible builds, and this behavior is not supportive of them. Richard, can we have your say please? Alex