* [PATCH] glib-2.0: Remove python3 modules when building for mingw
@ 2018-01-02 22:49 Alistair Francis
2018-01-03 10:54 ` Richard Purdie
0 siblings, 1 reply; 3+ messages in thread
From: Alistair Francis @ 2018-01-02 22:49 UTC (permalink / raw)
To: openembedded-core
Commit "glib-2.0: Add python3 modules required by gdbus-codegen"
(26af3b4b33a34d7e53059b07236f9d5aae5e004a) broke the MinGW build of
QEMU. To fix the build remove the python3 RDEPENDS for gdbus-codegen
when targeting mingw.
Signed-off-by: Alistair Francis <alistair.francis@xilinx.com>
---
meta/recipes-core/glib-2.0/glib.inc | 6 ++++++
1 file changed, 6 insertions(+)
diff --git a/meta/recipes-core/glib-2.0/glib.inc b/meta/recipes-core/glib-2.0/glib.inc
index fbc655a012..f8e803a90a 100644
--- a/meta/recipes-core/glib-2.0/glib.inc
+++ b/meta/recipes-core/glib-2.0/glib.inc
@@ -121,6 +121,12 @@ RDEPENDS_${PN}-codegen += "\
python3-xml \
"
+RDEPENDS_${PN}-codegen_remove_mingw32 = "\
+ python3 \
+ python3-distutils \
+ python3-xml \
+ "
+
RDEPENDS_${PN}-ptest += "\
dbus \
gnome-desktop-testing \
--
2.14.1
^ permalink raw reply related [flat|nested] 3+ messages in thread
* Re: [PATCH] glib-2.0: Remove python3 modules when building for mingw
2018-01-02 22:49 [PATCH] glib-2.0: Remove python3 modules when building for mingw Alistair Francis
@ 2018-01-03 10:54 ` Richard Purdie
2018-01-03 19:48 ` Alistair Francis
0 siblings, 1 reply; 3+ messages in thread
From: Richard Purdie @ 2018-01-03 10:54 UTC (permalink / raw)
To: Alistair Francis, openembedded-core
On Tue, 2018-01-02 at 14:49 -0800, Alistair Francis wrote:
> Commit "glib-2.0: Add python3 modules required by gdbus-codegen"
> (26af3b4b33a34d7e53059b07236f9d5aae5e004a) broke the MinGW build of
> QEMU. To fix the build remove the python3 RDEPENDS for gdbus-codegen
> when targeting mingw.
>
> Signed-off-by: Alistair Francis <alistair.francis@xilinx.com>
> ---
> meta/recipes-core/glib-2.0/glib.inc | 6 ++++++
> 1 file changed, 6 insertions(+)
>
> diff --git a/meta/recipes-core/glib-2.0/glib.inc b/meta/recipes-
> core/glib-2.0/glib.inc
> index fbc655a012..f8e803a90a 100644
> --- a/meta/recipes-core/glib-2.0/glib.inc
> +++ b/meta/recipes-core/glib-2.0/glib.inc
> @@ -121,6 +121,12 @@ RDEPENDS_${PN}-codegen += "\
> python3-xml \
> "
>
> +RDEPENDS_${PN}-codegen_remove_mingw32 = "\
> + python3 \
> + python3-distutils \
> + python3-xml \
> + "
> +
> RDEPENDS_${PN}-ptest += "\
> dbus \
> gnome-desktop-testing \
I have pretty strong feelings that we shouldn't be using remove like
this, or duplicating data. Its susceptible to breakage when one value
changes and the other does not. Can you rework this so it doesn't use
remove, or duplicate data?
In case its not clear, you can do something like:
CODEGEN_PYTHON_RDEPENDS = "python3 python3-distutils python3-xml"
CODEGEN_PYTHON_RDEPENDS_mingw32 = ""
RDEPENDS_${PN}-codegen += "${CODEGEN_PYTHON_RDEPENDS}"
which is much more maintainable.
Cheers,
Richard
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH] glib-2.0: Remove python3 modules when building for mingw
2018-01-03 10:54 ` Richard Purdie
@ 2018-01-03 19:48 ` Alistair Francis
0 siblings, 0 replies; 3+ messages in thread
From: Alistair Francis @ 2018-01-03 19:48 UTC (permalink / raw)
To: Richard Purdie; +Cc: OE-core
On Wed, Jan 3, 2018 at 2:54 AM, Richard Purdie
<richard.purdie@linuxfoundation.org> wrote:
> On Tue, 2018-01-02 at 14:49 -0800, Alistair Francis wrote:
>> Commit "glib-2.0: Add python3 modules required by gdbus-codegen"
>> (26af3b4b33a34d7e53059b07236f9d5aae5e004a) broke the MinGW build of
>> QEMU. To fix the build remove the python3 RDEPENDS for gdbus-codegen
>> when targeting mingw.
>>
>> Signed-off-by: Alistair Francis <alistair.francis@xilinx.com>
>> ---
>> meta/recipes-core/glib-2.0/glib.inc | 6 ++++++
>> 1 file changed, 6 insertions(+)
>>
>> diff --git a/meta/recipes-core/glib-2.0/glib.inc b/meta/recipes-
>> core/glib-2.0/glib.inc
>> index fbc655a012..f8e803a90a 100644
>> --- a/meta/recipes-core/glib-2.0/glib.inc
>> +++ b/meta/recipes-core/glib-2.0/glib.inc
>> @@ -121,6 +121,12 @@ RDEPENDS_${PN}-codegen += "\
>> python3-xml \
>> "
>>
>> +RDEPENDS_${PN}-codegen_remove_mingw32 = "\
>> + python3 \
>> + python3-distutils \
>> + python3-xml \
>> + "
>> +
>> RDEPENDS_${PN}-ptest += "\
>> dbus \
>> gnome-desktop-testing \
>
> I have pretty strong feelings that we shouldn't be using remove like
> this, or duplicating data. Its susceptible to breakage when one value
> changes and the other does not. Can you rework this so it doesn't use
> remove, or duplicate data?
>
> In case its not clear, you can do something like:
>
> CODEGEN_PYTHON_RDEPENDS = "python3 python3-distutils python3-xml"
> CODEGEN_PYTHON_RDEPENDS_mingw32 = ""
>
> RDEPENDS_${PN}-codegen += "${CODEGEN_PYTHON_RDEPENDS}"
>
> which is much more maintainable.
Looks good to me, I'll send a v2.
Alistair
>
> Cheers,
>
> Richard
> --
> _______________________________________________
> 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:[~2018-01-03 19:48 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-01-02 22:49 [PATCH] glib-2.0: Remove python3 modules when building for mingw Alistair Francis
2018-01-03 10:54 ` Richard Purdie
2018-01-03 19:48 ` Alistair Francis
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.