--- /dev/null
+#!/bin/bash
+
+if [ "$EUID" -ne 0 ]
+ then echo "Please run as root"
+ exit
+fi
+
+SCHROOT_DIR=/srv/chroot/bookworm-ppc64el-sbuild
+
+tee $SCHROOT_DIR/etc/dpkg/buildflags.conf << EOF
+APPEND CFLAGS -mcpu=power9 -mno-altivec -mno-vsx -mno-crypto -mno-htm -mlong-double-64
+APPEND CXXFLAGS -mcpu=power9 -mno-altivec -mno-vsx -mno-crypto -mno-htm -mlong-double-64
+EOF
sbuild-createchroot --include=eatmydata,ccache $RELEASE $SCHROOT_DIR http://127.0.0.1:3142/$DEBMIRROR/debian
-tee $SCHROOT_DIR/etc/dpkg/buildflags.conf << EOF
-APPEND CFLAGS -mcpu=power9 -mno-altivec -mno-vsx -mno-crypto -mno-htm -mlong-double-64
-APPEND CXXFLAGS -mcpu=power9 -mno-altivec -mno-vsx -mno-crypto -mno-htm -mlong-double-64
-EOF