aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSam James <sam@gentoo.org>2024-03-25 13:43:43 +0000
committerWilliam Hubbs <w.d.hubbs@gmail.com>2024-03-25 14:10:13 -0500
commit12e1e884750cc6cf592bbbdaef6f40ceee304b25 (patch)
treeda6659c058249e6156e4c970a261d5c4ba77094b
parentc45fe9fba5f9149d17eab9e1bfef741a633b1646 (diff)
meson: drop broken split-usr handling
Two issues here: * The 'split-usr' meson option wasn't doing anything, it tried to check if /bin was a symlink, but nothing acted on this information. * The actual rootprefix default was decided based on whether /bin was a symlink which is flaky if e.g. building on a merged-usr system for use on a non-merged-usr system. People can set -Drootprefix=/usr if they wish. There's no real advantage to installing to /usr over / as the compat. symlinks are really here to stay. If someone really does care about this, they can bring it back and do it properly, but it doesn't seem worth it to me at all. Bug: https://bugs.gentoo.org/927776 Fixes: cc0037e9caaee05af0fdedafc5798c2a7aa9bdb8 Fixes: f2362cc277023550b2482215b4a1cd7142639427 Fixes: #696
-rw-r--r--meson.build9
-rw-r--r--meson_options.txt3
2 files changed, 1 insertions, 11 deletions
diff --git a/meson.build b/meson.build
index dc1a3fd8..4e330d33 100644
--- a/meson.build
+++ b/meson.build
@@ -83,16 +83,9 @@ else
pkg_prefix = option_pkg_prefix
endif
-if get_option('split-usr') == 'auto'
- split_usr = run_command('test', '-L', '/bin', check: false).returncode() != 0
-else
- split_usr = get_option('split-usr') == 'true'
-endif
-
rootprefix = get_option('rootprefix')
-rootprefix_default = fs.is_symlink('/bin') ? '/usr' : '/'
if rootprefix == ''
-rootprefix = rootprefix_default
+rootprefix = '/'
endif
bindir = rootprefix / get_option('bindir')
diff --git a/meson_options.txt b/meson_options.txt
index 2c74152e..1f38efbb 100644
--- a/meson_options.txt
+++ b/meson_options.txt
@@ -26,9 +26,6 @@ option('selinux', type : 'feature', value : 'auto',
description : 'enable SELinux support')
option('shell', type : 'string', value : '/bin/sh',
description : 'Default posix compatible shell')
-option('split-usr', type : 'combo',
- choices : ['auto', 'true', 'false'],
- description : '''/bin, /sbin aren't symlinks into /usr''')
option('sysvinit', type : 'boolean', value : false,
description : 'enable SysVinit compatibility (linux only)')
option('termcap', type : 'combo',