]> code.ossystems Code Review - openembedded-core.git/commitdiff
nativesdk-git: point to system gitconfig
authorJeremy Puhlman <jpuhlman@mvista.com>
Fri, 27 Mar 2020 22:23:16 +0000 (15:23 -0700)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Sun, 29 Mar 2020 19:03:30 +0000 (20:03 +0100)
On a system with selinux turned on, trying to access a directory
that is in a tree that doesn't exist returns the error permission
denined rather then no such file or directory, which causes git
to die.

git clone git://git.yoctoproject.org/poky
Cloning into 'poky'...
fatal: unable to access '/opt/poky/3.0+snapshot/sysroots/x86_64-pokysdk-linux/etc/gitconfig': Permission denied

Switch to using the system gitconfig of the host.

Signed-off-by: Jeremy Puhlman <jpuhlman@mvista.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/recipes-devtools/git/git.inc

index 95ab397f6af478806e65ff75a3004e8ec482e9a0..4131c98977c606dce66eae4bf1c50e8d6a3ac26b 100644 (file)
@@ -22,6 +22,7 @@ PACKAGECONFIG[svn] = ""
 EXTRA_OECONF = "--with-perl=${STAGING_BINDIR_NATIVE}/perl-native/perl \
                --without-tcltk \
 "
+EXTRA_OECONF_append_class-nativesdk = " --with-gitconfig=/etc/gitconfig "
 
 # Needs brokensep as this doesn't use automake
 inherit autotools-brokensep perlnative bash-completion