Skip to contentSkip to conversation

nativesdk-git: point to system gitconfig

PATCH New Jeremy Puhlman 1 participant 1 message Mar 27, 2020

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 nativesdk-git: point to system gitconfig

From: Jeremy Puhlman <[email protected]>

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.

---
 meta/recipes-devtools/git/git.inc | 1 +
 1 file changed, 1 insertion(+)
meta/recipes-devtools/git/git.inc +1 -0
index 95ab397f6a..4131c98977 100644
@@ -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
Signature · 1 line
2.20.1