Skip to contentSkip to conversation

rpm: Fix case where ${B} != ${S}

PATCH New Richard Purdie 1 participant 1 message Mar 18, 2013

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 rpm: Fix case where ${B} != ${S}

Fix out of tree builds by removing assumptions about cwd and using full paths to files in ${S}.

---

meta/recipes-devtools/rpm/rpm_5.4.9.bb +3 -3
index cdfb5ff..6286771 100644
@@ -358,13 +358,13 @@ FILES_${PN}-staticdev = " \
 
 do_configure() {
 	# Disable tests!
-	echo "all:" > tests/Makefile.am
+	echo "all:" > ${S}/tests/Makefile.am
 
-	./autogen.sh
+	${S}/autogen.sh
 
 	# NASTY hack to make sure configure files the right pkg-config file...
 	sed -e 's/pkg-config --exists uuid/pkg-config --exists ossp-uuid/g' \
-	    -e 's/pkg-config uuid/pkg-config ossp-uuid/g' -i configure
+	    -e 's/pkg-config uuid/pkg-config ossp-uuid/g' -i ${S}/configure
 
 	export varprefix=${localstatedir}
 	oe_runconf