rpm: Fix case where ${B} != ${S}
authorRichard Purdie <richard.purdie@linuxfoundation.org>
Thu, 21 Mar 2013 14:22:55 +0000 (14:22 +0000)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Fri, 22 Mar 2013 16:54:36 +0000 (16:54 +0000)
We need to run autogen.sh in the correct directory (${S}).

(From OE-Core rev: f352f9f25695635bbaad09774f02e66684971fc0)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/recipes-devtools/rpm/rpm_5.4.9.bb

index 6286771..ba24111 100644 (file)
@@ -360,7 +360,7 @@ do_configure() {
        # Disable tests!
        echo "all:" > ${S}/tests/Makefile.am
 
-       ${S}/autogen.sh
+       ( cd ${S}; ${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' \