All of lore.kernel.org
 help / color / mirror / Atom feed
From: Markus Volk <f_l_k@t-online.de>
To: Ross Burton <Ross.Burton@arm.com>
Cc: openembedded-devel@lists.openembedded.org
Subject: Re: [oe] [meta-oe][PATCH] hwdata: allow to build native and nativesdk
Date: Wed, 09 Nov 2022 18:57:32 +0100	[thread overview]
Message-ID: <WVD3LR.DM4P4WUIIJ2L1@t-online.de> (raw)
In-Reply-To: <6DDF75A0-A98E-4E64-A718-87232BE33CDD@arm.com>

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

Got it. You suggest fixing hwdata .pc file first.
I didn't know about the pc_sysrootdir variable, thanks for pointing it 
out.

With this gehangen wlroots is built when 'native: true' is removed.
Would this be good enough to send upstream ,or should i create a patch 
for the hwdata recipe?

diff --git a/hwdata.pc.in b/hwdata.pc.in
index 8dd73b6..c5791d3 100644
--- a/hwdata.pc.in
+++ b/hwdata.pc.in
@@ -1,6 +1,6 @@
 prefix=@prefix@
 datadir=@datadir@
-pkgdatadir=@pkgdatadir@
+pkgdatadir=${pc_sysrootdir}@pkgdatadir@

 Name: @NAME@


Am Mi, 9. Nov 2022 um 16:43:40 +0000 schrieb Ross Burton 
<Ross.Burton@arm.com>:
> 
> 
>>  On 9 Nov 2022, at 16:01, Markus Volk via lists.openembedded.org 
>> <f_l_k=t-online.de@lists.openembedded.org 
>> <mailto:f_l_k=t-online.de@lists.openembedded.org>> wrote:
>> 
>>  At least they have a point for correctness by calling it 
>> build-dependency instead of runtime-dependency.
>> 
>>  I take your point that this difference shouldn't matter because 
>> hwdata is allarch, but simply removing 'native: true'
>>  does not fix the problem. hwdata will then be found, but the 
>> correct value will not be read here:
>>  hwdata_dir = hwdata.get_variable(pkgconfig: 'pkgdatadir')
>> 
>> 
>>  | Run-time dependency hwdata found: YES 0.364
>>  |
>>  | ../git/backend/drm/meson.build:4:1: ERROR: File 
>> /usr/share/hwdata/pnp.ids does not exist.
> 
> The problem here is that you're using a target path on the host, 
> pkgconfig just treats variables are literal strings and doesn’t do 
> any sysroot processing on them.
> 
> wayland-protocols does the right thing and puts the sysroot in the 
> pkgdatadir:
> 
> <https://gitlab.freedesktop.org/wayland/wayland-protocols/-/blob/main/wayland-protocols.pc.in>
> 
> wlroots should do this too.
> 
> Ross


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

  reply	other threads:[~2022-11-09 17:58 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-11-09  9:35 [meta-oe][PATCH] hwdata: allow to build native and nativesdk Markus Volk
2022-11-09 12:49 ` [oe] " Ross Burton
2022-11-09 13:10   ` Markus Volk
     [not found]   ` <1725ECAD7BE80329.32043@lists.openembedded.org>
2022-11-09 13:41     ` Markus Volk
2022-11-09 14:33       ` Ross Burton
2022-11-09 16:01         ` Markus Volk
2022-11-09 16:43           ` Ross Burton
2022-11-09 17:57             ` Markus Volk [this message]
2022-11-09 22:40               ` Ross Burton

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=WVD3LR.DM4P4WUIIJ2L1@t-online.de \
    --to=f_l_k@t-online.de \
    --cc=Ross.Burton@arm.com \
    --cc=openembedded-devel@lists.openembedded.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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.