Skip to content

Commit 57323a7

Browse files
committed
Fix install test
1 parent bda7e86 commit 57323a7

File tree

4 files changed

+23
-20
lines changed

4 files changed

+23
-20
lines changed

.github/workflows/main.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,7 @@ jobs:
7474
CC: gcc
7575
EXTRA_CFLAGS: "-Werror"
7676
MAKE: gmake
77+
INSTALL_FLAGS: -Ddm
7778

7879
steps:
7980
- uses: actions/checkout@v4
@@ -83,7 +84,7 @@ jobs:
8384
- name: Test in FreeBSD
8485
uses: vmactions/freebsd-vm@v1
8586
with:
86-
envs: "CC EXTRA_CFLAGS MAKE"
87+
envs: "CC EXTRA_CFLAGS MAKE INSTALL_FLAGS"
8788
usesh: true
8889
sync: rsync
8990
copyback: false

.valgrind.suppressions

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -218,7 +218,6 @@
218218
# FreeBSD part1
219219
glib_leak_freebsd1
220220
Memchek:Leak
221-
fun:*alloc
222221
...
223222
fun:g_dbus_address_get_stream_sync
224223
...
@@ -229,7 +228,6 @@
229228
# XXX: Why isn't memory freed in g_bus_unown_name?
230229
glib_leak_freebsd2
231230
Memchek:Leak
232-
fun:*alloc
233231
...
234232
fun:g_bus_own_name
235233
...

Makefile

Lines changed: 17 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -223,49 +223,49 @@ clean-wayland-protocols:
223223
install: install-dunst install-dunstctl install-dunstrc install-service
224224

225225
install-dunst: dunst doc
226-
install -Dm755 dunst ${DESTDIR}${BINDIR}/dunst
227-
install -Dm644 docs/dunst.1 ${DESTDIR}${MANPREFIX}/man1/dunst.1
228-
install -Dm644 docs/dunst.5 ${DESTDIR}${MANPREFIX}/man5/dunst.5
229-
install -Dm644 docs/dunstctl.1 ${DESTDIR}${MANPREFIX}/man1/dunstctl.1
230-
install -Dm644 docs/dunstify.1 ${DESTDIR}${MANPREFIX}/man1/dunstify.1
226+
${INSTALL} ${INSTALL_FLAGS}755 dunst ${DESTDIR}${BINDIR}/dunst
227+
${INSTALL} ${INSTALL_FLAGS}644 docs/dunst.1 ${DESTDIR}${MANPREFIX}/man1/dunst.1
228+
${INSTALL} ${INSTALL_FLAGS}644 docs/dunst.5 ${DESTDIR}${MANPREFIX}/man5/dunst.5
229+
${INSTALL} ${INSTALL_FLAGS}644 docs/dunstctl.1 ${DESTDIR}${MANPREFIX}/man1/dunstctl.1
230+
${INSTALL} ${INSTALL_FLAGS}644 docs/dunstify.1 ${DESTDIR}${MANPREFIX}/man1/dunstify.1
231231

232232
install-dunstctl: dunstctl
233-
install -Dm755 dunstctl ${DESTDIR}${BINDIR}/dunstctl
233+
${INSTALL} ${INSTALL_FLAGS}755 dunstctl ${DESTDIR}${BINDIR}/dunstctl
234234

235235
ifeq (1,${SYSCONF_FORCE_NEW})
236236
install-dunstrc:
237-
install -Dm644 dunstrc ${DESTDIR}${SYSCONFFILE}
237+
${INSTALL} ${INSTALL_FLAGS}644 dunstrc ${DESTDIR}${SYSCONFFILE}
238238
endif
239239

240240
install-service: install-service-dbus
241241
install-service-dbus: service-dbus
242-
install -Dm644 org.knopwob.dunst.service ${DESTDIR}${SERVICEDIR_DBUS}/org.knopwob.dunst.service
242+
${INSTALL} ${INSTALL_FLAGS}644 org.knopwob.dunst.service ${DESTDIR}${SERVICEDIR_DBUS}/org.knopwob.dunst.service
243243
ifneq (0,${SYSTEMD})
244244
install-service: install-service-systemd
245245
install-service-systemd: service-systemd
246-
install -Dm644 dunst.systemd.service ${DESTDIR}${SERVICEDIR_SYSTEMD}/dunst.service
246+
${INSTALL} ${INSTALL_FLAGS}644 dunst.systemd.service ${DESTDIR}${SERVICEDIR_SYSTEMD}/dunst.service
247247
endif
248248

249249
ifneq (0,${DUNSTIFY})
250250
install: install-dunstify
251251
install-dunstify: dunstify
252-
install -Dm755 dunstify ${DESTDIR}${BINDIR}/dunstify
252+
${INSTALL} ${INSTALL_FLAGS}755 dunstify ${DESTDIR}${BINDIR}/dunstify
253253
endif
254254

255255
ifneq (0,${COMPLETIONS})
256256
install: install-completions
257257
install-completions:
258-
install -Dm644 completions/dunst.bashcomp ${DESTDIR}${BASHCOMPLETIONDIR}/dunst
259-
install -Dm644 completions/dunstctl.bashcomp ${DESTDIR}${BASHCOMPLETIONDIR}/dunstctl
260-
install -Dm644 completions/_dunst.zshcomp ${DESTDIR}${ZSHCOMPLETIONDIR}/_dunst
261-
install -Dm644 completions/_dunstctl.zshcomp ${DESTDIR}${ZSHCOMPLETIONDIR}/_dunstctl
262-
install -Dm644 completions/dunst.fishcomp ${DESTDIR}${FISHCOMPLETIONDIR}/dunst.fish
263-
install -Dm644 completions/dunstctl.fishcomp ${DESTDIR}${FISHCOMPLETIONDIR}/dunstctl.fish
258+
${INSTALL} ${INSTALL_FLAGS}644 completions/dunst.bashcomp ${DESTDIR}${BASHCOMPLETIONDIR}/dunst
259+
${INSTALL} ${INSTALL_FLAGS}644 completions/dunstctl.bashcomp ${DESTDIR}${BASHCOMPLETIONDIR}/dunstctl
260+
${INSTALL} ${INSTALL_FLAGS}644 completions/_dunst.zshcomp ${DESTDIR}${ZSHCOMPLETIONDIR}/_dunst
261+
${INSTALL} ${INSTALL_FLAGS}644 completions/_dunstctl.zshcomp ${DESTDIR}${ZSHCOMPLETIONDIR}/_dunstctl
262+
${INSTALL} ${INSTALL_FLAGS}644 completions/dunst.fishcomp ${DESTDIR}${FISHCOMPLETIONDIR}/dunst.fish
263+
${INSTALL} ${INSTALL_FLAGS}644 completions/dunstctl.fishcomp ${DESTDIR}${FISHCOMPLETIONDIR}/dunstctl.fish
264264

265265
ifneq (0,${DUNSTIFY})
266266
install: install-completions-dunstify
267267
install-completions-dunstify:
268-
install -Dm644 completions/dunstify.fishcomp ${DESTDIR}${FISHCOMPLETIONDIR}/dunstify.fish
268+
${INSTALL} ${INSTALL_FLAGS}644 completions/dunstify.fishcomp ${DESTDIR}${FISHCOMPLETIONDIR}/dunstify.fish
269269
endif
270270
endif
271271

config.mk

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,10 @@ SED ?= sed
2424
SYSTEMDAEMON ?= systemd
2525
VALGRIND ?= valgrind
2626

27+
# Provided for compatibility with BSDs
28+
INSTALL ?= install
29+
INSTALL_FLAGS ?= -Dm
30+
2731
# Disable systemd service file installation,
2832
# if you don't want to use systemd albeit installed
2933
#SYSTEMD ?= 0

0 commit comments

Comments
 (0)