[waffle] [PATCH] man: run xsltproc with -nonet

Jordan Justen jordan.l.justen at intel.com
Tue Apr 15 14:04:37 PDT 2014


This speeds up package builds for debian considerably, but adds
a requirement on the docbook-xsl package.

Signed-off-by: Jordan Justen <jordan.l.justen at intel.com>
---
 man/html.cmake     | 2 +-
 man/manpages.cmake | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/man/html.cmake b/man/html.cmake
index 6fd82b3..dd1062c 100644
--- a/man/html.cmake
+++ b/man/html.cmake
@@ -62,7 +62,7 @@ function(waffle_add_html vol title)
         OUTPUT ${output}
         DEPENDS ${main_input} ${html_common_sources}
         WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}
-        COMMAND ${waffle_xsltproc} --xinclude -o ${output} html.xsl ${main_input}
+        COMMAND ${waffle_xsltproc} -nonet --xinclude -o ${output} html.xsl ${main_input}
         )
 endfunction()
 
diff --git a/man/manpages.cmake b/man/manpages.cmake
index f293275..ee80156 100644
--- a/man/manpages.cmake
+++ b/man/manpages.cmake
@@ -62,7 +62,7 @@ function(waffle_add_manpage vol title)
         OUTPUT man${vol}/${title}.${vol}
         DEPENDS ${title}.${vol}.xml ${man_common_sources}
         WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}
-        COMMAND ${waffle_xsltproc} --xinclude -o ${man_out_dir}/man${vol}/ manpage.xsl ${title}.${vol}.xml
+        COMMAND ${waffle_xsltproc} -nonet --xinclude -o ${man_out_dir}/man${vol}/ manpage.xsl ${title}.${vol}.xml
         )
 endfunction()
 
-- 
1.9.2



More information about the waffle mailing list