* [PATCH] python3-pygobject: move python3-setuptools from RDEPENDS to DEPENDS
@ 2019-08-05 10:52 luca.boccassi
2019-08-05 11:32 ` Ross Burton
` (4 more replies)
0 siblings, 5 replies; 10+ messages in thread
From: luca.boccassi @ 2019-08-05 10:52 UTC (permalink / raw)
To: openembedded-core
From: Luca Boccassi <luca.boccassi@microsoft.com>
python3-setuptools is necessary to build pygobject but not to run it, as
also documented by the upstream packaging guide:
https://gitlab.gnome.org/GNOME/pygobject/blob/master/docs/packagingguide.rst
Move it to DEPENDS to shrink the runtime dependency chain, as setuptools
includes scripts to download other packages, which might not be desired on
a minimal image.
Signed-off-by: Luca Boccassi <luca.boccassi@microsoft.com>
---
meta/recipes-devtools/python/python3-pygobject_3.32.2.bb | 4 +---
1 file changed, 1 insertion(+), 3 deletions(-)
diff --git a/meta/recipes-devtools/python/python3-pygobject_3.32.2.bb b/meta/recipes-devtools/python/python3-pygobject_3.32.2.bb
index 05688be603..58a251f8eb 100644
--- a/meta/recipes-devtools/python/python3-pygobject_3.32.2.bb
+++ b/meta/recipes-devtools/python/python3-pygobject_3.32.2.bb
@@ -6,7 +6,7 @@ LIC_FILES_CHKSUM = "file://COPYING;md5=a916467b91076e631dd8edb7424769c7"
GNOMEBASEBUILDCLASS = "meson"
inherit gnomebase distutils3-base gobject-introspection upstream-version-is-even
-DEPENDS += "python3 glib-2.0"
+DEPENDS += "python3 python3-setuptools glib-2.0"
SRCNAME="pygobject"
@@ -27,7 +27,5 @@ PACKAGECONFIG ??= "${@bb.utils.contains_any('DISTRO_FEATURES', [ 'directfb', 'wa
# we don't link against python3-pycairo -> RDEPENDS
PACKAGECONFIG[cairo] = "-Dpycairo=true,-Dpycairo=false, cairo python3-pycairo, python3-pycairo"
-RDEPENDS_${PN} += "python3-setuptools"
-
BBCLASSEXTEND = "native"
PACKAGECONFIG_class-native = ""
--
2.20.1
^ permalink raw reply related [flat|nested] 10+ messages in thread
* Re: [PATCH] python3-pygobject: move python3-setuptools from RDEPENDS to DEPENDS
2019-08-05 10:52 [PATCH] python3-pygobject: move python3-setuptools from RDEPENDS to DEPENDS luca.boccassi
@ 2019-08-05 11:32 ` Ross Burton
2019-08-08 11:47 ` [PATCH v2] " luca.boccassi
` (3 subsequent siblings)
4 siblings, 0 replies; 10+ messages in thread
From: Ross Burton @ 2019-08-05 11:32 UTC (permalink / raw)
To: openembedded-core
On 05/08/2019 11:52, luca.boccassi@gmail.com wrote:
> inherit gnomebase distutils3-base gobject-introspection upstream-version-is-even
>
> -DEPENDS += "python3 glib-2.0"
> +DEPENDS += "python3 python3-setuptools glib-2.0"
If setuptools is a build dependency then surely you mean
python3-setuptools-native. And if you need python3-setuptools-native,
then just inherit setuptools3 instead of distutils3-base.
Ross
^ permalink raw reply [flat|nested] 10+ messages in thread
* [PATCH v2] python3-pygobject: move python3-setuptools from RDEPENDS to DEPENDS
2019-08-05 10:52 [PATCH] python3-pygobject: move python3-setuptools from RDEPENDS to DEPENDS luca.boccassi
2019-08-05 11:32 ` Ross Burton
@ 2019-08-08 11:47 ` luca.boccassi
2019-08-08 12:03 ` Alexander Kanavin
2019-08-08 11:48 ` [PATCH] " Luca Boccassi
` (2 subsequent siblings)
4 siblings, 1 reply; 10+ messages in thread
From: luca.boccassi @ 2019-08-08 11:47 UTC (permalink / raw)
To: openembedded-core
From: Luca Boccassi <luca.boccassi@microsoft.com>
python3-setuptools is necessary to build pygobject but not to run it, as
also documented by the upstream packaging guide:
https://gitlab.gnome.org/GNOME/pygobject/blob/master/docs/packagingguide.rst
Move it to DEPENDS to shrink the runtime dependency chain, as setuptools
includes scripts to download other packages, which might not be desired on
a minimal image.
Signed-off-by: Luca Boccassi <luca.boccassi@microsoft.com>
---
v2: use -native suffix as requested during the code review
meta/recipes-devtools/python/python3-pygobject_3.32.2.bb | 4 +---
1 file changed, 1 insertion(+), 3 deletions(-)
diff --git a/meta/recipes-devtools/python/python3-pygobject_3.32.2.bb b/meta/recipes-devtools/python/python3-pygobject_3.32.2.bb
index 05688be603..9e4ce31d8c 100644
--- a/meta/recipes-devtools/python/python3-pygobject_3.32.2.bb
+++ b/meta/recipes-devtools/python/python3-pygobject_3.32.2.bb
@@ -6,7 +6,7 @@ LIC_FILES_CHKSUM = "file://COPYING;md5=a916467b91076e631dd8edb7424769c7"
GNOMEBASEBUILDCLASS = "meson"
inherit gnomebase distutils3-base gobject-introspection upstream-version-is-even
-DEPENDS += "python3 glib-2.0"
+DEPENDS += "python3 python3-setuptools-native glib-2.0"
SRCNAME="pygobject"
@@ -27,7 +27,5 @@ PACKAGECONFIG ??= "${@bb.utils.contains_any('DISTRO_FEATURES', [ 'directfb', 'wa
# we don't link against python3-pycairo -> RDEPENDS
PACKAGECONFIG[cairo] = "-Dpycairo=true,-Dpycairo=false, cairo python3-pycairo, python3-pycairo"
-RDEPENDS_${PN} += "python3-setuptools"
-
BBCLASSEXTEND = "native"
PACKAGECONFIG_class-native = ""
--
2.20.1
^ permalink raw reply related [flat|nested] 10+ messages in thread
* Re: [PATCH] python3-pygobject: move python3-setuptools from RDEPENDS to DEPENDS
2019-08-05 10:52 [PATCH] python3-pygobject: move python3-setuptools from RDEPENDS to DEPENDS luca.boccassi
2019-08-05 11:32 ` Ross Burton
2019-08-08 11:47 ` [PATCH v2] " luca.boccassi
@ 2019-08-08 11:48 ` Luca Boccassi
2019-08-08 13:58 ` [PATCH v3] " luca.boccassi
2019-08-08 14:02 ` [PATCH v4] python3-pygobject: remove python3-setuptools from RDEPENDS luca.boccassi
4 siblings, 0 replies; 10+ messages in thread
From: Luca Boccassi @ 2019-08-08 11:48 UTC (permalink / raw)
To: openembedded-core
> On 05/08/2019 11:52, luca.boccassi@gmail.com wrote:
> > inherit gnomebase distutils3-base gobject-introspection upstream-
> version-is-even
> >
> > -DEPENDS += "python3 glib-2.0"
> > +DEPENDS += "python3 python3-setuptools glib-2.0"
>
> If setuptools is a build dependency then surely you mean
> python3-setuptools-native. And if you need python3-setuptools-
> native,
> then just inherit setuptools3 instead of distutils3-base.
>
> Ross
Hi,
inheriting setuptools3 does not seem to work, the build fails:
2019-08-07T20:29:11.4006600Z [INFO] [10443] | /source/build-
project/tmp/work/aarch64-project-linux/python3-pygobject/3.28.3-
r0/recipe-sysroot-native/usr/bin/python3-native/python3: can't open
file 'setup.py': [Errno 2] No such file or directory
Using the -native suffix works, so sent a v2 doing that.
Thanks!
--
Kind regards,
Luca Boccassi
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: [PATCH v2] python3-pygobject: move python3-setuptools from RDEPENDS to DEPENDS
2019-08-08 11:47 ` [PATCH v2] " luca.boccassi
@ 2019-08-08 12:03 ` Alexander Kanavin
2019-08-08 13:57 ` Luca Boccassi
0 siblings, 1 reply; 10+ messages in thread
From: Alexander Kanavin @ 2019-08-08 12:03 UTC (permalink / raw)
To: Luca Boccassi; +Cc: OE-core
[-- Attachment #1: Type: text/plain, Size: 344 bytes --]
On Thu, 8 Aug 2019 at 13:47, <luca.boccassi@gmail.com> wrote:
> -DEPENDS += "python3 glib-2.0"
> +DEPENDS += "python3 python3-setuptools-native glib-2.0"
>
If this is required, then the build should fail, and it doesn't (neither on
the autobuilder, nor in my local setup). Is this really needed? Does the
build fail for you?
Alex
[-- Attachment #2: Type: text/html, Size: 677 bytes --]
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: [PATCH v2] python3-pygobject: move python3-setuptools from RDEPENDS to DEPENDS
2019-08-08 12:03 ` Alexander Kanavin
@ 2019-08-08 13:57 ` Luca Boccassi
0 siblings, 0 replies; 10+ messages in thread
From: Luca Boccassi @ 2019-08-08 13:57 UTC (permalink / raw)
To: Alexander Kanavin; +Cc: OE-core
On Thu, 2019-08-08 at 14:03 +0200, Alexander Kanavin wrote:
> On Thu, 8 Aug 2019 at 13:47, <luca.boccassi@gmail.com> wrote:
> > -DEPENDS += "python3 glib-2.0"
> > +DEPENDS += "python3 python3-setuptools-native glib-2.0"
>
> If this is required, then the build should fail, and it doesn't
> (neither on the autobuilder, nor in my local setup). Is this really
> needed? Does the build fail for you?
>
> Alex
Hi,
You are right, it doesn't fail - upstream lists it as optional. I do
not know enough about this package to know how important it is - so
I'll send a v3 that just removes the RDEPENDS, which is the one thing I
cared about.
Thanks!
--
Kind regards,
Luca Boccassi
^ permalink raw reply [flat|nested] 10+ messages in thread
* [PATCH v3] python3-pygobject: move python3-setuptools from RDEPENDS to DEPENDS
2019-08-05 10:52 [PATCH] python3-pygobject: move python3-setuptools from RDEPENDS to DEPENDS luca.boccassi
` (2 preceding siblings ...)
2019-08-08 11:48 ` [PATCH] " Luca Boccassi
@ 2019-08-08 13:58 ` luca.boccassi
2019-08-08 14:03 ` Jacob Kroon
2019-08-08 14:02 ` [PATCH v4] python3-pygobject: remove python3-setuptools from RDEPENDS luca.boccassi
4 siblings, 1 reply; 10+ messages in thread
From: luca.boccassi @ 2019-08-08 13:58 UTC (permalink / raw)
To: openembedded-core
From: Luca Boccassi <luca.boccassi@microsoft.com>
python3-setuptools is necessary to build pygobject but not to run it, as
also documented by the upstream packaging guide:
https://gitlab.gnome.org/GNOME/pygobject/blob/master/docs/packagingguide.rst
Move it to DEPENDS to shrink the runtime dependency chain, as setuptools
includes scripts to download other packages, which might not be desired on
a minimal image.
Signed-off-by: Luca Boccassi <luca.boccassi@microsoft.com>
---
v2: use -native suffix as requested during the code review
v3: do not add setuptools to DEPENDS - it is optional and it builds without it
meta/recipes-devtools/python/python3-pygobject_3.32.2.bb | 2 --
1 file changed, 2 deletions(-)
diff --git a/meta/recipes-devtools/python/python3-pygobject_3.32.2.bb b/meta/recipes-devtools/python/python3-pygobject_3.32.2.bb
index 05688be603..453fdac2c8 100644
--- a/meta/recipes-devtools/python/python3-pygobject_3.32.2.bb
+++ b/meta/recipes-devtools/python/python3-pygobject_3.32.2.bb
@@ -27,7 +27,5 @@ PACKAGECONFIG ??= "${@bb.utils.contains_any('DISTRO_FEATURES', [ 'directfb', 'wa
# we don't link against python3-pycairo -> RDEPENDS
PACKAGECONFIG[cairo] = "-Dpycairo=true,-Dpycairo=false, cairo python3-pycairo, python3-pycairo"
-RDEPENDS_${PN} += "python3-setuptools"
-
BBCLASSEXTEND = "native"
PACKAGECONFIG_class-native = ""
--
2.20.1
^ permalink raw reply related [flat|nested] 10+ messages in thread
* [PATCH v4] python3-pygobject: remove python3-setuptools from RDEPENDS
2019-08-05 10:52 [PATCH] python3-pygobject: move python3-setuptools from RDEPENDS to DEPENDS luca.boccassi
` (3 preceding siblings ...)
2019-08-08 13:58 ` [PATCH v3] " luca.boccassi
@ 2019-08-08 14:02 ` luca.boccassi
4 siblings, 0 replies; 10+ messages in thread
From: luca.boccassi @ 2019-08-08 14:02 UTC (permalink / raw)
To: openembedded-core
From: Luca Boccassi <luca.boccassi@microsoft.com>
python3-setuptools is an optional build-dependency of pygobject but
it is not necessary to run it, as also documented by the upstream
packaging guide:
https://gitlab.gnome.org/GNOME/pygobject/blob/master/docs/packagingguide.rst
Remove it from RDEPENDS to shrink the runtime dependency chain, as
setuptools includes scripts to download other packages, which might not
be desired on a minimal image.
Signed-off-by: Luca Boccassi <luca.boccassi@microsoft.com>
---
v2: use -native suffix as requested during the code review
v3: do not add setuptools to DEPENDS - it is optional and it builds without it
v4: fix commit message to reflect latest changes
meta/recipes-devtools/python/python3-pygobject_3.32.2.bb | 2 --
1 file changed, 2 deletions(-)
diff --git a/meta/recipes-devtools/python/python3-pygobject_3.32.2.bb b/meta/recipes-devtools/python/python3-pygobject_3.32.2.bb
index 05688be603..453fdac2c8 100644
--- a/meta/recipes-devtools/python/python3-pygobject_3.32.2.bb
+++ b/meta/recipes-devtools/python/python3-pygobject_3.32.2.bb
@@ -27,7 +27,5 @@ PACKAGECONFIG ??= "${@bb.utils.contains_any('DISTRO_FEATURES', [ 'directfb', 'wa
# we don't link against python3-pycairo -> RDEPENDS
PACKAGECONFIG[cairo] = "-Dpycairo=true,-Dpycairo=false, cairo python3-pycairo, python3-pycairo"
-RDEPENDS_${PN} += "python3-setuptools"
-
BBCLASSEXTEND = "native"
PACKAGECONFIG_class-native = ""
--
2.20.1
^ permalink raw reply related [flat|nested] 10+ messages in thread
* Re: [PATCH v3] python3-pygobject: move python3-setuptools from RDEPENDS to DEPENDS
2019-08-08 13:58 ` [PATCH v3] " luca.boccassi
@ 2019-08-08 14:03 ` Jacob Kroon
2019-08-08 14:37 ` Luca Boccassi
0 siblings, 1 reply; 10+ messages in thread
From: Jacob Kroon @ 2019-08-08 14:03 UTC (permalink / raw)
To: luca.boccassi@gmail.com, openembedded-core@lists.openembedded.org
Hi Luca,
On 8/8/19 3:58 PM, luca.boccassi@gmail.com wrote:
> From: Luca Boccassi <luca.boccassi@microsoft.com>
>
> python3-setuptools is necessary to build pygobject but not to run it, as
> also documented by the upstream packaging guide:
>
> https://gitlab.gnome.org/GNOME/pygobject/blob/master/docs/packagingguide.rst
>
> Move it to DEPENDS to shrink the runtime dependency chain, as setuptools
> includes scripts to download other packages, which might not be desired on
> a minimal image.
>
This commmit message should be rephrased now.
/Jacob
> Signed-off-by: Luca Boccassi <luca.boccassi@microsoft.com>
> ---
> v2: use -native suffix as requested during the code review
> v3: do not add setuptools to DEPENDS - it is optional and it builds without it
>
> meta/recipes-devtools/python/python3-pygobject_3.32.2.bb | 2 --
> 1 file changed, 2 deletions(-)
>
> diff --git a/meta/recipes-devtools/python/python3-pygobject_3.32.2.bb b/meta/recipes-devtools/python/python3-pygobject_3.32.2.bb
> index 05688be603..453fdac2c8 100644
> --- a/meta/recipes-devtools/python/python3-pygobject_3.32.2.bb
> +++ b/meta/recipes-devtools/python/python3-pygobject_3.32.2.bb
> @@ -27,7 +27,5 @@ PACKAGECONFIG ??= "${@bb.utils.contains_any('DISTRO_FEATURES', [ 'directfb', 'wa
> # we don't link against python3-pycairo -> RDEPENDS
> PACKAGECONFIG[cairo] = "-Dpycairo=true,-Dpycairo=false, cairo python3-pycairo, python3-pycairo"
>
> -RDEPENDS_${PN} += "python3-setuptools"
> -
> BBCLASSEXTEND = "native"
> PACKAGECONFIG_class-native = ""
>
[mikrodidakt]
Jacob Kroon • +46 46325040
mikrodidakt.se • Skiffervägen 48, SE-224 78 LUND, Sweden
Consultans since 1980 • SW, HW, Embedded Systems, Linux
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: [PATCH v3] python3-pygobject: move python3-setuptools from RDEPENDS to DEPENDS
2019-08-08 14:03 ` Jacob Kroon
@ 2019-08-08 14:37 ` Luca Boccassi
0 siblings, 0 replies; 10+ messages in thread
From: Luca Boccassi @ 2019-08-08 14:37 UTC (permalink / raw)
To: Jacob Kroon, openembedded-core@lists.openembedded.org
On Thu, 2019-08-08 at 14:03 +0000, Jacob Kroon wrote:
> Hi Luca,
>
> On 8/8/19 3:58 PM,
> luca.boccassi@gmail.com
> wrote:
> > From: Luca Boccassi <
> > luca.boccassi@microsoft.com
> > >
> >
> > python3-setuptools is necessary to build pygobject but not to run
> > it, as
> > also documented by the upstream packaging guide:
> >
> > https://gitlab.gnome.org/GNOME/pygobject/blob/master/docs/packagingguide.rst
> >
> >
> > Move it to DEPENDS to shrink the runtime dependency chain, as
> > setuptools
> > includes scripts to download other packages, which might not be
> > desired on
> > a minimal image.
> >
>
> This commmit message should be rephrased now.
> /Jacob
Hi,
Yes I realised 0.1 seconds after git send-email completed :-) Already
sent v4:
https://patchwork.openembedded.org/patch/163798/
--
Kind regards,
Luca Boccassi
^ permalink raw reply [flat|nested] 10+ messages in thread
end of thread, other threads:[~2019-08-08 14:37 UTC | newest]
Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2019-08-05 10:52 [PATCH] python3-pygobject: move python3-setuptools from RDEPENDS to DEPENDS luca.boccassi
2019-08-05 11:32 ` Ross Burton
2019-08-08 11:47 ` [PATCH v2] " luca.boccassi
2019-08-08 12:03 ` Alexander Kanavin
2019-08-08 13:57 ` Luca Boccassi
2019-08-08 11:48 ` [PATCH] " Luca Boccassi
2019-08-08 13:58 ` [PATCH v3] " luca.boccassi
2019-08-08 14:03 ` Jacob Kroon
2019-08-08 14:37 ` Luca Boccassi
2019-08-08 14:02 ` [PATCH v4] python3-pygobject: remove python3-setuptools from RDEPENDS luca.boccassi
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox