index : devtools32 | |
Archlinux32 fork of devtools | gitolite user |
summaryrefslogtreecommitdiff |
author | Erich Eckner <git@eckner.net> | 2019-04-13 14:32:36 +0200 |
---|---|---|
committer | Erich Eckner <git@eckner.net> | 2019-12-27 21:37:14 +0100 |
commit | 37990ff99f6c909cbf8a96fb353cd639e24f0069 (patch) | |
tree | b89e85404a9618e441668adeda9259aa33353a57 | |
parent | 88c26b237f9131ea44d5e882eaadfc93068824f2 (diff) |
-rw-r--r-- | arch-nspawn.in | 7 | ||||
-rw-r--r-- | archbuild.in | 7 |
diff --git a/arch-nspawn.in b/arch-nspawn.in index 08f24b7..5d8b3d1 100644 --- a/arch-nspawn.in +++ b/arch-nspawn.in @@ -126,8 +126,13 @@ copy_hostconf eval "$(grep -a '^CARCH=' "$working_dir/etc/makepkg.conf")" [[ -z $nosetarch ]] || unset CARCH +if [[ "${CARCH}" = 'pentium4' ]]; then + set_arch='i686' +else + set_arch="${CARCH}" +fi -exec ${CARCH:+setarch "$CARCH"} systemd-nspawn -q \ +exec ${CARCH:+setarch "$set_arch"} systemd-nspawn -q \ -D "$working_dir" \ -E "PATH=/usr/local/sbin:/usr/local/bin:/usr/bin" \ --register=no --keep-unit --as-pid2 \ diff --git a/archbuild.in b/archbuild.in index 83f4695..409bf97 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}" (umask 0022; mkdir -p "${chroots}/${repo}-${arch}") - setarch "${arch}" mkarchroot \ + setarch "${set_arch}" mkarchroot \ -C "${pacman_config}" \ -M "${makepkg_config}" \ ${cache_dir} \ |