Skip to content

Commit

Permalink
v8.24
Browse files Browse the repository at this point in the history
- CI | Amiberry: Assure that on Trixie RPi 64-bit builds, no FFmpeg packages from the RPi repo are installed
  • Loading branch information
MichaIng committed Oct 29, 2023
1 parent b392c5d commit 9d7a8de
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion .build/software/Amiberry/container_build.bash
Original file line number Diff line number Diff line change
Expand Up @@ -114,14 +114,23 @@ G_EXEC eval 'echo '\''infocmp "$TERM" > /dev/null 2>&1 || export TERM=dumb'\'' >
G_CONFIG_INJECT 'CONFIG_CHECK_CONNECTION_IP=' 'CONFIG_CHECK_CONNECTION_IP=127.0.0.1' rootfs/boot/dietpi.txt

# - RPi 64-bit: Add RPi repo, ARMv6 container images contain it already
[[ $PLATFORM != 'rpi'[34]'-64-dmx' ]] || cat << _EOF_ > rootfs/boot/Automation_Custom_Script.sh || exit 1
if [[ $PLATFORM == 'rpi'[34]'-64-dmx' ]]
then
cat << _EOF_ > rootfs/boot/Automation_Custom_Script.sh || exit 1
#!/bin/dash
echo '[ INFO ] Setting up RPi APT repository...'
echo 'deb https://archive.raspberrypi.org/debian/ ${DISTRO/trixie/bookworm} main' > /etc/apt/sources.list.d/raspi.list
curl -sSf 'https://archive.raspberrypi.org/debian/pool/main/r/raspberrypi-archive-keyring/raspberrypi-archive-keyring_2021.1.1+rpt1_all.deb' -o /tmp/keyring.deb
dpkg -i /tmp/keyring.deb
rm -v /tmp/keyring.deb
_EOF_
# Enforcing Debian Trixie FFmpeg packages over RPi repo ones
[[ $DISTRO != 'trixie' ]] || cat << '_EOF_' > /etc/apt/preferences.d/dietpi-ffmpeg || exit 1
Package: src:ffmpeg
Pin: origin archive.raspberrypi.org
Pin-Priority: -1
_EOF_
fi

cat << _EOF_ >> rootfs/boot/Automation_Custom_Script.sh || exit 1
echo '[ INFO ] Running Amiberry build script...'
Expand Down

0 comments on commit 9d7a8de

Please sign in to comment.