WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-api

[Xen-API] [PATCH] Fix build permission problem

To: xen-api@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-API] [PATCH] Fix build permission problem
From: David Scott <dave.scott@xxxxxxxxxxxxx>
Date: Tue, 1 Jun 2010 16:39:39 +0100
Delivery-date: Tue, 01 Jun 2010 10:36:09 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
List-help: <mailto:xen-api-request@lists.xensource.com?subject=help>
List-id: Discussion of API issues surrounding Xen <xen-api.lists.xensource.com>
List-post: <mailto:xen-api@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/mailman/listinfo/xen-api>, <mailto:xen-api-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/mailman/listinfo/xen-api>, <mailto:xen-api-request@lists.xensource.com?subject=unsubscribe>
Sender: xen-api-bounces@xxxxxxxxxxxxxxxxxxx
# HG changeset patch
# User David Scott <dave.scott@xxxxxxxxxxxxx>
# Date 1275406761 -3600
# Node ID b3462209199855bd5d312cccbbe40829369d75a5
# Parent  6310f068b5c8143d1fcb82ae169097196ec5d19b
Avoid owner/group problems by copying the .spec files into $(RPM_SPECSDIR) 
before calling $(RPMBUILD)

Signed-off-by: David Scott <dave.scott@xxxxxxxxxxxxx>

diff -r 6310f068b5c8 -r b34622091998 Makefile
--- a/Makefile  Fri May 28 15:20:05 2010 +0100
+++ b/Makefile  Tue Jun 01 16:39:21 2010 +0100
@@ -38,17 +38,18 @@
 
 .PHONY: build
 build: srpm $(MY_SOURCES)/MANIFEST
-       $(RPMBUILD) --target $(DOMAIN0_ARCH_OPTIMIZED) -bb ocaml.spec
+       $(RPMBUILD) --target $(DOMAIN0_ARCH_OPTIMIZED) -bb 
$(RPM_SPECSDIR)/ocaml.spec
        $(RPM) -ihv $(RPM_BINDIR)/{ocaml-3*.rpm,ocaml-camlp4*.rpm} || echo 
ocaml is already installed
-       $(RPMBUILD) --target $(DOMAIN0_ARCH_OPTIMIZED) -bb findlib.spec
+       $(RPMBUILD) --target $(DOMAIN0_ARCH_OPTIMIZED) -bb 
$(RPM_SPECSDIR)/findlib.spec
        $(RPM) -ihv $(RPM_BINDIR)/ocaml-findlib*.rpm || echo ocaml-findlib is 
already installed
-       $(RPMBUILD) --target $(DOMAIN0_ARCH_OPTIMIZED) -bb omake.spec
+       $(RPMBUILD) --target $(DOMAIN0_ARCH_OPTIMIZED) -bb 
$(RPM_SPECSDIR)/omake.spec
        $(RPM) -ihv $(RPM_BINDIR)/omake* || echo omake is already installed
-       $(RPMBUILD) --target $(DOMAIN0_ARCH_OPTIMIZED) -bb xmlm.spec 
getopt.spec type-conv.spec
+       $(RPMBUILD) --target $(DOMAIN0_ARCH_OPTIMIZED) -bb 
$(RPM_SPECSDIR)/xmlm.spec $(RPM_SPECSDIR)/getopt.spec 
$(RPM_SPECSDIR)/type-conv.spec
 
 .PHONY: srpm
 srpm:
        mkdir -p $(RPM_SRPMSDIR) $(RPM_SPECSDIR) $(RPM_SOURCESDIR) 
$(RPM_RPMSDIR)
+       install -g root -o root 
{ocaml,findlib,omake,xmlm,getopt,type-conv}.spec $(RPM_SPECSDIR)
        cp $(DIST)/ocaml-${OCAML_VERSION}.tar.bz2 $(RPM_SOURCESDIR)/
        cp $(DIST)/findlib-${FINDLIB_VERSION}.tar.gz $(RPM_SOURCESDIR)/
        cp $(DIST)/omake-${OMAKE_VERSION}.tar.gz $(RPM_SOURCESDIR)/
@@ -56,13 +57,13 @@
        cp $(DIST)/xmlm-${XMLM_VERSION}.tbz $(RPM_SOURCESDIR)/
        cp $(DIST)/getopt-${GETOPT_VERSION}.tar.gz $(RPM_SOURCESDIR)/
        cp $(DIST)/type-conv-${TYPECONV_VERSION}.tar.bz2 $(RPM_SOURCESDIR)/
-       $(RPMBUILD) -bs ocaml.spec
+       $(RPMBUILD) -bs $(RPM_SPECSDIR)/ocaml.spec
        cp patches/xmlm-do-not-display-none-dtd-on-output $(RPM_SOURCESDIR)/
-       $(RPMBUILD) --nodeps -bs findlib.spec
-       $(RPMBUILD) --nodeps -bs omake.spec
-       $(RPMBUILD) --nodeps -bs xmlm.spec
-       $(RPMBUILD) --nodeps -bs getopt.spec
-       $(RPMBUILD) --nodeps -bs type-conv.spec
+       $(RPMBUILD) --nodeps -bs $(RPM_SPECSDIR)/findlib.spec
+       $(RPMBUILD) --nodeps -bs $(RPM_SPECSDIR)/omake.spec
+       $(RPMBUILD) --nodeps -bs $(RPM_SPECSDIR)/xmlm.spec
+       $(RPMBUILD) --nodeps -bs $(RPM_SPECSDIR)/getopt.spec
+       $(RPMBUILD) --nodeps -bs $(RPM_SPECSDIR)/type-conv.spec
 
 $(MY_SOURCES)/MANIFEST: $(MY_SOURCES_DIRSTAMP)
        rm -f $@
1 file changed, 11 insertions(+), 10 deletions(-)
Makefile |   21 +++++++++++----------


Attachment: xen-dist-ocaml.hg.patch
Description: Text Data

_______________________________________________
xen-api mailing list
xen-api@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/mailman/listinfo/xen-api
<Prev in Thread] Current Thread [Next in Thread>