Skip to contentSkip to conversation

cwautomacros: cleanup buildpath in autogen.sh

PATCH New [email protected] 1 participant 1 message Sep 22, 2015

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 cwautomacros: cleanup buildpath in autogen.sh

From: Jackie Huang <[email protected]>

CWAUTOMACROSPREFIX is ${D}${prefix} which is used as the prefix of install dir and used to replace the path placeholder in script autogen.sh, the former is correct but not for the later, we can fix the Makefile to use two variables for this, but I think a sed replacement would be fine since the package has not been in development for a long time.

---
 meta/recipes-extended/cwautomacros/cwautomacros_20110201.bb | 3 +++
 1 file changed, 3 insertions(+)
meta/recipes-extended/cwautomacros/cwautomacros_20110201.bb +3 -0
index 43ea3ce..65a99fc 100644
@@ -14,6 +14,9 @@ do_configure() {
 
 do_install() {
 	oe_runmake CWAUTOMACROSPREFIX=${D}${prefix} install
+
+	# cleanup buildpaths in autogen.sh
+	sed -i -e 's,${D},,g' ${D}${prefix}/share/cwautomacros/scripts/autogen.sh
 }
 
 BBCLASSEXTEND = "native"
Signature · 1 line
1.9.1