Bug 63 - autotools.bbclass should allow override of 'acpaths'
Summary: autotools.bbclass should allow override of 'acpaths'
Status: RESOLVED NOTABUG
Alias: None
Product: Meta-yocto
Classification: Build System, Metadata & Runtime
Component: meta-yocto (show other bugs)
Version: unspecified
Hardware: All Multiple
: medium normal
Target Milestone: ---
Assignee: Richard Purdie
QA Contact:
URL:
Whiteboard:
Depends on:
Blocks:
 
Reported: 2008-05-21 22:11 UTC by Matthijs van de Water
Modified: 2010-12-21 06:07 UTC (History)
2 users (show)

See Also:
OS type for building Yocto: ---
Type of Regression: ---
Verified:
Documentation change: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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".