Openembedded Core Discussions
 help / color / mirror / Atom feed
* [PATCH 0/1] glib-2.0-native: do_compile failed on opensuse 12.2 64bit
@ 2013-04-26 11:41 Robert Yang
  2013-04-26 11:41 ` [PATCH 1/1] " Robert Yang
  0 siblings, 1 reply; 9+ messages in thread
From: Robert Yang @ 2013-04-26 11:41 UTC (permalink / raw)
  To: openembedded-core

The following changes since commit addcfcda84ed6b43b00f569a6060e3b78196ef52:

  glib-2.0: disable tests for native builds, and respect ptest for LSB (2013-04-23 13:00:43 +0100)

are available in the git repository at:

  git://git.pokylinux.org/poky-contrib robert/glib
  http://git.pokylinux.org/cgit.cgi/poky-contrib/log/?h=robert/glib

Robert Yang (1):
  glib-2.0-native: do_compile failed on opensuse 12.2 64bit

 meta/recipes-core/glib-2.0/glib-2.0_2.34.3.bb |    2 +-
 meta/recipes-core/glib-2.0/glib.inc           |    2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

-- 
1.7.10.4




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

* [PATCH 1/1] glib-2.0-native: do_compile failed on opensuse 12.2 64bit
  2013-04-26 11:41 [PATCH 0/1] glib-2.0-native: do_compile failed on opensuse 12.2 64bit Robert Yang
@ 2013-04-26 11:41 ` Robert Yang
  2013-04-26 12:08   ` Burton, Ross
  0 siblings, 1 reply; 9+ messages in thread
From: Robert Yang @ 2013-04-26 11:41 UTC (permalink / raw)
  To: openembedded-core

The error message:
  File "/path/to/glib-2.34.3/gio/gdbus-2.0/codegen/parser.py", line 25, in <module>
    import xml.parsers.expat

ImportError: No module named xml.parsers.expat
make[2]: *** [gdbus-daemon-generated.h] Error 1

This is because opensuse 12.2 doesn't install the expat.py (one of
python's lib) by default, but our native python provides it, use the
native python would fix the problem.

[YOCTO #4424]

Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
---
 meta/recipes-core/glib-2.0/glib-2.0_2.34.3.bb |    2 +-
 meta/recipes-core/glib-2.0/glib.inc           |    2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/meta/recipes-core/glib-2.0/glib-2.0_2.34.3.bb b/meta/recipes-core/glib-2.0/glib-2.0_2.34.3.bb
index 7795524..50f8968 100644
--- a/meta/recipes-core/glib-2.0/glib-2.0_2.34.3.bb
+++ b/meta/recipes-core/glib-2.0/glib-2.0_2.34.3.bb
@@ -45,7 +45,7 @@ RDEPENDS_${PN}-ptest_append_libc-glibc = "\
            "
 
 do_configure_prepend() {
-	sed -i -e '1s,#!.*,#!${USRBINPATH}/env python,' ${S}/gio/gdbus-2.0/codegen/gdbus-codegen.in
+	sed -i -e '1s,#!.*,#!${PYTHON},' ${S}/gio/gdbus-2.0/codegen/gdbus-codegen.in
 }
 
 do_install_append() {
diff --git a/meta/recipes-core/glib-2.0/glib.inc b/meta/recipes-core/glib-2.0/glib.inc
index 42c34c3..0b09131 100644
--- a/meta/recipes-core/glib-2.0/glib.inc
+++ b/meta/recipes-core/glib-2.0/glib.inc
@@ -21,7 +21,7 @@ PACKAGES =+ "${PN}-utils ${PN}-bash-completion ${PN}-codegen"
 LEAD_SONAME = "libglib-2.0.*"
 FILES_${PN}-utils = "${bindir}/* ${datadir}/glib-2.0/gettext"
 
-inherit autotools gettext gtk-doc pkgconfig ptest
+inherit autotools gettext gtk-doc pkgconfig ptest pythonnative
 
 S = "${WORKDIR}/glib-${PV}"
 
-- 
1.7.10.4




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

* Re: [PATCH 1/1] glib-2.0-native: do_compile failed on opensuse 12.2 64bit
  2013-04-26 11:41 ` [PATCH 1/1] " Robert Yang
@ 2013-04-26 12:08   ` Burton, Ross
  2013-04-27  1:57     ` Robert Yang
  0 siblings, 1 reply; 9+ messages in thread
From: Burton, Ross @ 2013-04-26 12:08 UTC (permalink / raw)
  To: Robert Yang; +Cc: openembedded-core

Hi,

On 26 April 2013 12:41, Robert Yang <liezhi.yang@windriver.com> wrote:
> The error message:
>   File "/path/to/glib-2.34.3/gio/gdbus-2.0/codegen/parser.py", line 25, in <module>
>     import xml.parsers.expat
>
> ImportError: No module named xml.parsers.expat
> make[2]: *** [gdbus-daemon-generated.h] Error 1
>
> This is because opensuse 12.2 doesn't install the expat.py (one of
> python's lib) by default, but our native python provides it, use the
> native python would fix the problem.

I don't like this.

xml.parsers.expat is a standard Python library that's been integrated since 2.0:

http://docs.python.org/2/library/pyexpat.html#module-xml.parsers.expat

If we can't assume that a distribution has shipped a working Python
we've got bigger problems.

We could sanity check this in some way, maybe in the recipe's
configure step so we can give a nicer message, but I don't think we
should depend on pythonnative when we're talking about a standard
feature of Python.

Ross



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

* Re: [PATCH 1/1] glib-2.0-native: do_compile failed on opensuse 12.2 64bit
  2013-04-26 12:08   ` Burton, Ross
@ 2013-04-27  1:57     ` Robert Yang
  2013-05-13 15:18       ` Burton, Ross
  0 siblings, 1 reply; 9+ messages in thread
From: Robert Yang @ 2013-04-27  1:57 UTC (permalink / raw)
  To: Burton, Ross; +Cc: openembedded-core



On 04/26/2013 08:08 PM, Burton, Ross wrote:
> Hi,
>
> On 26 April 2013 12:41, Robert Yang <liezhi.yang@windriver.com> wrote:
>> The error message:
>>    File "/path/to/glib-2.34.3/gio/gdbus-2.0/codegen/parser.py", line 25, in <module>
>>      import xml.parsers.expat
>>
>> ImportError: No module named xml.parsers.expat
>> make[2]: *** [gdbus-daemon-generated.h] Error 1
>>
>> This is because opensuse 12.2 doesn't install the expat.py (one of
>> python's lib) by default, but our native python provides it, use the
>> native python would fix the problem.
>
> I don't like this.
>
> xml.parsers.expat is a standard Python library that's been integrated since 2.0:
>
> http://docs.python.org/2/library/pyexpat.html#module-xml.parsers.expat
>
> If we can't assume that a distribution has shipped a working Python
> we've got bigger problems.
>
> We could sanity check this in some way, maybe in the recipe's
> configure step so we can give a nicer message, but I don't think we
> should depend on pythonnative when we're talking about a standard
> feature of Python.
>

Hi Ross,

Thanks for the review, please see more comments:
The glib-2.0-native had already depend on python-native before this patch,
the depends chain is:

glib-2.0-native -> python-argparse-native -> python-native

I inherit the glib-2.0-native is for using the ${PYTHON} variable, it doesn't
change its depends, since we had built python-native already, and it works,
it seems more reasonable to use it rather than show error message and let the
user install other pkgs on the host, I think that this is what our native
recipe for.

// Robert


> Ross
>
>



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

* Re: [PATCH 1/1] glib-2.0-native: do_compile failed on opensuse 12.2 64bit
  2013-04-27  1:57     ` Robert Yang
@ 2013-05-13 15:18       ` Burton, Ross
  2013-05-13 15:23         ` Otavio Salvador
  0 siblings, 1 reply; 9+ messages in thread
From: Burton, Ross @ 2013-05-13 15:18 UTC (permalink / raw)
  To: Robert Yang; +Cc: openembedded-core

On 27 April 2013 02:57, Robert Yang <liezhi.yang@windriver.com> wrote:
> Thanks for the review, please see more comments:
> The glib-2.0-native had already depend on python-native before this patch,
> the depends chain is:
>
> glib-2.0-native -> python-argparse-native -> python-native

That argparse usage was dropped from upstream in 2.30, so we can drop
the dependency.

I still think that we shouldn't have to build a whole python because a
distribution decided to not install fundamental parts of Python out of
the box (python-xml).

Ross



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

* Re: [PATCH 1/1] glib-2.0-native: do_compile failed on opensuse 12.2 64bit
  2013-05-13 15:18       ` Burton, Ross
@ 2013-05-13 15:23         ` Otavio Salvador
  2013-05-13 15:28           ` Burton, Ross
  0 siblings, 1 reply; 9+ messages in thread
From: Otavio Salvador @ 2013-05-13 15:23 UTC (permalink / raw)
  To: Burton, Ross; +Cc: Patches and discussions about the oe-core layer

On Mon, May 13, 2013 at 12:18 PM, Burton, Ross <ross.burton@intel.com> wrote:
> On 27 April 2013 02:57, Robert Yang <liezhi.yang@windriver.com> wrote:
>> Thanks for the review, please see more comments:
>> The glib-2.0-native had already depend on python-native before this patch,
>> the depends chain is:
>>
>> glib-2.0-native -> python-argparse-native -> python-native
>
> That argparse usage was dropped from upstream in 2.30, so we can drop
> the dependency.
>
> I still think that we shouldn't have to build a whole python because a
> distribution decided to not install fundamental parts of Python out of
> the box (python-xml).

We may need to have a mechanism to specific build dependencies for
native depending on host version/distribution.

--
Otavio Salvador                             O.S. Systems
E-mail: otavio@ossystems.com.br  http://www.ossystems.com.br
Mobile: +55 53 9981-7854              http://projetos.ossystems.com.br



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

* Re: [PATCH 1/1] glib-2.0-native: do_compile failed on opensuse 12.2 64bit
  2013-05-13 15:23         ` Otavio Salvador
@ 2013-05-13 15:28           ` Burton, Ross
  2013-05-13 15:36             ` Otavio Salvador
  2013-05-14  1:47             ` Robert Yang
  0 siblings, 2 replies; 9+ messages in thread
From: Burton, Ross @ 2013-05-13 15:28 UTC (permalink / raw)
  To: Otavio Salvador; +Cc: Patches and discussions about the oe-core layer

On 13 May 2013 16:23, Otavio Salvador <otavio@ossystems.com.br> wrote:
> We may need to have a mechanism to specific build dependencies for
> native depending on host version/distribution.

The situation is that Suse splits the expat parser into a separate
package for some reason, so the "fix" is to actually install the whole
Python core library by installing python-xml if it isn't already
pulled in.  We could add a sanity test that the python available is a
full python and not missing the expat parser (suse without python-xml)
or isn't python-minimal (ubuntu).

Ross



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

* Re: [PATCH 1/1] glib-2.0-native: do_compile failed on opensuse 12.2 64bit
  2013-05-13 15:28           ` Burton, Ross
@ 2013-05-13 15:36             ` Otavio Salvador
  2013-05-14  1:47             ` Robert Yang
  1 sibling, 0 replies; 9+ messages in thread
From: Otavio Salvador @ 2013-05-13 15:36 UTC (permalink / raw)
  To: Burton, Ross; +Cc: Patches and discussions about the oe-core layer

On Mon, May 13, 2013 at 12:28 PM, Burton, Ross <ross.burton@intel.com> wrote:
> On 13 May 2013 16:23, Otavio Salvador <otavio@ossystems.com.br> wrote:
>> We may need to have a mechanism to specific build dependencies for
>> native depending on host version/distribution.
>
> The situation is that Suse splits the expat parser into a separate
> package for some reason, so the "fix" is to actually install the whole
> Python core library by installing python-xml if it isn't already
> pulled in.  We could add a sanity test that the python available is a
> full python and not missing the expat parser (suse without python-xml)
> or isn't python-minimal (ubuntu).

Yes; this might be a solution.

--
Otavio Salvador                             O.S. Systems
E-mail: otavio@ossystems.com.br  http://www.ossystems.com.br
Mobile: +55 53 9981-7854              http://projetos.ossystems.com.br



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

* Re: [PATCH 1/1] glib-2.0-native: do_compile failed on opensuse 12.2 64bit
  2013-05-13 15:28           ` Burton, Ross
  2013-05-13 15:36             ` Otavio Salvador
@ 2013-05-14  1:47             ` Robert Yang
  1 sibling, 0 replies; 9+ messages in thread
From: Robert Yang @ 2013-05-14  1:47 UTC (permalink / raw)
  To: Burton, Ross; +Cc: Patches, Otavio Salvador, the oe-core layer


OK, got it, I will file a new patch sooner.

// Robert

On 05/13/2013 11:28 PM, Burton, Ross wrote:
> On 13 May 2013 16:23, Otavio Salvador <otavio@ossystems.com.br> wrote:
>> We may need to have a mechanism to specific build dependencies for
>> native depending on host version/distribution.
>
> The situation is that Suse splits the expat parser into a separate
> package for some reason, so the "fix" is to actually install the whole
> Python core library by installing python-xml if it isn't already
> pulled in.  We could add a sanity test that the python available is a
> full python and not missing the expat parser (suse without python-xml)
> or isn't python-minimal (ubuntu).
>
> Ross
>
>



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

end of thread, other threads:[~2013-05-14  2:05 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-04-26 11:41 [PATCH 0/1] glib-2.0-native: do_compile failed on opensuse 12.2 64bit Robert Yang
2013-04-26 11:41 ` [PATCH 1/1] " Robert Yang
2013-04-26 12:08   ` Burton, Ross
2013-04-27  1:57     ` Robert Yang
2013-05-13 15:18       ` Burton, Ross
2013-05-13 15:23         ` Otavio Salvador
2013-05-13 15:28           ` Burton, Ross
2013-05-13 15:36             ` Otavio Salvador
2013-05-14  1:47             ` Robert Yang

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