3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs
Andreas Rammhold 494ed4d6ee
systemd: patch runtime dlopen calls
This ensures that all the features that are implemented via dlopen(3)
are available (or explicitly deactivated) by pointing dlopen to the
absolute store path instead of relying on the linkers runtime lookup
code.

All of the dlopen calls have to be handled. When new ones are introduced
by upstream (or one of our patches) those must be explicitly declared,
otherwise the build will fail.

As of systemd version 247 we've seen a few errors like `libpcre2.… not
found` when using e.g. --grep with journalctl. Those errors should
become less unexpected now.

There are generally two classes of dlopen calls. Those that we want to
support and those that should be deactivated / unsupported. This change
enforces that we handle all dlopen calls explicitly. Meaning: There is
not a single dlopen call in the code source tree that we did not
explicitly handle.

In order to do this I introduced a list of attributes that maps from
shared object name to the package that contains them. The package can be
null meaning the reference should be nuked and the shared object will
never be loadable during runtime (because it points at an invalid store
path location).
2021-01-03 11:50:01 +01:00
..
applications treewide: remove trailing whitespaces 2021-01-01 10:41:04 -08:00
build-support Merge pull request #106954 from r-burns/randomseed 2021-01-02 11:01:34 +01:00
common-updater
data Merge staging-next into staging 2021-01-01 12:25:55 +00:00
desktops Merge staging-next into staging 2020-12-31 13:29:55 +01:00
development Merge pull request #107808 from flokli/dconf-fix-cross 2021-01-01 21:09:35 +01:00
games Merge staging-next into staging 2021-01-01 18:39:12 +00:00
misc treewide: cmake buildInputs to nativeBuildInputs, minor cleanups 2021-01-01 11:52:33 +07:00
os-specific systemd: patch runtime dlopen calls 2021-01-03 11:50:01 +01:00
pkgs-lib
servers Merge staging-next into staging 2021-01-01 18:39:12 +00:00
shells Merge staging-next into staging 2020-12-31 18:42:44 +00:00
stdenv darwin/stdenv: tapi stub based bootstrap 2020-12-22 11:43:54 +09:00
test bintools-wrapper: skip dynamic linker for static binaries 2020-12-27 16:42:11 +01:00
tools Merge staging-next into staging 2021-01-01 18:39:12 +00:00
top-level Merge staging-next into staging 2021-01-01 18:39:12 +00:00