Skip to content

Commit 6e65df8

Browse files
committed
pkg-config: prefix is not really configurable, don't pretend it was
We generally don't support prefix being != /usr, and this is hardcoded all over the place. In the systemd.pc file it wasn't so far. Let's adjust this to match the rest of the codebase.
1 parent b612c26 commit 6e65df8

File tree

2 files changed

+6
-8
lines changed

2 files changed

+6
-8
lines changed

src/core/systemd.pc.in

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
# considered deprecated (though there is no plan to remove them). New names
1212
# shall have underscores.
1313

14-
prefix=@prefix@
14+
prefix=/usr
1515
root_prefix=@rootprefix_noslash@
1616
rootprefix=${root_prefix}
1717
sysconf_dir=@sysconfdir@
@@ -26,10 +26,10 @@ systemdsystemunitdir=${systemd_system_unit_dir}
2626
systemd_system_preset_dir=${rootprefix}/lib/systemd/system-preset
2727
systemdsystempresetdir=${systemd_system_preset_dir}
2828

29-
systemd_user_unit_dir=${prefix}/lib/systemd/user
29+
systemd_user_unit_dir=/usr/lib/systemd/user
3030
systemduserunitdir=${systemd_user_unit_dir}
3131

32-
systemd_user_preset_dir=${prefix}/lib/systemd/user-preset
32+
systemd_user_preset_dir=/usr/lib/systemd/user-preset
3333
systemduserpresetdir=${systemd_user_preset_dir}
3434

3535
systemd_system_conf_dir=${sysconfdir}/systemd/system
@@ -47,7 +47,7 @@ systemduserunitpath=${systemd_user_unit_path}
4747
systemd_system_generator_dir=${root_prefix}/lib/systemd/system-generators
4848
systemdsystemgeneratordir=${systemd_system_generator_dir}
4949

50-
systemd_user_generator_dir=${prefix}/lib/systemd/user-generators
50+
systemd_user_generator_dir=/usr/lib/systemd/user-generators
5151
systemdusergeneratordir=${systemd_user_generator_dir}
5252

5353
systemd_system_generator_path=/run/systemd/system-generators:/etc/systemd/system-generators:/usr/local/lib/systemd/system-generators:${systemd_system_generator_dir}
@@ -62,7 +62,7 @@ systemdsleepdir=${systemd_sleep_dir}
6262
systemd_shutdown_dir=${root_prefix}/lib/systemd/system-shutdown
6363
systemdshutdowndir=${systemd_shutdown_dir}
6464

65-
tmpfiles_dir=${prefix}/lib/tmpfiles.d
65+
tmpfiles_dir=/usr/lib/tmpfiles.d
6666
tmpfilesdir=${tmpfiles_dir}
6767

6868
sysusers_dir=${rootprefix}/lib/sysusers.d
@@ -77,7 +77,7 @@ binfmtdir=${binfmt_dir}
7777
modules_load_dir=${rootprefix}/lib/modules-load.d
7878
modulesloaddir=${modules_load_dir}
7979

80-
catalog_dir=${prefix}/lib/systemd/catalog
80+
catalog_dir=/usr/lib/systemd/catalog
8181
catalogdir=${catalog_dir}
8282

8383
system_uid_max=@systemuidmax@

src/libsystemd/sd-path/sd-path.c

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -364,8 +364,6 @@ static int get_path(uint64_t type, char **buffer, const char **ret) {
364364
*ret = ROOTPREFIX_NOSLASH "/lib/systemd/system-shutdown";
365365
return 0;
366366

367-
/* FIXME: systemd.pc uses ${prefix}, but CONF_PATHS_NULSTR doesn't.
368-
* Should ${prefix} use in systemd.pc be removed? */
369367
case SD_PATH_TMPFILES:
370368
*ret = "/usr/lib/tmpfiles.d";
371369
return 0;

0 commit comments

Comments
 (0)