]> git.ipfire.org Git - thirdparty/mkosi.git/commit
Run binaries from ExtraSearchPaths= within tools tree
authorDaan De Meyer <daan.j.demeyer@gmail.com>
Thu, 19 Dec 2024 11:35:47 +0000 (12:35 +0100)
committerJörg Behrmann <behrmann@physik.fu-berlin.de>
Fri, 20 Dec 2024 09:07:31 +0000 (10:07 +0100)
commiteba43f034c5c19a478249ba50fc1b97faffda75c
tree0de811a80d0921e8144834b67e1ce4e4af924921
parent5d8458992d408b1682db42ee523361b8e7a76fd1
Run binaries from ExtraSearchPaths= within tools tree

Until now, there was always the implicit assumption that any paths
configured with ExtraSearchPaths= contained binaries built against
the host's /usr. With that assumption, it made sense to execute binaries
found in these paths outside of the tools tree as otherwise you might
end up with missing or out of date libraries if these are not available
within the tools tree.

However, with the introduction of "mkosi sandbox", what I want to do
in systemd is to have contributors build systemd within the sandbox and
then use those binaries in mkosi to build the image. This means that the
build directory configured with ExtrasSearchPaths= suddenly contains
binaries built against the tools tree's /usr (if one is configured) instead
of the host's /usr.

Given this new use case, let's get rid of the logic to not use the tools
tree for binaries in ExtraSearchPaths=, instead, users of ExtraSearchPaths=
using a tools tree will have to make sure to use a tools tree that mostly
matches their host's /usr.
23 files changed:
mkosi/__init__.py
mkosi/archive.py
mkosi/bootloader.py
mkosi/burn.py
mkosi/config.py
mkosi/context.py
mkosi/curl.py
mkosi/distributions/debian.py
mkosi/distributions/opensuse.py
mkosi/installer/__init__.py
mkosi/installer/apt.py
mkosi/installer/dnf.py
mkosi/installer/pacman.py
mkosi/installer/rpm.py
mkosi/installer/zypper.py
mkosi/manifest.py
mkosi/partition.py
mkosi/qemu.py
mkosi/resources/man/mkosi.1.md
mkosi/run.py
mkosi/sysupdate.py
mkosi/tree.py
mkosi/vmspawn.py