On Wed, Jun 08, 2022 at 07:59:37AM +0200, Erik Skultety wrote:
Since a fix for CVE-2022-24765 was released every git command is now
checked against the context repo in which it's supposed to run
resulting in a fatal error if the repo is owned by other user than the
one running the git command.
This means that in order to be able to do 'sudo make install', we have
to set the 'safe.directory' for the root user. This is because QEMU
runs 'git submodule update' automatically on 'make install'.
Signed-off-by: Erik Skultety <eskultet(a)redhat.com>
---
FWIW we could alternatively update the submodules manually, but we'd have list
them explicitly, IOW:
$ git clone qemu ...
$ cd qemu.git
$ scripts/git-submodule.sh ui/keycodemapdb dtc slirp
$ mkdir build && cd build
$ ../configure ... --with-git-submodules=ignore
$ make -jN && sudo make install
Erik