From: Tobias Hunger Subject: trivial build system patches Date: Mon, 7 Nov 2005 19:34:39 +0100 Message-ID: <200511071934.40247.tobias@aquzul.com> Mime-Version: 1.0 Content-Type: Multipart/Mixed; boundary="Boundary-00=_A55bD+FRE5As905" 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@lists.xensource.com List-Id: xen-devel@lists.xenproject.org --Boundary-00=_A55bD+FRE5As905 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Content-Disposition: inline Hi! Here are a couple of patches for the Xen build system. 01-xenstore-clean-fix fixes the clean target of the tools/xenstore Makefile to remove all files created. Currently leaves some of its files behind. 02-examples-permissions-fix removes the execute bit from shell snipplets (the -common files not starting with #!) found in the example directory under tools. It further changes the installation path of the udev rules to comply with what debian does: It places the rules file in /etc/udev/ und creates a symlink to it in /etc/udev/rules.d. I am not sure how other distributions handle this, but the change should not effect anyone to seriously;-) It would be nice if you could apply these patches. Regards, Tobias --Boundary-00=_A55bD+FRE5As905 Content-Type: text/x-diff; charset="us-ascii"; name="01-xenstore-clean-fix.patch" Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename="01-xenstore-clean-fix.patch" diff -urN orig/tools/xenstore/Makefile patched/tools/xenstore/Makefile --- orig/tools/xenstore/Makefile 2005-11-05 22:45:23.000000000 +0100 +++ patched/tools/xenstore/Makefile 2005-11-05 22:46:42.000000000 +0100 @@ -76,8 +76,8 @@ clean: testsuite-clean rm -f *.o *.opic *.so - rm -f xenstored xs_random xs_stress xs_crashme - rm -f xs_test xenstored_test xs_tdb_dump + rm -f $(CLIENTS) + rm -f xsls xenstored xs_tdb_dump $(RM) $(PROG_DEP) print-dir: --Boundary-00=_A55bD+FRE5As905 Content-Type: text/x-diff; charset="us-ascii"; name="02-examples-permissions-fix.patch" Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename="02-examples-permissions-fix.patch" diff -urN orig/tools/examples/Makefile patched/tools/examples/Makefile --- orig/tools/examples/Makefile 2005-11-05 05:55:08.000000000 +0100 +++ patched/tools/examples/Makefile 2005-11-06 14:44:26.000000000 +0100 @@ -26,14 +26,14 @@ XEN_SCRIPTS += network-nat vif-nat XEN_SCRIPTS += block XEN_SCRIPTS += block-enbd block-nbd -XEN_SCRIPTS += xen-script-common.sh -XEN_SCRIPTS += xen-hotplug-common.sh xen-network-common.sh vif-common.sh -XEN_SCRIPTS += block-common.sh +XEN_SCRIPT_DATA = xen-script-common.sh +XEN_SCRIPT_DATA += xen-hotplug-common.sh xen-network-common.sh vif-common.sh +XEN_SCRIPT_DATA += block-common.sh XEN_HOTPLUG_DIR = /etc/hotplug XEN_HOTPLUG_SCRIPTS = xen-backend.agent -UDEV_RULES_DIR = /etc/udev/rules.d +UDEV_RULES_DIR = /etc/udev UDEV_RULES = xen-backend.rules DI = $(shell readlink -f $(DISTDIR)) @@ -77,6 +77,10 @@ do \ $(INSTALL_PROG) $$i $(DESTDIR)$(XEN_SCRIPT_DIR); \ done + for i in $(XEN_SCRIPT_DATA); \ + do \ + $(INSTALL_DATA) $$i $(DESTDIR)$(XEN_SCRIPT_DIR); \ + done install-hotplug: [ -d $(DESTDIR)$(XEN_HOTPLUG_DIR) ] || \ @@ -88,10 +92,12 @@ install-udev: [ -d $(DESTDIR)$(UDEV_RULES_DIR) ] || \ - $(INSTALL_DIR) $(DESTDIR)$(UDEV_RULES_DIR) + $(INSTALL_DIR) $(DESTDIR)$(UDEV_RULES_DIR)/rules.d for i in $(UDEV_RULES); \ do \ - $(INSTALL_PROG) $$i $(DESTDIR)$(UDEV_RULES_DIR); \ + $(INSTALL_DATA) $$i $(DESTDIR)$(UDEV_RULES_DIR); \ + ( cd $(DESTDIR)$(UDEV_RULES_DIR)/rules.d ; \ + ln -s ../$$i . ) \ done clean: --Boundary-00=_A55bD+FRE5As905 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 --Boundary-00=_A55bD+FRE5As905--