mirror of
https://github.com/systemd/systemd
synced 2024-07-21 18:24:38 +00:00
meson: refuse when prefix is not a child of rootprefix
This is most likely to happen when setting one but not the other. Note that we already warn when rootprefixdir != rootprefix_default, at the very end.
This commit is contained in:
parent
b66789a9b5
commit
d895e10a24
|
@ -115,6 +115,11 @@ prefixdir = get_option('prefix')
|
||||||
if not prefixdir.startswith('/')
|
if not prefixdir.startswith('/')
|
||||||
error('Prefix is not absolute: "@0@"'.format(prefixdir))
|
error('Prefix is not absolute: "@0@"'.format(prefixdir))
|
||||||
endif
|
endif
|
||||||
|
if prefixdir != rootprefixdir and not prefixdir.startswith(rootprefixdir.strip('/') + '/')
|
||||||
|
error('Prefix is not below root prefix (now rootprefix=@0@ prefix=@1@)'.format(
|
||||||
|
rootprefixdir, prefixdir))
|
||||||
|
endif
|
||||||
|
|
||||||
bindir = join_paths(prefixdir, get_option('bindir'))
|
bindir = join_paths(prefixdir, get_option('bindir'))
|
||||||
libdir = join_paths(prefixdir, get_option('libdir'))
|
libdir = join_paths(prefixdir, get_option('libdir'))
|
||||||
sysconfdir = join_paths(prefixdir, get_option('sysconfdir'))
|
sysconfdir = join_paths(prefixdir, get_option('sysconfdir'))
|
||||||
|
|
Loading…
Reference in a new issue