From 7cb72699f651a9e7ac8996070b974e1dda0a9733 Mon Sep 17 00:00:00 2001 From: "Jan Alexander Steffens (heftig)" Date: Fri, 17 May 2024 22:50:26 +0200 Subject: fix: consider all git repos inside the chroot safe Git 2.45.1 expanded its security checks to deny cloning even local repos that are owned by another user. Previously, this just affected network filesystems. On our buildserver, this prevents makepkg from cloning repos from our shared srcdest into the srcdir, if these repos were created by another packager. To disable this check, set `safe.directory` to `*`. This looks like a glob, but is really just a special value. The only other option would be to add each Git repository in srcdest to the configuration. Component: makechrootpkg --- src/makechrootpkg.in | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/makechrootpkg.in b/src/makechrootpkg.in index 5378eb1..459f7ce 100644 --- a/src/makechrootpkg.in +++ b/src/makechrootpkg.in @@ -188,6 +188,11 @@ builduser ALL = NOPASSWD: /usr/bin/pacman EOF chmod 440 "$copydir/etc/sudoers.d/builduser-pacman" + cat > "$copydir/etc/gitconfig" <