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

44 lines
1.3 KiB
Diff
Raw Normal View History

2016-06-06 01:37:44 +00:00
From 986d267949d8111f04954c0e56ab51251fa6b418 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-12-05 17:10:02 +00:00
Subject: [PATCH 4/6] 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
2016-06-06 01:37:44 +00:00
index 081c708..c80afba 100644
2014-12-30 02:41:19 +00:00
--- a/arch-nspawn.in
+++ b/arch-nspawn.in
@@ -96,7 +96,7 @@ copy_hostconf
eval $(grep '^CARCH=' "$working_dir/etc/makepkg.conf")
2015-12-05 17:10:02 +00:00
-exec ${CARCH:+setarch "$CARCH"} systemd-nspawn -q \
+exec systemd-nspawn -q \
-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
2016-06-06 01:37:44 +00:00
index 4b86084..39dc498 100644
2014-12-30 02:41:19 +00:00
--- a/makechrootpkg.in
+++ b/makechrootpkg.in
2016-06-06 01:37:44 +00:00
@@ -223,10 +223,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
--
2016-06-06 01:37:44 +00:00
2.8.3
2014-12-30 02:41:19 +00:00