* [meta-networking][PATCH] waf-samba: skip waf_preconfigure() prefunc from waf.bbclass
@ 2018-02-10 15:39 Kyle Russell
2018-02-11 21:30 ` Joshua Watt
0 siblings, 1 reply; 3+ messages in thread
From: Kyle Russell @ 2018-02-10 15:39 UTC (permalink / raw)
To: openembedded-devel
waf_preconfigure() fails in samba packages because wafbin is packaged
differently, and we already pass bindir and libdir through
CONFIGUREOPTS.
Signed-off-by: Kyle Russell <bkylerussell@gmail.com>
---
meta-networking/classes/waf-samba.bbclass | 1 +
1 file changed, 1 insertion(+)
diff --git a/meta-networking/classes/waf-samba.bbclass b/meta-networking/classes/waf-samba.bbclass
index e490176..94ecf4a 100644
--- a/meta-networking/classes/waf-samba.bbclass
+++ b/meta-networking/classes/waf-samba.bbclass
@@ -42,6 +42,7 @@ CONFIGUREOPTS = " --prefix=${prefix} \
# to help generate the cross answer when adding new board support.
CROSS_METHOD ?= "answer"
+do_configure[prefuncs] = ""
do_configure() {
# Prepare the cross-answers file
--
2.7.4
^ permalink raw reply related [flat|nested] 3+ messages in thread
* Re: [meta-networking][PATCH] waf-samba: skip waf_preconfigure() prefunc from waf.bbclass
2018-02-10 15:39 [meta-networking][PATCH] waf-samba: skip waf_preconfigure() prefunc from waf.bbclass Kyle Russell
@ 2018-02-11 21:30 ` Joshua Watt
2018-02-12 1:56 ` Kyle Russell
0 siblings, 1 reply; 3+ messages in thread
From: Joshua Watt @ 2018-02-11 21:30 UTC (permalink / raw)
To: Kyle Russell; +Cc: openembedded-devel
On Sat, Feb 10, 2018 at 9:39 AM, Kyle Russell <bkylerussell@gmail.com> wrote:
> waf_preconfigure() fails in samba packages because wafbin is packaged
> differently, and we already pass bindir and libdir through
> CONFIGUREOPTS.
>
> Signed-off-by: Kyle Russell <bkylerussell@gmail.com>
> ---
> meta-networking/classes/waf-samba.bbclass | 1 +
> 1 file changed, 1 insertion(+)
>
> diff --git a/meta-networking/classes/waf-samba.bbclass b/meta-networking/classes/waf-samba.bbclass
> index e490176..94ecf4a 100644
> --- a/meta-networking/classes/waf-samba.bbclass
> +++ b/meta-networking/classes/waf-samba.bbclass
> @@ -42,6 +42,7 @@ CONFIGUREOPTS = " --prefix=${prefix} \
> # to help generate the cross answer when adding new board support.
> CROSS_METHOD ?= "answer"
>
> +do_configure[prefuncs] = ""
Hmm, I'm not sure we want to unconditionally remove all prefuncs.
This breaking samba was brought up to me (since I wrote the patch that
broke samba), and I actually think a better approach would be to make
waf-samba no longer inherit from waf.bbclass. The samba method of
using waf is so different from a "standard" waf usage, that the
inheritance doesn't really make sense IHMO. I'm preparing a patch to
do this, and it appears that the only two things that
waf-samba.bbclass actually needs from waf.bbclass are
get_waf_parallel_make() and DISABLE_STATIC = "", neither of which it
can't implement itself.
> do_configure() {
>
> # Prepare the cross-answers file
> --
> 2.7.4
>
> --
> _______________________________________________
> Openembedded-devel mailing list
> Openembedded-devel@lists.openembedded.org
> http://lists.openembedded.org/mailman/listinfo/openembedded-devel
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [meta-networking][PATCH] waf-samba: skip waf_preconfigure() prefunc from waf.bbclass
2018-02-11 21:30 ` Joshua Watt
@ 2018-02-12 1:56 ` Kyle Russell
0 siblings, 0 replies; 3+ messages in thread
From: Kyle Russell @ 2018-02-12 1:56 UTC (permalink / raw)
To: Joshua Watt; +Cc: openembedded-devel
That seems reasonable to me. I didn't really like how this change
implicitly depended on the base waf class setup either, but I wasn't sure
if the breakage was on anyone's radar. I'll try out your other patch
tomorrow.
Thanks!
On Sun, Feb 11, 2018 at 4:30 PM, Joshua Watt <jpewhacker@gmail.com> wrote:
> On Sat, Feb 10, 2018 at 9:39 AM, Kyle Russell <bkylerussell@gmail.com>
> wrote:
> > waf_preconfigure() fails in samba packages because wafbin is packaged
> > differently, and we already pass bindir and libdir through
> > CONFIGUREOPTS.
> >
> > Signed-off-by: Kyle Russell <bkylerussell@gmail.com>
> > ---
> > meta-networking/classes/waf-samba.bbclass | 1 +
> > 1 file changed, 1 insertion(+)
> >
> > diff --git a/meta-networking/classes/waf-samba.bbclass
> b/meta-networking/classes/waf-samba.bbclass
> > index e490176..94ecf4a 100644
> > --- a/meta-networking/classes/waf-samba.bbclass
> > +++ b/meta-networking/classes/waf-samba.bbclass
> > @@ -42,6 +42,7 @@ CONFIGUREOPTS = " --prefix=${prefix} \
> > # to help generate the cross answer when adding new board support.
> > CROSS_METHOD ?= "answer"
> >
> > +do_configure[prefuncs] = ""
>
> Hmm, I'm not sure we want to unconditionally remove all prefuncs.
>
> This breaking samba was brought up to me (since I wrote the patch that
> broke samba), and I actually think a better approach would be to make
> waf-samba no longer inherit from waf.bbclass. The samba method of
> using waf is so different from a "standard" waf usage, that the
> inheritance doesn't really make sense IHMO. I'm preparing a patch to
> do this, and it appears that the only two things that
> waf-samba.bbclass actually needs from waf.bbclass are
> get_waf_parallel_make() and DISABLE_STATIC = "", neither of which it
> can't implement itself.
>
> > do_configure() {
> >
> > # Prepare the cross-answers file
> > --
> > 2.7.4
> >
> > --
> > _______________________________________________
> > Openembedded-devel mailing list
> > Openembedded-devel@lists.openembedded.org
> > http://lists.openembedded.org/mailman/listinfo/openembedded-devel
>
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2018-02-12 1:57 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-02-10 15:39 [meta-networking][PATCH] waf-samba: skip waf_preconfigure() prefunc from waf.bbclass Kyle Russell
2018-02-11 21:30 ` Joshua Watt
2018-02-12 1:56 ` Kyle Russell
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.