All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/1] dbus-glib-native and dbus-glib corrected
@ 2011-07-06 11:12 Alessandro Sappia
       [not found] ` <d0771ab59e5a19cd41045ecaf5f390926a78e229.1309949770.git.a.sappia@biotechware.com>
  0 siblings, 1 reply; 5+ messages in thread
From: Alessandro Sappia @ 2011-07-06 11:12 UTC (permalink / raw)
  To: openembedded-devel

[-- Attachment #1: Type: text/plain, Size: 1032 bytes --]

Hi all,
dbus-glib-native and dbus-glib were not compiling. 
Reason were in how the dbus-glib.inc and dbus-glib_0.86.bb were wrote.
The patch clears what the recipe has to do for each target compilation.

More info from http://www.mail-archive.com/openembedded-devel@lists.openembedded.org/msg10184.html
[cut]
> I suspect that code could well have come from Poky. In this case the
> native recipe generates a file which is then used by the target builds.
> It can't be generated in the target recipe as that would mean running
> target binaries.
[cut]

Patch compiles and dbus-glib works on target device (tested with mini2440).

Regards,

Alessandro

Alessandro Sappia (1):
  dbus-glib-native and dbus-glib were not compiling. This patch
    corrects dbus-glib-native to install required files in order to let
    dbus-glib to compile on target.

 recipes/dbus/dbus-glib.inc     |    4 ++--
 recipes/dbus/dbus-glib_0.86.bb |    4 ++--
 2 files changed, 4 insertions(+), 4 deletions(-)

-- 
1.7.4.1



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

* Re: [PATCH 1/1] dbus-glib-native and dbus-glib were not compiling. This patch corrects dbus-glib-native to install required files in order to let dbus-glib to compile on target.
       [not found] ` <d0771ab59e5a19cd41045ecaf5f390926a78e229.1309949770.git.a.sappia@biotechware.com>
@ 2011-07-06 11:32   ` Paul Menzel
  2011-07-06 11:56     ` [PATCH v2] dbus-glib: install required files for target on native build Alessandro Sappia
  0 siblings, 1 reply; 5+ messages in thread
From: Paul Menzel @ 2011-07-06 11:32 UTC (permalink / raw)
  To: openembedded-devel

[-- Attachment #1: Type: text/plain, Size: 709 bytes --]

Dear Alessandro,


Am Mittwoch, den 06.07.2011, 13:12 +0200 schrieb Alessandro Sappia:

unfortunately you seem to have forgotten to insert line breaks when
composing the commit message. Please correct that for example using `git
commit --amend`.

Please also follow OE’s commit policy [1] and resend your patch as v2
[2].

> Signed-off-by: Alessandro Sappia <a.sappia@biotechware.com>
> ---
>  recipes/dbus/dbus-glib.inc     |    4 ++--
>  recipes/dbus/dbus-glib_0.86.bb |    4 ++--
>  2 files changed, 4 insertions(+), 4 deletions(-)


Thanks,

Paul


[1] http://openembedded.org/index.php/Commit_Policy
[2] http://openembedded.org/index.php/How_to_submit_a_patch_to_OpenEmbedded

[-- Attachment #2: This is a digitally signed message part --]
[-- Type: application/pgp-signature, Size: 205 bytes --]

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

* [PATCH v2] dbus-glib: install required files for target on native build
  2011-07-06 11:32   ` [PATCH 1/1] dbus-glib-native and dbus-glib were not compiling. This patch corrects dbus-glib-native to install required files in order to let dbus-glib to compile on target Paul Menzel
@ 2011-07-06 11:56     ` Alessandro Sappia
  2011-07-06 12:11       ` Henning Heinold
  0 siblings, 1 reply; 5+ messages in thread
From: Alessandro Sappia @ 2011-07-06 11:56 UTC (permalink / raw)
  To: openembedded-devel

dbus-glib-native and dbus-glib were not compiling. This patch corrects
dbus-glib-native to install required files in order to let dbus-glib
to compile on target.

Signed-off-by: Alessandro Sappia <a.sappia@biotechware.com>
---
 recipes/dbus/dbus-glib.inc     |    4 ++--
 recipes/dbus/dbus-glib_0.86.bb |    4 ++--
 2 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/recipes/dbus/dbus-glib.inc b/recipes/dbus/dbus-glib.inc
index c1c1813..d3db9f0 100644
--- a/recipes/dbus/dbus-glib.inc
+++ b/recipes/dbus/dbus-glib.inc
@@ -21,10 +21,10 @@ inherit autotools pkgconfig gettext
 
 BBCLASSEXTEND = "native"
 
-do_configure_prepend() {
+do_configure() {
         install -m 0644 ${STAGING_DATADIR_NATIVE}/dbus/dbus-bus-introspect.xml ${S}/tools/
         install -m 0644 ${STAGING_DATADIR_NATIVE}/dbus/dbus-glib-bindings.h ${S}/tools/
-
+        autotools_do_configure
 }
 
 do_configure_virtclass-native() {
diff --git a/recipes/dbus/dbus-glib_0.86.bb b/recipes/dbus/dbus-glib_0.86.bb
index ce87d5d..1cef831 100644
--- a/recipes/dbus/dbus-glib_0.86.bb
+++ b/recipes/dbus/dbus-glib_0.86.bb
@@ -1,10 +1,10 @@
 require dbus-glib.inc
 
-PR = "${INC_PR}.1"
+PR = "${INC_PR}.2"
 
 SRC_URI_virtclass-native += "file://run-with-tmp-session-bus.patch"
 
-do_install_virtclass-native_prepend() {
+do_install_append_virtclass-native() {
         install -d ${D}${datadir}/dbus
         install -m 0644 dbus-bus-introspect.xml ${D}${datadir}/dbus
 }
-- 
1.7.4.1




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

* Re: [PATCH v2] dbus-glib: install required files for target on native build
  2011-07-06 11:56     ` [PATCH v2] dbus-glib: install required files for target on native build Alessandro Sappia
@ 2011-07-06 12:11       ` Henning Heinold
  2011-07-06 12:36         ` Alessandro Sappia
  0 siblings, 1 reply; 5+ messages in thread
From: Henning Heinold @ 2011-07-06 12:11 UTC (permalink / raw)
  To: openembedded-devel

On Wed, Jul 06, 2011 at 01:56:57PM +0200, Alessandro Sappia wrote:
> dbus-glib-native and dbus-glib were not compiling. This patch corrects
> dbus-glib-native to install required files in order to let dbus-glib
> to compile on target.
> 
> Signed-off-by: Alessandro Sappia <a.sappia@biotechware.com>
> ---
>  recipes/dbus/dbus-glib.inc     |    4 ++--
>  recipes/dbus/dbus-glib_0.86.bb |    4 ++--
>  2 files changed, 4 insertions(+), 4 deletions(-)
> 
> diff --git a/recipes/dbus/dbus-glib.inc b/recipes/dbus/dbus-glib.inc
> index c1c1813..d3db9f0 100644
> --- a/recipes/dbus/dbus-glib.inc
> +++ b/recipes/dbus/dbus-glib.inc
> @@ -21,10 +21,10 @@ inherit autotools pkgconfig gettext
>  
>  BBCLASSEXTEND = "native"
>  
> -do_configure_prepend() {
> +do_configure() {
>          install -m 0644 ${STAGING_DATADIR_NATIVE}/dbus/dbus-bus-introspect.xml ${S}/tools/
>          install -m 0644 ${STAGING_DATADIR_NATIVE}/dbus/dbus-glib-bindings.h ${S}/tools/
> -
> +        autotools_do_configure
>  }
^^^^^^^^^^^^^

Why you changed this? The code in resulting shellfile should be looking the same,
but using the prepend is normaly the better way.

>  
>  do_configure_virtclass-native() {
> diff --git a/recipes/dbus/dbus-glib_0.86.bb b/recipes/dbus/dbus-glib_0.86.bb
> index ce87d5d..1cef831 100644
> --- a/recipes/dbus/dbus-glib_0.86.bb
> +++ b/recipes/dbus/dbus-glib_0.86.bb
> @@ -1,10 +1,10 @@
>  require dbus-glib.inc
>  
> -PR = "${INC_PR}.1"
> +PR = "${INC_PR}.2"
>  
>  SRC_URI_virtclass-native += "file://run-with-tmp-session-bus.patch"
>  
> -do_install_virtclass-native_prepend() {
> +do_install_append_virtclass-native() {
>          install -d ${D}${datadir}/dbus
>          install -m 0644 dbus-bus-introspect.xml ${D}${datadir}/dbus
>  }

I hope this works, there was some problems with the whole introspection stuff.

Bye henning



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

* Re: [PATCH v2] dbus-glib: install required files for target on native build
  2011-07-06 12:11       ` Henning Heinold
@ 2011-07-06 12:36         ` Alessandro Sappia
  0 siblings, 0 replies; 5+ messages in thread
From: Alessandro Sappia @ 2011-07-06 12:36 UTC (permalink / raw)
  To: openembedded-devel

Il giorno mer, 06/07/2011 alle 14.11 +0200, Henning Heinold ha scritto:
> On Wed, Jul 06, 2011 at 01:56:57PM +0200, Alessandro Sappia wrote:
> > dbus-glib-native and dbus-glib were not compiling. This patch corrects
> > dbus-glib-native to install required files in order to let dbus-glib
> > to compile on target.
> > 
> > Signed-off-by: Alessandro Sappia <a.sappia@biotechware.com>
> > ---
> >  recipes/dbus/dbus-glib.inc     |    4 ++--
> >  recipes/dbus/dbus-glib_0.86.bb |    4 ++--
> >  2 files changed, 4 insertions(+), 4 deletions(-)
> > 
> > diff --git a/recipes/dbus/dbus-glib.inc b/recipes/dbus/dbus-glib.inc
> > index c1c1813..d3db9f0 100644
> > --- a/recipes/dbus/dbus-glib.inc
> > +++ b/recipes/dbus/dbus-glib.inc
> > @@ -21,10 +21,10 @@ inherit autotools pkgconfig gettext
> >  
> >  BBCLASSEXTEND = "native"
> >  
> > -do_configure_prepend() {
> > +do_configure() {
> >          install -m 0644 ${STAGING_DATADIR_NATIVE}/dbus/dbus-bus-introspect.xml ${S}/tools/
> >          install -m 0644 ${STAGING_DATADIR_NATIVE}/dbus/dbus-glib-bindings.h ${S}/tools/
> > -
> > +        autotools_do_configure
> >  }
> ^^^^^^^^^^^^^
> 
> Why you changed this? The code in resulting shellfile should be looking the same,
> but using the prepend is normaly the better way.
> 
Because later in the file there is do_configure_virtclass-native()
function.
The whole things is:
do_comfigure() is for cross compilation targets, while
do_configure_virtclass-native() is for native
OE enviroment.

This is because the do_configure_prepend() was executed also on native
target, which we need to avoid.

If there was a virtclass-cross available (is it there ?) the patch may
be simplified in

do_configure_prepend_virtclass-cross(){
  install -m 0644 {STAGING_DATADIR_NATIVE}/dbus/dbus-bus-introspect.xml
${S}/tools/
  install -m 0644 ${STAGING_DATADIR_NATIVE}/dbus/dbus-glib-bindings.h ${S}/tools/
}

I'd like more to do this way, but this requires the definition of
virtclass-cross (or whatever the name it is if such a class exists
already): I wasn't able to find the correct virtclass for writing the
patch this way.

> >  
> >  do_configure_virtclass-native() {
> > diff --git a/recipes/dbus/dbus-glib_0.86.bb b/recipes/dbus/dbus-glib_0.86.bb
> > index ce87d5d..1cef831 100644
> > --- a/recipes/dbus/dbus-glib_0.86.bb
> > +++ b/recipes/dbus/dbus-glib_0.86.bb
> > @@ -1,10 +1,10 @@
> >  require dbus-glib.inc
> >  
> > -PR = "${INC_PR}.1"
> > +PR = "${INC_PR}.2"
> >  
> >  SRC_URI_virtclass-native += "file://run-with-tmp-session-bus.patch"
> >  
> > -do_install_virtclass-native_prepend() {
> > +do_install_append_virtclass-native() {
> >          install -d ${D}${datadir}/dbus
> >          install -m 0644 dbus-bus-introspect.xml ${D}${datadir}/dbus
> >  }
> 
> I hope this works, there was some problems with the whole introspection stuff.
> 
> Bye henning
> 
> _______________________________________________
> Openembedded-devel mailing list
> Openembedded-devel@lists.openembedded.org
> http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-devel





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

end of thread, other threads:[~2011-07-06 12:40 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-07-06 11:12 [PATCH 0/1] dbus-glib-native and dbus-glib corrected Alessandro Sappia
     [not found] ` <d0771ab59e5a19cd41045ecaf5f390926a78e229.1309949770.git.a.sappia@biotechware.com>
2011-07-06 11:32   ` [PATCH 1/1] dbus-glib-native and dbus-glib were not compiling. This patch corrects dbus-glib-native to install required files in order to let dbus-glib to compile on target Paul Menzel
2011-07-06 11:56     ` [PATCH v2] dbus-glib: install required files for target on native build Alessandro Sappia
2011-07-06 12:11       ` Henning Heinold
2011-07-06 12:36         ` Alessandro Sappia

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.