Bug 63

Summary: autotools.bbclass should allow override of 'acpaths'
Product: [Build System, Metadata & Runtime] Meta-yocto Reporter: Matthijs van de Water <matthijs.van.de.water>
Component: meta-yoctoAssignee: Richard Purdie <richard.purdie>
Status: RESOLVED NOTABUG QA Contact:
Severity: normal    
Priority: medium CC: poky.bs.watcher, poky.watcher
Version: unspecified   
Target Milestone: ---   
Hardware: All   
OS: Multiple   
Whiteboard:
OS type for building Yocto: --- Type of Regression: ---
Verified: Documentation change: ---

Description Matthijs van de Water 2008-05-21 22:11:57 UTC
There is a check to see if acpaths is 'default' or something else, but since it is hardcoded to default, that has no use.

I've seen at least one case where the automatic searching of M4 files did not do the right thing.

How about the patch below:

Index: meta/classes/autotools.bbclass
===================================================================
--- meta/classes/autotools.bbclass      (revision 78)
+++ meta/classes/autotools.bbclass      (revision 79)
@@ -24,7 +24,7 @@

 EXTRA_OEMAKE = ""
 DEPENDS_prepend = "${@autotools_dep_prepend(d)}"
-acpaths = "default"
+acpaths ?= "default"
 EXTRA_AUTORECONF = "--exclude=autopoint"

 def autotools_set_crosscompiling(d):
Comment 1 Matthijs van de Water 2008-05-21 22:16:56 UTC
Hmm, it seems I should have looked a bit further...

Apparently my colleague who made this change to autotools.bbclass did not see that other packages are also overriding, simply by redefining acpaths _after_ inheriting autotools.

You may close this entry :)
Comment 2 Richard Purdie 2008-05-21 22:46:41 UTC
Yes, you just need to change the value after the "inherit autotools".