You are not logged in.
I encounter the following error while building a package:
==> Synchronizing chroot copy [/home/buildroot/root] -> [build]...done
==> Making package: application-air 13.4.8-1 (Wed Aug 19 16:31:29 2020)
==> Retrieving sources...
-> Found Application.air
-> Found LICENSE.as3-qrcode-encoder.txt
-> Found application.service
==> Validating source files with sha256sums...
Application.air ... Passed
LICENSE.as3-qrcode-encoder.txt ... Passed
application.service ... Passed
==> Making package: application-air 13.4.8-1 (Wed 19 Aug 2020 04:31:37 PM CEST)
==> Checking runtime dependencies...
==> Installing missing dependencies...
:: There are 8 providers available for ttf-font:
:: Repository extra
1) gnu-free-fonts 2) noto-fonts 3) ttf-bitstream-vera 4) ttf-croscore 5) ttf-dejavu
:: Repository community
6) ttf-droid 7) ttf-ibm-plex 8) ttf-liberation
Enter a number (default=1):
resolving dependencies...
looking for conflicting packages...
Packages (1) gnu-free-fonts-20120503-8
Total Installed Size: 6.65 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%
(1/1) checking available disk space [########################################################################################] 100%
:: Processing package changes...
(1/1) installing gnu-free-fonts [########################################################################################] 100%
:: Running post-transaction hooks...
(1/3) Arming ConditionNeedsUpdate...
(2/3) Updating fontconfig cache...
(3/3) Updating 32-bit fontconfig cache...
==> Checking buildtime dependencies...
==> Installing missing dependencies...
resolving dependencies...
looking for conflicting packages...
Packages (1) unzip-6.0-14
Total Installed Size: 0.31 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%
(1/1) checking available disk space [########################################################################################] 100%
:: Processing package changes...
(1/1) installing unzip [########################################################################################] 100%
:: Running post-transaction hooks...
(1/1) Arming ConditionNeedsUpdate...
==> Retrieving sources...
-> Found Application.air
-> Found LICENSE.as3-qrcode-encoder.txt
-> Found application.service
==> WARNING: Skipping all source file integrity checks.
==> Extracting sources...
-> Extracting Application.air with bsdtar
bsdtar: Inconsistent CRC32 values
bsdtar: Error exit delayed from previous errors.
==> ERROR: Failed to extract Application.air
Aborting...
==> ERROR: Build failed, check /home/buildroot/build/build
The PKGBUILD is:
pkgname='application-air'
pkgver='13.4.8'
pkgrel=1
pkgdesc='HOMEINFO Digital Signage AIR Application'
arch=('any')
license=('MIT' 'LGPL3' 'GPL3')
groups=('homeinfo' 'hidsl')
depends=('adobe-air-sdk' 'ttf-font')
source=('Application.air'
'LICENSE.as3-qrcode-encoder.txt'
'application.service')
sha256sums=('2fa0c86cf6acb6260de13a52dbb63269e5c14979474372983297d9cca5665020'
'f70e0a93889c70f52264e86f7e4bf0a153342727737e8256a85f63c9603d6893'
'2e03d130418f6c729deef0fdaba36a279487fe42d1f3434536c7482b88bf7495')
optdepends=(
'lib32-alsa-lib: sound support'
'lib32-alsa-plugins: extended sound support')
makedepends=('unzip' 'findutils')
provides=('application')
replaces=('application')
package() {
# Install main AIR application.
local APPDIR="${pkgdir}/usr/lib/application-air"
install -dm 755 "${APPDIR}"
unzip -qd "${APPDIR}" "${srcdir}/Application.air"
find "${APPDIR}" -type d -exec chmod 755 {} +
find "${APPDIR}" -type f -exec chmod 644 {} +
# Install licenses.
local LICENSES="${pkgdir}/usr/share/licenses/${pkgname}"
install -dm 755 "${LICENSES}"
install "${srctdir}/LICENSE.as3-qrcode-encoder.txt" "${LICENSES}"
# Install systemd unit.
local SYSTEMD_DIR="${srcdir}/usr/lib/systemd/system"
install -dm 755 "${SYSTEMD_DIR}"
install "${srctdir}/application.service" "${SYSTEMD_DIR}"
}
I suspect that some makepkg magic tries to unpack the Zip-archive "Application.air" with bsdtar, which fails.
As you can see, I attemped to do that manually using unzip.
Is it possible to tell makepkg to use unzip automagically instead?
If not, what can I do to get rid of this error?
Last edited by schard (2020-08-19 14:48:54)
Offline
Use the noextract array to tell makepkg not to extract it, then do it yourself as you are.
Online
Awesome, thanks.
I must have skipped that while re-reading the PKGBUILD documentation.
Offline