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

Commit

Permalink
ocl-icd: Disable manpage generation
Browse files Browse the repository at this point in the history
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 <[email protected]>
  • Loading branch information
avalluri committed Sep 23, 2016
1 parent 0dd2c75 commit 59197aa
Show file tree
Hide file tree
Showing 2 changed files with 31 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
diff --git a/configure.ac b/configure.ac
index 264d6e0..eb54bb2 100644
--- a/configure.ac
+++ b/configure.ac
@@ -30,9 +30,17 @@ AC_PROG_INSTALL
AC_PROG_LN_S
AM_PROG_CC_C_O

-AC_PATH_PROG([ASCIIDOC], [asciidoc], [])
-AC_PATH_PROG([A2X], [a2x], [])
-AC_PATH_PROG([XMLTO], [xmlto], [])
+AC_ARG_ENABLE([doc],
+ [AS_HELP_STRING([--enable-doc],
+ [Generate documentation])],
+ [generate_doc=$enableval],
+ [generate_doc=no])
+
+if test "x$generate_doc" = "xyes"; then
+ AC_PATH_PROG([ASCIIDOC], [asciidoc], [])
+ AC_PATH_PROG([A2X], [a2x], [])
+ AC_PATH_PROG([XMLTO], [xmlto], [])
+fi
AM_CONDITIONAL([GEN_DOC], [\
test x"$ASCIIDOC" != x && \
test x"$A2X" != x && \
7 changes: 6 additions & 1 deletion meta-ostro-xt/recipes-opencl/ocl-icd/ocl-icd_2.2.9.bb
Original file line number Diff line number Diff line change
@@ -1,12 +1,17 @@
LICENSE = "BSD-2-Clause"
LIC_FILES_CHKSUM = "file://COPYING;md5=232257bbf7320320725ca9529d3782ab"

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

inherit autotools

EXTRA_OECONF = "--disable-doc"

DEPENDS += "ruby-native"

BBCLASSEXTEND = "native"

0 comments on commit 59197aa

Please sign in to comment.