All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] meson: add sysroot property
@ 2020-09-30 15:05 Randy Li
  2020-09-30 16:40 ` Alexander Kanavin
  0 siblings, 1 reply; 7+ messages in thread
From: Randy Li @ 2020-09-30 15:05 UTC (permalink / raw)
  To: openembedded-core; +Cc: alex.kanavin, ayaka

I know the environment setup script would set PKG_CONFIG_PATH,
but the meson won't take that env when translate the includedir
property from the pkg-config.

Signed-off-by: ayaka <ayaka@soulik.info>
---
 meta/recipes-devtools/meson/nativesdk-meson_0.55.1.bb | 1 +
 1 file changed, 1 insertion(+)

diff --git a/meta/recipes-devtools/meson/nativesdk-meson_0.55.1.bb b/meta/recipes-devtools/meson/nativesdk-meson_0.55.1.bb
index 67add2c25e..7fdc4c86d9 100644
--- a/meta/recipes-devtools/meson/nativesdk-meson_0.55.1.bb
+++ b/meta/recipes-devtools/meson/nativesdk-meson_0.55.1.bb
@@ -40,6 +40,7 @@ c_args = @CFLAGS
 c_link_args = @LDFLAGS
 cpp_args = @CPPFLAGS
 cpp_link_args = @LDFLAGS
+sys_root = @OECORE_TARGET_SYSROOT
 
 [host_machine]
 system = '${SDK_OS}'
-- 
2.25.4


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

* Re: [PATCH] meson: add sysroot property
  2020-09-30 15:05 [PATCH] meson: add sysroot property Randy Li
@ 2020-09-30 16:40 ` Alexander Kanavin
  2020-10-01  4:14   ` Randy Li
  2020-10-01  4:33   ` Khem Raj
  0 siblings, 2 replies; 7+ messages in thread
From: Alexander Kanavin @ 2020-09-30 16:40 UTC (permalink / raw)
  To: ayaka; +Cc: openembedded-core

[-- Attachment #1: Type: text/plain, Size: 1036 bytes --]

Wait, how does it work in native meson then?

Alex

On Wed 30. Sep 2020 at 17.06, ayaka <ayaka@soulik.info> wrote:

> I know the environment setup script would set PKG_CONFIG_PATH,
>
> but the meson won't take that env when translate the includedir
>
> property from the pkg-config.
>
>
>
> Signed-off-by: ayaka <ayaka@soulik.info>
>
> ---
>
>  meta/recipes-devtools/meson/nativesdk-meson_0.55.1.bb | 1 +
>
>  1 file changed, 1 insertion(+)
>
>
>
> diff --git a/meta/recipes-devtools/meson/nativesdk-meson_0.55.1.bb
> b/meta/recipes-devtools/meson/nativesdk-meson_0.55.1.bb
>
> index 67add2c25e..7fdc4c86d9 100644
>
> --- a/meta/recipes-devtools/meson/nativesdk-meson_0.55.1.bb
>
> +++ b/meta/recipes-devtools/meson/nativesdk-meson_0.55.1.bb
>
> @@ -40,6 +40,7 @@ c_args = @CFLAGS
>
>  c_link_args = @LDFLAGS
>
>  cpp_args = @CPPFLAGS
>
>  cpp_link_args = @LDFLAGS
>
> +sys_root = @OECORE_TARGET_SYSROOT
>
>
>
>  [host_machine]
>
>  system = '${SDK_OS}'
>
> --
>
> 2.25.4
>
>
>
>

[-- Attachment #2: Type: text/html, Size: 1911 bytes --]

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

* Re: [PATCH] meson: add sysroot property
  2020-09-30 16:40 ` Alexander Kanavin
@ 2020-10-01  4:14   ` Randy Li
  2020-10-01  9:21     ` Alexander Kanavin
  2020-10-01  4:33   ` Khem Raj
  1 sibling, 1 reply; 7+ messages in thread
From: Randy Li @ 2020-10-01  4:14 UTC (permalink / raw)
  To: Alexander Kanavin; +Cc: openembedded-core


On 01/10/2020 00:40, Alexander Kanavin wrote:
> Wait, how does it work in native meson then?
>
It is the nativesdk meson has this problem, that is what cross build 
requests for.

You can try the Intel MediaSDK, I reported this issue to Gstreamer for 
this but it comes to the issue of OE.

Or you mean the native meson for the target system ? I don't think they 
need a cross build file.

> Alex
>
> On Wed 30. Sep 2020 at 17.06, ayaka <ayaka@soulik.info 
> <mailto:ayaka@soulik.info>> wrote:
>
>     I know the environment setup script would set PKG_CONFIG_PATH,
>
>     but the meson won't take that env when translate the includedir
>
>     property from the pkg-config.
>
>
>
>     Signed-off-by: ayaka <ayaka@soulik.info <mailto:ayaka@soulik.info>>
>
>     ---
>
>      meta/recipes-devtools/meson/nativesdk-meson_0.55.1.bb
>     <http://nativesdk-meson_0.55.1.bb> | 1 +
>
>      1 file changed, 1 insertion(+)
>
>
>
>     diff --git a/meta/recipes-devtools/meson/nativesdk-meson_0.55.1.bb
>     <http://nativesdk-meson_0.55.1.bb>
>     b/meta/recipes-devtools/meson/nativesdk-meson_0.55.1.bb
>     <http://nativesdk-meson_0.55.1.bb>
>
>     index 67add2c25e..7fdc4c86d9 100644
>
>     --- a/meta/recipes-devtools/meson/nativesdk-meson_0.55.1.bb
>     <http://nativesdk-meson_0.55.1.bb>
>
>     +++ b/meta/recipes-devtools/meson/nativesdk-meson_0.55.1.bb
>     <http://nativesdk-meson_0.55.1.bb>
>
>     @@ -40,6 +40,7 @@ c_args = @CFLAGS
>
>      c_link_args = @LDFLAGS
>
>      cpp_args = @CPPFLAGS
>
>      cpp_link_args = @LDFLAGS
>
>     +sys_root = @OECORE_TARGET_SYSROOT
>
>
>
>      [host_machine]
>
>      system = '${SDK_OS}'
>
>     -- 
>
>     2.25.4
>
>
>

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

* Re: [OE-core] [PATCH] meson: add sysroot property
  2020-09-30 16:40 ` Alexander Kanavin
  2020-10-01  4:14   ` Randy Li
@ 2020-10-01  4:33   ` Khem Raj
  1 sibling, 0 replies; 7+ messages in thread
From: Khem Raj @ 2020-10-01  4:33 UTC (permalink / raw)
  To: Alexander Kanavin; +Cc: ayaka, Patches and discussions about the oe-core layer

On Wed, Sep 30, 2020 at 9:40 AM Alexander Kanavin
<alex.kanavin@gmail.com> wrote:
>
> Wait, how does it work in native meson then?
>

native technical is not cross compiled but nativesdk is in a way same
as building a target package.

> Alex
>
> On Wed 30. Sep 2020 at 17.06, ayaka <ayaka@soulik.info> wrote:
>>
>> I know the environment setup script would set PKG_CONFIG_PATH,
>>
>> but the meson won't take that env when translate the includedir
>>
>> property from the pkg-config.
>>
>>
>>
>> Signed-off-by: ayaka <ayaka@soulik.info>
>>
>> ---
>>
>>  meta/recipes-devtools/meson/nativesdk-meson_0.55.1.bb | 1 +
>>
>>  1 file changed, 1 insertion(+)
>>
>>
>>
>> diff --git a/meta/recipes-devtools/meson/nativesdk-meson_0.55.1.bb b/meta/recipes-devtools/meson/nativesdk-meson_0.55.1.bb
>>
>> index 67add2c25e..7fdc4c86d9 100644
>>
>> --- a/meta/recipes-devtools/meson/nativesdk-meson_0.55.1.bb
>>
>> +++ b/meta/recipes-devtools/meson/nativesdk-meson_0.55.1.bb
>>
>> @@ -40,6 +40,7 @@ c_args = @CFLAGS
>>
>>  c_link_args = @LDFLAGS
>>
>>  cpp_args = @CPPFLAGS
>>
>>  cpp_link_args = @LDFLAGS
>>
>> +sys_root = @OECORE_TARGET_SYSROOT
>>
>>
>>
>>  [host_machine]
>>
>>  system = '${SDK_OS}'
>>
>> --
>>
>> 2.25.4
>>
>>
>>
>
> 
>

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

* Re: [PATCH] meson: add sysroot property
  2020-10-01  4:14   ` Randy Li
@ 2020-10-01  9:21     ` Alexander Kanavin
  2020-10-01 20:38       ` [OE-core] " Khem Raj
  0 siblings, 1 reply; 7+ messages in thread
From: Alexander Kanavin @ 2020-10-01  9:21 UTC (permalink / raw)
  To: ayaka; +Cc: OE-core

[-- Attachment #1: Type: text/plain, Size: 680 bytes --]

On Thu, 1 Oct 2020 at 06:15, ayaka <ayaka@soulik.info> wrote:

> It is the nativesdk meson has this problem, that is what cross build
> requests for.
>
> You can try the Intel MediaSDK, I reported this issue to Gstreamer for
> this but it comes to the issue of OE.
>
> Or you mean the native meson for the target system ? I don't think they
> need a cross build file.
>

native meson does use a cross file when building target packages, and
things work without sysroot property, including using pkg-config:
http://git.yoctoproject.org/cgit/cgit.cgi/poky/tree/meta/classes/meson.bbclass

So I worry that your patch is fixing a symptom and not the problem.

Alex

[-- Attachment #2: Type: text/html, Size: 1126 bytes --]

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

* Re: [OE-core] [PATCH] meson: add sysroot property
  2020-10-01  9:21     ` Alexander Kanavin
@ 2020-10-01 20:38       ` Khem Raj
  2020-10-10 19:43         ` Randy Li
  0 siblings, 1 reply; 7+ messages in thread
From: Khem Raj @ 2020-10-01 20:38 UTC (permalink / raw)
  To: Alexander Kanavin; +Cc: ayaka, OE-core

On Thu, Oct 1, 2020 at 2:22 AM Alexander Kanavin <alex.kanavin@gmail.com> wrote:
>
> On Thu, 1 Oct 2020 at 06:15, ayaka <ayaka@soulik.info> wrote:
>>
>> It is the nativesdk meson has this problem, that is what cross build
>> requests for.
>>
>> You can try the Intel MediaSDK, I reported this issue to Gstreamer for
>> this but it comes to the issue of OE.
>>
>> Or you mean the native meson for the target system ? I don't think they
>> need a cross build file.
>
>
> native meson does use a cross file when building target packages, and things work without sysroot property, including using pkg-config:
> http://git.yoctoproject.org/cgit/cgit.cgi/poky/tree/meta/classes/meson.bbclass
>

if meson used its defaults ( which means looking into native rootfs on
build system ) perhaps is fine for native packages since they don't
execute on
other build systems, but not so for nativesdk and target packages

> So I worry that your patch is fixing a symptom and not the problem.
>
> Alex
>
> 
>

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

* Re: [OE-core] [PATCH] meson: add sysroot property
  2020-10-01 20:38       ` [OE-core] " Khem Raj
@ 2020-10-10 19:43         ` Randy Li
  0 siblings, 0 replies; 7+ messages in thread
From: Randy Li @ 2020-10-10 19:43 UTC (permalink / raw)
  To: Khem Raj, Alexander Kanavin; +Cc: OE-core


On 02/10/2020 04:38, Khem Raj wrote:
> On Thu, Oct 1, 2020 at 2:22 AM Alexander Kanavin <alex.kanavin@gmail.com> wrote:
>> On Thu, 1 Oct 2020 at 06:15, ayaka <ayaka@soulik.info> wrote:
>>> It is the nativesdk meson has this problem, that is what cross build
>>> requests for.
>>>
>>> You can try the Intel MediaSDK, I reported this issue to Gstreamer for
>>> this but it comes to the issue of OE.
>>>
>>> Or you mean the native meson for the target system ? I don't think they
>>> need a cross build file.
>>
>> native meson does use a cross file when building target packages, and things work without sysroot property, including using pkg-config:
>> http://git.yoctoproject.org/cgit/cgit.cgi/poky/tree/meta/classes/meson.bbclass
>>
> if meson used its defaults ( which means looking into native rootfs on
> build system ) perhaps is fine for native packages since they don't
> execute on
> other build systems, but not so for nativesdk and target packages

Yes, I didn't make myself clearly, I am using the SDK from populate_sdk

I didn't try the latest master next but this issue still happened until 
the current stable version

>> So I worry that your patch is fixing a symptom and not the problem.
>>
>> Alex
>>
>>
>>
>>
>> 
>>

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

end of thread, other threads:[~2020-10-10 19:43 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-09-30 15:05 [PATCH] meson: add sysroot property Randy Li
2020-09-30 16:40 ` Alexander Kanavin
2020-10-01  4:14   ` Randy Li
2020-10-01  9:21     ` Alexander Kanavin
2020-10-01 20:38       ` [OE-core] " Khem Raj
2020-10-10 19:43         ` Randy Li
2020-10-01  4:33   ` Khem Raj

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.