git: set --with-gitconfig=/etc/gitconfig for -native builds
A message that is not in the archive (sent off-list or not yet received): [email protected]
Polite ping.
Quoted 51 lines · Rasmus Villemoes via lists.openembedded.org
From: Rasmus Villemoes <[email protected]>
Commit
6c2ae2346db0(kern-tools: depend on git-replacement-native) broke our kernel builds. For saving space and time, we have aDL_DIRshared between multiple users/buildbots, not all of which run with the same uid (and with appropriate sticky bits set so that files downloaded by one user become owned by a common group and are readable by others). This works fine also for git sources because the docker images we use all have a/etc/gitconfigwith[safe]
directory = *But with the mentioned commit, the host's git is no longer used for
do_unpack(nor fordo_fetchif re-building and sysroot has already been populated by a previous build), causing spurious "fatal: detected dubious ownership..." failures.Currently, the path where the git-native binary searches for system gitconfig is the sysroot from it was built, which obviously doesn't contain a
/etc/gitconfig. As for the nativesdk variant, respect the host's/etc/gitconfigif present.Signed-off-by Rasmus Villemoes <[email protected]>--- meta/recipes-devtools/git/git_2.44.0.bb | 1 + 1 file changed, 1 insertion(+)meta/recipes-devtools/git/git_2.44.0.bb +1
-1@@ -40,6 +40,7 @@ EXTRA_OECONF = "--with-perl=${STAGING_BINDIR_NATIVE}/perl-native/perl \ --without-iconv \ " EXTRA_OECONF:append:class-nativesdk = " --with-gitconfig=/etc/gitconfig " +EXTRA_OECONF:append:class-native = " --with-gitconfig=/etc/gitconfig " # Needs brokensep as this doesn't use automake inherit autotools-brokensep perlnative bash-completion manpages -=-=-=-=-=-=-=-=-=-=-=-Links: You receive all messages sent to this group.
View/Reply Online (#198611): https://lists.openembedded.org/g/openembedded-core/message/198611
Mute This Topic: https://lists.openembedded.org/mt/105686820/4164276
Group Owner: [email protected]
Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub [[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-