From 7ffa2976617a15e831bc1eff442d30d2b3f945b2 Mon Sep 17 00:00:00 2001 From: MyungJoo Ham Date: Sat, 5 Sep 2026 09:51:01 +0900 Subject: [PATCH 1/2] [Debian] Accept the archive default gcc as a build dependency The compiler alternatives stop at gcc-9, which no longer exists on Ubuntu 24.10 and later; Ubuntu 26.04 (resolute) ships gcc-13/14/15 only. Every Launchpad recipe build of ml-api for those series therefore stops at the build-dependency stage. Append the unversioned "gcc" as the last alternative so apt falls back to the archive default, exactly as nnstreamer and nnstreamer-edge already do. The older alternatives stay first, so 22.04 and 24.04 resolve exactly as before. The nnstreamer PPA now publishes nnstreamer, nnstreamer-edge, ssat, tensorflow2-lite and edgetpu for 26.04, so this is the only change ml-api needs to build there. No functional change; the packaging build was verified in an ubuntu:26.04 container against ppa:nnstreamer/ppa. Signed-off-by: MyungJoo Ham Co-Authored-By: Claude Fable 5.1 --- debian/control | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/debian/control b/debian/control index 2315727e..5150682e 100644 --- a/debian/control +++ b/debian/control @@ -2,7 +2,7 @@ Source: ml-api Section: libs Priority: optional Maintainer: MyungJoo Ham -Build-Depends: gcc-9 | gcc-8 | gcc-7 | gcc-6 | gcc-5 (>=5.4), +Build-Depends: gcc-9 | gcc-8 | gcc-7 | gcc-6 | gcc-5 (>=5.4) | gcc, ninja-build, meson (>=0.50), debhelper (>=9), libgstreamer1.0-dev, libgstreamer-plugins-base1.0-dev, gstreamer1.0-plugins-base, nnstreamer, nnstreamer-dev, nnstreamer-dev-internal, openjdk-11-jdk, From 792c886a90f703e2df3ed2d8d3165a95ec2d6842 Mon Sep 17 00:00:00 2001 From: MyungJoo Ham Date: Sat, 5 Sep 2026 10:04:01 +0900 Subject: [PATCH 2/2] [Build] Compile C++ sources as C++17 GoogleTest 1.17, which Ubuntu 26.04 ships, refuses anything older than C++17 with "#error C++ versions less than C++17 are not supported", so every gtest binary of ml-api fails to compile there while the libraries themselves build fine. Raise the meson default from c++14 to c++17. The Android build already uses -std=c++17 and nnstreamer itself has been on c++17 for a long time, so this only aligns the Ubuntu build with them. Every compiler a current series can resolve from the packaging, gcc-9 and later, supports it. Signed-off-by: MyungJoo Ham Co-Authored-By: Claude Fable 5.1 --- meson.build | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/meson.build b/meson.build index 04c22a64..e283d7f1 100644 --- a/meson.build +++ b/meson.build @@ -7,7 +7,7 @@ project('ml-api', 'c', 'cpp', 'werror=true', 'warning_level=1', 'c_std=gnu89', - 'cpp_std=c++14' + 'cpp_std=c++17' ] )