summaryrefslogtreecommitdiff
path: root/archbuild.in
diff options
context:
space:
mode:
authorJan Alexander Steffens (heftig) <jan.steffens@gmail.com>2013-05-03 04:52:32 +0200
committerJan Alexander Steffens (heftig) <jan.steffens@gmail.com>2013-05-06 01:50:05 +0200
commit1489f754197a7a013e17328f9cb2fb3d2e5bdfe9 (patch)
treeffdd21ffa36a37c45920fc1ec7908b651b33684c /archbuild.in
parent7ca4eb82ddb791881dc5c666f0d2400f3904c152 (diff)
downloaddevtools32-1489f754197a7a013e17328f9cb2fb3d2e5bdfe9.tar.xz
arch-nspawn: setarch to CARCH
Allows calling makechrootpkg without worrying about the architecture
Diffstat (limited to 'archbuild.in')
-rw-r--r--archbuild.in4
1 files changed, 2 insertions, 2 deletions
diff --git a/archbuild.in b/archbuild.in
index 9f1b98a..097cc37 100644
--- a/archbuild.in
+++ b/archbuild.in
@@ -69,7 +69,7 @@ if ${clean_first} || [[ ! -d "${chroots}/${repo}-${arch}" ]]; then
"${base_packages[@]}" || abort
else
lock 9 "${chroots}/${repo}-${arch}/root.lock" "Locking clean chroot"
- setarch ${arch} arch-nspawn \
+ arch-nspawn \
-C "@pkgdatadir@/pacman-${repo}.conf" \
-M "@pkgdatadir@/makepkg-${arch}.conf" \
"${chroots}/${repo}-${arch}/root" \
@@ -77,4 +77,4 @@ else
fi
msg "Building in chroot for [${repo}] (${arch})..."
-exec setarch "${arch}" makechrootpkg "${makechrootpkg_args[@]}" -r "${chroots}/${repo}-${arch}"
+exec makechrootpkg "${makechrootpkg_args[@]}" -r "${chroots}/${repo}-${arch}"