summaryrefslogtreecommitdiffstats
path: root/debian/rules
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-07 17:51:51 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-07 17:51:51 +0000
commit8a513c59dbe43ff764845577ddb7683ceb3efb61 (patch)
tree51abf07c50de0be016d3bfebdcfcae4ee72077b8 /debian/rules
parentAdding upstream version 43.0. (diff)
downloadgnome-settings-daemon-8a513c59dbe43ff764845577ddb7683ceb3efb61.tar.xz
gnome-settings-daemon-8a513c59dbe43ff764845577ddb7683ceb3efb61.zip
Adding debian version 43.0-4.debian/43.0-4debian
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'debian/rules')
-rwxr-xr-xdebian/rules54
1 files changed, 54 insertions, 0 deletions
diff --git a/debian/rules b/debian/rules
new file mode 100755
index 0000000..f957f2d
--- /dev/null
+++ b/debian/rules
@@ -0,0 +1,54 @@
+#!/usr/bin/make -f
+
+include /usr/share/dpkg/default.mk
+
+export DEB_BUILD_MAINT_OPTIONS = hardening=+all
+export DEB_LDFLAGS_MAINT_APPEND = -Wl,-z,defs -Wl,-O1 -Wl,--warn-unresolved-symbols
+export DEB_LDFLAGS_MAINT_STRIP = -Wl,-Bsymbolic-functions
+
+export GSD_MAJOR_VERSION = $(shell echo $(DEB_VERSION_UPSTREAM) | cut -d~ -f1 | cut -d. -f1)
+
+%:
+ dh $@
+
+ifneq ($(DEB_HOST_ARCH_OS),linux)
+CONFFLAGS = \
+ -Drfkill=false \
+ -Dnetwork_manager=false \
+ -Dalsa=false \
+ -Dcolord=false \
+ -Dgudev=false \
+ -Dsystemd=false \
+ -Dwayland=false \
+ -Dwwan=false
+endif
+
+override_dh_auto_configure:
+ dh_auto_configure -- \
+ --libdir=/usr/lib \
+ -Dgcr3=true \
+ $(CONFFLAGS)
+
+override_dh_auto_test:
+ifeq (,$(filter nocheck, $(DEB_BUILD_OPTIONS)))
+# The tests are not fatal on non-linux architectures
+# See: https://bugzilla.gnome.org/show_bug.cgi?id=770684#c2
+ifeq (,$(filter $(DEB_HOST_ARCH), hurd-i386 kfreebsd-i386 kfreebsd-amd64))
+ xvfb-run --auto-servernum dh_auto_test
+else
+ xvfb-run --auto-servernum dh_auto_test || true
+endif
+endif
+
+override_dh_installchangelogs:
+ dh_installchangelogs -XChangeLog
+
+# The build system is not installing the polkit policy files on non-linux
+# architectures even if the code requires libpolkit-gobject-1 library
+ifneq ($(DEB_HOST_ARCH_OS),linux)
+execute_before_dh_install:
+ grep -E -v 'polkit-1' debian/gnome-settings-daemon.install > debian/gnome-settings-daemon.install.$(DEB_HOST_ARCH_OS)
+endif
+
+execute_before_dh_clean:
+ rm -f debian/gnome-settings-daemon.install.$(DEB_HOST_ARCH_OS)