debian/rules: provide SOURCE_BASE_DIR
authorMaximilian Engelhardt <maxi@daemonizer.de>
Tue, 7 Dec 2021 20:52:15 +0000 (21:52 +0100)
committerHans van Kranenburg <hans@knorrie.org>
Fri, 17 Dec 2021 10:53:04 +0000 (11:53 +0100)
This adds the SOURCE_BASE_DIR variable pointing to the top directory.
The variable is then later used by the patch in our delta queue that
adjusts the first hypervisor log line to insert Debian specific
information.

Signed-off-by: Maximilian Engelhardt <maxi@daemonizer.de>
debian/rules

index 222e012cf8af72f2c31c795eb3c56cd9e33e0949..33759effa27bb7a82fb37e6d578d01f56e9171b9 100755 (executable)
@@ -5,6 +5,11 @@
 
 SHELL    := bash -e
 
+# SOURCE_BASE_DIR is used by our delta queue to find the top directory.  It
+# seems this information is currenty not directly provided by the Debian build
+# system.
+export SOURCE_BASE_DIR=$(shell pwd)
+
 # This influences dpkg-buildflags to specify better linker
 # options.  See https://wiki.debian.org/Hardening
 # Apparently some of these might incur silent breakage