* [Buildroot] [PATCH] openpgm: needs host python2
@ 2014-04-08 7:13 Baruch Siach
2014-04-08 7:29 ` Samuel Martin
0 siblings, 1 reply; 3+ messages in thread
From: Baruch Siach @ 2014-04-08 7:13 UTC (permalink / raw)
To: buildroot
When BR2_PACKAGE_PYTHON3=y host python symlinks to python3. This breaks the
version_generator.py script. Make sure we have the right host python version.
Fixes:
http://autobuild.buildroot.net/results/01f/01f886a073439c0639ed93e596b68bcadf1a5824/
Cc: Samuel Martin <s.martin49@gmail.com>
Signed-off-by: Baruch Siach <baruch@tkos.co.il>
---
package/openpgm/openpgm.mk | 6 ++++++
1 file changed, 6 insertions(+)
diff --git a/package/openpgm/openpgm.mk b/package/openpgm/openpgm.mk
index 3ec5c77e28c4..ccfa5909fb00 100644
--- a/package/openpgm/openpgm.mk
+++ b/package/openpgm/openpgm.mk
@@ -15,4 +15,10 @@ OPENPGM_SUBDIR = openpgm/pgm/
OPENPGM_CONF_ENV = ac_cv_file__proc_cpuinfo=yes ac_cv_file__dev_rtc=no \
ac_cv_file__dev_hpet=no
+# version_generator.py needs python2
+ifeq ($(BR2_PACKAGE_PYTHON3),y)
+OPENPGM_DEPENDENCIES += host-python
+OPENPGM_CONF_ENV += ac_cv_path_PYTHON=$(HOST_DIR)/usr/bin/python2
+endif
+
$(eval $(autotools-package))
--
1.9.1
^ permalink raw reply related [flat|nested] 3+ messages in thread* [Buildroot] [PATCH] openpgm: needs host python2
2014-04-08 7:13 [Buildroot] [PATCH] openpgm: needs host python2 Baruch Siach
@ 2014-04-08 7:29 ` Samuel Martin
2014-04-08 7:45 ` Baruch Siach
0 siblings, 1 reply; 3+ messages in thread
From: Samuel Martin @ 2014-04-08 7:29 UTC (permalink / raw)
To: buildroot
Hi Baruch, all,
On Tue, Apr 8, 2014 at 9:13 AM, Baruch Siach <baruch@tkos.co.il> wrote:
> When BR2_PACKAGE_PYTHON3=y host python symlinks to python3. This breaks the
> version_generator.py script. Make sure we have the right host python version.
>
> Fixes:
> http://autobuild.buildroot.net/results/01f/01f886a073439c0639ed93e596b68bcadf1a5824/
>
> Cc: Samuel Martin <s.martin49@gmail.com>
> Signed-off-by: Baruch Siach <baruch@tkos.co.il>
> ---
> package/openpgm/openpgm.mk | 6 ++++++
> 1 file changed, 6 insertions(+)
>
> diff --git a/package/openpgm/openpgm.mk b/package/openpgm/openpgm.mk
> index 3ec5c77e28c4..ccfa5909fb00 100644
> --- a/package/openpgm/openpgm.mk
> +++ b/package/openpgm/openpgm.mk
> @@ -15,4 +15,10 @@ OPENPGM_SUBDIR = openpgm/pgm/
> OPENPGM_CONF_ENV = ac_cv_file__proc_cpuinfo=yes ac_cv_file__dev_rtc=no \
> ac_cv_file__dev_hpet=no
>
> +# version_generator.py needs python2
> +ifeq ($(BR2_PACKAGE_PYTHON3),y)
> +OPENPGM_DEPENDENCIES += host-python
> +OPENPGM_CONF_ENV += ac_cv_path_PYTHON=$(HOST_DIR)/usr/bin/python2
> +endif
> +
In the pointed build failure log, python is /scratch/peko/host/usr/bin/python.
Do we want to rely on the system python interpreter?
Maybe in such a case we prefer unconditionally relying on python2
built by Buildroot...
> $(eval $(autotools-package))
> --
> 1.9.1
>
Regards,
--
Samuel
^ permalink raw reply [flat|nested] 3+ messages in thread
* [Buildroot] [PATCH] openpgm: needs host python2
2014-04-08 7:29 ` Samuel Martin
@ 2014-04-08 7:45 ` Baruch Siach
0 siblings, 0 replies; 3+ messages in thread
From: Baruch Siach @ 2014-04-08 7:45 UTC (permalink / raw)
To: buildroot
Hi Samuel,
On Tue, Apr 08, 2014 at 09:29:27AM +0200, Samuel Martin wrote:
> On Tue, Apr 8, 2014 at 9:13 AM, Baruch Siach <baruch@tkos.co.il> wrote:
> > When BR2_PACKAGE_PYTHON3=y host python symlinks to python3. This breaks the
> > version_generator.py script. Make sure we have the right host python version.
> >
> > Fixes:
> > http://autobuild.buildroot.net/results/01f/01f886a073439c0639ed93e596b68bcadf1a5824/
> >
> > Cc: Samuel Martin <s.martin49@gmail.com>
> > Signed-off-by: Baruch Siach <baruch@tkos.co.il>
> > ---
> > package/openpgm/openpgm.mk | 6 ++++++
> > 1 file changed, 6 insertions(+)
> >
> > diff --git a/package/openpgm/openpgm.mk b/package/openpgm/openpgm.mk
> > index 3ec5c77e28c4..ccfa5909fb00 100644
> > --- a/package/openpgm/openpgm.mk
> > +++ b/package/openpgm/openpgm.mk
> > @@ -15,4 +15,10 @@ OPENPGM_SUBDIR = openpgm/pgm/
> > OPENPGM_CONF_ENV = ac_cv_file__proc_cpuinfo=yes ac_cv_file__dev_rtc=no \
> > ac_cv_file__dev_hpet=no
> >
> > +# version_generator.py needs python2
> > +ifeq ($(BR2_PACKAGE_PYTHON3),y)
> > +OPENPGM_DEPENDENCIES += host-python
> > +OPENPGM_CONF_ENV += ac_cv_path_PYTHON=$(HOST_DIR)/usr/bin/python2
> > +endif
> > +
>
> In the pointed build failure log, python is /scratch/peko/host/usr/bin/python.
> Do we want to rely on the system python interpreter?
Buildroot already relies on host python as a dependency. We just don't record
the full path of python, so we can't use it to seed ac_cv_path_PYTHON. Should
we?
> Maybe in such a case we prefer unconditionally relying on python2
> built by Buildroot...
This makes sense. I'll remove the BR2_PACKAGE_PYTHON3 condition if nobody else
objects.
baruch
> > $(eval $(autotools-package))
> > --
> > 1.9.1
--
http://baruch.siach.name/blog/ ~. .~ Tk Open Systems
=}------------------------------------------------ooO--U--Ooo------------{=
- baruch at tkos.co.il - tel: +972.2.679.5364, http://www.tkos.co.il -
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2014-04-08 7:45 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-04-08 7:13 [Buildroot] [PATCH] openpgm: needs host python2 Baruch Siach
2014-04-08 7:29 ` Samuel Martin
2014-04-08 7:45 ` Baruch Siach
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox