Skip to content

Commit

Permalink
v8.23
Browse files Browse the repository at this point in the history
- DietP-Pre-patches | Apply RISC-V patch on RISC-V platforms only
  • Loading branch information
MichaIng committed Sep 28, 2023
1 parent c1d9640 commit 970abad
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 6 deletions.
9 changes: 6 additions & 3 deletions .update/pre-patches
Original file line number Diff line number Diff line change
Expand Up @@ -312,9 +312,12 @@ fi
if (( $G_DIETPI_VERSION_CORE < 8 || ( $G_DIETPI_VERSION_CORE == 8 && $G_DIETPI_VERSION_SUB < 22 ) ))
then
# RISC-V: Migrate from Debian ports to regular Debian Sid
G_DIETPI-NOTIFY 2 'Migrating from Debian ports to regular Debian Sid repository, which now supports RISC-V'
G_EXEC eval 'echo '\''deb https://deb.debian.org/debian/ sid main contrib non-free non-free-firmware'\'' > /etc/apt/sources.list'
dpkg-query -s 'debian-ports-archive-keyring' &> /dev/null && G_EXEC apt-mark auto debian-ports-archive-keyring
if (( $G_HW_ARCH == 11 ))
then
G_DIETPI-NOTIFY 2 'Migrating from Debian ports to regular Debian Sid repository, which now supports RISC-V'
G_EXEC eval 'echo '\''deb https://deb.debian.org/debian/ sid main contrib non-free non-free-firmware'\'' > /etc/apt/sources.list'
dpkg-query -s 'debian-ports-archive-keyring' &> /dev/null && G_EXEC apt-mark auto debian-ports-archive-keyring
fi
fi

exit 0
Expand Down
6 changes: 3 additions & 3 deletions dietpi/dietpi-software
Original file line number Diff line number Diff line change
Expand Up @@ -9252,11 +9252,11 @@ _EOF_

if To_Install 136 motioneye # motionEye
then
# APT deps
# - ARMv6/7 Bookworm + RISC-V: libcurl4-openssl-dev gcc libssl-dev for pycurl, libjpeg-dev for Pillow
# APT deps: libcurl4-openssl-dev gcc libssl-dev for pycurl
# - ARMv6/7 Bookworm + RISC-V: libjpeg-dev for Pillow
if (( ( $G_HW_ARCH < 3 && $G_DISTRO > 6 ) || $G_HW_ARCH == 11 ))
then
G_AGI libcurl4-openssl-dev gcc libssl-dev libjpeg-dev
G_AGI libjpeg-dev

# - ARMv8/x86_64
elif (( $G_HW_ARCH > 2 ))
Expand Down

0 comments on commit 970abad

Please sign in to comment.