cp-scripts-to-chroot.sh: New script for copying this repo's scripts over to specified...
[dev-env-setup.git] / install-hdl-apt-reqs
index 249cb69a057a8ecf2c33e65d7d4f2ffbdfcce783..b46a44ac8c4c22b0262257ac469251fa66b2532e 100755 (executable)
@@ -3,6 +3,18 @@ if [ "$EUID" -ne 0 ]
   then echo "Please run as root"
   exit
 fi
+# for qemu 5.2 use debian/buster backports
+cat << EOF > /etc/apt/sources.list.d/buster_backports.list
+deb http://deb.debian.org/debian buster-backports main
+EOF
+
+# oooo annoying, pin preferences for buster-backports
+cat << EOF > /etc/apt/preferences.d/99buster-backports
+Package: *
+Pin: release a=buster-backports
+Pin-Priority: 900
+EOF
+
 apt-get update -y
 apt-get upgrade -y
 apt-get install -y autoconf \
@@ -33,6 +45,7 @@ apt-get install -y autoconf \
     ninja-build \
     pkg-config \
     python \
+    python2.7 \
     python-dev \
     python-setuptools \
     python-virtualenv \
@@ -46,7 +59,7 @@ apt-get install -y autoconf \
     python3-sphinx \
     python3-sphinx-rtd-theme \
     python3-recommonmark \
-    qemu-system-ppc \
+    qemu-system-ppc/buster-backports \
     tcl \
     tcl-dev \
     tcl-tclreadline \