diff options
author | Richard Elberger <rich@richelberger.com> | 2023-02-22 13:49:40 +0000 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2023-02-26 11:49:00 +0000 |
commit | e13f4fd22fb0d7bda3974c2bd48837985fb9eb8b (patch) | |
tree | 2e2e9edb2742ec387f1f3b3db56bfb849dc60f03 /meta/recipes-devtools | |
parent | 454c93d153bddab82073de3098db3416398c11b2 (diff) | |
download | poky-e13f4fd22fb0d7bda3974c2bd48837985fb9eb8b.tar.gz |
docbook-xml: Switch from debian packages to upstream docbook sources
This patch changes the docbook-xml distribution package source from
debian to docbook which aligns the recipe with the source
originator. Other changes made to the recipe include:
This patch resolves [YOCTO #13270].
- removal of version 4.0 given docbook no longer distributes version
4.0
- simplification of the header description.
- inline comments to communicate the rationale behind gathering
multiple versions and LICENSE file handling.
- minor ordering changes to align with styling conventions and better
context to better communicate use
- Added comment about magic XMLCATALOGS variable. This variable and
subsequent inherit might be better placed in recipes that depend on
docbook-xml but leave it for now to not cause a patch landslide.
- Modify the related docbook-xml patch to remove docbook-xml-4.0 since
it is no longer provided.
- Put BBCLASSEXTEND to end of recipe per RP note on convention
(From OE-Core rev: fc4471019313d981f0c951220cc65e8374a7e8e6)
Signed-off-by: Richard Elberger <rich@richelberger.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-devtools')
-rw-r--r-- | meta/recipes-devtools/docbook-xml/docbook-xml-dtd4/docbook-xml-update-catalog.xml.patch | 89 | ||||
-rw-r--r-- | meta/recipes-devtools/docbook-xml/docbook-xml-dtd4_4.5.bb | 60 |
2 files changed, 43 insertions, 106 deletions
diff --git a/meta/recipes-devtools/docbook-xml/docbook-xml-dtd4/docbook-xml-update-catalog.xml.patch b/meta/recipes-devtools/docbook-xml/docbook-xml-dtd4/docbook-xml-update-catalog.xml.patch index c1385631d7..1f3364900c 100644 --- a/meta/recipes-devtools/docbook-xml/docbook-xml-dtd4/docbook-xml-update-catalog.xml.patch +++ b/meta/recipes-devtools/docbook-xml/docbook-xml-dtd4/docbook-xml-update-catalog.xml.patch | |||
@@ -1,97 +1,12 @@ | |||
1 | 21/3/2023: modified to remove 4.0 | ||
2 | |||
1 | docbook-xml: update catalog.xml | 3 | docbook-xml: update catalog.xml |
2 | 4 | ||
3 | Refer Ubuntu 13.04 to update catalog.xml | 5 | Refer Ubuntu 13.04 to update catalog.xml |
4 | 6 | ||
5 | Upstream-Status: Inappropriate [docbook 4.x development has ceased, docbook 5 is entirely different] | 7 | Upstream-Status: Inappropriate [docbook 4.x development has ceased, docbook 5 is entirely different] |
6 | Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com> | 8 | Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com> |
7 | --- | ||
8 | docbook-4.0/catalog.xml | 72 +++++++++++++++++++++++++++++++++++++++++++++++ | ||
9 | docbook-4.1.2/catalog.xml | 66 +++++++++++++++++++++++++++++++++++++++++++ | ||
10 | docbook-4.2/catalog.xml | 69 ++++++--------------------------------------- | ||
11 | docbook-4.3/catalog.xml | 72 ++++++++--------------------------------------- | ||
12 | docbook-4.4/catalog.xml | 63 ++--------------------------------------- | ||
13 | docbook-4.5/catalog.xml | 63 ++--------------------------------------- | ||
14 | 6 files changed, 165 insertions(+), 240 deletions(-) | ||
15 | create mode 100644 docbook-4.0/catalog.xml | ||
16 | create mode 100644 docbook-4.1.2/catalog.xml | ||
17 | 9 | ||
18 | diff --git a/docbook-4.0/catalog.xml b/docbook-4.0/catalog.xml | ||
19 | new file mode 100644 | ||
20 | --- /dev/null | ||
21 | +++ b/docbook-4.0/catalog.xml | ||
22 | @@ -0,0 +1,72 @@ | ||
23 | +<?xml version='1.0'?> | ||
24 | +<!DOCTYPE catalog PUBLIC "-//OASIS//DTD Entity Resolution XML Catalog V1.0//EN" | ||
25 | + "http://www.oasis-open.org/committees/entity/release/1.0/catalog.dtd"> | ||
26 | + | ||
27 | +<catalog xmlns="urn:oasis:names:tc:entity:xmlns:xml:catalog"> | ||
28 | + | ||
29 | +<!-- ...................................................................... --> | ||
30 | +<!-- XML Catalog data for DocBook XML V4.0............................... --> | ||
31 | +<!-- File catalog.xml ..................................................... --> | ||
32 | + | ||
33 | +<!-- Please direct all questions, bug reports, or suggestions for | ||
34 | + changes to the docbook@lists.oasis-open.org mailing list. For more | ||
35 | + information, see http://www.oasis-open.org/. | ||
36 | + --> | ||
37 | + | ||
38 | +<!-- This is the catalog data file for DocBook V4.0. It is provided as | ||
39 | + a convenience in building your own catalog files. You need not use | ||
40 | + the filenames listed here, and need not use the filename method of | ||
41 | + identifying storage objects at all. See the documentation for | ||
42 | + detailed information on the files associated with the DocBook DTD. | ||
43 | + See XML Catalogs at http://www.oasis-open.org/committees/entity/ for | ||
44 | + detailed information on supplying and using catalog data. | ||
45 | + --> | ||
46 | + | ||
47 | +<!-- ...................................................................... --> | ||
48 | +<!-- DocBook driver file .................................................. --> | ||
49 | + | ||
50 | +<public publicId="-//Norman Walsh//DTD DocBk XML V4.0//EN" | ||
51 | + uri="docbookx.dtd"/> | ||
52 | + | ||
53 | +<!-- Other ways to refer to DocBook XML v4.0............................... --> | ||
54 | +<public publicId="-//Norman Walsh//DTD DocBook XML V4.0//EN" | ||
55 | + uri="docbookx.dtd"/> | ||
56 | + | ||
57 | +<system systemId="http://www.oasis-open.org/docbook/xml/4.0/docbookx.dtd" | ||
58 | + uri="docbookx.dtd"/> | ||
59 | + | ||
60 | +<!-- ...................................................................... --> | ||
61 | +<!-- DocBook modules ...................................................... --> | ||
62 | + | ||
63 | +<public publicId="-//Norman Walsh//ENTITIES DocBook XML Notations V4.0//EN" | ||
64 | + uri="dbnotnx.mod"/> | ||
65 | + | ||
66 | +<public publicId="-//Norman Walsh//ENTITIES DocBook XML Character Entities V4.0//EN" | ||
67 | + uri="dbcentx.mod"/> | ||
68 | + | ||
69 | +<public publicId="-//Norman Walsh//ELEMENTS DocBook XML Information Pool V4.0//EN" | ||
70 | + uri="dbpoolx.mod"/> | ||
71 | + | ||
72 | +<public publicId="-//Norman Walsh//ELEMENTS DocBook XML Document Hierarchy V4.0//EN" | ||
73 | + uri="dbhierx.mod"/> | ||
74 | + | ||
75 | +<public publicId="-//Norman Walsh//ENTITIES DocBook XML Additional General Entities V4.0//EN" | ||
76 | + uri="dbgenent.mod"/> | ||
77 | + | ||
78 | +<public publicId="-//Norman Walsh//DTD CALS Table Model XML V4.0//EN" | ||
79 | + uri="calstblx.dtd"/> | ||
80 | + | ||
81 | +<!-- UNOFFICIAL conversion of the exchange table model to XML, based on the OASIS Exchange --> | ||
82 | +<!-- Table Model PUBLIC "-//SGML Open//DTD Exchange Table Model 19960430//EN" --> | ||
83 | +<public publicId="-//Normal Walsh//Exchange Table Model 19960430 XML V4.0//EN" | ||
84 | + uri="soextblx.dtd"/> | ||
85 | + | ||
86 | +<!-- the following FPI is declared for the DTD inside the DTD, but we'll --> | ||
87 | +<!-- use the version from the latest DocBook | ||
88 | +<public publicId="-//OASIS//DTD XML Exchange Table Model 19990315//EN" | ||
89 | + uri="soextblx.dtd"/> --> | ||
90 | + | ||
91 | +<!-- End of catalog data for DocBook XML V4.0 ............................. --> | ||
92 | +<!-- ...................................................................... --> | ||
93 | + | ||
94 | +</catalog> | ||
95 | diff --git a/docbook-4.1.2/catalog.xml b/docbook-4.1.2/catalog.xml | 10 | diff --git a/docbook-4.1.2/catalog.xml b/docbook-4.1.2/catalog.xml |
96 | new file mode 100644 | 11 | new file mode 100644 |
97 | --- /dev/null | 12 | --- /dev/null |
diff --git a/meta/recipes-devtools/docbook-xml/docbook-xml-dtd4_4.5.bb b/meta/recipes-devtools/docbook-xml/docbook-xml-dtd4_4.5.bb index 2bec1442af..e4b4201b1f 100644 --- a/meta/recipes-devtools/docbook-xml/docbook-xml-dtd4_4.5.bb +++ b/meta/recipes-devtools/docbook-xml/docbook-xml-dtd4_4.5.bb | |||
@@ -1,30 +1,47 @@ | |||
1 | SUMMARY = "Document type definitions for verification of XML data files" | 1 | SUMMARY = "Document type definitions for verification of XML data files" |
2 | DESCRIPTION = "Document type definitions for verification of XML data \ | 2 | DESCRIPTION = "Document type definitions for verification of XML data \ |
3 | files against the DocBook rule set, it ships with the latest DocBook 4.5 \ | 3 | files against the DocBook rule set." |
4 | XML DTD, as well as a selected set of legacy DTDs for use with older \ | 4 | HOMEPAGE = "https://docbook.org" |
5 | documents, including 4.0, 4.1.2, 4.2, 4.3 and 4.4" | 5 | |
6 | HOMEPAGE = "http://www.docbook.org/xml/" | 6 | # The upstream sources are not distributed with a license file. |
7 | # LICENSE-OASIS is included as a "patch" to workaround this. When | ||
8 | # upgrading this recipe, please verify whether this is still needed. | ||
7 | 9 | ||
8 | LICENSE = "OASIS" | 10 | LICENSE = "OASIS" |
9 | LIC_FILES_CHKSUM = "file://${WORKDIR}/LICENSE-OASIS;md5=c608985dd5f7f215e669e7639a0b1d2e" | 11 | LIC_FILES_CHKSUM = "file://${WORKDIR}/LICENSE-OASIS;md5=c608985dd5f7f215e669e7639a0b1d2e" |
10 | 12 | ||
11 | # Note: the upstream sources are not distributed with a license file. | 13 | # To support apps with xml schema backward compatibility, we must |
12 | # LICENSE-OASIS is included as a "patch" to workaround this. When | 14 | # install a set of schemas. Install the latest based on PV and then |
13 | # upgrading this recipe, please verify whether this is still needed. | 15 | # name any specific versions as required. TODO: Figure out a mechanism |
14 | SRC_URI = "http://snapshot.debian.org/archive/debian/20160728T043443Z/pool/main/d/docbook-xml/docbook-xml_${PV}.orig.tar.gz \ | 16 | # to filter exactly which versions are necessary, if that's even |
15 | file://LICENSE-OASIS \ | 17 | # possible. |
16 | file://docbook-xml-update-catalog.xml.patch \ | 18 | # |
17 | " | 19 | # DocBook.org lists available release packages at https://docbook.org/xml/. |
20 | # | ||
21 | # The release packages relate docbook source at | ||
22 | # https://github.com/docbook/docbook but building them requires the | ||
23 | # Gradle build system. In future, it might be safer to use the source | ||
24 | # tree which would also enable proper SBOM generation through the | ||
25 | # bitbake build system. | ||
26 | # | ||
18 | 27 | ||
19 | SRC_URI[md5sum] = "487b4d44e15cffb1f4048af23f98208e" | 28 | SRC_URI = "https://docbook.org/xml/4.1.2/docbkx412.zip;name=payload412;subdir=docbook-4.1.2 \ |
20 | SRC_URI[sha256sum] = "b0f8edcf697f5318e63dd98c9a931f3fee167af0805ba441db372e0f17b2a44f" | 29 | https://docbook.org/xml/4.2/docbook-xml-4.2.zip;name=payload42;subdir=docbook-4.2 \ |
30 | https://docbook.org/xml/4.3/docbook-xml-4.3.zip;name=payload43;subdir=docbook-4.3 \ | ||
31 | https://docbook.org/xml/4.4/docbook-xml-4.4.zip;name=payload44;subdir=docbook-4.4 \ | ||
32 | https://docbook.org/xml/${PV}/docbook-xml-${PV}.zip;name=payloadPV;subdir=docbook-${PV} \ | ||
33 | file://docbook-xml-update-catalog.xml.patch \ | ||
34 | file://LICENSE-OASIS" | ||
21 | 35 | ||
22 | UPSTREAM_CHECK_URI = "${DEBIAN_MIRROR}/main/d/docbook-xml/" | 36 | SRC_URI[payload412.sha256sum] = "30f0644064e0ea71751438251940b1431f46acada814a062870f486c772e7772" |
37 | SRC_URI[payload42.sha256sum] = "acc4601e4f97a196076b7e64b368d9248b07c7abf26b34a02cca40eeebe60fa2" | ||
38 | SRC_URI[payload43.sha256sum] = "23068a94ea6fd484b004c5a73ec36a66aa47ea8f0d6b62cc1695931f5c143464" | ||
39 | SRC_URI[payload44.sha256sum] = "02f159eb88c4254d95e831c51c144b1863b216d909b5ff45743a1ce6f5273090" | ||
40 | SRC_URI[payloadPV.sha256sum] = "4e4e037a2b83c98c6c94818390d4bdd3f6e10f6ec62dd79188594e26190dc7b4" | ||
23 | 41 | ||
24 | S = "${WORKDIR}/docbook-xml-4.5.c31424" | 42 | UPSTREAM_CHECK_REGEX = "docbook-xml-(?P<pver>4(\.\d+)).zip" |
25 | 43 | ||
26 | inherit allarch | 44 | S = "${WORKDIR}" |
27 | BBCLASSEXTEND = "native" | ||
28 | 45 | ||
29 | do_configure (){ | 46 | do_configure (){ |
30 | : | 47 | : |
@@ -38,15 +55,20 @@ do_install () { | |||
38 | install -d ${D}${sysconfdir}/xml/ | 55 | install -d ${D}${sysconfdir}/xml/ |
39 | xmlcatalog --create --noout ${D}${sysconfdir}/xml/docbook-xml.xml | 56 | xmlcatalog --create --noout ${D}${sysconfdir}/xml/docbook-xml.xml |
40 | 57 | ||
41 | for DTDVERSION in 4.0 4.1.2 4.2 4.3 4.4 4.5; do | 58 | for DTDVERSION in 4.1.2 4.2 4.3 4.4 4.5; do |
42 | DEST=${datadir}/xml/docbook/schema/dtd/$DTDVERSION | 59 | DEST=${datadir}/xml/docbook/schema/dtd/$DTDVERSION |
43 | install -d -m 755 ${D}$DEST | 60 | install -d -m 755 ${D}$DEST |
44 | cp -v -R docbook-$DTDVERSION/* ${D}$DEST | 61 | cp -v -R docbook-$DTDVERSION/* ${D}$DEST |
45 | xmlcatalog --verbose --noout --add nextCatalog unused file://$DEST/catalog.xml ${D}${sysconfdir}/xml/docbook-xml.xml | 62 | xmlcatalog --verbose --noout --add nextCatalog unused \ |
63 | file://$DEST/catalog.xml ${D}${sysconfdir}/xml/docbook-xml.xml | ||
46 | done | 64 | done |
47 | } | 65 | } |
48 | 66 | ||
67 | # Magic environment variable is required for downstream recipe processing | ||
49 | XMLCATALOGS = "${sysconfdir}/xml/docbook-xml.xml" | 68 | XMLCATALOGS = "${sysconfdir}/xml/docbook-xml.xml" |
50 | inherit xmlcatalog | 69 | inherit xmlcatalog |
51 | 70 | ||
52 | FILES:${PN} = "${datadir}/* ${sysconfdir}/xml/docbook-xml.xml" | 71 | FILES:${PN} = "${datadir}/* ${sysconfdir}/xml/docbook-xml.xml" |
72 | |||
73 | inherit allarch | ||
74 | BBCLASSEXTEND = "native" | ||