PKGBUILDs/alarm/devtools-alarm/0004-arch-nspawn-arm-fix.patch

44 lines
1.3 KiB
Diff
Raw Normal View History

2015-10-07 00:07:31 +00:00
From e1d7f3e29da6557dc3b8f008fb4b3abd06a18dc5 Mon Sep 17 00:00:00 2001
2014-12-30 02:41:19 +00:00
From: Kevin Mihelich <kevin@archlinuxarm.org>
Date: Sun, 28 Dec 2014 22:33:00 -0700
2015-10-07 00:07:31 +00:00
Subject: [PATCH 4/7] arch-nspawn: arm fix
2014-12-30 02:41:19 +00:00
---
arch-nspawn.in | 2 +-
makechrootpkg.in | 4 ++--
2 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/arch-nspawn.in b/arch-nspawn.in
index 20726e8..3f3d563 100644
--- a/arch-nspawn.in
+++ b/arch-nspawn.in
@@ -96,7 +96,7 @@ copy_hostconf
eval $(grep '^CARCH=' "$working_dir/etc/makepkg.conf")
-exec ${CARCH:+setarch "$CARCH"} systemd-nspawn 2>/dev/null \
+exec systemd-nspawn 2>/dev/null \
-D "$working_dir" \
2014-12-30 02:41:19 +00:00
--register=no \
"${mount_args[@]}" \
2014-12-30 02:41:19 +00:00
diff --git a/makechrootpkg.in b/makechrootpkg.in
2015-10-07 00:07:31 +00:00
index ae2b3a3..104f54f 100644
2014-12-30 02:41:19 +00:00
--- a/makechrootpkg.in
+++ b/makechrootpkg.in
2015-10-07 00:07:31 +00:00
@@ -240,10 +240,10 @@ download_sources() {
# Ensure sources are downloaded
if [[ -n $SUDO_USER ]]; then
sudo -u $SUDO_USER env SRCDEST="$SRCDEST" BUILDDIR="$builddir" \
- makepkg --config="$copydir/etc/makepkg.conf" --verifysource -o
+ makepkg -A --config="$copydir/etc/makepkg.conf" --verifysource -o
else
( export SRCDEST BUILDDIR="$builddir"
- makepkg --asroot --config="$copydir/etc/makepkg.conf" --verifysource -o
2014-12-30 02:41:19 +00:00
+ makepkg -A --config="$copydir/etc/makepkg.conf" --verifysource -o
)
fi
(( $? != 0 )) && die "Could not download sources."
2014-12-30 02:41:19 +00:00
--
2015-10-07 00:07:31 +00:00
2.5.2
2014-12-30 02:41:19 +00:00