archlinuxcn / lilac

Lilac is the build bot for archlinuxcn
GNU General Public License v3.0
113 stars 40 forks source link

报错邮件中命令输出为空 #129

Closed SilverRainZ closed 4 years ago

SilverRainZ commented 4 years ago

在 rebuild fontweak 的时候收到了如下报错邮件:

[lilac] 在编译软件包 fontweak 时发生错误

命令执行失败!

命令 ['makepkg', '--printsrcinfo'] 返回了错误号 12。命令的输出如下:

调用栈如下:

Traceback (most recent call last):
  File "/home/lilydjwg/soft/lilac/lilac", line 108, in build_package
    bindmounts = BIND_MOUNTS,
  File "/home/lilydjwg/soft/lilac/lilac2/building.py", line 70, in lilac_build
    pkgbuild.check_srcinfo()
  File "/home/lilydjwg/soft/lilac/lilac2/pkgbuild.py", line 59, in check_srcinfo
    srcinfo = get_srcinfo()
  File "/home/lilydjwg/soft/lilac/lilac2/pkgbuild.py", line 97, in get_srcinfo
    universal_newlines = True,
  File "/usr/lib/python3.7/subprocess.py", line 395, in check_output
    **kwargs).stdout
  File "/usr/lib/python3.7/subprocess.py", line 487, in run
    output=stdout, stderr=stderr)
subprocess.CalledProcessError: Command '['makepkg', '--printsrcinfo']' returned non-zero exit status 12.

本地使用 devtools 的报错则非常清晰:

$ extra-x86_64-build 
:: Synchronizing package databases...
 core                                                                                                 133.6 KiB  10.0M/s 00:00 [#############################################################################] 100%
 extra                                                                                               1641.6 KiB  11.2M/s 00:00 [#############################################################################] 100%
 community                                                                                              4.8 MiB   268K/s 00:19 [#############################################################################] 100%
:: Starting full system upgrade...
resolving dependencies...
looking for conflicting packages...

Packages (11) binutils-2.33.1-1  ca-certificates-mozilla-3.47-1  cryptsetup-2.2.2-1  gcc-9.2.0-3  gcc-libs-9.2.0-3  glib2-2.62.2-1  glibc-2.30-2  iana-etc-20191030-1  kmod-26-3  pacman-5.2.1-1  sudo-1.8.29-1

Total Download Size:    78.29 MiB
Total Installed Size:  393.74 MiB
Net Upgrade Size:       31.04 MiB

:: Proceed with installation? [Y/n] 
:: Retrieving packages...
 iana-etc-20191030-1-any                                                                              368.5 KiB  3.60M/s 00:00 [#############################################################################] 100%
 glibc-2.30-2-x86_64                                                                                    9.1 MiB  10.3M/s 00:01 [#############################################################################] 100%
 binutils-2.33.1-1-x86_64                                                                               4.6 MiB  11.2M/s 00:00 [#############################################################################] 100%
 gcc-libs-9.2.0-3-x86_64                                                                               28.3 MiB  11.2M/s 00:03 [#############################################################################] 100%
 cryptsetup-2.2.2-1-x86_64                                                                            470.1 KiB  11.5M/s 00:00 [#############################################################################] 100%
 kmod-26-3-x86_64                                                                                     113.9 KiB  11.1M/s 00:00 [#############################################################################] 100%
 gcc-9.2.0-3-x86_64                                                                                    33.9 MiB  11.2M/s 00:03 [#############################################################################] 100%
 pacman-5.2.1-1-x86_64                                                                                742.7 KiB  11.5M/s 00:00 [#############################################################################] 100%
 sudo-1.8.29-1-x86_64                                                                                 785.5 KiB  11.0M/s 00:00 [#############################################################################] 100%
(11/11) checking keys in keyring                                                                                               [#############################################################################] 100%
(11/11) checking package integrity                                                                                             [#############################################################################] 100%
(11/11) loading package files                                                                                                  [#############################################################################] 100%
(11/11) checking for file conflicts                                                                                            [#############################################################################] 100%
:: Processing package changes...
( 1/11) upgrading iana-etc                                                                                                     [#############################################################################] 100%
( 2/11) upgrading glibc                                                                                                        [#############################################################################] 100%
Generating locales...
  en_US.UTF-8... done
  de_DE.UTF-8... done
Generation complete.
( 3/11) upgrading binutils                                                                                                     [#############################################################################] 100%
( 4/11) upgrading gcc-libs                                                                                                     [#############################################################################] 100%
( 5/11) upgrading cryptsetup                                                                                                   [#############################################################################] 100%
( 6/11) upgrading kmod                                                                                                         [#############################################################################] 100%
( 7/11) upgrading ca-certificates-mozilla                                                                                      [#############################################################################] 100%
( 8/11) upgrading gcc                                                                                                          [#############################################################################] 100%
( 9/11) upgrading glib2                                                                                                        [#############################################################################] 100%
(10/11) upgrading pacman                                                                                                       [#############################################################################] 100%
warning: /etc/makepkg.conf installed as /etc/makepkg.conf.pacnew
warning: /etc/pacman.conf installed as /etc/pacman.conf.pacnew
(11/11) upgrading sudo                                                                                                         [#############################################################################] 100%
:: Running post-transaction hooks...
(1/5) Reloading system manager configuration...
  Skipped: Current root is not booted.
(2/5) Creating temporary files...
(3/5) Arming ConditionNeedsUpdate...
(4/5) Updating the info directory file...
(5/5) Rebuilding certificate stores...
==> Building in chroot for [extra] (x86_64)...
==> Synchronizing chroot copy [/var/lib/archbuild/extra-x86_64/root] -> [la]...done
==> WARNING: PACKAGER should have the format 'Example Name <email@address.invalid>'
==> ERROR: install should not be an array
==> ERROR: Could not download sources.