* [Buildroot] [PATCH 1/1] package/refpolicy: needs python3
@ 2020-07-16 20:59 Fabrice Fontaine
2020-07-16 21:06 ` Thomas Petazzoni
2020-07-27 13:10 ` Thomas Petazzoni
0 siblings, 2 replies; 4+ messages in thread
From: Fabrice Fontaine @ 2020-07-16 20:59 UTC (permalink / raw)
To: buildroot
Commit 09b94b1e8f94d1f49f7a2349b4c8cbfecefa73da forgot to propagate
python3 dependency from host-setools to refpolicy
Fixes:
- http://autobuild.buildroot.org/results/fdeaa54355aa0741eccc7864b034a7b07ef0c4bc
Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
---
package/refpolicy/Config.in | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/package/refpolicy/Config.in b/package/refpolicy/Config.in
index b50b2f09ff..e374ab1901 100644
--- a/package/refpolicy/Config.in
+++ b/package/refpolicy/Config.in
@@ -1,5 +1,6 @@
config BR2_PACKAGE_REFPOLICY
bool "refpolicy"
+ depends on BR2_PACKAGE_PYTHON3 # host-setools
depends on BR2_TOOLCHAIN_HAS_THREADS # libsepol
# Even though libsepol is not necessary for building, we get
# the policy version from libsepol, so we select it, and treat
@@ -58,3 +59,6 @@ endif
comment "refpolicy needs a toolchain w/ threads"
depends on !BR2_TOOLCHAIN_HAS_THREADS
+
+comment "refpolicy needs python3"
+ depends on !BR2_PACKAGE_PYTHON3
--
2.27.0
^ permalink raw reply related [flat|nested] 4+ messages in thread
* [Buildroot] [PATCH 1/1] package/refpolicy: needs python3
2020-07-16 20:59 [Buildroot] [PATCH 1/1] package/refpolicy: needs python3 Fabrice Fontaine
@ 2020-07-16 21:06 ` Thomas Petazzoni
2020-07-17 7:20 ` Antoine Tenart
2020-07-27 13:10 ` Thomas Petazzoni
1 sibling, 1 reply; 4+ messages in thread
From: Thomas Petazzoni @ 2020-07-16 21:06 UTC (permalink / raw)
To: buildroot
On Thu, 16 Jul 2020 22:59:39 +0200
Fabrice Fontaine <fontaine.fabrice@gmail.com> wrote:
> Commit 09b94b1e8f94d1f49f7a2349b4c8cbfecefa73da forgot to propagate
> python3 dependency from host-setools to refpolicy
>
> Fixes:
> - http://autobuild.buildroot.org/results/fdeaa54355aa0741eccc7864b034a7b07ef0c4bc
>
> Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
> ---
> package/refpolicy/Config.in | 4 ++++
> 1 file changed, 4 insertions(+)
>
> diff --git a/package/refpolicy/Config.in b/package/refpolicy/Config.in
> index b50b2f09ff..e374ab1901 100644
> --- a/package/refpolicy/Config.in
> +++ b/package/refpolicy/Config.in
> @@ -1,5 +1,6 @@
> config BR2_PACKAGE_REFPOLICY
> bool "refpolicy"
> + depends on BR2_PACKAGE_PYTHON3 # host-setools
It is not possible for host-setools (a host package) to have a
dependency on python3, which is a target package.
However, what is possible is that when BR2_PACKAGE_PYTHON=y, the
default host Python version is Python 2.x, and therefore host-setools
gets installed for Python 2.x, but the refpolicy build uses
host-python3, so it does not find host-setools.
I think the correct fix is instead to set
HOST_SETOOLS_NEEDS_HOST_PYTHON = python3 since anyway it only works
with Python 3.x.
Antoine: any thoughts on this ?
Thomas
--
Thomas Petazzoni, CTO, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com
^ permalink raw reply [flat|nested] 4+ messages in thread
* [Buildroot] [PATCH 1/1] package/refpolicy: needs python3
2020-07-16 21:06 ` Thomas Petazzoni
@ 2020-07-17 7:20 ` Antoine Tenart
0 siblings, 0 replies; 4+ messages in thread
From: Antoine Tenart @ 2020-07-17 7:20 UTC (permalink / raw)
To: buildroot
Hello,
Quoting Thomas Petazzoni (2020-07-16 23:06:25)
> On Thu, 16 Jul 2020 22:59:39 +0200
> Fabrice Fontaine <fontaine.fabrice@gmail.com> wrote:
>
> > Commit 09b94b1e8f94d1f49f7a2349b4c8cbfecefa73da forgot to propagate
> > python3 dependency from host-setools to refpolicy
> >
> > Fixes:
> > - http://autobuild.buildroot.org/results/fdeaa54355aa0741eccc7864b034a7b07ef0c4bc
> >
> > Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
> > ---
> > package/refpolicy/Config.in | 4 ++++
> > 1 file changed, 4 insertions(+)
> >
> > diff --git a/package/refpolicy/Config.in b/package/refpolicy/Config.in
> > index b50b2f09ff..e374ab1901 100644
> > --- a/package/refpolicy/Config.in
> > +++ b/package/refpolicy/Config.in
> > @@ -1,5 +1,6 @@
> > config BR2_PACKAGE_REFPOLICY
> > bool "refpolicy"
> > + depends on BR2_PACKAGE_PYTHON3 # host-setools
>
> It is not possible for host-setools (a host package) to have a
> dependency on python3, which is a target package.
>
> However, what is possible is that when BR2_PACKAGE_PYTHON=y, the
> default host Python version is Python 2.x, and therefore host-setools
> gets installed for Python 2.x, but the refpolicy build uses
> host-python3, so it does not find host-setools.
>
> I think the correct fix is instead to set
> HOST_SETOOLS_NEEDS_HOST_PYTHON = python3 since anyway it only works
> with Python 3.x.
>
> Antoine: any thoughts on this ?
Your proposal seems reasonable.
Thanks!
Antoine
--
Antoine T?nart, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com
^ permalink raw reply [flat|nested] 4+ messages in thread
* [Buildroot] [PATCH 1/1] package/refpolicy: needs python3
2020-07-16 20:59 [Buildroot] [PATCH 1/1] package/refpolicy: needs python3 Fabrice Fontaine
2020-07-16 21:06 ` Thomas Petazzoni
@ 2020-07-27 13:10 ` Thomas Petazzoni
1 sibling, 0 replies; 4+ messages in thread
From: Thomas Petazzoni @ 2020-07-27 13:10 UTC (permalink / raw)
To: buildroot
On Thu, 16 Jul 2020 22:59:39 +0200
Fabrice Fontaine <fontaine.fabrice@gmail.com> wrote:
> Commit 09b94b1e8f94d1f49f7a2349b4c8cbfecefa73da forgot to propagate
> python3 dependency from host-setools to refpolicy
>
> Fixes:
> - http://autobuild.buildroot.org/results/fdeaa54355aa0741eccc7864b034a7b07ef0c4bc
>
> Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
> ---
> package/refpolicy/Config.in | 4 ++++
> 1 file changed, 4 insertions(+)
This issue was fixed in
https://git.buildroot.org/buildroot/commit/package/python-networkx?id=09b94b1e8f94d1f49f7a2349b4c8cbfecefa73da,
in a different/better way, that still allows to use SELinux without
python3 on the targe.
Thanks,
Thomas
--
Thomas Petazzoni, CTO, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2020-07-27 13:10 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-07-16 20:59 [Buildroot] [PATCH 1/1] package/refpolicy: needs python3 Fabrice Fontaine
2020-07-16 21:06 ` Thomas Petazzoni
2020-07-17 7:20 ` Antoine Tenart
2020-07-27 13:10 ` Thomas Petazzoni
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.