blob: 203527a2df78bcdb8ca88fc93a0e12e182e14597 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
|
From 11704324287f9f552e1524f4a680b8744abd0361 Mon Sep 17 00:00:00 2001
From: Kai Kang <kai.kang@windriver.com>
Date: Fri, 9 Jun 2017 11:04:56 +0800
Subject: [PATCH] crmsh: disable network access for xsltproc when building
Upstream-Status: Inappropriate [embedded specific]
Pass option '--catalogs' to xsltproc via a2x to avoid network access.
And disble xmllint check by option '-L'.
Add option '--install-lib' of python setup.py to install python libraries to
right place.
Signed-off-by: Kai Kang <kai.kang@windriver.com>
---
Makefile.am | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/Makefile.am b/Makefile.am
index 1ffe9c3..3d045e7 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -45,7 +45,7 @@ endif
$(ASCIIDOC) --unsafe --backend=xhtml11 $<
%.8: %.8.adoc
- a2x -f manpage $<
+ a2x --xsltproc-opts=--catalogs --xsltproc-opts=--nonet --xsltproc-opts=--novalid -L -f manpage $<
# Shared data files
install-data-hook:
@@ -73,6 +73,7 @@ install-exec-local:
$(PYTHON) $(srcdir)/setup.py install \
--root $(DESTDIR)/// \
$(python_prefix) \
+ --install-lib $(pythondir) \
--record $(DESTDIR)$(pkgpythondir)/install_files.txt \
--verbose
$(INSTALL) -d -m 770 $(DESTDIR)$(CRM_CACHE_DIR)
|