Debian Codegraph @

debian/rules

raw symbols SCIP
1 #! /usr/bin/make -f
2
3 # The options have been chosen as follows:
4 # - manually set pamlibdir because we're installing in /usr by default but
5 # pam libs must go to /lib/*/security, same for udev rules
6 # - disable killing users processes by default. This is weird an unexpected
7 # behaviour
8
9 CONFFLAGS = \
10 -Ddocdir=/usr/share/doc/elogind \
11 -Dman=enabled \
12 -Ddefault-kill-user-processes=false \
13 -Dtests=true \
14 -Dmode=release
15
16 CONFFLAGS_CGROUPCTRL_ELOGIND= \
17 -Dcgroup-controller=elogind
18
19 override_dh_auto_configure:
20 dh_auto_configure --builddirectory=build \
21 -- $(CONFFLAGS) $(CONFFLAGS_CGROUPCTRL_ELOGIND)
22
23 override_dh_auto_test:
24 # sbuild unshare backend exposes the host system's cgroups which breaks
25 # tests. See #1092514. Also, within sbuild unshare, ischroot returns
26 # false. See #1056385. So detect user namespace by seeing if
27 # /proc/$$/[ug]id_map is changed from the kernel default.
28 if ! grep -xq '[[:space:]]\{9\}0[[:space:]]\{10\}0[[:space:]]4294967295' /proc/self/[ug]id_map && \
29 mountpoint -q /sys/fs/cgroup ; then \
30 echo "/sys/fs/cgroup mounted within unshared user namespace (sbuild unshare chroot?), skipping tests. "; \
31 else \
32 dh_auto_test; \
33 fi
34
35 override_dh_auto_install:
36 dh_auto_install --builddirectory=build
37
38 override_dh_auto_clean:
39 dh_auto_clean --builddirectory=build
40 # remove Python byte code files
41 rm -rf tools/__pycache__/
42
43 override_dh_makeshlibs:
44 dh_makeshlibs -pelogind -Xlibelogind-shared
45 dh_makeshlibs --remaining-packages
46
47 override_dh_shlibdeps:
48 dh_shlibdeps -- -xlibeudev1
49
50 %:
51 dh $@ --builddirectory=build --without autoreconf,systemd --buildsystem=meson