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

40 lines
1.2 KiB
Diff
Raw Normal View History

2017-12-13 01:42:01 +00:00
From 5a4c63d070cdbfa0595c1e090cbf6caba54c08e2 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
2017-12-13 01:42:01 +00:00
Subject: [PATCH 4/8] arch-nspawn: arm fix
2014-12-30 02:41:19 +00:00
---
arch-nspawn.in | 2 +-
2017-12-13 01:42:01 +00:00
makechrootpkg.in | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
2014-12-30 02:41:19 +00:00
diff --git a/arch-nspawn.in b/arch-nspawn.in
2017-12-13 01:42:01 +00:00
index 3896992..714fb0a 100644
2014-12-30 02:41:19 +00:00
--- a/arch-nspawn.in
+++ b/arch-nspawn.in
2017-12-13 01:42:01 +00:00
@@ -111,7 +111,7 @@ eval "$(grep '^CARCH=' "$working_dir/etc/makepkg.conf")"
2014-12-30 02:41:19 +00:00
2017-12-13 01:42:01 +00:00
[[ -z $nosetarch ]] || unset CARCH
2015-12-05 17:10:02 +00:00
-exec ${CARCH:+setarch "$CARCH"} systemd-nspawn -q \
+exec systemd-nspawn -q \
-D "$working_dir" \
2017-12-13 01:42:01 +00:00
-E "PATH=/usr/local/sbin:/usr/local/bin:/usr/bin" \
--register=no --keep-unit --as-pid2 \
2014-12-30 02:41:19 +00:00
diff --git a/makechrootpkg.in b/makechrootpkg.in
2017-12-13 01:42:01 +00:00
index 6f201b2..e29d42c 100644
2014-12-30 02:41:19 +00:00
--- a/makechrootpkg.in
+++ b/makechrootpkg.in
2017-12-13 01:42:01 +00:00
@@ -258,7 +258,7 @@ download_sources() {
# Ensure sources are downloaded
2017-12-13 01:42:01 +00:00
sudo -u "$makepkg_user" env SRCDEST="$SRCDEST" BUILDDIR="$builddir" \
- makepkg --config="$copydir/etc/makepkg.conf" --verifysource -o ||
+ makepkg -A --config="$copydir/etc/makepkg.conf" --verifysource -o ||
die "Could not download sources."
# Clean up garbage from verifysource
2014-12-30 02:41:19 +00:00
--
2017-12-13 01:42:01 +00:00
2.14.1
2014-12-30 02:41:19 +00:00