【问题标题】:Yocto throws a git Fatal Error "Please tell me who you are" after after successful Bitbake build在成功构建 Bitbake 后,Yocto 抛出一个 git 致命错误“请告诉我你是谁”
【发布时间】:2019-01-03 04:35:18
【问题描述】:

每次在 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

关于如何消除此错误的任何意见或可以进一步阐明它?

【问题讨论】:

    标签: git yocto bitbake


    【解决方案1】:

    “构建历史”功能使用 git 提交来存储历史。 git 在提交时需要名称和电子邮件(因为通常提交是稍后发布的)。

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

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

    或者在您的配置中禁用构建历史功能。

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

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

    【讨论】:

    • 感谢您的澄清。是的。我承认所有 yocto 层都存储在 git repos 中。我确实使用它们。对不起,我的意思是。我不希望将 git 用于提交部分,而不是用于获取。所以,我唯一的选择是禁用 buildhistory。非常感谢@jku。
    猜你喜欢
    • 2012-07-24
    • 2016-04-03
    • 2015-12-17
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2015-11-06
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多