summaryrefslogtreecommitdiff
path: root/makechrootpkg.in
diff options
context:
space:
mode:
authorFelix Yan <felixonmars@archlinux.org>2021-07-27 19:22:19 +0800
committerLevente Polyak <anthraxx@archlinux.org>2022-01-22 01:12:32 +0100
commitfa5afbc30b68912eb7f16d434a27faf787c3da9c (patch)
tree47b2146d91d1d2ec378b37b300a1b1abe7e516b0 /makechrootpkg.in
parent412d032c265e2f5193e41cdad2e739b1501b9ca5 (diff)
downloaddevtools-fa5afbc30b68912eb7f16d434a27faf787c3da9c.tar.xz
checkpkg: set makepkg vars from build root to support none host archs
When building for an architecture different from the host, the correct old package was downloaded as "$copydir"'s pacman was configured with the target CARCH, but checkpkg doesn't know this and tries to search the cache for host CARCH instead, producing the following error: `==> ERROR: tarball not found for package: xxx` This change fixes this by passing the appropriate makepkg config explicitly, so that checkpkg behaves consistently. Co-Authored-by: Levente Polyak <anthraxx@archlinux.org> Signed-off-by: Levente Polyak <anthraxx@archlinux.org>
Diffstat (limited to 'makechrootpkg.in')
-rw-r--r--makechrootpkg.in2
1 files changed, 1 insertions, 1 deletions
diff --git a/makechrootpkg.in b/makechrootpkg.in
index 7944ada..126d1da 100644
--- a/makechrootpkg.in
+++ b/makechrootpkg.in
@@ -408,7 +408,7 @@ else
done
msg2 "Checking packages"
- sudo -u "$makepkg_user" checkpkg --rmdir --warn "${remotepkgs[@]/#file:\/\//}"
+ sudo -u "$makepkg_user" checkpkg --rmdir --warn --makepkg-config "$copydir/etc/makepkg.conf" "${remotepkgs[@]/#file:\/\//}"
fi
true
fi