]> code.ossystems Code Review - openembedded-core.git/commitdiff
docbook-sgml-dtd-native: Write a bak file for shared state
authorSaul Wold <sgw@linux.intel.com>
Fri, 29 Jul 2011 00:05:30 +0000 (17:05 -0700)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Mon, 1 Aug 2011 12:58:14 +0000 (13:58 +0100)
This patch writes a sgml-docbook.bak that is read by the sgml-common during a shared
state sysroot populate, because it comes out of order.

Signed-off-by: Saul Wold <sgw@linux.intel.com>
meta/recipes-devtools/docbook-sgml-dtd/docbook-sgml-dtd-native.inc

index 542600a7841c25d60155ddc8b8a25c431d5b885d..1b357b53686d966b6df9422164d7522a01aa5522 100644 (file)
@@ -20,7 +20,7 @@ SRC_URI = "http://www.docbook.org/sgml/${DTD_VERSION}/docbook-${DTD_VERSION}.zip
 # The .zip file extracts to the current dir
 S = "${WORKDIR}"
 
-INC_PR = "r2"
+INC_PR = "r3"
 
 SSTATEPOSTINSTFUNCS += "docbook_sgml_dtd_sstate_postinst"
 SYSROOT_PREPROCESS_FUNCS += "docbook_sgml_dtd_sysroot_preprocess"
@@ -44,6 +44,9 @@ docbook_sgml_dtd_sstate_postinst () {
        then
                # Ensure that the catalog file sgml-docbook.cat is properly
                # updated when the package is installed from sstate cache.
+               ${SYSROOT_DESTDIR}${bindir_crossscripts}/install-catalog-docbook-sgml-dtd-${DTD_VERSION} \
+                       --add ${sysconfdir}/sgml/sgml-docbook.bak \
+                       ${sysconfdir}/sgml/sgml-docbook-dtd-${DTD_VERSION}.cat
                ${SYSROOT_DESTDIR}${bindir_crossscripts}/install-catalog-docbook-sgml-dtd-${DTD_VERSION} \
                        --add ${sysconfdir}/sgml/sgml-docbook.cat \
                        ${sysconfdir}/sgml/sgml-docbook-dtd-${DTD_VERSION}.cat