diff options
author | Eli Schwartz <eschwartz@archlinux.org> | 2022-02-01 07:51:20 -0500 |
---|---|---|
committer | Eli Schwartz <eschwartz@archlinux.org> | 2022-02-01 16:52:26 -0500 |
commit | a45446b6e583811545dbe001074397d66640101d (patch) | |
tree | 0694ef028b5ff62c11db599b7c67250d81af5214 /docs | |
parent | 6c1bb02f138a8c956a217c278dc8d82bfbc6d849 (diff) | |
download | meson-a45446b6e583811545dbe001074397d66640101d.zip meson-a45446b6e583811545dbe001074397d66640101d.tar.gz meson-a45446b6e583811545dbe001074397d66640101d.tar.bz2 |
minstall: stop running ldconfig for the user
This was a nice idea in theory, but in practice it had various problems:
- On the only platform where ldconfig is expected to be run, it is
really slow, even when the user uses a non-default prefix and ldconfig
doesn't even have permission to run, nor can do anything useful due to
ld.so.conf state
- On FreeBSD, it bricked the system: #9592
- On cross builds, it should not be used and broke installing, because
ldconfig may not be runnable without binfmt + qemu: #9707
- it prints weird and confusing errors in the common "custom prefix"
layout: #9241
Some of these problems can be or have been fixed. But it's a constant
source of footguns and complaints and for something that was originally
supposed to be just "it's the right thing to do anyway, so just do it
automatically" it is entirely too risky.
Ultimately I do not think there is justification for keeping this
feature in since it doesn't actually make everyone happy. Better for
users to decide whether they need this themselves.
This is anyways the case for cmake and autotools and generally any other
build system, so it should not be too intimidating...
Fixes #9721
Diffstat (limited to 'docs')
-rw-r--r-- | docs/markdown/snippets/no_ldconfig.md | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/docs/markdown/snippets/no_ldconfig.md b/docs/markdown/snippets/no_ldconfig.md new file mode 100644 index 0000000..73ac81a --- /dev/null +++ b/docs/markdown/snippets/no_ldconfig.md @@ -0,0 +1,5 @@ +## ldconfig is no longer run on install + +Due to various issues of fragility and concern that it doesn't predictably do +the right thing, meson no longer runs ldconfig during `meson install`, and +users who need it run should run it themselves, instead. |