Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] [PATCH 1/1] package/bind: fix python build
@ 2019-04-27 13:49 Fabrice Fontaine
  2019-04-29  7:29 ` Peter Korsgaard
  2019-04-30  7:21 ` Peter Korsgaard
  0 siblings, 2 replies; 10+ messages in thread
From: Fabrice Fontaine @ 2019-04-27 13:49 UTC (permalink / raw)
  To: buildroot

A check for python-ply has been added as this is a dependency of the
dnssec-keymgr script so install host-python-ply to avoid a build failure
if python-ply is not installed on host

Fixes:
 - http://autobuild.buildroot.org/results/96815b1300547c976443bf74b762febdfcc8d3ba

Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
---
 package/bind/bind.mk | 7 +++++--
 1 file changed, 5 insertions(+), 2 deletions(-)

diff --git a/package/bind/bind.mk b/package/bind/bind.mk
index 356bc259b2..087ce941b0 100644
--- a/package/bind/bind.mk
+++ b/package/bind/bind.mk
@@ -70,8 +70,11 @@ else
 BIND_CONF_OPTS += --with-openssl=no
 endif
 
-# Used by dnssec-checkds and dnssec-coverage
-ifeq ($(BR2_PACKAGE_PYTHON)$(BR2_PACKAGE_PYTHON3),)
+# Used by dnssec-keymgr
+ifeq ($(BR2_PACKAGE_PYTHON_PLY),y)
+BIND_DEPENDENCIES += host-python-ply
+BIND_CONF_OPTS += --with-python=$(HOST_DIR)/usr/bin/python
+else
 BIND_CONF_OPTS += --with-python=no
 endif
 
-- 
2.20.1

^ permalink raw reply related	[flat|nested] 10+ messages in thread

* [Buildroot] [PATCH 1/1] package/bind: fix python build
  2019-04-27 13:49 [Buildroot] [PATCH 1/1] package/bind: fix python build Fabrice Fontaine
@ 2019-04-29  7:29 ` Peter Korsgaard
  2019-04-29  8:33   ` Peter Korsgaard
  2019-04-30  7:21 ` Peter Korsgaard
  1 sibling, 1 reply; 10+ messages in thread
From: Peter Korsgaard @ 2019-04-29  7:29 UTC (permalink / raw)
  To: buildroot

>>>>> "Fabrice" == Fabrice Fontaine <fontaine.fabrice@gmail.com> writes:

 > A check for python-ply has been added as this is a dependency of the
 > dnssec-keymgr script so install host-python-ply to avoid a build failure
 > if python-ply is not installed on host

 > Fixes:
 >  - http://autobuild.buildroot.org/results/96815b1300547c976443bf74b762febdfcc8d3ba

 > Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>

Committed, thanks.

-- 
Bye, Peter Korsgaard

^ permalink raw reply	[flat|nested] 10+ messages in thread

* [Buildroot] [PATCH 1/1] package/bind: fix python build
  2019-04-29  7:29 ` Peter Korsgaard
@ 2019-04-29  8:33   ` Peter Korsgaard
  0 siblings, 0 replies; 10+ messages in thread
From: Peter Korsgaard @ 2019-04-29  8:33 UTC (permalink / raw)
  To: buildroot

>>>>> "Peter" == Peter Korsgaard <peter@korsgaard.com> writes:

>>>>> "Fabrice" == Fabrice Fontaine <fontaine.fabrice@gmail.com> writes:
 >> A check for python-ply has been added as this is a dependency of the
 >> dnssec-keymgr script so install host-python-ply to avoid a build failure
 >> if python-ply is not installed on host

 >> Fixes:
 >> - http://autobuild.buildroot.org/results/96815b1300547c976443bf74b762febdfcc8d3ba

 >> Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>

Committed to 2019.02.x, thanks.

-- 
Bye, Peter Korsgaard

^ permalink raw reply	[flat|nested] 10+ messages in thread

* [Buildroot] [PATCH 1/1] package/bind: fix python build
  2019-04-27 13:49 [Buildroot] [PATCH 1/1] package/bind: fix python build Fabrice Fontaine
  2019-04-29  7:29 ` Peter Korsgaard
@ 2019-04-30  7:21 ` Peter Korsgaard
  2019-04-30  7:25   ` Fabrice Fontaine
  2019-05-01 12:19   ` Arnout Vandecappelle
  1 sibling, 2 replies; 10+ messages in thread
From: Peter Korsgaard @ 2019-04-30  7:21 UTC (permalink / raw)
  To: buildroot

>>>>> "Fabrice" == Fabrice Fontaine <fontaine.fabrice@gmail.com> writes:

 > A check for python-ply has been added as this is a dependency of the
 > dnssec-keymgr script so install host-python-ply to avoid a build failure
 > if python-ply is not installed on host

 > Fixes:
 >  - http://autobuild.buildroot.org/results/96815b1300547c976443bf74b762febdfcc8d3ba

 > Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
 > ---
 >  package/bind/bind.mk | 7 +++++--
 >  1 file changed, 5 insertions(+), 2 deletions(-)

 > diff --git a/package/bind/bind.mk b/package/bind/bind.mk
 > index 356bc259b2..087ce941b0 100644
 > --- a/package/bind/bind.mk
 > +++ b/package/bind/bind.mk
 > @@ -70,8 +70,11 @@ else
 >  BIND_CONF_OPTS += --with-openssl=no
 >  endif
 
 > -# Used by dnssec-checkds and dnssec-coverage
 > -ifeq ($(BR2_PACKAGE_PYTHON)$(BR2_PACKAGE_PYTHON3),)
 > +# Used by dnssec-keymgr
 > +ifeq ($(BR2_PACKAGE_PYTHON_PLY),y)
 > +BIND_DEPENDENCIES += host-python-ply
 > +BIND_CONF_OPTS += --with-python=$(HOST_DIR)/usr/bin/python

Hmm, I somehow missed the host/target mixup. This is not good. You test
if the target python-ply package is enabled, but then add
host-python-ply (which doesn't exist) to _DEPENDENCIES:

http://autobuild.buildroot.net/results/2615ebfdcb068594d028af4823260e613d37e867/build-end.log

If I understand it right, we need ply for the host to satisfy the
configure check and ply for the target for runtime, so I guess the
solution is to add a host version of the python-ply package.

-- 
Bye, Peter Korsgaard

^ permalink raw reply	[flat|nested] 10+ messages in thread

* [Buildroot] [PATCH 1/1] package/bind: fix python build
  2019-04-30  7:21 ` Peter Korsgaard
@ 2019-04-30  7:25   ` Fabrice Fontaine
  2019-04-30  8:10     ` Peter Korsgaard
  2019-05-01 12:19   ` Arnout Vandecappelle
  1 sibling, 1 reply; 10+ messages in thread
From: Fabrice Fontaine @ 2019-04-30  7:25 UTC (permalink / raw)
  To: buildroot

Hello Peter,

Le mar. 30 avr. 2019 ? 09:21, Peter Korsgaard <peter@korsgaard.com> a ?crit :
>
> >>>>> "Fabrice" == Fabrice Fontaine <fontaine.fabrice@gmail.com> writes:
>
>  > A check for python-ply has been added as this is a dependency of the
>  > dnssec-keymgr script so install host-python-ply to avoid a build failure
>  > if python-ply is not installed on host
>
>  > Fixes:
>  >  - http://autobuild.buildroot.org/results/96815b1300547c976443bf74b762febdfcc8d3ba
>
>  > Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
>  > ---
>  >  package/bind/bind.mk | 7 +++++--
>  >  1 file changed, 5 insertions(+), 2 deletions(-)
>
>  > diff --git a/package/bind/bind.mk b/package/bind/bind.mk
>  > index 356bc259b2..087ce941b0 100644
>  > --- a/package/bind/bind.mk
>  > +++ b/package/bind/bind.mk
>  > @@ -70,8 +70,11 @@ else
>  >  BIND_CONF_OPTS += --with-openssl=no
>  >  endif
>
>  > -# Used by dnssec-checkds and dnssec-coverage
>  > -ifeq ($(BR2_PACKAGE_PYTHON)$(BR2_PACKAGE_PYTHON3),)
>  > +# Used by dnssec-keymgr
>  > +ifeq ($(BR2_PACKAGE_PYTHON_PLY),y)
>  > +BIND_DEPENDENCIES += host-python-ply
>  > +BIND_CONF_OPTS += --with-python=$(HOST_DIR)/usr/bin/python
>
> Hmm, I somehow missed the host/target mixup. This is not good. You test
> if the target python-ply package is enabled, but then add
> host-python-ply (which doesn't exist) to _DEPENDENCIES:
>
> http://autobuild.buildroot.net/results/2615ebfdcb068594d028af4823260e613d37e867/build-end.log
>
> If I understand it right, we need ply for the host to satisfy the
> configure check and ply for the target for runtime, so I guess the
> solution is to add a host version of the python-ply package.
Yes, I forgot to add the host variant of python-ply.
>
> --
> Bye, Peter Korsgaard
Best Regards,

Fabrice

^ permalink raw reply	[flat|nested] 10+ messages in thread

* [Buildroot] [PATCH 1/1] package/bind: fix python build
  2019-04-30  7:25   ` Fabrice Fontaine
@ 2019-04-30  8:10     ` Peter Korsgaard
  2019-04-30  9:13       ` Fabrice Fontaine
  0 siblings, 1 reply; 10+ messages in thread
From: Peter Korsgaard @ 2019-04-30  8:10 UTC (permalink / raw)
  To: buildroot

>>>>> "Fabrice" == Fabrice Fontaine <fontaine.fabrice@gmail.com> writes:

Hi,

 >> If I understand it right, we need ply for the host to satisfy the
 >> configure check and ply for the target for runtime, so I guess the
 >> solution is to add a host version of the python-ply package.

 > Yes, I forgot to add the host variant of python-ply.

Will you send a patch to fix it?

-- 
Bye, Peter Korsgaard

^ permalink raw reply	[flat|nested] 10+ messages in thread

* [Buildroot] [PATCH 1/1] package/bind: fix python build
  2019-04-30  8:10     ` Peter Korsgaard
@ 2019-04-30  9:13       ` Fabrice Fontaine
  2019-04-30 10:15         ` Peter Korsgaard
  0 siblings, 1 reply; 10+ messages in thread
From: Fabrice Fontaine @ 2019-04-30  9:13 UTC (permalink / raw)
  To: buildroot

Hello,

Le mar. 30 avr. 2019 ? 10:10, Peter Korsgaard <peter@korsgaard.com> a ?crit :
>
> >>>>> "Fabrice" == Fabrice Fontaine <fontaine.fabrice@gmail.com> writes:
>
> Hi,
>
>  >> If I understand it right, we need ply for the host to satisfy the
>  >> configure check and ply for the target for runtime, so I guess the
>  >> solution is to add a host version of the python-ply package.
>
>  > Yes, I forgot to add the host variant of python-ply.
>
> Will you send a patch to fix it?
Yes, I'll do it this evening.
>
> --
> Bye, Peter Korsgaard
Fabrice

^ permalink raw reply	[flat|nested] 10+ messages in thread

* [Buildroot] [PATCH 1/1] package/bind: fix python build
  2019-04-30  9:13       ` Fabrice Fontaine
@ 2019-04-30 10:15         ` Peter Korsgaard
  0 siblings, 0 replies; 10+ messages in thread
From: Peter Korsgaard @ 2019-04-30 10:15 UTC (permalink / raw)
  To: buildroot

>>>>> "Fabrice" == Fabrice Fontaine <fontaine.fabrice@gmail.com> writes:

Hi,

 >> > Yes, I forgot to add the host variant of python-ply.
 >> 
 >> Will you send a patch to fix it?
 > Yes, I'll do it this evening.

Great, thanks!

-- 
Bye, Peter Korsgaard

^ permalink raw reply	[flat|nested] 10+ messages in thread

* [Buildroot] [PATCH 1/1] package/bind: fix python build
  2019-04-30  7:21 ` Peter Korsgaard
  2019-04-30  7:25   ` Fabrice Fontaine
@ 2019-05-01 12:19   ` Arnout Vandecappelle
  2019-05-01 12:37     ` Peter Korsgaard
  1 sibling, 1 reply; 10+ messages in thread
From: Arnout Vandecappelle @ 2019-05-01 12:19 UTC (permalink / raw)
  To: buildroot



On 30/04/2019 09:21, Peter Korsgaard wrote:
>>>>>> "Fabrice" == Fabrice Fontaine <fontaine.fabrice@gmail.com> writes:
> 
>  > A check for python-ply has been added as this is a dependency of the
>  > dnssec-keymgr script so install host-python-ply to avoid a build failure
>  > if python-ply is not installed on host
> 
>  > Fixes:
>  >  - http://autobuild.buildroot.org/results/96815b1300547c976443bf74b762febdfcc8d3ba
> 
>  > Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
>  > ---
>  >  package/bind/bind.mk | 7 +++++--
>  >  1 file changed, 5 insertions(+), 2 deletions(-)
> 
>  > diff --git a/package/bind/bind.mk b/package/bind/bind.mk
>  > index 356bc259b2..087ce941b0 100644
>  > --- a/package/bind/bind.mk
>  > +++ b/package/bind/bind.mk
>  > @@ -70,8 +70,11 @@ else
>  >  BIND_CONF_OPTS += --with-openssl=no
>  >  endif
>  
>  > -# Used by dnssec-checkds and dnssec-coverage
>  > -ifeq ($(BR2_PACKAGE_PYTHON)$(BR2_PACKAGE_PYTHON3),)
>  > +# Used by dnssec-keymgr
>  > +ifeq ($(BR2_PACKAGE_PYTHON_PLY),y)
>  > +BIND_DEPENDENCIES += host-python-ply
>  > +BIND_CONF_OPTS += --with-python=$(HOST_DIR)/usr/bin/python
> 
> Hmm, I somehow missed the host/target mixup. This is not good. You test
> if the target python-ply package is enabled, but then add
> host-python-ply (which doesn't exist) to _DEPENDENCIES:
> 
> http://autobuild.buildroot.net/results/2615ebfdcb068594d028af4823260e613d37e867/build-end.log
> 
> If I understand it right, we need ply for the host to satisfy the
> configure check and ply for the target for runtime, so I guess the
> solution is to add a host version of the python-ply package.

 It's pretty ridiculous that we need host-python and host-python-ply *just* to
satisfy the configure script... AFAICS, it's not actually used anywhere. Can't
we turn PYTHON into a cache var and replace all that with a simple
ac_cv_PYTHON=pyhon ?

 Regards,
 Arnout

^ permalink raw reply	[flat|nested] 10+ messages in thread

* [Buildroot] [PATCH 1/1] package/bind: fix python build
  2019-05-01 12:19   ` Arnout Vandecappelle
@ 2019-05-01 12:37     ` Peter Korsgaard
  0 siblings, 0 replies; 10+ messages in thread
From: Peter Korsgaard @ 2019-05-01 12:37 UTC (permalink / raw)
  To: buildroot

>>>>> "Arnout" == Arnout Vandecappelle <arnout@mind.be> writes:

Hi,

 >> Hmm, I somehow missed the host/target mixup. This is not good. You test
 >> if the target python-ply package is enabled, but then add
 >> host-python-ply (which doesn't exist) to _DEPENDENCIES:
 >> 
 >> http://autobuild.buildroot.net/results/2615ebfdcb068594d028af4823260e613d37e867/build-end.log
 >> 
 >> If I understand it right, we need ply for the host to satisfy the
 >> configure check and ply for the target for runtime, so I guess the
 >> solution is to add a host version of the python-ply package.

 >  It's pretty ridiculous that we need host-python and host-python-ply *just* to
 > satisfy the configure script... AFAICS, it's not actually used anywhere. Can't
 > we turn PYTHON into a cache var and replace all that with a simple
 > ac_cv_PYTHON=pyhon ?

I guess we could, but it also needs python for the target at runtime, so
that implies host-python, and host-python-ply is a pure python package
so trivial to build - So it doesn't really gain much.

-- 
Bye, Peter Korsgaard

^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2019-05-01 12:37 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2019-04-27 13:49 [Buildroot] [PATCH 1/1] package/bind: fix python build Fabrice Fontaine
2019-04-29  7:29 ` Peter Korsgaard
2019-04-29  8:33   ` Peter Korsgaard
2019-04-30  7:21 ` Peter Korsgaard
2019-04-30  7:25   ` Fabrice Fontaine
2019-04-30  8:10     ` Peter Korsgaard
2019-04-30  9:13       ` Fabrice Fontaine
2019-04-30 10:15         ` Peter Korsgaard
2019-05-01 12:19   ` Arnout Vandecappelle
2019-05-01 12:37     ` Peter Korsgaard

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox