Sven Neuhaus
2012-Apr-05 13:24 UTC
[Pkg-xen-devel] Bug#588406: fix for missing XEN_SCRIPT_DIR
I had another look at this and found the source of the problem - the reason why XEN_SCRIPT_DIR is not set: The hotplugpath.sh file is missing in the package. In the "rules" file the "install" target includes this line: $(MAKE) -C $(BUILD_DIR)/tools/hotplug/Linux install-udev install-scripts UDEV_RULES_DIR=/lib/udev/rules.d The problem is that make is never run in the tools/hotplug/common directory, where the "install-scripts" target includes the "build" target which generates the "hotplugpath.sh" file. This file contains, among other things, the XEN_SCRIPT_DIR variable. (The actual work is being done in the toplevel Config.mk file in the genpath target.) So, here is the patch for the "rules" file that makes sure the required "hotplugpath.sh" file is generated (also attached to this mail): ===================================8<======================================--- rules.orig 2010-03-01 22:03:38.000000000 +0100 +++ rules 2012-04-05 15:18:43.000000000 +0200 @@ -60,6 +60,7 @@ dh_testroot dh_prep $(MAKE) -C $(BUILD_DIR)/tools/examples install-configs + $(MAKE) -C $(BUILD_DIR)/tools/hotplug/common install-scripts $(MAKE) -C $(BUILD_DIR)/tools/hotplug/Linux install-udev install-scripts UDEV_RULES_DIR=/lib/udev/rules.d $(MAKE) -C $(BUILD_DIR)/scripts install ===================================8<====================================== When can we expect a fixed version of this package? This bug is really annoying. Regards, -Sven Neuhaus -------------- next part -------------- A non-text attachment was scrubbed... Name: rules.patch Type: application/octet-stream Size: 411 bytes Desc: not available URL: <http://lists.alioth.debian.org/pipermail/pkg-xen-devel/attachments/20120405/8a7d1c15/attachment.obj> -------------- next part -------------- A non-text attachment was scrubbed... Name: smime.p7s Type: application/pkcs7-signature Size: 4371 bytes Desc: not available URL: <http://lists.alioth.debian.org/pipermail/pkg-xen-devel/attachments/20120405/8a7d1c15/attachment.bin>
Apparently Analagous Threads
- Processed: xen-utils-common unusable with DRBD
- Bug#588406: xen-utils-common: /etc/xen/scripts/block not driving helper scripts; XEN_SCRIPT_DIR not properly set
- [PATCH 6/7] Create 2 ocaml packages, libxen-4.1-ocaml and libxen-4.1-ocaml-dev.
- Bug#591456: xen-utils-common: The script hotplugpath.sh is missing in /etc/xen/scripts
- Bug#706283: xen-utils-common: Broken paths in /etc/xen/scripts/hotplugpath.sh