aboutsummaryrefslogtreecommitdiff
path: root/debian/rules
diff options
context:
space:
mode:
authorMike Gabriel <mike.gabriel@das-netzwerkteam.de>2021-04-12 15:30:26 +0200
committerMike Gabriel <mike.gabriel@das-netzwerkteam.de>2021-04-12 15:33:10 +0200
commit1ea38a1636f596ddc6be50d9e1968c62fa65225c (patch)
tree1dbceec146e1834b40310a21879734fcb0eb50f1 /debian/rules
parent7b6860dad7c6aa39861e6d65dfe161b65eca1f50 (diff)
downloadarctica-greeter-1ea38a1636f596ddc6be50d9e1968c62fa65225c.tar.gz
arctica-greeter-1ea38a1636f596ddc6be50d9e1968c62fa65225c.tar.bz2
arctica-greeter-1ea38a1636f596ddc6be50d9e1968c62fa65225c.zip
debian/rules: At least at build time, try to find the lightdm-guest-session executable. On purpose, we have kept this outside of the upstream code.
Diffstat (limited to 'debian/rules')
-rwxr-xr-xdebian/rules16
1 files changed, 15 insertions, 1 deletions
diff --git a/debian/rules b/debian/rules
index d5f1693..11888fc 100755
--- a/debian/rules
+++ b/debian/rules
@@ -2,6 +2,11 @@
LDFLAGS+=-Wl,--as-needed
+# possible guest wrapper binary locations
+GUEST_WRAPPER_BINARY_LIBEXEC="/usr/libexec/lightdm/lightdm-guest-session"
+GUEST_WRAPPER_BINARY_M_LIB="/usr/lib/$(DEB_HOST_MULTIARCH)/lightdm/lightdm-guest-session"
+GUEST_WRAPPER_BINARY_LIB="/usr/lib/lightdm/lightdm-guest-session"
+
%:
dh $@ --with autoreconf
@@ -12,7 +17,16 @@ override_dh_autoreconf:
NOCONFIGURE=1 dh_autoreconf ./autogen.sh
override_dh_auto_configure:
- dh_auto_configure -- GUEST_WRAPPER_BINARY=/usr/lib/$(DEB_HOST_MULTIARCH)/lightdm/lightdm-guest-session
+ set -x; if [ -x "$(GUEST_WRAPPER_BINARY_LIBEXEC)" ]; then \
+ dh_auto_configure -- GUEST_WRAPPER_BINARY=/usr/libexec/lightdm/lightdm-guest-session; \
+ elif [ -x "${GUEST_WRAPPER_BINARY_M_LIB}" ]; then \
+ dh_auto_configure -- GUEST_WRAPPER_BINARY=/usr/lib/$(DEB_HOST_MULTIARCH)/lightdm/lightdm-guest-session; \
+ elif [ -x "${GUEST_WRAPPER_BINARY_LIB}" ]; then \
+ dh_auto_configure -- GUEST_WRAPPER_BINARY=/usr/lib/lightdm/lightdm-guest-session; \
+ else \
+ echo "Error: GUEST_WRAPPER_BINARY (lightdm-guest-session executable from LightDM) not found!"; \
+ exit 1; \
+ fi
override_dh_auto_build:
dh_auto_build