Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

build fix for older systemd

Some older versions of systemd don't have 'systemdutildir' in the
pkg-config data, so we end up with files in weird places.

If that's the case, just set UTILDIR to the directory above the UNITDIR.
  • Loading branch information...
commit 9225b62fa205c0476c58fdb1a900dbe397f7fe89 1 parent 4e1ca1e
@wgwoods wgwoods authored
Showing with 5 additions and 1 deletion.
  1. +5 −1 systemd/Makefile
View
6 systemd/Makefile
@@ -1,8 +1,12 @@
SERVICES=upgrade-prep.service upgrade-switch-root.service
TARGETS=system-upgrade.target upgrade-switch-root.target
SCRIPTS=upgrade-prep.sh
-UTILDIR=$(DESTDIR)$(shell pkg-config systemd --variable systemdutildir)
UNITDIR=$(DESTDIR)$(shell pkg-config systemd --variable systemdsystemunitdir)
+UTILDIR=$(DESTDIR)$(shell pkg-config systemd --variable systemdutildir)
+ifeq ($(strip $(UTILDIR)),$(DESTDIR))
+ # Older systemd doesn't have this in its pkg-config, so..
+ UTILDIR=$(UNITDIR)/..
+endif
INSTALL=install -p
all:
Please sign in to comment.
Something went wrong with that request. Please try again.