Source: lxqt-session
Version: 0.9.0+20151031-1
Severity: normal
Tags: patch
Hi,
currently lxqt-session cannot be built on non-Linux architectures due
to the unconditional libudev-dev build dependency. udev is
Linux-specific, so attached there is a patch to restrict that B-D on
Linux archs only, and disable the build of the udev-based monitor.
Thanks,
--
Pino
--- a/debian/rules
+++ b/debian/rules
@@ -1,11 +1,20 @@
#!/usr/bin/make -f
#export DH_VERBOSE=1
+DEB_HOST_ARCH_OS ?= $(shell dpkg-architecture -qDEB_HOST_ARCH_OS)
+
export DEB_LDFLAGS_MAINT_APPEND = -Wl,--as-needed
+ifneq ($(DEB_HOST_ARCH_OS),linux)
+ CMAKE_ARGS += -DLIBUDEV_MONITOR=OFF
+endif
+
%:
dh ${@} --buildsystem cmake --parallel
+override_dh_auto_configure:
+ dh_auto_configure -- $(CMAKE_ARGS)
+
override_dh_auto_install:
dh_auto_install -- DESTDIR=$(CURDIR)/debian/lxqt-session
--- a/debian/control
+++ b/debian/control
@@ -11,7 +11,7 @@ Build-Depends: debhelper (>= 9),
liblxqt0-dev (>= 0.9.0+20151026),
libqt5x11extras5-dev,
libqt5xdg-dev (>= 1.3.0),
- libudev-dev,
+ libudev-dev [linux-any],
libx11-dev,
pkg-config,
qttools5-dev,