Patchwork [05/16] xinted: Fix case where ${B} != ${S}

login
register
mail settings
Submitter Richard Purdie
Date March 21, 2013, 3:55 p.m.
Message ID <1363881315-24352-5-git-send-email-richard.purdie@linuxfoundation.org>
Download mbox | patch
Permalink /patch/46635/
State Accepted
Commit d988fe18312990a5cd3d517eb6bd119cdd46db98
Headers show

Comments

Richard Purdie - March 21, 2013, 3:55 p.m.
do_install needs to reference files in ${B} and we need to run
do_configuze in ${S}.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
---
 meta/recipes-extended/xinetd/xinetd_2.3.15.bb |    6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

Patch

diff --git a/meta/recipes-extended/xinetd/xinetd_2.3.15.bb b/meta/recipes-extended/xinetd/xinetd_2.3.15.bb
index 87ea2b1..7976570 100644
--- a/meta/recipes-extended/xinetd/xinetd_2.3.15.bb
+++ b/meta/recipes-extended/xinetd/xinetd_2.3.15.bb
@@ -34,7 +34,7 @@  PACKAGECONFIG[tcp-wrappers] = "--with-libwrap,,tcp-wrappers"
 do_configure() {
 	# Looks like configure.in is broken, so we are skipping
 	# rebuilding configure and are just using the shipped one
-	gnu-configize --force
+	( cd ${S}; gnu-configize --force )
 	oe_runconf
 }
 
@@ -49,8 +49,8 @@  do_install() {
 	install -m 644 "${WORKDIR}/xinetd.conf" "${D}${sysconfdir}"
 	install -m 755 "${WORKDIR}/xinetd.init" "${D}${sysconfdir}/init.d/xinetd"
 	install -m 644 "${WORKDIR}/xinetd.default" "${D}${sysconfdir}/default/xinetd"
-	install -m 755 "${S}/xinetd/xinetd" "${D}${sbindir}"
-	install -m 755 "${S}/xinetd/itox" "${D}${sbindir}"
+	install -m 755 "${B}/xinetd/xinetd" "${D}${sbindir}"
+	install -m 755 "${B}/xinetd/itox" "${D}${sbindir}"
 }
 
 CONFFILES_${PN} = "${sysconfdir}/xinetd.conf"