All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] cmake.bbclass: Don't use packages from the native build machine
@ 2013-08-14  8:47 Stefan Herbrechtsmeier
  2013-08-14 12:05 ` Lukas Bulwahn
  0 siblings, 1 reply; 3+ messages in thread
From: Stefan Herbrechtsmeier @ 2013-08-14  8:47 UTC (permalink / raw)
  To: openembedded-core

Signed-off-by: Stefan Herbrechtsmeier <stefan@herbrechtsmeier.net>
---
 meta/classes/cmake.bbclass |    1 +
 1 file changed, 1 insertion(+)

diff --git a/meta/classes/cmake.bbclass b/meta/classes/cmake.bbclass
index 310242e..8e579a7 100644
--- a/meta/classes/cmake.bbclass
+++ b/meta/classes/cmake.bbclass
@@ -49,6 +49,7 @@ set( CMAKE_CXX_LINK_FLAGS "${OECMAKE_CXX_LINK_FLAGS}" CACHE STRING "LDFLAGS" )
 # only search in the paths provided so cmake doesnt pick
 # up libraries and tools from the native build machine
 set( CMAKE_FIND_ROOT_PATH ${STAGING_DIR_HOST} ${STAGING_DIR_NATIVE} ${CROSS_DIR} ${OECMAKE_PERLNATIVE_DIR} ${OECMAKE_EXTRA_ROOT_PATH} ${EXTERNAL_TOOLCHAIN})
+set( CMAKE_FIND_ROOT_PATH_MODE_PACKAGE ONLY )
 set( CMAKE_FIND_ROOT_PATH_MODE_PROGRAM ONLY )
 set( CMAKE_FIND_ROOT_PATH_MODE_LIBRARY ONLY )
 set( CMAKE_FIND_ROOT_PATH_MODE_INCLUDE ONLY )
-- 
1.7.9.5



^ permalink raw reply related	[flat|nested] 3+ messages in thread

* Re: [PATCH] cmake.bbclass: Don't use packages from the native build machine
  2013-08-14  8:47 [PATCH] cmake.bbclass: Don't use packages from the native build machine Stefan Herbrechtsmeier
@ 2013-08-14 12:05 ` Lukas Bulwahn
  2013-08-15 19:44   ` Stefan Herbrechtsmeier
  0 siblings, 1 reply; 3+ messages in thread
From: Lukas Bulwahn @ 2013-08-14 12:05 UTC (permalink / raw)
  To: 'Stefan Herbrechtsmeier', openembedded-core

Hi Stefan,

I have been working with this patch for quite some time on my
OpenEmbedded-Core repository and I have not seen any problems, but I do not
know if it breaks anything on the complete 'bitbake world'.

Lukas

> -----Ursprüngliche Nachricht-----
> Von: openembedded-core-bounces@lists.openembedded.org
> [mailto:openembedded-core-bounces@lists.openembedded.org] Im
> Auftrag von Stefan Herbrechtsmeier
> Gesendet: Mittwoch, 14. August 2013 10:48
> An: openembedded-core@lists.openembedded.org
> Betreff: [OE-core] [PATCH] cmake.bbclass: Don't use packages from the
> native build machine
> 
> Signed-off-by: Stefan Herbrechtsmeier <stefan@herbrechtsmeier.net>
> ---
>  meta/classes/cmake.bbclass |    1 +
>  1 file changed, 1 insertion(+)
> 
> diff --git a/meta/classes/cmake.bbclass b/meta/classes/cmake.bbclass index
> 310242e..8e579a7 100644
> --- a/meta/classes/cmake.bbclass
> +++ b/meta/classes/cmake.bbclass
> @@ -49,6 +49,7 @@ set( CMAKE_CXX_LINK_FLAGS
> "${OECMAKE_CXX_LINK_FLAGS}" CACHE STRING "LDFLAGS" )  # only search
> in the paths provided so cmake doesnt pick  # up libraries and tools from
the
> native build machine  set( CMAKE_FIND_ROOT_PATH
> ${STAGING_DIR_HOST} ${STAGING_DIR_NATIVE} ${CROSS_DIR}
> ${OECMAKE_PERLNATIVE_DIR} ${OECMAKE_EXTRA_ROOT_PATH}
> ${EXTERNAL_TOOLCHAIN})
> +set( CMAKE_FIND_ROOT_PATH_MODE_PACKAGE ONLY )
>  set( CMAKE_FIND_ROOT_PATH_MODE_PROGRAM ONLY )  set(
> CMAKE_FIND_ROOT_PATH_MODE_LIBRARY ONLY )  set(
> CMAKE_FIND_ROOT_PATH_MODE_INCLUDE ONLY )
> --
> 1.7.9.5
> 
> _______________________________________________
> Openembedded-core mailing list
> Openembedded-core@lists.openembedded.org
> http://lists.openembedded.org/mailman/listinfo/openembedded-core



^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [PATCH] cmake.bbclass: Don't use packages from the native build machine
  2013-08-14 12:05 ` Lukas Bulwahn
@ 2013-08-15 19:44   ` Stefan Herbrechtsmeier
  0 siblings, 0 replies; 3+ messages in thread
From: Stefan Herbrechtsmeier @ 2013-08-15 19:44 UTC (permalink / raw)
  To: Lukas Bulwahn; +Cc: openembedded-core

Am 14.08.2013 14:05, schrieb Lukas Bulwahn:
> I have been working with this patch for quite some time on my
> OpenEmbedded-Core repository and I have not seen any problems, but I do not
> know if it breaks anything on the complete 'bitbake world'.
The only thing that should be used from the native build machine is the 
detection of the native compiler and this detection is already broken as 
the cmake module expect a CMAKE_C_COMPILER  and CMAKE_CXX_COMPILER 
compiler variable with full paths.

>> -----Ursprüngliche Nachricht-----
>> Von: openembedded-core-bounces@lists.openembedded.org
>> [mailto:openembedded-core-bounces@lists.openembedded.org] Im
>> Auftrag von Stefan Herbrechtsmeier
>> Gesendet: Mittwoch, 14. August 2013 10:48
>> An: openembedded-core@lists.openembedded.org
>> Betreff: [OE-core] [PATCH] cmake.bbclass: Don't use packages from the
>> native build machine
>>
>> Signed-off-by: Stefan Herbrechtsmeier <stefan@herbrechtsmeier.net>
>> ---
>>   meta/classes/cmake.bbclass |    1 +
>>   1 file changed, 1 insertion(+)
>>
>> diff --git a/meta/classes/cmake.bbclass b/meta/classes/cmake.bbclass index
>> 310242e..8e579a7 100644
>> --- a/meta/classes/cmake.bbclass
>> +++ b/meta/classes/cmake.bbclass
>> @@ -49,6 +49,7 @@ set( CMAKE_CXX_LINK_FLAGS
>> "${OECMAKE_CXX_LINK_FLAGS}" CACHE STRING "LDFLAGS" )  # only search
>> in the paths provided so cmake doesnt pick  # up libraries and tools from
> the
>> native build machine  set( CMAKE_FIND_ROOT_PATH
>> ${STAGING_DIR_HOST} ${STAGING_DIR_NATIVE} ${CROSS_DIR}
>> ${OECMAKE_PERLNATIVE_DIR} ${OECMAKE_EXTRA_ROOT_PATH}
>> ${EXTERNAL_TOOLCHAIN})
>> +set( CMAKE_FIND_ROOT_PATH_MODE_PACKAGE ONLY )
>>   set( CMAKE_FIND_ROOT_PATH_MODE_PROGRAM ONLY )  set(
>> CMAKE_FIND_ROOT_PATH_MODE_LIBRARY ONLY )  set(
>> CMAKE_FIND_ROOT_PATH_MODE_INCLUDE ONLY )
>> --
>> 1.7.9.5
>>
>> _______________________________________________
>> Openembedded-core mailing list
>> Openembedded-core@lists.openembedded.org
>> http://lists.openembedded.org/mailman/listinfo/openembedded-core



^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2013-08-15 19:44 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-08-14  8:47 [PATCH] cmake.bbclass: Don't use packages from the native build machine Stefan Herbrechtsmeier
2013-08-14 12:05 ` Lukas Bulwahn
2013-08-15 19:44   ` Stefan Herbrechtsmeier

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.