Yocto抛出一个git致命错误;请告诉我你是谁;成功构建Bitbake后

Yocto抛出一个git致命错误;请告诉我你是谁;成功构建Bitbake后,git,yocto,bitbake,Git,Yocto,Bitbake,每次在Yocto中使用Bitbake成功构建食谱/图像后,GIT都会抛出一个致命错误“请告诉我你是谁”(我已附上下面的详细输出) 据我所知,这部分内容只与git无法提交有关,因为它尚未配置,与do_fetch无关。我说得对吗 但是我不希望在我的Yocto项目中使用git,因此不打算配置它(既不是全局的也不是本地的),因为我已经在使用SVN了 我不明白的是为什么Bitbake(Yocto)会抛出这个错误?我怎样才能摆脱它 注意:所有信息,如poky版本、主机系统、体系结构都包含在构建配置中 WAR

每次在Yocto中使用Bitbake成功构建食谱/图像后,GIT都会抛出一个致命错误“请告诉我你是谁”(我已附上下面的详细输出)

据我所知,这部分内容只与git无法提交有关,因为它尚未配置,与do_fetch无关。我说得对吗

但是我不希望在我的Yocto项目中使用git,因此不打算配置它(既不是全局的也不是本地的),因为我已经在使用SVN了

我不明白的是为什么Bitbake(Yocto)会抛出这个错误?我怎样才能摆脱它

注意:所有信息,如poky版本、主机系统、体系结构都包含在构建配置中

WARNING: Buildfile specified, dependencies will not be handled. If this is not what you want, do not use -b / --buildfile.

Build Configuration:
BB_VERSION        = "1.26.0"
BUILD_SYS         = "x86_64-linux"
NATIVELSBSTRING   = "CentOS-Linux-7.1.1503"
TARGET_SYS        = "arm-poky-linux-gnueabi"
MACHINE           = "arm-cortex-a8"
DISTRO            = "poky"
DISTRO_VERSION    = "1.8"
TUNE_FEATURES     = "arm armv7a vfp neon callconvention-hard cortexa8"
TARGET_FPU        = "vfp-neon"
meta-python       
meta-networking   
meta-python       
meta-networking   
meta-python       
meta-networking   
..*shortened*..
meta-python       
meta-networking   
meta-python       
meta-networking   = "master:54def94d4e7aa8900fec58e6aaef8f8c3b0b563e"
meta-xxxxxbsp-ti     
meta              
meta-yocto        
meta-yocto-bsp    
meta-xxxxx-common   = "<unknown>:<unknown>"
meta-oe           = "master:54def94d4e7aa8900fec58e6aaef8f8c3b0b563e"

NOTE: Preparing RunQueue
NOTE: Executing SetScene Tasks
NOTE: Running setscene task 2 of 6 (/opt/xxxxx/yocto/trunk/yocto/meta- 
xxxxx/meta-xxxxx-common/recipes-xxxxxx/chrony/chrony_3.1.bb, 
do_populate_sysroot_setscene)
NOTE: recipe chrony-3.1-r0: task do_populate_sysroot_setscene: Started
NOTE: recipe chrony-3.1-r0: task do_populate_sysroot_setscene: Succeeded
NOTE: Running setscene task 3 of 6 (/opt/xxxxx/yocto/trunk/yocto/meta- 
xxxxx/meta-xxxxx-common/recipes-xxxx/chrony/chrony_3.1.bb, 
do_package_qa_setscene)
NOTE: recipe chrony-3.1-r0: task do_package_qa_setscene: Started
NOTE: recipe chrony-3.1-r0: task do_package_qa_setscene: Succeeded
NOTE: Running setscene task 4 of 6 (/opt/xxxxx/yocto/trunk/yocto/meta- 
xxxxx/meta-xxxxx-common/recipes-xxxxx/chrony/chrony_3.1.bb, 
do_package_write_rpm_setscene)
NOTE: recipe chrony-3.1-r0: task do_package_write_rpm_setscene: Started
NOTE: recipe chrony-3.1-r0: task do_package_write_rpm_setscene: Succeeded
NOTE: Running setscene task 5 of 6 (/opt/xxxxx/yocto/trunk/yocto/meta- 
xxxxx/meta-xxxxx-common/recipes-xxxxx/chrony/chrony_3.1.bb, 
do_packagedata_setscene)
NOTE: recipe chrony-3.1-r0: task do_packagedata_setscene: Started
NOTE: recipe chrony-3.1-r0: task do_packagedata_setscene: Succeeded
NOTE: Executing RunQueue Tasks
NOTE: Running noexec task 13 of 13 (ID: 10, 
/opt/xxxxx/yocto/trunk/yocto/meta-xxxxx/meta-xxxxx-common/recipes- 
xxxxx/chrony/chrony_3.1.bb, do_build)
NOTE: Tasks Summary: Attempted 13 tasks of which 12 didn't need to be rerun 
and all succeeded.

Summary: There was 1 WARNING message shown.
NOTE: Writing buildhistory

*** Please tell me who you are.

Run

  git config --global user.email "you@example.com"
  git config --global user.name "Your Name"

to set your account's default identity.
Omit --global to set the identity only in this repository.

fatal: empty ident name (for <xxxxx@localhost.localdomain>) not allowed

*** Please tell me who you are.

Run

  git config --global user.email "you@example.com"
  git config --global user.name "Your Name"

to set your account's default identity.
Omit --global to set the identity only in this repository.

fatal: empty ident name (for <xxxxx@localhost.localdomain>) not allowed
警告:已指定Buildfile,将不会处理依赖项。如果这不是您想要的,请不要使用-b/--buildfile。
生成配置:
BB_VERSION=“1.26.0”
BUILD_SYS=“x86_64-linux”
NATIVELSBSTRING=“CentOS-Linux-7.1.1503”
TARGET_SYS=“arm poky linux gnueabi”
MACHINE=“arm-cortex-a8”
DISTRO=“poky”
发行版版本=“1.8”
TUNE_FEATURES=“arm armv7a vfp neon callconvention hard cortexa8”
TARGET_FPU=“vfp neon”
元python
元网络
元python
元网络
元python
元网络
..*缩短*。。
元python
元网络
元python
meta networking=“主机:54def94d4e7aa8900fec58e6aaef8f8c3b0b563e”
meta-XXXXX BSP ti
元
元约克托
meta yocto bsp
meta-xxxxx-common=“:”
meta oe=“主机:54def94d4e7aa8900fec58e6aaef8f8c3b0b563e”
注意:准备运行队列
注意:执行SetScene任务
注意:正在运行setscene任务2/6(/opt/xxxxx/yocto/trunk/yocto/meta-
xxxxx/meta-xxxxx-common/recipes-xxxxxx/chrony/chrony_3.1.bb,
do_填充_sysroot_setscene)
注:配方时间-3.1-r0:任务完成\u填充\u系统根\u设置场景:已启动
注:配方时间-3.1-r0:任务完成\u填充\u系统根\u设置场景:成功
注意:正在运行setscene任务3/6(/opt/xxxxx/yocto/trunk/yocto/meta-
xxxxx/meta-xxxxx-common/recipes xxxx/chrony/chrony_3.1.bb,
do_包装_qa_设置(CENE)
注:配方时间-3.1-r0:任务完成程序包质量保证设置场景:已启动
注:配方时间-3.1-r0:任务完成包质量保证设置场景:成功
注意:正在运行setscene任务4/6(/opt/xxxxx/yocto/trunk/yocto/meta-
xxxxx/meta-xxxxx-common/recipes-xxxxx/chrony/chrony_3.1.bb,
do_package_write_rpm_setscene)
注:配方时间-3.1-r0:任务执行程序包写入rpm设置场景:已启动
注:配方时间-3.1-r0:任务完成\包\写入\ rpm\设置场景:成功
注意:正在运行setscene任务5/6(/opt/xxxxx/yocto/trunk/yocto/meta-
xxxxx/meta-xxxxx-common/recipes-xxxxx/chrony/chrony_3.1.bb,
do_packagedata_setscene)
注:配方时间-3.1-r0:任务do_packagedata_setscene:已启动
注:配方时间-3.1-r0:任务完成数据包设置场景:成功
注意:执行运行队列任务
注意:正在运行noexec任务13/13(ID:10,
/opt/xxxxx/yocto/trunk/yocto/meta-xxxxx/meta-xxxxx-common/recipes-
xxxxx/chrony/chrony_3.1.bb,do_build)
注意:任务摘要:尝试了13项任务,其中12项不需要重新运行
一切都成功了。
摘要:显示了1条警告消息。
注:编写构建历史
***请告诉我你是谁。
跑
git config--global user.email“you@example.com"
git config--global user.name“Your name”
设置帐户的默认标识。
Omit--global仅在此存储库中设置标识。
致命:不允许为空的标识名(for)
***请告诉我你是谁。
跑
git config--global user.email“you@example.com"
git config--global user.name“Your name”
设置帐户的默认标识。
Omit--global仅在此存储库中设置标识。
致命:不允许为空的标识名(for)
关于如何消除此错误的任何输入,或者可以提供更多信息?

此“buildhistory”功能使用git提交来存储历史记录。git在提交时需要一个名称和电子邮件(因为提交通常在以后发布)

您可以按照警告的建议来解决问题。运行终端:

git config --global user.email "you@example.com"
git config --global user.name "Your Name"
或者在配置中禁用buildhistory功能

但我不想在我的Yocto项目中使用git


这并不是一个真正的选项:所有常见的Yocto层都存储在git中,并从各种git回购中获取内容。Git实际上是一种需求,如果您已经做到这一点,它已经在您的系统上运行了——只是抓取不需要电子邮件地址和名称。

感谢您的澄清。对我承认所有yocto层都存储在git回购中。我确实使用它们。对不起,我是说。我不希望将git用于提交部分,而不是用于获取。所以,我唯一的选择就是禁用buildhistory。非常感谢@jku。