diff options
author | Saul Wold <sgw@linux.intel.com> | 2011-07-22 16:38:48 -0700 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2011-07-25 12:54:34 +0100 |
commit | f9fe0ae3c88ab4be954890df0053fc9c11cfc8a5 (patch) | |
tree | 4ae7dae8375282a0910716b7da706b1998073648 /meta/recipes-devtools/docbook-sgml-dtd/docbook-sgml-dtd-native.inc | |
parent | afa695fd317f5de6cee803091b3c8fb25948237e (diff) | |
download | poky-f9fe0ae3c88ab4be954890df0053fc9c11cfc8a5.tar.gz |
docbook-sgml-dtd-native: Add SYSROOT_PREPROCESS_FUNC
[YOCTO #1250]
This added function will install a private install-catalog binary so that shared state
can find the binary as there is not a guarantee.
(From OE-Core rev: b4eef2e1bed0536325342ca884ee0905b7e79ada)
Signed-off-by: Saul Wold <sgw@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-devtools/docbook-sgml-dtd/docbook-sgml-dtd-native.inc')
-rw-r--r-- | meta/recipes-devtools/docbook-sgml-dtd/docbook-sgml-dtd-native.inc | 11 |
1 files changed, 9 insertions, 2 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 ede7bb1172..542600a784 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,10 @@ 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 = "r1" | 23 | INC_PR = "r2" |
24 | 24 | ||
25 | SSTATEPOSTINSTFUNCS += "docbook_sgml_dtd_sstate_postinst" | 25 | SSTATEPOSTINSTFUNCS += "docbook_sgml_dtd_sstate_postinst" |
26 | SYSROOT_PREPROCESS_FUNCS += "docbook_sgml_dtd_sysroot_preprocess" | ||
26 | 27 | ||
27 | inherit native | 28 | inherit native |
28 | 29 | ||
@@ -43,8 +44,14 @@ docbook_sgml_dtd_sstate_postinst () { | |||
43 | then | 44 | then |
44 | # Ensure that the catalog file sgml-docbook.cat is properly | 45 | # Ensure that the catalog file sgml-docbook.cat is properly |
45 | # updated when the package is installed from sstate cache. | 46 | # updated when the package is installed from sstate cache. |
46 | install-catalog \ | 47 | ${SYSROOT_DESTDIR}${bindir_crossscripts}/install-catalog-docbook-sgml-dtd-${DTD_VERSION} \ |
47 | --add ${sysconfdir}/sgml/sgml-docbook.cat \ | 48 | --add ${sysconfdir}/sgml/sgml-docbook.cat \ |
48 | ${sysconfdir}/sgml/sgml-docbook-dtd-${DTD_VERSION}.cat | 49 | ${sysconfdir}/sgml/sgml-docbook-dtd-${DTD_VERSION}.cat |
49 | fi | 50 | fi |
50 | } | 51 | } |
52 | |||
53 | docbook_sgml_dtd_sysroot_preprocess () { | ||
54 | install -d ${SYSROOT_DESTDIR}${bindir_crossscripts}/ | ||
55 | install -m 755 ${STAGING_BINDIR_NATIVE}/install-catalog ${SYSROOT_DESTDIR}${bindir_crossscripts}/install-catalog-docbook-sgml-dtd-${DTD_VERSION} | ||
56 | } | ||
57 | |||