path: root/meta/recipes-devtools/docbook-utils
diff options
authorRichard Purdie <>2012-04-16 11:05:02 +0100
committerRichard Purdie <>2012-04-16 12:52:10 +0100
commit388bae1ac8df4baf5f9255917768314c9f833b03 (patch)
treed9833b4652f1944637824706816688928559943c /meta/recipes-devtools/docbook-utils
parent23f4288082a381eb3141244622b8de6ef0d6d01e (diff)
docbook-utils-native: Fix re-execution of the unpack task
If the do_unpack task is re-executed, the sed_done stamp was not removed, the sed commands wouldn't re-run and the build would fail in do_compile. This patch ensures the stamp is in ${S} and that we clean that directory when unpack runs so it is a build from sctatch at that point. [YOCTO #2194] (From OE-Core rev: 2b190155d74d4369c61d26b1f4f0c3cce389ddbc) Signed-off-by: Richard Purdie <>
Diffstat (limited to 'meta/recipes-devtools/docbook-utils')
1 files changed, 3 insertions, 2 deletions
diff --git a/meta/recipes-devtools/docbook-utils/ b/meta/recipes-devtools/docbook-utils/
index 2a89479..5e1384d 100644
--- a/meta/recipes-devtools/docbook-utils/
+++ b/meta/recipes-devtools/docbook-utils/
@@ -21,16 +21,17 @@ inherit autotools native
do_configure_prepend() {
# Fix hard-coded references to /etc/sgml
- if [ ! -e ${WORKDIR}/.sed_done ]; then
+ if [ ! -e ${S}/.sed_done ]; then
sed -i -e "s|/etc/sgml|${sysconfdir}/sgml|g" bin/
sed -i -e "s|/etc/sgml|${sysconfdir}/sgml|g" doc/man/
sed -i -e "s|/etc/sgml|${sysconfdir}/sgml|g" doc/HTML/
# Point jw to the native sysroot catalog
sed -i -e 's|^SGML_EXTRA_CATALOGS=""|SGML_EXTRA_CATALOGS=":${sysconfdir}/sgml/catalog"|g' bin/
- touch ${WORKDIR}/.sed_done
+ touch ${S}/.sed_done
+do_unpack[cleandirs] += "${S}"
do_install() {
install -d ${D}${bindir}
OpenPOWER on IntegriCloud