From: Markus Volk <f_l_k@t-online.de>
To: Richard Purdie <richard.purdie@linuxfoundation.org>
Cc: openembedded-core@lists.openembedded.org
Subject: Re: [oe-core][PATCH] gtk4: add PACKAGECONFIG for cloudproviders
Date: Wed, 25 Jan 2023 19:11:35 +0100 [thread overview]
Message-ID: <BVZ1PR.KYTKMKP2QL682@t-online.de> (raw)
In-Reply-To: <9ab1d0034d3d20fcc42a544f5899f7072cac7c71.camel@linuxfoundation.org>
[-- Attachment #1: Type: text/plain, Size: 5056 bytes --]
Thanks for the propper fix. I've sent a v2 that excludes the second bit
Am Mi, 25. Jan 2023 um 14:24:39 +0000 schrieb Richard Purdie
<richard.purdie@linuxfoundation.org>:
> On Sun, 2023-01-22 at 08:06 +0100, Markus Volk wrote:
>> - Add missing cups runtime dependency
>> - Create packages for the printbackends only for target
>> This fixes:
>>
>> NOTE: Multiple providers are available for runtime
>> gtk4-printbackend-cups (gtk4, gtk4-native)
>> Consider defining a PREFERRED_RPROVIDER entry to match
>> gtk4-printbackend-cups
>> NOTE: Multiple providers are available for runtime
>> gtk4-printbackend-file (gtk4, gtk4-native)
>> Consider defining a PREFERRED_RPROVIDER entry to match
>> gtk4-printbackend-file
>>
>> Signed-off-by: Markus Volk <f_l_k@t-online.de
>> <mailto:f_l_k@t-online.de>>
>> ---
>> meta/recipes-gnome/gtk+/gtk4_4.8.3.bb | 5 +++--
>> 1 file changed, 3 insertions(+), 2 deletions(-)
>>
>> diff --git a/meta/recipes-gnome/gtk+/gtk4_4.8.3.bb
>> b/meta/recipes-gnome/gtk+/gtk4_4.8.3.bb
>> index 6101905128..5112d3b38b 100644
>> --- a/meta/recipes-gnome/gtk+/gtk4_4.8.3.bb
>> +++ b/meta/recipes-gnome/gtk+/gtk4_4.8.3.bb
>> @@ -65,7 +65,8 @@ PACKAGECONFIG:class-nativesdk =
>> "${@bb.utils.filter('DISTRO_FEATURES', 'x11', d)
>>
>> PACKAGECONFIG[x11] =
>> "-Dx11-backend=true,-Dx11-backend=false,at-spi2-atk fontconfig
>> libx11 libxext libxcursor libxi libxdamage libxrandr libxrender
>> libxcomposite libxfixes xinerama"
>> PACKAGECONFIG[wayland] =
>> "-Dwayland-backend=true,-Dwayland-backend=false,wayland
>> wayland-protocols virtual/egl virtual/libgles2 wayland-native"
>> -PACKAGECONFIG[cups] =
>> "-Dprint-cups=enabled,-Dprint-cups=disabled,cups"
>> +PACKAGECONFIG[cloudproviders] =
>> "-Dcloudproviders=enabled,-Dcloudproviders=disabled,libcloudproviders"
>> +PACKAGECONFIG[cups] =
>> "-Dprint-cups=enabled,-Dprint-cups=disabled,cups,cups"
>> PACKAGECONFIG[colord] = "-Dcolord=enabled,-Dcolord=disabled,colord"
>> PACKAGECONFIG[iso-codes] = ",,iso-codes,iso-codes"
>> PACKAGECONFIG[ffmpeg] =
>> "-Dmedia-ffmpeg=enabled,-Dmedia-ffmpeg=disabled,ffmpeg"
>
> This bit is fine.
>
>> @@ -114,7 +115,7 @@ RRECOMMENDS:${PN} = "${GTKBASE_RRECOMMENDS}"
>> RRECOMMENDS:${PN}:libc-glibc = "${GTKGLIBC_RRECOMMENDS}"
>> RDEPENDS:${PN}-dev += "${@bb.utils.contains
>> <mailto:${@bb.utils.contains>("PACKAGECONFIG", "wayland",
>> "wayland-protocols", "", d)}"
>>
>> -PACKAGES_DYNAMIC += "^gtk4-printbackend-.*"
>> +PACKAGES_DYNAMIC:class-target += "^gtk4-printbackend-.*"
>> python populate_packages:prepend () {
>> import os.path
>>
>
> This bit is really a bug in the native.bbclass class extension code
> and
> I'd really prefer to fix that rather than needing every recipe with a
> BBCLASSEXTEND native to handle PACKAGES_DYNAMIC specially.
>
> You'll see that nativesdk.bbclass does:
>
> clsextend.map_regexp_variable("PACKAGES_DYNAMIC")
>
> but native.bbclass doesn't do anything with PACKAGES_DYANAMIC which is
> the issue. Could you see if the patch below helps please?
>
> diff --git a/meta/classes-recipe/native.bbclass
> b/meta/classes-recipe/native.bbclass
> index 1e94585f3e3..cfd299d0c8c 100644
> --- a/meta/classes-recipe/native.bbclass
> +++ b/meta/classes-recipe/native.bbclass
> @@ -139,7 +139,7 @@ python native_virtclass_handler () {
> if "native" not in classextend:
> return
>
> - def map_dependencies(varname, d, suffix = "", selfref=True):
> + def map_dependencies(varname, d, suffix = "", selfref=True,
> regex=False):
> if suffix:
> varname = varname + ":" + suffix
> deps = d.getVar(varname)
> @@ -148,7 +148,9 @@ python native_virtclass_handler () {
> deps = bb.utils.explode_deps(deps)
> newdeps = []
> for dep in deps:
> - if dep == pn:
> + if regex and dep.startswith("^") and dep.endswith("$"):
> + newdeps.append(dep[:-1].replace(pn, bpn) +
> "-native$")
> + elif dep == pn:
> if not selfref:
> continue
> newdeps.append(dep)
> @@ -171,6 +173,7 @@ python native_virtclass_handler () {
> map_dependencies("RPROVIDES", e.data, pkg)
> map_dependencies("RREPLACES", e.data, pkg)
> map_dependencies("PACKAGES", e.data)
> + map_dependencies("PACKAGES_DYNAMIC", e.data, regex=True)
>
> provides = e.data.getVar("PROVIDES")
> nprovides = []
>
>
> Cheers,
>
> Richard
>
> -=-=-=-=-=-=-=-=-=-=-=-
> Links: You receive all messages sent to this group.
> View/Reply Online (#176350):
> <https://lists.openembedded.org/g/openembedded-core/message/176350>
> Mute This Topic: <https://lists.openembedded.org/mt/96449563/3618223>
> Group Owner: openembedded-core+owner@lists.openembedded.org
> <mailto:openembedded-core+owner@lists.openembedded.org>
> Unsubscribe:
> <https://lists.openembedded.org/g/openembedded-core/unsub>
> [f_l_k@t-online.de <mailto:f_l_k@t-online.de>]
> -=-=-=-=-=-=-=-=-=-=-=-
>
[-- Attachment #2: Type: text/html, Size: 5311 bytes --]
prev parent reply other threads:[~2023-01-25 18:11 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-01-22 7:06 [oe-core][PATCH] gtk4: add PACKAGECONFIG for cloudproviders Markus Volk
2023-01-25 14:24 ` Richard Purdie
2023-01-25 18:11 ` Markus Volk [this message]
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=BVZ1PR.KYTKMKP2QL682@t-online.de \
--to=f_l_k@t-online.de \
--cc=openembedded-core@lists.openembedded.org \
--cc=richard.purdie@linuxfoundation.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.