Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/archbuild.in
diff options
context:
space:
mode:
authorErich Eckner <git@eckner.net>2019-04-13 14:32:36 +0200
committerErich Eckner <git@eckner.net>2019-08-18 21:11:14 +0200
commit5589933ec6487bf62d28e385e43ef406b0bea626 (patch)
tree5ffba7cfb63c80ffe86a69a2aa3ffc6d30a3b3eb /archbuild.in
parentb6d9e5031830a4a0160fc8dc36734e87b88825ac (diff)
make arch-nspawn and archbuild compatible with pentium4
pentium4 is unknown to setarch - we must replace it by i686 if used as argument to setarch
Diffstat (limited to 'archbuild.in')
-rw-r--r--archbuild.in7
1 files changed, 6 insertions, 1 deletions
diff --git a/archbuild.in b/archbuild.in
index fb6283d..aed79f3 100644
--- a/archbuild.in
+++ b/archbuild.in
@@ -17,6 +17,11 @@ else
repo=${tag%-*}
arch=${tag##*-}
fi
+if [[ "${arch}" == 'pentium4' ]]; then
+ set_arch='i686'
+else
+ set_arch="${arch}"
+fi
chroots='/var/lib/archbuild'
clean_first=false
@@ -77,7 +82,7 @@ if ${clean_first} || [[ ! -d "${chroots}/${repo}-${arch}" ]]; then
rm -rf --one-file-system "${chroots}/${repo}-${arch}"
mkdir -m755 -p "${chroots}/${repo}-${arch}"
- setarch "${arch}" mkarchroot \
+ setarch "${set_arch}" mkarchroot \
-C "${pacman_config}" \
-M "${makepkg_config}" \
${cache_dir} \