From 540331bbfef962c4183784d9e02aa8e909706853 Mon Sep 17 00:00:00 2001 From: jagadam97 Date: Thu, 26 Feb 2026 21:53:28 +0530 Subject: [PATCH] avro-cpp: build failure due to boost 1.89 --- .../0004-remove-boost-system-component.patch | 15 +++++++++++++++ pkgs/by-name/av/avro-cpp/package.nix | 1 + 2 files changed, 16 insertions(+) create mode 100644 pkgs/by-name/av/avro-cpp/0004-remove-boost-system-component.patch diff --git a/pkgs/by-name/av/avro-cpp/0004-remove-boost-system-component.patch b/pkgs/by-name/av/avro-cpp/0004-remove-boost-system-component.patch new file mode 100644 index 000000000000..1a816e8c7736 --- /dev/null +++ b/pkgs/by-name/av/avro-cpp/0004-remove-boost-system-component.patch @@ -0,0 +1,15 @@ +Remove boost_system component from find_package + +Boost 1.89.0 removed the separate boost_system compiled library. +The boost::system headers are still available through the core Boost package. +--- a/CMakeLists.txt ++++ b/CMakeLists.txt +@@ -79,7 +79,7 @@ endif () + + + find_package (Boost 1.38 REQUIRED +- COMPONENTS filesystem iostreams program_options regex system) ++ COMPONENTS filesystem iostreams program_options regex) + + include(FetchContent) + FetchContent_Declare( diff --git a/pkgs/by-name/av/avro-cpp/package.nix b/pkgs/by-name/av/avro-cpp/package.nix index 9a2a7990b0c1..10d576356304 100644 --- a/pkgs/by-name/av/avro-cpp/package.nix +++ b/pkgs/by-name/av/avro-cpp/package.nix @@ -24,6 +24,7 @@ stdenv.mkDerivation (finalAttrs: { ./0001-get-rid-of-fmt-fetchcontent.patch ./0002-fix-fmt-name-formatter.patch ./0003-fix-fmt-type-formatter.patch + ./0004-remove-boost-system-component.patch ]; nativeBuildInputs = [