mailarchive of the ptxdist mailing list
 help / color / mirror / Atom feed
From: "Jürgen Beisert" <jbe@pengutronix.de>
To: ptxdist@pengutronix.de
Cc: Michael Olbrich <m.olbrich@pengutronix.de>,
	Alexander Aring <alex.aring@gmail.com>
Subject: Re: [ptxdist] [PATCH v2] lowpan-tools: update lowpan-patches
Date: Mon, 6 Jan 2014 12:20:54 +0100	[thread overview]
Message-ID: <201401061220.54164.jbe@pengutronix.de> (raw)
In-Reply-To: <20140106105057.GF2156@pengutronix.de>

On Monday 06 January 2014 11:50:57 Michael Olbrich wrote:
> On Mon, Jan 06, 2014 at 09:25:08AM +0100, Alexander Aring wrote:
> > On Mon, Jan 06, 2014 at 08:40:24AM +0100, Jürgen Beisert wrote:
> > > On Monday 13 May 2013 17:00:36 Michael Olbrich wrote:
> > > > On Mon, May 13, 2013 at 02:38:10PM +0200, Alexander Aring wrote:
> > > > > Currently there is no way to make a new lowpan-tools release.
> > > > > This patch synchronize the patches from version 0.3 with current
> > > > > git master.
> > > > >
> > > > > Delete Patch 0001-Avoid-crashing-in-izcoordinator.patch. Which is
> > > > > replaced by upstream
> > > > > 0001-izoordinator-Fixes-to-error-handling.patch patch.
> > > >
> > > > Thanks, applied.
> > >
> > > This package fails in the prepare stage when the LOWPAN_TOOLS_TESTS is
> > > not set. The 'configure' script always checks for python.
> > >
> > > I do not know yet how this package depends on python: Should we always
> > > build python in order to make this package build again or should we add
> > > a new parameter to its configure.ac to switch off this test, when the
> > > test tools are disabled?
> >
> > indeed. The 'configure' script always checks for python and generate a
> > python 'site-package module'.
> >
> > The LOWPAN_TOOLS_TESTS needs this 'module' only. But at the moment there
> > is no 'enable/disable' switch in the 'configure' script.
> >
> > We shall change:
> >
> > "select PYTHON if LOWPAN_TOOLS_TESTS" to "select PYTHON"
> >
> > Thanks for the hint!
>
> That should not be necessary. PTXdist always needs the system python, so
> setting ac_cv_path_PYTHON=python should be enough to get
> <ptxdist>/bin/python. The result won't be anything usefull, but it should
> compile.

Yes, it does. The required change looks very simply now:

diff --git a/rules/lowpan-tools.make b/rules/lowpan-tools.make
index a4919bd..24e7568 100644
--- a/rules/lowpan-tools.make
+++ b/rules/lowpan-tools.make
@@ -35,7 +35,7 @@ LOWPAN_TOOLS_CONF_ENV = \
 ifdef PTXCONF_LOWPAN_TOOLS_TESTS
 LOWPAN_TOOLS_CONF_ENV += ac_cv_path_PYTHON=$(CROSS_PYTHON)
 else
-LOWPAN_TOOLS_CONF_ENV += ac_cv_path_PYTHON=:
+LOWPAN_TOOLS_CONF_ENV += ac_cv_path_PYTHON=python
 endif

 #

Tested-by: Juergen Beisert <jbe@pengutronix.de>

But: "select PYTHON" means Python is required at run-time. Using 
the "$(CROSS_PYTHON)" suggests Python is required only at build-time. Am I 
wrong?

jbe

-- 
Pengutronix e.K.                              | Juergen Beisert             |
Linux Solutions for Science and Industry      | http://www.pengutronix.de/  |

-- 
ptxdist mailing list
ptxdist@pengutronix.de

  reply	other threads:[~2014-01-06 11:20 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-05-13 12:38 Alexander Aring
2013-05-13 15:00 ` Michael Olbrich
2014-01-06  7:40   ` Jürgen Beisert
2014-01-06  8:25     ` Alexander Aring
2014-01-06 10:50       ` Michael Olbrich
2014-01-06 11:20         ` Jürgen Beisert [this message]
2014-01-06 11:51           ` Michael Olbrich

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=201401061220.54164.jbe@pengutronix.de \
    --to=jbe@pengutronix.de \
    --cc=alex.aring@gmail.com \
    --cc=m.olbrich@pengutronix.de \
    --cc=ptxdist@pengutronix.de \
    /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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox