[Debian-ha-maintainers] Bug#573514: Does not build under m-a as non-root
Ben Hutchings
ben at decadent.org.uk
Fri Mar 12 04:46:46 UTC 2010
Even better, if you apply this then adjust_drbd_config_h.sh will run at
build time with no need to override m-a rules. This should also work
with DKMS etc.
Ben.
--- drbd8-8.0.14/debian/drbd8-source.drbd-Makefile
+++ drbd8-8.0.14/debian/drbd8-source.drbd-Makefile
@@ -12,0 +12,9 @@
drbd-objs += connector.o cn_queue.o
endif
+# Automatically update config
+$(addprefix $(obj)/,$(drbd-objs)): $(obj)/linux/drbd_config.h
+$(obj)/linux/drbd_config.h: FORCE
+ $(Q)if [ "$(obj)" != "$(src)" ]; then \
+ mkdir -p $(@D) && \
+ cp $(src)/linux/drbd_config.h $@; \
+ fi
+ cd $(obj) && KDIR=$(objtree) $(src)/../scripts/adjust_drbd_config_h.sh
+.PHONY: FORCE
--- END ---
--
Ben Hutchings
Humour is the best antidote to reality.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 828 bytes
Desc: This is a digitally signed message part
URL: <http://lists.alioth.debian.org/pipermail/debian-ha-maintainers/attachments/20100312/fe483fa4/attachment.pgp>
More information about the Debian-ha-maintainers
mailing list