You are not logged in.

#1 2020-12-14 10:55:46

jaaan
Member
Registered: 2016-04-22
Posts: 7

"unrecognized archive format" when using extra-x86_64-build

I'm trying to use the extra-x86_64-build command to build aurman in a chroot environment as described in https://wiki.archlinux.org/index.php/De … ean_chroot

The output is

...github.com/aur.archlinux.org/aurman: extra-x86_64-build
:: Synchronizing package databases...
 core is up to date
 extra is up to date
 community is up to date
:: Starting full system upgrade...
:: Replace ca-certificates-cacert with core/ca-certificates? [Y/n] 
:: Replace libsystemd with core/systemd-libs? [Y/n] 
:: Replace libutil-linux with core/util-linux-libs? [Y/n] 
resolving dependencies...
looking for conflicting packages...

Packages (132) acl-2.2.53-3  archlinux-keyring-20201210-1  argon2-20190702-3  attr-2.4.48-3  audit-2.8.5-9  autoconf-2.69-7  automake-1.16.2-3  bash-5.1.0-2  binutils-2.35.1-1  bison-3.7.2-1  bzip2-1.0.8-4  ca-certificates-20181109-4
               ca-certificates-cacert-20140824-4 [removal]  ca-certificates-mozilla-3.59-1  ca-certificates-utils-20181109-4  coreutils-8.32-1  cracklib-2.9.7-2  cryptsetup-2.3.4-1  curl-7.74.0-1  db-5.3.28-5  dbus-1.12.20-1
               device-mapper-2.02.187-3  diffutils-3.7-3  e2fsprogs-1.45.6-3  elfutils-0.181-1  expat-2.2.10-2  fakeroot-1.25.3-1  file-5.39-1  filesystem-2020.09.03-1  findutils-4.7.0-2  flex-2.6.4-3  gawk-5.1.0-1  gc-8.0.4-4
               gcc-10.2.0-4  gcc-libs-10.2.0-4  gdbm-1.18.1-3  gettext-0.21-1  glib2-2.66.3-1  glibc-2.32-5  gmp-6.2.0-1  gnupg-2.2.24-1  gnutls-3.7.0-1  gpgme-1.15.0-2  grep-3.6-1  groff-1.22.4-3  guile-2.2.6-2  gzip-1.10-3
               hwids-20200813.1-1  iana-etc-20201012-1  icu-67.1-1  iptables-1:1.8.6-1  json-c-0.15-1  kbd-2.3.0-2  keyutils-1.6.3-1  kmod-27-2  krb5-1.18.2-1  less-563-1  libarchive-3.5.0-1  libassuan-2.5.4-1  libatomic_ops-7.6.10-2
               libcap-2.45-2  libcap-ng-0.8.2-1  libcroco-0.6.13-2  libelf-0.181-1  libffi-3.3-4  libgcrypt-1.8.7-1  libgpg-error-1.39-1  libidn-1.36-1  libidn2-2.3.0-1  libksba-1.4.0-2  libldap-2.4.56-1  libmicrohttpd-0.9.71-1
               libmnl-1.0.4-3  libmpc-1.1.0-2  libnetfilter_conntrack-1.0.8-1  libnfnetlink-1.0.1-4  libnftnl-1.1.8-1  libnghttp2-1.41.0-1  libnl-3.5.0-2  libp11-kit-0.23.21-1  libpcap-1.9.1-4  libpsl-0.21.1-1  libsasl-2.1.27-3
               libseccomp-2.5.1-2  libsecret-0.20.4-1  libssh2-1.9.0-2  libsystemd-239.0-2 [removal]  libtasn1-4.16.0-1  libtirpc-1.3.1-1  libtool-2.4.6+42+gb88cebd5-14  libunistring-0.9.10-3  libusb-1.0.23-3
               libutil-linux-2.32.1-1 [removal]  libxcrypt-4.4.17-1  libxml2-2.9.10-7  linux-api-headers-5.8-1  lz4-1:1.9.3-1  m4-1.4.18-3  make-4.3-3  mpfr-4.1.0-1  ncurses-6.2-1  nettle-3.6-1  npth-1.6-2  openssl-1.1.1.i-2
               p11-kit-0.23.21-1  pacman-5.2.2-1  pacman-mirrorlist-20201205-1  pam-1.5.0-2  pambase-20200721.1-2  patch-2.7.6-8  pcre-8.44-1  pcre2-10.35-1  perl-5.32.0-3  pinentry-1.1.0-5  pkgconf-1.7.3-1  popt-1.18-1  readline-8.1.0-2
               sed-4.8-1  shadow-4.8.1-4  sqlite-3.34.0-1  sudo-1.9.4-2  systemd-247.1-3  systemd-libs-247.1-3  tar-1.32-3  texinfo-6.7-3  tzdata-2020d-1  util-linux-2.36.1-4  util-linux-libs-2.36.1-4  which-2.21-5  xz-5.2.5-1
               zlib-1:1.2.11-4  zstd-1.4.5-1

Total Installed Size:  801.34 MiB
Net Upgrade Size:      157.28 MiB

:: Proceed with installation? [Y/n] 
(129/129) checking keys in keyring                                                                                                              [########################################################################################] 100%
(129/129) checking package integrity                                                                                                            [########################################################################################] 100%
(129/129) loading package files                                                                                                                 [########################################################################################] 100%
error: could not open file /var/cache/pacman/pkg/linux-api-headers-5.8-1-any.pkg.tar.zst: Unrecognized archive format
error: could not open file /var/cache/pacman/pkg/tzdata-2020d-1-x86_64.pkg.tar.zst: Unrecognized archive format
error: could not open file /var/cache/pacman/pkg/iana-etc-20201012-1-any.pkg.tar.zst: Unrecognized archive format
error: could not open file /var/cache/pacman/pkg/filesystem-2020.09.03-1-x86_64.pkg.tar.zst: Unrecognized archive format
error: could not open file /var/cache/pacman/pkg/glibc-2.32-5-x86_64.pkg.tar.zst: Unrecognized archive format
error: could not open file /var/cache/pacman/pkg/attr-2.4.48-3-x86_64.pkg.tar.zst: Unrecognized archive format
error: could not open file /var/cache/pacman/pkg/acl-2.2.53-3-x86_64.pkg.tar.zst: Unrecognized archive format
error: could not open file /var/cache/pacman/pkg/archlinux-keyring-20201210-1-any.pkg.tar.zst: Unrecognized archive format
[... and so on ...]

So it looks like the `pacman` installed in the chroot cannot handle `.zst` files?

Offline

#2 2020-12-14 11:09:54

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 12,250

Re: "unrecognized archive format" when using extra-x86_64-build

Reads like your base chroot is outdated, use the -c flag to build a new one.

Offline

#3 2020-12-14 14:16:35

jaaan
Member
Registered: 2016-04-22
Posts: 7

Re: "unrecognized archive format" when using extra-x86_64-build

Thanks, that did the trick! Although now I get

[...]
==> Validating source files with md5sums...
    aurman_sources ... Skipped
==> Verifying source file signatures with gpg...
    aurman_sources git repo ... FAILED (unknown public key 465022E743D71E39)
==> ERROR: One or more PGP signatures could not be verified!
==> ERROR: Could not download sources.

hmm

Offline

#4 2020-12-14 14:27:15

CarbonChauvinist
Member
Registered: 2012-06-16
Posts: 315

Re: "unrecognized archive format" when using extra-x86_64-build


"the wind-blown way, wanna win? don't play"

Offline

#5 2020-12-14 15:43:11

jaaan
Member
Registered: 2016-04-22
Posts: 7

Re: "unrecognized archive format" when using extra-x86_64-build

Thanks!

Quoting from the link:

The signature checking implemented in makepkg does not use pacman's keyring, instead relying on the user's keyring.

That sounds like signature checking just won't work when building via extra-x86_64-build (as the user's keyring won't be available). How do other people do this? Do you build using makepkg without the isolation?

Offline

#6 2020-12-14 16:46:33

eschwartz
Trusted User/Bug Wrangler
Registered: 2014-08-08
Posts: 3,936

Re: "unrecognized archive format" when using extra-x86_64-build

jaaan wrote:

Thanks!

Quoting from the link:

The signature checking implemented in makepkg does not use pacman's keyring, instead relying on the user's keyring.

That sounds like signature checking just won't work when building via extra-x86_64-build (as the user's keyring won't be available). How do other people do this? Do you build using makepkg without the isolation?

... Did you try it? Maybe if you tried it, you would realize e.g. that this isn't a problem? Do you suppose extra-x86_64-build is completely useless and broken for all PKGBUILDs containing signatures, and if so, how do you think the official repos are built?

(extra-x86_64-build verifies sources via makepkg --verifysource as the original user. Then inside the chroot, it skips verifying again, what it already verified.)

Last edited by eschwartz (2020-12-14 16:47:02)


Managing AUR repos The Right Way -- aurpublish (now a standalone tool)

Offline

#7 2020-12-14 16:50:26

loqs
Member
Registered: 2014-03-06
Posts: 13,015

Re: "unrecognized archive format" when using extra-x86_64-build

extra-x86_64-build 
:: Synchronizing package databases...
 core is up to date
 extra is up to date
 community is up to date
:: Starting full system upgrade...
 there is nothing to do
==> Building in chroot for [extra] (x86_64)...
==> Synchronizing chroot copy [/var/lib/archbuild/extra-x86_64/root] -> [builduser]...done
==> Making package: aurman 2.20.1-1 (Mon Dec 14 16:46:34 2020)
==> Retrieving sources...
  -> Updating aurman_sources git repo...
Fetching origin
==> Validating source files with md5sums...
    aurman_sources ... Skipped
==> Verifying source file signatures with gpg...
    aurman_sources git repo ... Passed
==> Making package: aurman 2.20.1-1 (Mon 14 Dec 2020 04:46:38 PM)
==> Checking runtime dependencies...
==> Installing missing dependencies...
resolving dependencies...
looking for conflicting packages...

Packages (23) libnsl-1.3.0-1  pcre2-10.35-1  perl-error-0.17029-2  perl-mailtools-2.21-4  perl-timedate-2.33-2  python-appdirs-1.4.4-3  python-chardet-3.0.4-7  python-idna-2.10-3
              python-ordered-set-4.0.2-3  python-packaging-20.7-1  python-pyparsing-2.4.7-3  python-setuptools-1:50.3.2-4  python-sgmllib-5.2.1-9  python-six-1.15.0-3
              python-urllib3-1.25.10-4  expac-10-2  git-2.29.2-1  pyalpm-0.9.2-1  python-3.9.0-1  python-dateutil-2.8.1-5  python-feedparser-5.2.1-9  python-regex-2020.11.13-2
              python-requests-2.25.0-1

Total Download Size:     0.43 MiB
Total Installed Size:  125.47 MiB

:: Proceed with installation? [Y/n] 
:: Retrieving packages...
 expac-10-2-x86_64                                                                      15.5 KiB  0.00   B/s 00:00 [####################################################################] 100%
 python-sgmllib-5.2.1-9-any                                                             11.5 KiB  0.00   B/s 00:00 [####################################################################] 100%
 python-feedparser-5.2.1-9-any                                                          88.0 KiB  2000 KiB/s 00:00 [####################################################################] 100%
 python-regex-2020.11.13-2-x86_64                                                      329.2 KiB  1860 KiB/s 00:00 [####################################################################] 100%
(23/23) checking keys in keyring                                                                                   [####################################################################] 100%
(23/23) checking package integrity                                                                                 [####################################################################] 100%
(23/23) loading package files                                                                                      [####################################################################] 100%
(23/23) checking for file conflicts                                                                                [####################################################################] 100%
:: Processing package changes...
( 1/23) installing libnsl                                                                                          [####################################################################] 100%
( 2/23) installing python                                                                                          [####################################################################] 100%
Optional dependencies for python
    python-setuptools [pending]
    python-pip
    sqlite [installed]
    mpdecimal: for decimal
    xz: for lzma [installed]
    tk: for tkinter
( 3/23) installing expac                                                                                           [####################################################################] 100%
( 4/23) installing python-urllib3                                                                                  [####################################################################] 100%
Optional dependencies for python-urllib3
    python-pysocks: SOCKS support
    python-brotli: Brotli support
    python-pyopenssl: security support
( 5/23) installing python-appdirs                                                                                  [####################################################################] 100%
( 6/23) installing python-pyparsing                                                                                [####################################################################] 100%
( 7/23) installing python-six                                                                                      [####################################################################] 100%
( 8/23) installing python-packaging                                                                                [####################################################################] 100%
( 9/23) installing python-ordered-set                                                                              [####################################################################] 100%
(10/23) installing python-setuptools                                                                               [####################################################################] 100%
(11/23) installing python-chardet                                                                                  [####################################################################] 100%
(12/23) installing python-idna                                                                                     [####################################################################] 100%
(13/23) installing python-requests                                                                                 [####################################################################] 100%
Optional dependencies for python-requests
    python-pysocks: SOCKS proxy support
(14/23) installing perl-error                                                                                      [####################################################################] 100%
(15/23) installing perl-timedate                                                                                   [####################################################################] 100%
(16/23) installing perl-mailtools                                                                                  [####################################################################] 100%
(17/23) installing pcre2                                                                                           [####################################################################] 100%
(18/23) installing git                                                                                             [####################################################################] 100%
Optional dependencies for git
    tk: gitk and git gui
    perl-libwww: git svn
    perl-term-readkey: git svn and interactive.singlekey setting
    perl-mime-tools: git send-email
    perl-net-smtp-ssl: git send-email TLS support
    perl-authen-sasl: git send-email TLS support
    perl-mediawiki-api: git mediawiki support
    perl-datetime-format-iso8601: git mediawiki support
    perl-lwp-protocol-https: git mediawiki https support
    perl-cgi: gitweb (web interface) support
    python: git svn & git p4 [installed]
    subversion: git svn
    org.freedesktop.secrets: keyring credential helper
    libsecret: libsecret credential helper [installed]
(19/23) installing python-regex                                                                                    [####################################################################] 100%
(20/23) installing python-dateutil                                                                                 [####################################################################] 100%
(21/23) installing pyalpm                                                                                          [####################################################################] 100%
(22/23) installing python-sgmllib                                                                                  [####################################################################] 100%
(23/23) installing python-feedparser                                                                               [####################################################################] 100%
:: Running post-transaction hooks...
(1/1) Warn about old perl modules
==> Checking buildtime dependencies...
==> Retrieving sources...
==> WARNING: Skipping all source file integrity checks.
==> Extracting sources...
  -> Creating working copy of aurman_sources git repo...
Cloning into 'aurman_sources'...
done.
Switched to a new branch 'makepkg'
==> Entering fakeroot environment...
==> Starting package()...
running install
running build
running build_py
creating build
creating build/lib
creating build/lib/aurman
copying src/aurman/wrappers.py -> build/lib/aurman
copying src/aurman/__init__.py -> build/lib/aurman
copying src/aurman/main.py -> build/lib/aurman
copying src/aurman/main_solver.py -> build/lib/aurman
copying src/aurman/parse_args.py -> build/lib/aurman
copying src/aurman/parsing_config.py -> build/lib/aurman
copying src/aurman/own_exceptions.py -> build/lib/aurman
copying src/aurman/classes.py -> build/lib/aurman
copying src/aurman/aur_utilities.py -> build/lib/aurman
copying src/aurman/bash_completion.py -> build/lib/aurman
copying src/aurman/utilities.py -> build/lib/aurman
copying src/aurman/help_printing.py -> build/lib/aurman
copying src/aurman/coloring.py -> build/lib/aurman
running install_lib
creating /build/aurman/pkg/aurman/usr
creating /build/aurman/pkg/aurman/usr/lib
creating /build/aurman/pkg/aurman/usr/lib/python3.9
creating /build/aurman/pkg/aurman/usr/lib/python3.9/site-packages
creating /build/aurman/pkg/aurman/usr/lib/python3.9/site-packages/aurman
copying build/lib/aurman/wrappers.py -> /build/aurman/pkg/aurman/usr/lib/python3.9/site-packages/aurman
copying build/lib/aurman/__init__.py -> /build/aurman/pkg/aurman/usr/lib/python3.9/site-packages/aurman
copying build/lib/aurman/main.py -> /build/aurman/pkg/aurman/usr/lib/python3.9/site-packages/aurman
copying build/lib/aurman/main_solver.py -> /build/aurman/pkg/aurman/usr/lib/python3.9/site-packages/aurman
copying build/lib/aurman/parse_args.py -> /build/aurman/pkg/aurman/usr/lib/python3.9/site-packages/aurman
copying build/lib/aurman/parsing_config.py -> /build/aurman/pkg/aurman/usr/lib/python3.9/site-packages/aurman
copying build/lib/aurman/own_exceptions.py -> /build/aurman/pkg/aurman/usr/lib/python3.9/site-packages/aurman
copying build/lib/aurman/classes.py -> /build/aurman/pkg/aurman/usr/lib/python3.9/site-packages/aurman
copying build/lib/aurman/aur_utilities.py -> /build/aurman/pkg/aurman/usr/lib/python3.9/site-packages/aurman
copying build/lib/aurman/bash_completion.py -> /build/aurman/pkg/aurman/usr/lib/python3.9/site-packages/aurman
copying build/lib/aurman/utilities.py -> /build/aurman/pkg/aurman/usr/lib/python3.9/site-packages/aurman
copying build/lib/aurman/help_printing.py -> /build/aurman/pkg/aurman/usr/lib/python3.9/site-packages/aurman
copying build/lib/aurman/coloring.py -> /build/aurman/pkg/aurman/usr/lib/python3.9/site-packages/aurman
byte-compiling /build/aurman/pkg/aurman/usr/lib/python3.9/site-packages/aurman/wrappers.py to wrappers.cpython-39.pyc
byte-compiling /build/aurman/pkg/aurman/usr/lib/python3.9/site-packages/aurman/__init__.py to __init__.cpython-39.pyc
byte-compiling /build/aurman/pkg/aurman/usr/lib/python3.9/site-packages/aurman/main.py to main.cpython-39.pyc
byte-compiling /build/aurman/pkg/aurman/usr/lib/python3.9/site-packages/aurman/main_solver.py to main_solver.cpython-39.pyc
byte-compiling /build/aurman/pkg/aurman/usr/lib/python3.9/site-packages/aurman/parse_args.py to parse_args.cpython-39.pyc
byte-compiling /build/aurman/pkg/aurman/usr/lib/python3.9/site-packages/aurman/parsing_config.py to parsing_config.cpython-39.pyc
byte-compiling /build/aurman/pkg/aurman/usr/lib/python3.9/site-packages/aurman/own_exceptions.py to own_exceptions.cpython-39.pyc
byte-compiling /build/aurman/pkg/aurman/usr/lib/python3.9/site-packages/aurman/classes.py to classes.cpython-39.pyc
byte-compiling /build/aurman/pkg/aurman/usr/lib/python3.9/site-packages/aurman/aur_utilities.py to aur_utilities.cpython-39.pyc
byte-compiling /build/aurman/pkg/aurman/usr/lib/python3.9/site-packages/aurman/bash_completion.py to bash_completion.cpython-39.pyc
byte-compiling /build/aurman/pkg/aurman/usr/lib/python3.9/site-packages/aurman/utilities.py to utilities.cpython-39.pyc
byte-compiling /build/aurman/pkg/aurman/usr/lib/python3.9/site-packages/aurman/help_printing.py to help_printing.cpython-39.pyc
byte-compiling /build/aurman/pkg/aurman/usr/lib/python3.9/site-packages/aurman/coloring.py to coloring.cpython-39.pyc
writing byte-compilation script '/tmp/tmpp70y2xfh.py'
/usr/bin/python3 /tmp/tmpp70y2xfh.py
removing /tmp/tmpp70y2xfh.py
running install_egg_info
running egg_info
creating src/aurman.egg-info
writing src/aurman.egg-info/PKG-INFO
writing dependency_links to src/aurman.egg-info/dependency_links.txt
writing entry points to src/aurman.egg-info/entry_points.txt
writing requirements to src/aurman.egg-info/requires.txt
writing top-level names to src/aurman.egg-info/top_level.txt
writing manifest file 'src/aurman.egg-info/SOURCES.txt'
reading manifest file 'src/aurman.egg-info/SOURCES.txt'
writing manifest file 'src/aurman.egg-info/SOURCES.txt'
Copying src/aurman.egg-info to /build/aurman/pkg/aurman/usr/lib/python3.9/site-packages/aurman-2.20.1-py3.9.egg-info
running install_scripts
Installing aurman script to /build/aurman/pkg/aurman/usr/bin
Installing aurmansolver script to /build/aurman/pkg/aurman/usr/bin
==> Tidying install...
  -> Removing libtool files...
  -> Purging unwanted files...
  -> Removing static library files...
  -> Stripping unneeded symbols from binaries and libraries...
  -> Compressing man and info pages...
==> Checking for packaging issues...
==> Creating package "aurman"...
  -> Generating .PKGINFO file...
  -> Generating .BUILDINFO file...
  -> Generating .MTREE file...
  -> Compressing package...
==> Leaving fakeroot environment.
==> Finished making: aurman 2.20.1-1 (Mon 14 Dec 2020 04:46:41 PM)
==> Installing package aurman with pacman -U...
loading packages...
resolving dependencies...
looking for conflicting packages...

Packages (1) aurman-2.20.1-1

Total Installed Size:  0.53 MiB

:: Proceed with installation? [Y/n] 
(1/1) checking keys in keyring                                                                                     [####################################################################] 100%
(1/1) checking package integrity                                                                                   [####################################################################] 100%
(1/1) loading package files                                                                                        [####################################################################] 100%
(1/1) checking for file conflicts                                                                                  [####################################################################] 100%
:: Processing package changes...
(1/1) installing aurman                                                                                            [####################################################################] 100%
resolving dependencies...
looking for conflicting packages...

Packages (3) licenses-20200427-1  python-pyelftools-0.26-3  namcap-3.2.10-2

Total Installed Size:  2.03 MiB

:: Proceed with installation? [Y/n] 
(3/3) checking keys in keyring                                                                                     [####################################################################] 100%
(3/3) checking package integrity                                                                                   [####################################################################] 100%
(3/3) loading package files                                                                                        [####################################################################] 100%
(3/3) checking for file conflicts                                                                                  [####################################################################] 100%
:: Processing package changes...
(1/3) installing licenses                                                                                          [####################################################################] 100%
(2/3) installing python-pyelftools                                                                                 [####################################################################] 100%
(3/3) installing namcap                                                                                            [####################################################################] 100%
Checking PKGBUILD
PKGBUILD (aurman) W: VCS source PKGBUILD needs additional makedepends 'git' to work properly
Checking aurman-2.20.1-1-any.pkg.tar.zst
aurman E: Missing custom license directory (usr/share/licenses/aurman)
aurman W: Dependency python included but already satisfied
aurman W: Dependency included and not needed ('expac')
aurman W: Dependency included and not needed ('python-requests')
aurman W: Dependency included and not needed ('git')
aurman W: Dependency included and not needed ('python-regex')
aurman W: Dependency included and not needed ('python-dateutil')
aurman W: Dependency included and not needed ('pyalpm')
aurman W: Dependency included and not needed ('python-feedparser')
==> Running checkpkg
error: target not found: aurman
==> WARNING: Skipped checkpkg due to missing repo packages

Please consider using an AUR helper that is maintained.

Last edited by loqs (2020-12-14 16:51:13)

Offline

Board footer

Powered by FluxBB