mir_2_15: Fix build with Boost 1.89

This commit is contained in:
OPNA2608
2026-02-23 22:25:42 +01:00
parent b4fd7504eb
commit e81c7debf2
2 changed files with 25 additions and 0 deletions
+8
View File
@@ -96,6 +96,14 @@ stdenv.mkDerivation (
substituteInPlace src/platform/graphics/CMakeLists.txt \
--replace-fail "/usr/include/drm/drm_fourcc.h" "${lib.getDev libdrm}/include/libdrm/drm_fourcc.h" \
--replace-fail "/usr/include/libdrm/drm_fourcc.h" "${lib.getDev libdrm}/include/libdrm/drm_fourcc.h"
''
# Boost.System was deprecated & dropped
+ lib.optionalString (lib.strings.versionOlder version "2.23.0") ''
substituteInPlace \
tests/CMakeLists.txt \
tests/unit-tests/CMakeLists.txt \
tests/mir_test_framework/CMakeLists.txt \
--replace-fail 'Boost::system' ""
'';
strictDeps = true;
+17
View File
@@ -110,6 +110,23 @@ in
];
hash = "sha256-gzLVQW9Z6y+s2D7pKtp0ondQrjkzZ5iUYhGDPqFXD5M=";
})
# Drop deprecated & removed Boost.System
# Remove when version > 2.22.2
(fetchpatch {
name = "0301-mir-Disable-boost_system.patch";
url = "https://github.com/canonical/mir/commit/0261aa6ce700311ee2b8723294451cdade1bc219.patch";
excludes = [
# hunk errors
"tests/CMakeLists.txt"
"tests/mir_test_framework/CMakeLists.txt"
"tests/unit-tests/CMakeLists.txt"
# doesn't exist
"tests/window_management_tests/CMakeLists.txt"
];
hash = "sha256-UqClQFHzA1th2P7NH67dMJtncw8n/ey9RlPD5Z3VPk0=";
})
];
};
}