* [PATCH 0/3] A few miscellaneous fixes
@ 2011-10-07 21:02 Christopher Larson
2011-10-07 21:02 ` [PATCH 1/3] autotools: fix multi-word arguments for EXTRA_OECONF Christopher Larson
` (2 more replies)
0 siblings, 3 replies; 8+ messages in thread
From: Christopher Larson @ 2011-10-07 21:02 UTC (permalink / raw)
To: openembedded-core
The following changes since commit cc626b9e1671670a931ea3e528ea4b0f7b2e923b:
webkit-gtk: Enable dependency tracking since the webkit makefiles have bugs (2011-10-05 14:36:18 +0100)
are available in the git repository at:
http://github.com/kergoth/oe-core misc-fixes
Christopher Larson (3):
autotools: fix multi-word arguments for EXTRA_OECONF
autoconf: no need to hardcode the full path to m4
oe.patch: drop bb.msg.domain reference
meta/classes/autotools.bbclass | 14 ++++++--------
meta/lib/oe/patch.py | 4 ++--
meta/recipes-devtools/autoconf/autoconf_2.68.bb | 4 +++-
3 files changed, 11 insertions(+), 11 deletions(-)
--
1.7.4.1
^ permalink raw reply [flat|nested] 8+ messages in thread* [PATCH 1/3] autotools: fix multi-word arguments for EXTRA_OECONF 2011-10-07 21:02 [PATCH 0/3] A few miscellaneous fixes Christopher Larson @ 2011-10-07 21:02 ` Christopher Larson 2011-10-07 22:34 ` Koen Kooi 2011-10-07 21:03 ` [PATCH 2/3] autoconf: no need to hardcode the full path to m4 Christopher Larson 2011-10-07 21:03 ` [PATCH 3/3] oe.patch: drop bb.msg.domain reference Christopher Larson 2 siblings, 1 reply; 8+ messages in thread From: Christopher Larson @ 2011-10-07 21:02 UTC (permalink / raw) To: openembedded-core This is needed to better support things like the following (with a multi-word BUILD_CC): EXTRA_OECONF += '"ac_cv_prog_CC_FOR_BUILD=${BUILD_CC}"' Signed-off-by: Christopher Larson <kergoth@gmail.com> --- meta/classes/autotools.bbclass | 14 ++++++-------- 1 files changed, 6 insertions(+), 8 deletions(-) diff --git a/meta/classes/autotools.bbclass b/meta/classes/autotools.bbclass index a4ce851..135be33 100644 --- a/meta/classes/autotools.bbclass +++ b/meta/classes/autotools.bbclass @@ -70,14 +70,12 @@ CONFIGUREOPT_DEPTRACK = "--disable-dependency-tracking" oe_runconf () { - if [ -x ${S}/configure ] ; then - cfgcmd="${S}/configure \ - ${CONFIGUREOPTS} ${EXTRA_OECONF} $@" - bbnote "Running $cfgcmd..." - $cfgcmd || bbfatal "oe_runconf failed" - else - bbfatal "no configure script found" - fi + if [ -x ${S}/configure ] ; then + bbnote "Running ${S}/configure ${CONFIGUREOPTS} ${EXTRA_OECONF} $@" + ${S}/configure ${CONFIGUREOPTS} ${EXTRA_OECONF} "$@" || bbfatal "oe_runconf failed" + else + bbfatal "no configure script found" + fi } autotools_do_configure() { -- 1.7.4.1 ^ permalink raw reply related [flat|nested] 8+ messages in thread
* Re: [PATCH 1/3] autotools: fix multi-word arguments for EXTRA_OECONF 2011-10-07 21:02 ` [PATCH 1/3] autotools: fix multi-word arguments for EXTRA_OECONF Christopher Larson @ 2011-10-07 22:34 ` Koen Kooi 2011-10-10 14:58 ` Chris Larson 0 siblings, 1 reply; 8+ messages in thread From: Koen Kooi @ 2011-10-07 22:34 UTC (permalink / raw) To: Patches and discussions about the oe-core layer Op 7 okt 2011, om 23:02 heeft Christopher Larson het volgende geschreven: > This is needed to better support things like the following (with a > multi-word BUILD_CC): > > EXTRA_OECONF += '"ac_cv_prog_CC_FOR_BUILD=${BUILD_CC}"' > > Signed-off-by: Christopher Larson <kergoth@gmail.com> > --- > meta/classes/autotools.bbclass | 14 ++++++-------- > 1 files changed, 6 insertions(+), 8 deletions(-) > > diff --git a/meta/classes/autotools.bbclass b/meta/classes/ > autotools.bbclass > index a4ce851..135be33 100644 > --- a/meta/classes/autotools.bbclass > +++ b/meta/classes/autotools.bbclass > @@ -70,14 +70,12 @@ CONFIGUREOPT_DEPTRACK = "--disable-dependency- > tracking" > > > oe_runconf () { > - if [ -x ${S}/configure ] ; then > - cfgcmd="${S}/configure \ > - ${CONFIGUREOPTS} ${EXTRA_OECONF} $@" > - bbnote "Running $cfgcmd..." > - $cfgcmd || bbfatal "oe_runconf failed" > - else > - bbfatal "no configure script found" > - fi > + if [ -x ${S}/configure ] ; then > + bbnote "Running ${S}/configure ${CONFIGUREOPTS} $ > {EXTRA_OECONF} $@" > + ${S}/configure ${CONFIGUREOPTS} ${EXTRA_OECONF} "$@" || > bbfatal "oe_runconf failed" > + else > + bbfatal "no configure script found" > + f Was the tab->spaces conversion intentional? ^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [PATCH 1/3] autotools: fix multi-word arguments for EXTRA_OECONF 2011-10-07 22:34 ` Koen Kooi @ 2011-10-10 14:58 ` Chris Larson 0 siblings, 0 replies; 8+ messages in thread From: Chris Larson @ 2011-10-10 14:58 UTC (permalink / raw) To: Patches and discussions about the oe-core layer On Fri, Oct 7, 2011 at 3:34 PM, Koen Kooi <koen@beagleboard.org> wrote: >> >> oe_runconf () { >> - if [ -x ${S}/configure ] ; then >> - cfgcmd="${S}/configure \ >> - ${CONFIGUREOPTS} ${EXTRA_OECONF} $@" >> - bbnote "Running $cfgcmd..." >> - $cfgcmd || bbfatal "oe_runconf failed" >> - else >> - bbfatal "no configure script found" >> - fi >> + if [ -x ${S}/configure ] ; then >> + bbnote "Running ${S}/configure ${CONFIGUREOPTS} >> ${EXTRA_OECONF} $@" >> + ${S}/configure ${CONFIGUREOPTS} ${EXTRA_OECONF} "$@" || >> bbfatal "oe_runconf failed" >> + else >> + bbfatal "no configure script found" >> + f > > Was the tab->spaces conversion intentional? Erm, nope, well spotted, thanks. -- Christopher Larson clarson at kergoth dot com Founder - BitBake, OpenEmbedded, OpenZaurus Maintainer - Tslib Senior Software Engineer, Mentor Graphics ^ permalink raw reply [flat|nested] 8+ messages in thread
* [PATCH 2/3] autoconf: no need to hardcode the full path to m4 2011-10-07 21:02 [PATCH 0/3] A few miscellaneous fixes Christopher Larson 2011-10-07 21:02 ` [PATCH 1/3] autotools: fix multi-word arguments for EXTRA_OECONF Christopher Larson @ 2011-10-07 21:03 ` Christopher Larson 2011-10-07 21:03 ` [PATCH 3/3] oe.patch: drop bb.msg.domain reference Christopher Larson 2 siblings, 0 replies; 8+ messages in thread From: Christopher Larson @ 2011-10-07 21:03 UTC (permalink / raw) To: openembedded-core This way autom4te uses m4 as it finds it in the PATH, rather than hardcoding any particular path. Signed-off-by: Christopher Larson <kergoth@gmail.com> --- meta/recipes-devtools/autoconf/autoconf_2.68.bb | 4 +++- 1 files changed, 3 insertions(+), 1 deletions(-) diff --git a/meta/recipes-devtools/autoconf/autoconf_2.68.bb b/meta/recipes-devtools/autoconf/autoconf_2.68.bb index c6209a3..21b5fb3 100644 --- a/meta/recipes-devtools/autoconf/autoconf_2.68.bb +++ b/meta/recipes-devtools/autoconf/autoconf_2.68.bb @@ -1,6 +1,6 @@ require autoconf.inc -PR = "r2" +PR = "r3" PARALLEL_MAKE = "" @@ -27,4 +27,6 @@ RDEPENDS_${PN}_virtclass-native = "m4-native gnu-config-native" SRC_URI_append_virtclass-native = " file://fix_path_xtra.patch" +EXTRA_OECONF += "ac_cv_path_M4=m4" + BBCLASSEXTEND = "native" -- 1.7.4.1 ^ permalink raw reply related [flat|nested] 8+ messages in thread
* [PATCH 3/3] oe.patch: drop bb.msg.domain reference 2011-10-07 21:02 [PATCH 0/3] A few miscellaneous fixes Christopher Larson 2011-10-07 21:02 ` [PATCH 1/3] autotools: fix multi-word arguments for EXTRA_OECONF Christopher Larson 2011-10-07 21:03 ` [PATCH 2/3] autoconf: no need to hardcode the full path to m4 Christopher Larson @ 2011-10-07 21:03 ` Christopher Larson 2011-10-10 7:17 ` Samuel Stirtzel 2 siblings, 1 reply; 8+ messages in thread From: Christopher Larson @ 2011-10-07 21:03 UTC (permalink / raw) To: openembedded-core Signed-off-by: Christopher Larson <kergoth@gmail.com> --- meta/lib/oe/patch.py | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/meta/lib/oe/patch.py b/meta/lib/oe/patch.py index 1406e19..9b0ff37 100644 --- a/meta/lib/oe/patch.py +++ b/meta/lib/oe/patch.py @@ -376,8 +376,8 @@ class UserResolver(Resolver): os.environ['SHELLCMDS'] = "bash --rcfile " + rcfile rc = os.system(bb.data.getVar('TERMCMDRUN', self.patchset.d, 1)) if os.WIFEXITED(rc) and os.WEXITSTATUS(rc) != 0: - bb.msg.fatal(bb.msg.domain.Build, ("Cannot proceed with manual patch resolution - '%s' not found. " \ - + "Check TERMCMDRUN variable.") % bb.data.getVar('TERMCMDRUN', self.patchset.d, 1)) + bb.fatal(("Cannot proceed with manual patch resolution - '%s' not found. " + + "Check TERMCMDRUN variable.") % bb.data.getVar('TERMCMDRUN', self.patchset.d, 1)) # Construct a new PatchSet after the user's changes, compare the # sets, checking patches for modifications, and doing a remote -- 1.7.4.1 ^ permalink raw reply related [flat|nested] 8+ messages in thread
* Re: [PATCH 3/3] oe.patch: drop bb.msg.domain reference 2011-10-07 21:03 ` [PATCH 3/3] oe.patch: drop bb.msg.domain reference Christopher Larson @ 2011-10-10 7:17 ` Samuel Stirtzel 2011-10-10 21:09 ` Chris Larson 0 siblings, 1 reply; 8+ messages in thread From: Samuel Stirtzel @ 2011-10-10 7:17 UTC (permalink / raw) To: Patches and discussions about the oe-core layer Hi, there was already a patch for this [1] (Yes I know, I should have added more descriptions), according to the patch from Richard [2] the message domain can be constructed dynamical now. Since your patch seems a little bit different (dropping the message domain completely) I can't tell if my resolution was inadequate. For this patch I think it wouldn't make a big difference for the user, feel free to apply the one that best suits in resolving the problem. [1] http://lists.linuxtogo.org/pipermail/openembedded-core/2011-September/009474.html [2] http://git.yoctoproject.org/cgit.cgi/poky/commit/?id=a6c48298b17e6a5844b3638b422fe226e3b67b89 2011/10/7 Christopher Larson <kergoth@gmail.com>: > Signed-off-by: Christopher Larson <kergoth@gmail.com> > --- > meta/lib/oe/patch.py | 4 ++-- > 1 files changed, 2 insertions(+), 2 deletions(-) > > diff --git a/meta/lib/oe/patch.py b/meta/lib/oe/patch.py > index 1406e19..9b0ff37 100644 > --- a/meta/lib/oe/patch.py > +++ b/meta/lib/oe/patch.py > @@ -376,8 +376,8 @@ class UserResolver(Resolver): > os.environ['SHELLCMDS'] = "bash --rcfile " + rcfile > rc = os.system(bb.data.getVar('TERMCMDRUN', self.patchset.d, 1)) > if os.WIFEXITED(rc) and os.WEXITSTATUS(rc) != 0: > - bb.msg.fatal(bb.msg.domain.Build, ("Cannot proceed with manual patch resolution - '%s' not found. " \ > - + "Check TERMCMDRUN variable.") % bb.data.getVar('TERMCMDRUN', self.patchset.d, 1)) > + bb.fatal(("Cannot proceed with manual patch resolution - '%s' not found. " > + + "Check TERMCMDRUN variable.") % bb.data.getVar('TERMCMDRUN', self.patchset.d, 1)) > > # Construct a new PatchSet after the user's changes, compare the > # sets, checking patches for modifications, and doing a remote > -- > 1.7.4.1 > > > _______________________________________________ > Openembedded-core mailing list > Openembedded-core@lists.openembedded.org > http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-core > -- Regards Samuel ^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [PATCH 3/3] oe.patch: drop bb.msg.domain reference 2011-10-10 7:17 ` Samuel Stirtzel @ 2011-10-10 21:09 ` Chris Larson 0 siblings, 0 replies; 8+ messages in thread From: Chris Larson @ 2011-10-10 21:09 UTC (permalink / raw) To: Patches and discussions about the oe-core layer On Mon, Oct 10, 2011 at 12:17 AM, Samuel Stirtzel <s.stirtzel@googlemail.com> wrote: > Hi, > there was already a patch for this [1] (Yes I know, I should have > added more descriptions), according to the patch from Richard [2] the > message domain can be constructed dynamical now. > Since your patch seems a little bit different (dropping the message > domain completely) I can't tell if my resolution was inadequate. > > For this patch I think it wouldn't make a big difference for the user, > feel free to apply the one that best suits in resolving the problem. > > > [1] http://lists.linuxtogo.org/pipermail/openembedded-core/2011-September/009474.html > [2] http://git.yoctoproject.org/cgit.cgi/poky/commit/?id=a6c48298b17e6a5844b3638b422fe226e3b67b89 Indeed, your version is superior. For what it's worth, consider both of those patches of yours acked by me. Getting useful error messages rather than python syntax errors is rather important. -- Christopher Larson clarson at kergoth dot com Founder - BitBake, OpenEmbedded, OpenZaurus Maintainer - Tslib Senior Software Engineer, Mentor Graphics ^ permalink raw reply [flat|nested] 8+ messages in thread
end of thread, other threads:[~2011-10-10 21:17 UTC | newest] Thread overview: 8+ messages (download: mbox.gz follow: Atom feed -- links below jump to the message on this page -- 2011-10-07 21:02 [PATCH 0/3] A few miscellaneous fixes Christopher Larson 2011-10-07 21:02 ` [PATCH 1/3] autotools: fix multi-word arguments for EXTRA_OECONF Christopher Larson 2011-10-07 22:34 ` Koen Kooi 2011-10-10 14:58 ` Chris Larson 2011-10-07 21:03 ` [PATCH 2/3] autoconf: no need to hardcode the full path to m4 Christopher Larson 2011-10-07 21:03 ` [PATCH 3/3] oe.patch: drop bb.msg.domain reference Christopher Larson 2011-10-10 7:17 ` Samuel Stirtzel 2011-10-10 21:09 ` Chris Larson
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox