Skip to content

Commit 3586912

Browse files
committed
dietpi-software: Node.js: fix for 64-bit
libatomic is now required for all architectures, but preinstalled on ARMv6 from Bookworm on as libssl3 dependency. Also hardcode version on ARMv6 Bookworm, since latest v20 (v20.19.5) depends on GLIBCXX_3.4.29 and GLIBCXX_3.4.30 now as well, making v20.19.4 the latest ARMv6 build supported on Bullseye.
1 parent 9c5687d commit 3586912

File tree

2 files changed

+11
-6
lines changed

2 files changed

+11
-6
lines changed

CHANGELOG.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ v9.19
33

44
Bug fixes:
55
- DietPi-Software | Jellyfin: Resolved an issue where the service start failed due to new strict space requirements for logging (512 MiB) and temporary directories (2 GiB). To support low RAM devices, we use /mnt/dietpi_userdata/jellyfin/log for log files, and a subdirectory in /mnt/dietpi_userdata/jellyfin/cache for temporary files, restoring behaviour from Jellyfin before v10.10. This can be adjusted in /etc/default/jellyfin.
6+
- DietPi-Software | Node.js: Resolved an issue where usage could have failed, including Node-RED, Blynk Server, and MineOS installation, since it requires libatomic now for all architectures. Many thanks to @devifast for reporting this issue: https://dietpi.com/forum/t/24574
67

78
As always, many smaller code performance and stability improvements, visual and spelling fixes have been done, too much to list all of them here. Check out all code changes of this release on GitHub: https://github.com/MichaIng/DietPi/pull/XXXX
89

dietpi/dietpi-software

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3147,8 +3147,8 @@ Signed-By: /etc/apt/keyrings/dietpi-adoptium.asc"
31473147

31483148
if To_Install 9 # Node.js
31493149
then
3150-
# ARMv6/7/RISC-V deps (verified 2024-07-11): https://github.com/MichaIng/DietPi/issues/3614
3151-
(( $G_HW_ARCH < 3 || $G_HW_ARCH == 11 )) && aDEPS=('libatomic1')
3150+
# Deps (verified 2025-10-22): https://github.com/MichaIng/DietPi/issues/3614, https://dietpi.com/forum/t/24574
3151+
(( $G_HW_ARCH == 1 && $G_DISTRO > 6 )) || aDEPS=('libatomic1')
31523152

31533153
# Download installer
31543154
Download_Install 'https://raw.githubusercontent.com/MichaIng/nodejs-linux-installer/master/node-install.sh'
@@ -3160,10 +3160,14 @@ Signed-By: /etc/apt/keyrings/dietpi-adoptium.asc"
31603160
# ARMv6/7 Bullseye: node: /usr/lib/arm-linux-gnueabihf/libstdc++.so.6: version `GLIBCXX_3.4.30'/`GLIBCXX_3.4.29' not found (required by node)
31613161
if (( $G_HW_ARCH < 3 && $G_DISTRO < 7 ))
31623162
then
3163-
local version=22 fallback='v22.19.0'
3164-
(( $G_HW_ARCH == 1 )) && version=20 fallback='v20.19.4'
3165-
version=$(./node-install.sh -l | mawk "/^v$version/{print \$1;exit}")
3166-
[[ $version ]] || version=$fallback
3163+
if (( $G_HW_ARCH == 1 ))
3164+
then
3165+
version='v20.19.4' # newest ARMv6 builds which does not depend on GLIBCXX_3.4.30
3166+
else
3167+
local version=22 fallback='v22.21.0'
3168+
version=$(./node-install.sh -l | mawk "/^v$version/{print \$1;exit}")
3169+
[[ $version ]] || version=$fallback
3170+
fi
31673171
options+=('-v' "$version")
31683172
fi
31693173
G_EXEC_OUTPUT=1 G_EXEC ./node-install.sh "${options[@]}"

0 commit comments

Comments
 (0)