Skip to content

Commit

Permalink
Drop prefix for systemd unit files and add AM_DISTCHECK_CONFIGURE_FLAGS
Browse files Browse the repository at this point in the history
Unit files may also get installed to /etc or /lib. Instead pass working
configure flags to distcheck.
  • Loading branch information
infirit committed May 5, 2018
1 parent 6685c80 commit 25eb0e9
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
5 changes: 5 additions & 0 deletions Makefile.am
Expand Up @@ -38,3 +38,8 @@ MAINTAINERCLEANFILES = \
doc_DATA = ${DIST_DOCS}

ACLOCAL_AMFLAGS = -I m4 ${ACLOCAL_FLAGS}

# distcheck fails trying to install to the live filesystem
AM_DISTCHECK_CONFIGURE_FLAGS = \
--with-systemdsystemunitdir='$$(prefix)/lib/systemd/system' \
--with-systemduserunitdir='$$(prefix)/lib/systemd/user'

This comment has been minimized.

Copy link
@cschramm

cschramm May 6, 2018

Member

--with-systemdunitdir='$$(prefix)/lib/systemd' should be a shorthand for both.

This comment has been minimized.

Copy link
@infirit

infirit May 6, 2018

Author Contributor

I don't understand, are you saying using --with-systemdunitdir=/test would set both the user and system unit dir?

This comment has been minimized.

Copy link
@cschramm

cschramm May 6, 2018

Member

Sorry, I was mistaken. We dropped that with #834.

This comment has been minimized.

Copy link
@infirit

infirit May 6, 2018

Author Contributor

yeah, it got split. You got me really confused there for a moment 😅

4 changes: 2 additions & 2 deletions data/configs/Makefile.am
Expand Up @@ -8,12 +8,12 @@ dbus_sessdir = $(datadir)/dbus-1/services
dbus_sess_DATA = org.blueman.Applet.service

if SYSTEMD_SYSTEM_UNIT_DIR
systemd_systemdir = $(prefix)$(systemd_system_unit_dir)
systemd_systemdir = $(systemd_system_unit_dir)
systemd_system_DATA = blueman-mechanism.service
endif

if SYSTEMD_USER_UNIT_DIR
systemd_userdir = $(prefix)$(systemd_user_unit_dir)
systemd_userdir = $(systemd_user_unit_dir)
systemd_user_DATA = blueman-applet.service
endif

Expand Down

0 comments on commit 25eb0e9

Please sign in to comment.