From: Lennart Poettering Date: Wed, 9 Mar 2011 19:15:44 +0000 (+0100) Subject: pkconfig: export full search path as .pc variable X-Git-Tag: v21~129 X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?p=elogind.git;a=commitdiff_plain;h=607df95be184308b6bb7a5534f04109c67c039c3 pkconfig: export full search path as .pc variable --- diff --git a/src/path-lookup.c b/src/path-lookup.c index f094969ad..1a21ca078 100644 --- a/src/path-lookup.c +++ b/src/path-lookup.c @@ -181,6 +181,8 @@ int lookup_paths_init(LookupPaths *p, ManagerRunningAs running_as) { return -ENOMEM; } else if (!(p->unit_path = strv_new( + /* If you modify this you also want to modify + * systemdsystemunitpath= in systemd.pc.in! */ "/dev/.systemd/system", SYSTEM_CONFIG_UNIT_PATH, "/etc/systemd/system", diff --git a/systemd.pc.in b/systemd.pc.in index 204991309..e939293a4 100644 --- a/systemd.pc.in +++ b/systemd.pc.in @@ -11,6 +11,7 @@ systemdsystemunitdir=@systemunitdir@ systemduserunitdir=@pkgdatadir@/user systemdsystemconfdir=@pkgsysconfdir@/system systemduserconfdir=@pkgsysconfdir@/user +systemdsystemunitpath=/dev/.systemd/system:${systemdsystemconfdir}:/etc/systemd/system:/usr/local/share/systemd/system:/usr/share/systemd/system:/lib/systemd/system:${systemdsystemunitdir} Name: systemd Description: systemd System and Service Manager