Skip to contentSkip to conversation

waf-samba: skip waf_preconfigure() prefunc from waf.bbclass

PATCH In review Kyle Russell 2 participants 3 messages Feb 10, 2018 – Feb 12, 2018

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 waf-samba: skip waf_preconfigure() prefunc from waf.bbclass

waf_preconfigure() fails in samba packages because wafbin is packaged differently, and we already pass bindir and libdir through CONFIGUREOPTS.

---
 meta-networking/classes/waf-samba.bbclass | 1 +
 1 file changed, 1 insertion(+)
meta-networking/classes/waf-samba.bbclass +1 -0
index e490176..94ecf4a 100644
@@ -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
Signature · 1 line
2.7.4
#1 lore raw
Quoted 14 lines · Kyle Russell

waf_preconfigure() fails in samba packages because wafbin is packaged differently, and we already pass bindir and libdir through CONFIGUREOPTS.

---
 meta-networking/classes/waf-samba.bbclass | 1 +
 1 file changed, 1 insertion(+)
meta-networking/classes/waf-samba.bbclass +0 -0
index e490176..94ecf4a 100644

meta-networking/classes/waf-samba.bbclass CONFIGUREOPTS = " --prefix=${prefix} \ · line 45

Quoted 4 lines
meta-networking/classes/waf-samba.bbclass +1 -0
@@ -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.

Quoted 11 lines
meta-networking/classes/waf-samba.bbclass +0 -1
 do_configure() {
 
     # Prepare the cross-answers file
--

2.7.4

--
_______________________________________________
Openembedded-devel mailing list
[email protected]
http://lists.openembedded.org/mailman/listinfo/openembedded-devel

#2 lore raw

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!

Quoted 46 lines · Joshua Watt

Review

Quoted 10 lines · Kyle Russell

waf_preconfigure() fails in samba packages because wafbin is packaged differently, and we already pass bindir and libdir through CONFIGUREOPTS.

---
 meta-networking/classes/waf-samba.bbclass | 1 +
 1 file changed, 1 insertion(+)
(quoted diff) +0 -0

b/meta-networking/classes/waf-samba.bbclass

meta-networking/classes/waf-samba.bbclass CONFIGUREOPTS = " --prefix=${prefix} \ · line 45

Quoted 8 lines

index e490176..94ecf4a 100644

meta-networking/classes/waf-samba.bbclass +1 -0
@@ -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.

Quoted 11 lines
meta-networking/classes/waf-samba.bbclass +0 -1
 do_configure() {
 
     # Prepare the cross-answers file
--

2.7.4

--
_______________________________________________
Openembedded-devel mailing list
[email protected]
http://lists.openembedded.org/mailman/listinfo/openembedded-devel