All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 1/5] binconfig.bbclass: search configs in D instead of S
@ 2011-04-16 23:23 Stanislav Brabec
  2011-04-19 11:10 ` Andreas Oberritter
  0 siblings, 1 reply; 5+ messages in thread
From: Stanislav Brabec @ 2011-04-16 23:23 UTC (permalink / raw)
  To: openembedded-devel

Searching for binconfig in S makes more problems than it
brings benefits. Searching in the installed root seems to be more logical.

Fixes following subtle breakages:
- binconfig are populated with a different name that upstream intended
- populated binconfig files that were not intended to be populated

It fixes at least ncurses, which populates ncurses-config instead of
ncurses5-config and ncursesw5-config, causing secondary breakages.

Signed-off-by: Stanislav Brabec <utx@penguin.cz>

diff --git a/classes/binconfig.bbclass b/classes/binconfig.bbclass
index b3b2236..3d2bf0f 100644
--- a/classes/binconfig.bbclass
+++ b/classes/binconfig.bbclass
@@ -49,7 +49,7 @@ binconfig_package_preprocess () {
 SYSROOT_PREPROCESS_FUNCS += "binconfig_sysroot_preprocess"
 
 binconfig_sysroot_preprocess () {
-	for config in `find ${S} -name '${BINCONFIG_GLOB}'`; do
+	for config in `find ${D} -name '${BINCONFIG_GLOB}'`; do
 		configname=`basename $config`
 		install -d ${SYSROOT_DESTDIR}${STAGING_BINDIR_CROSS}
 		cat $config | sed ${@get_binconfig_mangle(d)} > ${SYSROOT_DESTDIR}${STAGING_BINDIR_CROSS}/$configname

-- 

________________________________________________________________________
Stanislav Brabec
http://www.penguin.cz/~utx/zaurus




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

* Re: [PATCH 1/5] binconfig.bbclass: search configs in D instead of S
  2011-04-16 23:23 [PATCH 1/5] binconfig.bbclass: search configs in D instead of S Stanislav Brabec
@ 2011-04-19 11:10 ` Andreas Oberritter
  2011-04-20 10:59   ` Paul Menzel
  0 siblings, 1 reply; 5+ messages in thread
From: Andreas Oberritter @ 2011-04-19 11:10 UTC (permalink / raw)
  To: openembedded-devel

On 04/17/2011 01:23 AM, Stanislav Brabec wrote:
> Searching for binconfig in S makes more problems than it
> brings benefits. Searching in the installed root seems to be more logical.
> 
> Fixes following subtle breakages:
> - binconfig are populated with a different name that upstream intended
> - populated binconfig files that were not intended to be populated
> 
> It fixes at least ncurses, which populates ncurses-config instead of
> ncurses5-config and ncursesw5-config, causing secondary breakages.
> 
> Signed-off-by: Stanislav Brabec <utx@penguin.cz>

Acked-by: Andreas Oberritter <obi@opendreambox.org>

> diff --git a/classes/binconfig.bbclass b/classes/binconfig.bbclass
> index b3b2236..3d2bf0f 100644
> --- a/classes/binconfig.bbclass
> +++ b/classes/binconfig.bbclass
> @@ -49,7 +49,7 @@ binconfig_package_preprocess () {
>  SYSROOT_PREPROCESS_FUNCS += "binconfig_sysroot_preprocess"
>  
>  binconfig_sysroot_preprocess () {
> -	for config in `find ${S} -name '${BINCONFIG_GLOB}'`; do
> +	for config in `find ${D} -name '${BINCONFIG_GLOB}'`; do
>  		configname=`basename $config`
>  		install -d ${SYSROOT_DESTDIR}${STAGING_BINDIR_CROSS}
>  		cat $config | sed ${@get_binconfig_mangle(d)} > ${SYSROOT_DESTDIR}${STAGING_BINDIR_CROSS}/$configname
> 



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

* Re: [PATCH 1/5] binconfig.bbclass: search configs in D instead of S
  2011-04-19 11:10 ` Andreas Oberritter
@ 2011-04-20 10:59   ` Paul Menzel
  2011-04-20 11:27     ` Enrico Scholz
  2011-04-20 21:44     ` Stanislav Brabec
  0 siblings, 2 replies; 5+ messages in thread
From: Paul Menzel @ 2011-04-20 10:59 UTC (permalink / raw)
  To: openembedded-devel; +Cc: Enrico Scholz

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

Am Dienstag, den 19.04.2011, 13:10 +0200 schrieb Andreas Oberritter:
> On 04/17/2011 01:23 AM, Stanislav Brabec wrote:
> > Searching for binconfig in S makes more problems than it
> > brings benefits. Searching in the installed root seems to be more logical.
> > 
> > Fixes following subtle breakages:
> > - binconfig are populated with a different name that upstream intended
> > - populated binconfig files that were not intended to be populated
> > 
> > It fixes at least ncurses, which populates ncurses-config instead of
> > ncurses5-config and ncursesw5-config, causing secondary breakages.

Is `alsa-utils` – as written in your introduction 0/5 – the only
secondary breakage you found? Is that a run time problem? I can build
`alsa-utils-1.0.24.2-r1` just fine using `minimal`.

> > Signed-off-by: Stanislav Brabec <utx@penguin.cz>
> 
> Acked-by: Andreas Oberritter <obi@opendreambox.org>

Acked-by: Paul Menzel <paulepanter@users.sourceforge.net>

I am adding Enrico to the CC since he did a lot of Ncurses work and
maybe can also share his opinion.

> > diff --git a/classes/binconfig.bbclass b/classes/binconfig.bbclass
> > index b3b2236..3d2bf0f 100644
> > --- a/classes/binconfig.bbclass
> > +++ b/classes/binconfig.bbclass
> > @@ -49,7 +49,7 @@ binconfig_package_preprocess () {
> >  SYSROOT_PREPROCESS_FUNCS += "binconfig_sysroot_preprocess"
> >  
> >  binconfig_sysroot_preprocess () {
> > -	for config in `find ${S} -name '${BINCONFIG_GLOB}'`; do
> > +	for config in `find ${D} -name '${BINCONFIG_GLOB}'`; do
> >  		configname=`basename $config`
> >  		install -d ${SYSROOT_DESTDIR}${STAGING_BINDIR_CROSS}
> >  		cat $config | sed ${@get_binconfig_mangle(d)} > ${SYSROOT_DESTDIR}${STAGING_BINDIR_CROSS}/$configname
> >


Thanks,

Paul

[-- 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

* Re: [PATCH 1/5] binconfig.bbclass: search configs in D instead of S
  2011-04-20 10:59   ` Paul Menzel
@ 2011-04-20 11:27     ` Enrico Scholz
  2011-04-20 21:44     ` Stanislav Brabec
  1 sibling, 0 replies; 5+ messages in thread
From: Enrico Scholz @ 2011-04-20 11:27 UTC (permalink / raw)
  To: Paul Menzel; +Cc: openembedded-devel

Paul Menzel <paulepanter@users.sourceforge.net> writes:

>> > Searching for binconfig in S makes more problems than it
>> > brings benefits. Searching in the installed root seems to be more logical.
> ...
> I am adding Enrico to the CC since he did a lot of Ncurses work and
> maybe can also share his opinion.

yes; I submitted a similar patch [1] because it is required by ncurses.

Acked-by: Enrico Scholz <enrico.scholz@sigma-chemnitz.de>



Enrico

Footnotes: 
[1]  http://patchwork.openembedded.org/patch/2248



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

* Re: [PATCH 1/5] binconfig.bbclass: search configs in D instead of S
  2011-04-20 10:59   ` Paul Menzel
  2011-04-20 11:27     ` Enrico Scholz
@ 2011-04-20 21:44     ` Stanislav Brabec
  1 sibling, 0 replies; 5+ messages in thread
From: Stanislav Brabec @ 2011-04-20 21:44 UTC (permalink / raw)
  To: openembedded-devel; +Cc: Enrico Scholz

Paul Menzel wrote:
> > On 04/17/2011 01:23 AM, Stanislav Brabec wrote:

> > > It fixes at least ncurses, which populates ncurses-config instead of
> > > ncurses5-config and ncursesw5-config, causing secondary breakages.
> 
> Is `alsa-utils` – as written in your introduction 0/5 – the only
> secondary breakage you found? Is that a run time problem? I can build
> `alsa-utils-1.0.24.2-r1` just fine using `minimal`.

Probably more breakages existed - basically anything that uses ncurses
may be broken. Due to ncurses breakage, alsa-utils probably used
ncurses?*-config from your host system, and as a consequence also host
system includes. It may work, it may break in runtime, it may cause
miscompilation. On hosts without ncurses development files build failed.

-- 

________________________________________________________________________
Stanislav Brabec
http://www.penguin.cz/~utx/zaurus




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

end of thread, other threads:[~2011-04-20 21:46 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-04-16 23:23 [PATCH 1/5] binconfig.bbclass: search configs in D instead of S Stanislav Brabec
2011-04-19 11:10 ` Andreas Oberritter
2011-04-20 10:59   ` Paul Menzel
2011-04-20 11:27     ` Enrico Scholz
2011-04-20 21:44     ` Stanislav Brabec

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.