简体   繁体   English

在成功建立Bitbake之后,Yocto抛出一个git Fatal Error“请告诉我你是谁”

[英]Yocto throws a git Fatal Error “Please tell me who you are” after after successful Bitbake build

After every successful recipe / image build using Bitbake in Yocto, GIT throws out a Fatal Error "Please tell me who you are" (I have attached the detailed output below) 在使用Yocto中的Bitbake成功完成配方/图像构建之后,GIT抛出致命错误“请告诉我你是谁”(我已附上下面的详细输出)

As far as my understanding, this part has only to do with git not being able to commit since it has not been configured and has nothing to do with do_fetch. 据我所知,这部分仅与git无法提交有关,因为它尚未配置且与do_fetch无关。 Am I right? 我对吗?

But i don't wish to use git for my Yocto Projects, therefore don't intend to configure it (neither global nor local), as I am already using SVN. 但我不希望为我的Yocto项目使用git,因此不打算配置它(既不是全局也不是本地),因为我已经在使用SVN。

The part that I don't understand is why does Bitbake (Yocto) throw out this error? 我不明白的部分是为什么Bitbake(Yocto)抛出这个错误? How do I get rid of it? 我怎么摆脱它?

Note: all info such as poky version, host system, architecture is included in the build config. 注意:所有信息,如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

Any input on how to get rid of this error or could shed some more light on it? 关于如何摆脱这个错误的任何输入或者可以更多地阐明它?

The "buildhistory" feature uses git commits to store the history. “buildhistory”功能使用git提交来存储历史记录。 git requires a name and email when commiting (because usually the commits are later published). git在提交时需要一个名称和电子邮件(因为通常后来发布了提交)。

You can fix the problem by doing what the warning suggests. 您可以通过执行警告建议来解决问题。 Run in terminal: 在终端运行:

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

Alternatively disable the buildhistory feature in your configuration. 或者,在配置中禁用buildhistory功能。

But i don't wish to use git for my Yocto Projects 但是我不想在我的Yocto项目中使用git

This isn't really an option: All of the common Yocto layers are stored in git and fetch things from various git repos. 这不是一个真正的选择:所有常见的Yocto层都存储在git中,并从各种git repos中获取内容。 Git is practically a requirement and is already working on your system if you got this far -- it's just that fetching does not require an email address and a name. Git几乎是一个要求,如果你做到这一点,它已经在你的系统上工作了 - 只是提取不需要电子邮件地址和名称。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM