From 4b78120e5f7e3ec38e198b5638c3a581bdc9b882 Mon Sep 17 00:00:00 2001 From: Gabriel Santos Date: Mon, 29 Dec 2025 03:39:26 +0000 Subject: feat(server): add Nobara Linux support Add build support for Nobara Linux, a Fedora derivative. - Add os_nobara() detection function (checks /etc/nobara-release) - Uses same packages as Fedora (dnf package manager) - Add to --os argument handling and auto-detection chain Closes: #301 Author: @gs-101 --- server/autobuild | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) diff --git a/server/autobuild b/server/autobuild index 46c254e..1d76820 100755 --- a/server/autobuild +++ b/server/autobuild @@ -503,6 +503,30 @@ os_alpine() { return 0 } +# Nobara +os_nobara() { + if ! [ -e "/etc/nobara-release" ]; then + return 1 + fi + PKGCMD=dnf + PKGARGS=install + PACKAGES="autoconf + automake + gcc + libpng-devel + make + poppler-devel + poppler-glib-devel + zlib-devel" + VERSION=$(source_var /etc/os-release VERSION_ID) + if [ -n "$VERSION" ] && [ "$VERSION" -ge 26 ]; then + PACKAGES="$PACKAGES pkgconf" + else + PACKAGES="$PACKAGES pkgconfig" + fi + return 0 +} + # By Parameter --os os_argument() { [ -z "$OS" ] && return 1 @@ -521,6 +545,7 @@ os_argument() { void) os_void "$@";; opensuse) os_opensuse "$@";; alpine) os_alpine "$@";; + nobara) os_nobara "$@";; *) echo "Invalid --os argument: $OS" exit 1 esac || { @@ -551,6 +576,7 @@ os_nixos "$@" || \ os_void "$@" || \ os_opensuse "$@" || \ os_alpine "$@" || \ +os_nobara "$@" || \ { OS_IS_HANDLED= if [ -z "$DRY_RUN" ]; then -- cgit v1.0