From: Stefan Berger Subject: [PATCH] [TOOLS] Check for libxml2 if security tools are to be built Date: Thu, 06 Sep 2007 09:29:14 -0400 Message-ID: <1189085354.12053.3.camel@gsal-3.watson.ibm.com> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="=-8B6t6u6mtQNPIX/ryq1A" Return-path: List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: xen-devel Cc: Keir Fraser List-Id: xen-devel@lists.xenproject.org --=-8B6t6u6mtQNPIX/ryq1A Content-Type: text/plain Content-Transfer-Encoding: 7bit Check for availability of libxml2 if security tools are to be built. Adapt the python setup.py command line parameters to also work under SuSE. Signed-off-by: Stefan Berger --=-8B6t6u6mtQNPIX/ryq1A Content-Disposition: attachment; filename=sec_tools_build_libxml2_check.diff Content-Type: text/x-patch; name=sec_tools_build_libxml2_check.diff; charset=UTF-8 Content-Transfer-Encoding: 7bit Index: latest/xen-unstable.hg/tools/Makefile =================================================================== --- latest.orig/xen-unstable.hg/tools/Makefile +++ latest/xen-unstable.hg/tools/Makefile @@ -9,7 +9,7 @@ SUBDIRS-y += examples SUBDIRS-y += xentrace SUBDIRS-$(CONFIG_XCUTILS) += xcutils SUBDIRS-$(CONFIG_X86) += firmware -SUBDIRS-y += security +SUBDIRS-$(ACM_SECURITY) += security SUBDIRS-y += console SUBDIRS-y += xenmon SUBDIRS-y += guest-headers Index: latest/xen-unstable.hg/tools/check/Makefile =================================================================== --- latest.orig/xen-unstable.hg/tools/check/Makefile +++ latest/xen-unstable.hg/tools/check/Makefile @@ -7,7 +7,7 @@ all: build # Check this machine is OK for building on. .PHONY: build build: - XENFB_TOOLS=$(XENFB_TOOLS) LIBXENAPI_BINDINGS=$(LIBXENAPI_BINDINGS) ./chk build + XENFB_TOOLS=$(XENFB_TOOLS) LIBXENAPI_BINDINGS=$(LIBXENAPI_BINDINGS) ACM_SECURITY=$(ACM_SECURITY) ./chk build # Check this machine is OK for installing on. # DO NOT use this check from 'make install' in the parent @@ -15,7 +15,7 @@ build: # copy rather than actually installing. .PHONY: install install: - XENFB_TOOLS=$(XENFB_TOOLS) LIBXENAPI_BINDINGS=$(LIBXENAPI_BINDINGS) ./chk install + XENFB_TOOLS=$(XENFB_TOOLS) LIBXENAPI_BINDINGS=$(LIBXENAPI_BINDINGS) ACM_SECURITY=$(ACM_SECURITY) ./chk install .PHONY: clean clean: Index: latest/xen-unstable.hg/tools/check/check_xml2 =================================================================== --- latest.orig/xen-unstable.hg/tools/check/check_xml2 +++ latest/xen-unstable.hg/tools/check/check_xml2 @@ -1,7 +1,7 @@ #!/bin/sh # CHECK-BUILD CHECK-INSTALL -if [ ! "$LIBXENAPI_BINDINGS" = "y" ] +if [ ! "$LIBXENAPI_BINDINGS" = "y" -a ! "$ACM_SECURITY" = "y" ] then echo -n "unused, " exit 0 Index: latest/xen-unstable.hg/tools/security/Makefile =================================================================== --- latest.orig/xen-unstable.hg/tools/security/Makefile +++ latest/xen-unstable.hg/tools/security/Makefile @@ -66,7 +66,7 @@ install: all $(ACM_CONFIG_FILE) $(INSTALL_DIR) $(DESTDIR)$(ACM_SECGEN_CGIDIR) $(INSTALL_PROG) $(ACM_INST_CGI) $(DESTDIR)$(ACM_SECGEN_CGIDIR) ifndef XEN_PYTHON_NATIVE_INSTALL - python python/setup.py install --home="$(DESTDIR)/usr" --install-lib="$(DESTDIR)$(LIBPATH)/python" + python python/setup.py install --install-lib="$(DESTDIR)$(LIBPATH)/python" else python python/setup.py install --root="$(DESTDIR)" endif --=-8B6t6u6mtQNPIX/ryq1A Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel --=-8B6t6u6mtQNPIX/ryq1A--