Skip to content

Commit

Permalink
fix: pass correct arch to apt-get
Browse files Browse the repository at this point in the history
  • Loading branch information
joshuar committed Jun 27, 2024
1 parent 0deb31b commit e536162
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 9 deletions.
10 changes: 5 additions & 5 deletions build/scripts/install-build-deps
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,10 @@ export DEBIAN_FRONTEND=noninteractive

apt-get update
apt-get -y install desktop-file-utils pkg-config git ${ccpkg[@]:0}
for arch in "$@"; do
for a in "${arch[@]}"; do
apt-get -y install \
libgl1-mesa-dev:${arch} xserver-xorg-dev:${arch} \
libxcursor-dev:${arch} libxrandr-dev:${arch} \
libxinerama-dev:${arch} libxi-dev:${arch} \
libgl1-mesa-dev:${arch} libxxf86vm-dev:${arch}
libgl1-mesa-dev:${a} xserver-xorg-dev:${a} \
libxcursor-dev:${a} libxrandr-dev:${a} \
libxinerama-dev:${a} libxi-dev:${a} \
libgl1-mesa-dev:${a} libxxf86vm-dev:${a}
done
8 changes: 4 additions & 4 deletions build/scripts/install-run-deps
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,10 @@ esac
export DEBIAN_FRONTEND=noninteractive

apt-get update
for arch in "$@"; do
for a in "${arch[@]}"; do
apt-get -y install \
libgl1:${arch} libx11-6:${arch} libglx0:${arch} \
libglvnd0:${arch} libxcb1:${arch} libxau6:${arch} \
libxdmcp6:${arch} dbus-x11:${arch}
libgl1:${a} libx11-6:${a} libglx0:${a} \
libglvnd0:${a} libxcb1:${a} libxau6:${a} \
libxdmcp6:${a} dbus-x11:${a}
done
rm -rf /var/lib/apt/lists/* /var/cache/apt/*

0 comments on commit e536162

Please sign in to comment.