Skip to content
This repository was archived by the owner on Jan 6, 2023. It is now read-only.

Commit 59197aa

Browse files
committed
ocl-icd: Disable manpage generation
Manpage generation using(a2x) xmllint, which needs network to download xml DTD. Fails with below error: | a2x: executing: "xmllint" --nonet --noout --valid "/home/avalluri/ostro-os-xt/build/tmp-glibc/work/corei7-64-ostro-linux/ocl-icd/2.2.9-r0/ocl-icd-2.2.9/doc/libOpenCL.7.xml" | | I/O error : Attempt to load network entity http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd | /home/avalluri/ostro-os-xt/build/tmp-glibc/work/corei7-64-ostro-linux/ocl-icd/2.2.9-r0/ocl-icd-2.2.9/doc/libOpenCL.7.xml:2: warning: failed to load external entity "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" | D DocBook XML V4.5//EN" "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" | ^ Patched configure.ac to add config option to enable/disable document generation. Signed-off-by: Amarnath Valluri <amarnath.valluri@intel.com>
1 parent 0dd2c75 commit 59197aa

File tree

2 files changed

+31
-1
lines changed

2 files changed

+31
-1
lines changed
Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
diff --git a/configure.ac b/configure.ac
2+
index 264d6e0..eb54bb2 100644
3+
--- a/configure.ac
4+
+++ b/configure.ac
5+
@@ -30,9 +30,17 @@ AC_PROG_INSTALL
6+
AC_PROG_LN_S
7+
AM_PROG_CC_C_O
8+
9+
-AC_PATH_PROG([ASCIIDOC], [asciidoc], [])
10+
-AC_PATH_PROG([A2X], [a2x], [])
11+
-AC_PATH_PROG([XMLTO], [xmlto], [])
12+
+AC_ARG_ENABLE([doc],
13+
+ [AS_HELP_STRING([--enable-doc],
14+
+ [Generate documentation])],
15+
+ [generate_doc=$enableval],
16+
+ [generate_doc=no])
17+
+
18+
+if test "x$generate_doc" = "xyes"; then
19+
+ AC_PATH_PROG([ASCIIDOC], [asciidoc], [])
20+
+ AC_PATH_PROG([A2X], [a2x], [])
21+
+ AC_PATH_PROG([XMLTO], [xmlto], [])
22+
+fi
23+
AM_CONDITIONAL([GEN_DOC], [\
24+
test x"$ASCIIDOC" != x && \
25+
test x"$A2X" != x && \
Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,17 @@
11
LICENSE = "BSD-2-Clause"
22
LIC_FILES_CHKSUM = "file://COPYING;md5=232257bbf7320320725ca9529d3782ab"
33

4-
SRC_URI = "https://forge.imag.fr/frs/download.php/716/${BP}.tar.gz"
4+
SRC_URI = " \
5+
https://forge.imag.fr/frs/download.php/716/${BP}.tar.gz \
6+
file://configurable-doc-generation.patch \
7+
"
58
SRC_URI[md5sum] = "7dab1a9531ea79c19a414a9ee229504e"
69
SRC_URI[sha256sum] = "0c8ac13e2c5b737c34de49f9aca6cad3c4d33dd0bbb149b01238d76e798feae5"
710

811
inherit autotools
912

13+
EXTRA_OECONF = "--disable-doc"
14+
1015
DEPENDS += "ruby-native"
1116

1217
BBCLASSEXTEND = "native"

0 commit comments

Comments
 (0)