diff options
| author | Scott Garman <scott.a.garman@intel.com> | 2011-02-22 18:36:57 -0800 |
|---|---|---|
| committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2011-02-23 15:53:15 +0000 |
| commit | 8cc18e629e73ef42b8baa84ec8c28b1677fe2602 (patch) | |
| tree | 9162ab05b5dabd8d236bd090b5edbee66331dc5b /meta/recipes-devtools/docbook-sgml-dtd | |
| parent | fa6e7860821f9f5af15af0253ded2cc1fde61fdb (diff) | |
| download | poky-8cc18e629e73ef42b8baa84ec8c28b1677fe2602.tar.gz | |
docbook-sgml-dtd-native.inc: run install-catalog from SSTATEPOSTINSTFUNCS
Otherwise the sgml-docbook.cat catalog would not be updated when a build
from sstate cache is run.
Signed-off-by: Scott Garman <scott.a.garman@intel.com>
Diffstat (limited to 'meta/recipes-devtools/docbook-sgml-dtd')
| -rw-r--r-- | meta/recipes-devtools/docbook-sgml-dtd/docbook-sgml-dtd-native.inc | 26 |
1 files changed, 10 insertions, 16 deletions
diff --git a/meta/recipes-devtools/docbook-sgml-dtd/docbook-sgml-dtd-native.inc b/meta/recipes-devtools/docbook-sgml-dtd/docbook-sgml-dtd-native.inc index 162051f62b..83cedbcc11 100644 --- a/meta/recipes-devtools/docbook-sgml-dtd/docbook-sgml-dtd-native.inc +++ b/meta/recipes-devtools/docbook-sgml-dtd/docbook-sgml-dtd-native.inc | |||
| @@ -20,9 +20,9 @@ SRC_URI = "http://www.docbook.org/sgml/${DTD_VERSION}/docbook-${DTD_VERSION}.zip | |||
| 20 | # The .zip file extracts to the current dir | 20 | # The .zip file extracts to the current dir |
| 21 | S = "${WORKDIR}" | 21 | S = "${WORKDIR}" |
| 22 | 22 | ||
| 23 | INC_PR = "r0" | 23 | INC_PR = "r1" |
| 24 | 24 | ||
| 25 | SYSROOT_PREPROCESS_FUNCS += "docbook_sgml_dtd_native_mangle" | 25 | SSTATEPOSTINSTFUNCS += "docbook_sgml_dtd_sstate_postinst" |
| 26 | 26 | ||
| 27 | inherit native | 27 | inherit native |
| 28 | 28 | ||
| @@ -33,21 +33,15 @@ do_install () { | |||
| 33 | install docbook.cat ${D}${datadir}/sgml/docbook/sgml-dtd-${DTD_VERSION}/catalog | 33 | install docbook.cat ${D}${datadir}/sgml/docbook/sgml-dtd-${DTD_VERSION}/catalog |
| 34 | cp -PpRr *.dtd *.mod *.dcl ${D}${datadir}/sgml/docbook/sgml-dtd-${DTD_VERSION} | 34 | cp -PpRr *.dtd *.mod *.dcl ${D}${datadir}/sgml/docbook/sgml-dtd-${DTD_VERSION} |
| 35 | 35 | ||
| 36 | install-catalog \ | ||
| 37 | --add ${sysconfdir}/sgml/sgml-docbook-dtd-${DTD_VERSION}.cat \ | ||
| 38 | ${D}${datadir}/sgml/docbook/sgml-dtd-${DTD_VERSION}/catalog | ||
| 39 | |||
| 40 | install-catalog \ | ||
| 41 | --add ${sysconfdir}/sgml/sgml-docbook-dtd-${DTD_VERSION}.cat \ | ||
| 42 | ${sysconfdir}/sgml/sgml-docbook.cat | ||
| 43 | |||
| 44 | # Copy the generated catalog to the image directory for staging. | ||
| 45 | install -d ${D}${sysconfdir}/sgml | 36 | install -d ${D}${sysconfdir}/sgml |
| 46 | cp ${sysconfdir}/sgml/sgml-docbook-dtd-${DTD_VERSION}.cat ${D}${sysconfdir}/sgml/ | 37 | echo "CATALOG ${datadir}/sgml/docbook/sgml-dtd-${DTD_VERSION}/catalog" > \ |
| 38 | ${D}${sysconfdir}/sgml/sgml-docbook-dtd-${DTD_VERSION}.cat | ||
| 47 | } | 39 | } |
| 48 | 40 | ||
| 49 | docbook_sgml_dtd_native_mangle () { | 41 | docbook_sgml_dtd_sstate_postinst () { |
| 50 | # Remove the image directory path ${D} from the .cat files. | 42 | # Ensure that the catalog file sgml-docbook.cat is properly |
| 51 | sed -i -e "s|${D}||g" ${SYSROOT_DESTDIR}${sysconfdir}/sgml/sgml-docbook.cat || true | 43 | # updated when the package is installed from sstate cache. |
| 52 | sed -i -e "s|${D}||g" ${SYSROOT_DESTDIR}${sysconfdir}/sgml/sgml-docbook-dtd-${DTD_VERSION}.cat | 44 | install-catalog \ |
| 45 | --add ${sysconfdir}/sgml/sgml-docbook.cat \ | ||
| 46 | ${sysconfdir}/sgml/sgml-docbook-dtd-${DTD_VERSION}.cat | ||
| 53 | } | 47 | } |
