Error installing snapd on Arch Linux


#1

Commands performed:
makepkg -si

Error Received:
ERROR: Build () failed.
Canceling …

Full record:
==> Creating the package: snapd 2.40-1 (Sun 11 Aug 2019 15:46:20 CDT)
==> Checking dependencies while running …
==> Checking dependencies while compiling …
==> Receiving the sources …
-> snapd-2.40.tar.xz has been found
==> Validating the source files with sha256sums …
snapd-2.40.tar.xz … Approved
==> Extracting sources …
-> Extracting snapd-2.40.tar.xz with bsdtar
==> Starting prepare () …
==> Deleting the $ pkgdir / … directory
==> Starting build () …
*** Setting version to ‘2.40-1’ from shell.

pkg-config --cflags - libseccomp libseccomp

pkg-config: exec: “pkg-config”: executable file not found in $ PATH
==> ERROR: There was a failure in build ().
Canceling …

Can anyone help me?


#2

The base-devel package group is assumed to be installed when building anything from PKGBUILDs, this it’s never listed as a build dependency. The pkgconf package, which provides /usr/bin/pkg-config is part of that group.
See https://wiki.archlinux.org/index.php/PKGBUILD#makedepends for details.