mirror of
https://git.yoctoproject.org/poky
synced 2026-05-30 00:20:08 +00:00
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>
This commit is contained in:
committed by
Richard Purdie
parent
afa695fd31
commit
f9fe0ae3c8
@@ -20,9 +20,10 @@ SRC_URI = "http://www.docbook.org/sgml/${DTD_VERSION}/docbook-${DTD_VERSION}.zip
|
|||||||
# The .zip file extracts to the current dir
|
# The .zip file extracts to the current dir
|
||||||
S = "${WORKDIR}"
|
S = "${WORKDIR}"
|
||||||
|
|
||||||
INC_PR = "r1"
|
INC_PR = "r2"
|
||||||
|
|
||||||
SSTATEPOSTINSTFUNCS += "docbook_sgml_dtd_sstate_postinst"
|
SSTATEPOSTINSTFUNCS += "docbook_sgml_dtd_sstate_postinst"
|
||||||
|
SYSROOT_PREPROCESS_FUNCS += "docbook_sgml_dtd_sysroot_preprocess"
|
||||||
|
|
||||||
inherit native
|
inherit native
|
||||||
|
|
||||||
@@ -43,8 +44,14 @@ docbook_sgml_dtd_sstate_postinst () {
|
|||||||
then
|
then
|
||||||
# Ensure that the catalog file sgml-docbook.cat is properly
|
# Ensure that the catalog file sgml-docbook.cat is properly
|
||||||
# updated when the package is installed from sstate cache.
|
# updated when the package is installed from sstate cache.
|
||||||
install-catalog \
|
${SYSROOT_DESTDIR}${bindir_crossscripts}/install-catalog-docbook-sgml-dtd-${DTD_VERSION} \
|
||||||
--add ${sysconfdir}/sgml/sgml-docbook.cat \
|
--add ${sysconfdir}/sgml/sgml-docbook.cat \
|
||||||
${sysconfdir}/sgml/sgml-docbook-dtd-${DTD_VERSION}.cat
|
${sysconfdir}/sgml/sgml-docbook-dtd-${DTD_VERSION}.cat
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
|
docbook_sgml_dtd_sysroot_preprocess () {
|
||||||
|
install -d ${SYSROOT_DESTDIR}${bindir_crossscripts}/
|
||||||
|
install -m 755 ${STAGING_BINDIR_NATIVE}/install-catalog ${SYSROOT_DESTDIR}${bindir_crossscripts}/install-catalog-docbook-sgml-dtd-${DTD_VERSION}
|
||||||
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user