]> git.ipfire.org Git - thirdparty/systemd.git/commit - meson.build
pkgconfig: avoid double slash with split-usr configuration
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Tue, 5 Mar 2019 15:46:52 +0000 (16:46 +0100)
committerLennart Poettering <lennart@poettering.net>
Tue, 5 Mar 2019 17:49:28 +0000 (18:49 +0100)
commit23bdba61b10963878b45a485e0e3c1963a8d2ea8
tree95b2732f852315d92057b04ec354991f40bb3905
parentbea3d64a73bb9313feed01b6ba9038dab04b9953
pkgconfig: avoid double slash with split-usr configuration

By defining rootprefix= we avoid a double slash in $systemdsystemunitdir and
other variables. This fixes a regression introduced in
1c2c7c6cb3d92315624f3711114e86b0acfbce63 where the variables using rootprefix=/
would start with a double slash. This should be interpreted the same, but is
certainly ugly.

The rootprefix variable was added to systemd.pc in
1c2c7c6cb3d92315624f3711114e86b0acfbce63, so there is no question of backwards
compatiblity. If people try to "override" the prefix and specify
--define-variable=rootprefix=/, they will get a double slash, which should be
OK, and is the same as --define-variable=rootprefix=/something/, which also
results in a double slash somewhere in the strings.
meson.build
src/core/systemd.pc.in