Skip to content

Commit 8ea0d1b

Browse files
authored
mir: 2.21.1 -> 2.22.0 (#437542)
2 parents 89dcabe + 2e67414 commit 8ea0d1b

File tree

4 files changed

+54
-36
lines changed

4 files changed

+54
-36
lines changed

pkgs/by-name/mi/miracle-wm/package.nix

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
stdenv,
33
lib,
44
fetchFromGitHub,
5-
gitUpdater,
5+
unstableGitUpdater,
66
nixosTests,
77
boost,
88
cmake,
@@ -31,20 +31,19 @@
3131

3232
stdenv.mkDerivation (finalAttrs: {
3333
pname = "miracle-wm";
34-
version = "0.6.2";
34+
version = "0.6.2-unstable-2025-08-27";
3535

3636
src = fetchFromGitHub {
3737
owner = "miracle-wm-org";
3838
repo = "miracle-wm";
39-
tag = "v${finalAttrs.version}";
40-
hash = "sha256-zUqW21gZC7J/E0cld11N6OyclpgKCh4F7m/soBi3N1E=";
39+
rev = "0a55a023adf511b042f922aeba666744805be988";
40+
hash = "sha256-yf7knY1tNFeCwePsfTAMAxIma+ZeZUvqpMJe7ABahEw=";
4141
};
4242

4343
postPatch = ''
4444
substituteInPlace CMakeLists.txt \
4545
--replace-fail 'DESTINATION /usr/lib' 'DESTINATION ''${CMAKE_INSTALL_LIBDIR}' \
4646
--replace-fail '-march=native' '# -march=native' \
47-
--replace-fail '-flto' '# -flto'
4847
''
4948
+ lib.optionalString (!finalAttrs.finalPackage.doCheck) ''
5049
substituteInPlace CMakeLists.txt \
@@ -89,14 +88,18 @@ stdenv.mkDerivation (finalAttrs: {
8988
checkInputs = [ gtest ];
9089

9190
cmakeFlags = [
91+
(lib.cmakeBool "ENABLE_LTO" true)
9292
(lib.cmakeBool "SYSTEMD_INTEGRATION" true)
93+
(lib.cmakeBool "END_TO_END_TESTS" finalAttrs.finalPackage.doCheck)
9394
];
9495

9596
doCheck = stdenv.buildPlatform.canExecute stdenv.hostPlatform;
9697

9798
checkPhase = ''
9899
runHook preCheck
99100
101+
export XDG_RUNTIME_DIR=$TMP
102+
100103
./tests/miracle-wm-tests
101104
102105
runHook postCheck
@@ -115,7 +118,7 @@ stdenv.mkDerivation (finalAttrs: {
115118
'';
116119

117120
passthru = {
118-
updateScript = gitUpdater { rev-prefix = "v"; };
121+
updateScript = unstableGitUpdater { tagPrefix = "v"; };
119122
providedSessions = [ "miracle-wm" ];
120123
tests.vm = nixosTests.miracle-wm;
121124
};

pkgs/by-name/wl/wlcs/package.nix

Lines changed: 2 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
lib,
44
gitUpdater,
55
fetchFromGitHub,
6-
fetchpatch,
76
testers,
87
cmake,
98
pkg-config,
@@ -15,24 +14,15 @@
1514

1615
stdenv.mkDerivation (finalAttrs: {
1716
pname = "wlcs";
18-
version = "1.7.0";
17+
version = "1.8.1";
1918

2019
src = fetchFromGitHub {
2120
owner = "MirServer";
2221
repo = "wlcs";
2322
rev = "v${finalAttrs.version}";
24-
hash = "sha256-BQPRymkbGu4YvTYXTaTMuyP5fHpqMWI4xPwjDRHZNEQ=";
23+
hash = "sha256-W4/a7neFcaqdPIAWDk5TcIuIWZ76rC7xCk3beJVqE/E=";
2524
};
2625

27-
patches = [
28-
# Remove when version > 1.7.0
29-
(fetchpatch {
30-
name = "0001-wlcs-Fix-GCC14-compat.patch";
31-
url = "https://github.com/canonical/wlcs/commit/5c812e560052e2cbff4c6d26439935020ddee52f.patch";
32-
hash = "sha256-8YrVKhgpTYZi8n4dZ4pRWJoAcZtr9eaFMv0NNV7/kWU=";
33-
})
34-
];
35-
3626
strictDeps = true;
3727

3828
nativeBuildInputs = [

pkgs/servers/mir/common.nix

Lines changed: 23 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313
glib,
1414
glm,
1515
libapparmor,
16+
libdisplay-info,
1617
libdrm,
1718
libepoxy,
1819
libevdev,
@@ -25,6 +26,7 @@
2526
yaml-cpp,
2627
lttng-ust,
2728
libgbm,
29+
mesa,
2830
nettle,
2931
pixman,
3032
udev,
@@ -136,11 +138,17 @@ stdenv.mkDerivation (finalAttrs: {
136138
]
137139
++ lib.optionals (lib.strings.versionAtLeast version "2.21.0") [
138140
pixman
141+
]
142+
++ lib.optionals (lib.strings.versionAtLeast version "2.22.0") [
143+
libdisplay-info
139144
];
140145

141146
nativeCheckInputs = [
142147
dbus
143148
gobject-introspection
149+
]
150+
++ lib.optionals (lib.strings.versionAtLeast version "2.22.0") [
151+
mesa.llvmpipeHook
144152
];
145153

146154
checkInputs = [
@@ -153,9 +161,10 @@ stdenv.mkDerivation (finalAttrs: {
153161
(lib.cmakeBool "BUILD_DOXYGEN" false)
154162
(lib.cmakeFeature "MIR_PLATFORM" (
155163
lib.strings.concatStringsSep ";" [
164+
"atomic-kms"
156165
"gbm-kms"
157-
"x11"
158166
"eglstream-kms"
167+
"x11"
159168
"wayland"
160169
]
161170
))
@@ -164,10 +173,12 @@ stdenv.mkDerivation (finalAttrs: {
164173
# https://github.com/canonical/mir/pull/1947#issuecomment-811810872
165174
(lib.cmakeBool "MIR_SIGBUS_HANDLER_ENVIRONMENT_BROKEN" true)
166175
(lib.cmakeFeature "MIR_EXCLUDE_TESTS" (
167-
lib.strings.concatStringsSep ";" [
168-
# https://github.com/canonical/mir/issues/3716#issuecomment-2580698552
169-
"UdevWrapperTest.UdevMonitorDoesNotTriggerBeforeEnabling"
170-
]
176+
lib.strings.concatStringsSep ";" (
177+
lib.optionals (lib.strings.versionOlder version "2.22.0") [
178+
# https://github.com/canonical/mir/issues/3716#issuecomment-2580698552
179+
"UdevWrapperTest.UdevMonitorDoesNotTriggerBeforeEnabling"
180+
]
181+
)
171182
))
172183
# These get built but don't get executed by default, yet they get installed when tests are enabled
173184
(lib.cmakeBool "MIR_BUILD_PERFORMANCE_TESTS" false)
@@ -176,16 +187,19 @@ stdenv.mkDerivation (finalAttrs: {
176187
# https://gcc.gnu.org/bugzilla/show_bug.cgi?id=106799
177188
(lib.cmakeBool "MIR_USE_PRECOMPILED_HEADERS" false)
178189
(lib.cmakeFeature "MIR_COMPILER_QUIRKS" (
179-
lib.strings.concatStringsSep ";" [
180-
# https://github.com/canonical/mir/issues/3017 actually affects x86_64 as well
181-
"test_touchspot_controller.cpp:array-bounds"
182-
]
190+
lib.strings.concatStringsSep ";" (
191+
lib.optionals (lib.strings.versionOlder version "2.22.0") [
192+
# https://github.com/canonical/mir/issues/3017 actually affects x86_64 as well
193+
"test_touchspot_controller.cpp:array-bounds"
194+
]
195+
)
183196
))
184197
];
185198

186199
doCheck = stdenv.buildPlatform.canExecute stdenv.hostPlatform;
187200

188201
preCheck = ''
202+
export HOME=$TMP # shader cache
189203
export XDG_RUNTIME_DIR=$TMP
190204
'';
191205

pkgs/servers/mir/default.nix

Lines changed: 20 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -5,15 +5,8 @@ let
55
in
66
{
77
mir = common {
8-
version = "2.21.1";
9-
hash = "sha256-FDZ40LiuvMuyWQQGjgOHTm+J3i7yczKMzL3dZ1jsz/E=";
10-
patches = [
11-
(fetchpatch {
12-
name = "0001-Fix-gtest-nodiscard-error.patch";
13-
url = "https://github.com/canonical/mir/commit/60dab2b197deb159087e44865e7314ad2865b79d.patch";
14-
hash = "sha256-fB49E+Wjm2zJnie9Ws+tP0d6lxcG3V/C/UDfy/4iuFU=";
15-
})
16-
];
8+
version = "2.22.0";
9+
hash = "sha256-46FxyS4Anm1id63GUUCzn9ubTQIvs1+HrXKgZki6fQw=";
1710
};
1811

1912
mir_2_15 = common {
@@ -44,6 +37,24 @@ in
4437
hash = "sha256-QuVZBcHSn/DK+xbjM36Y89+w22vk7NRV4MkbjgvS28A=";
4538
})
4639

40+
# Exclude known-flaky tests
41+
# Remove when version > 2.15.0
42+
(fetchpatch {
43+
name = "0004-mir-exclude-tests-surfaces_with_exclusive_zone_set_to_negative_one_do_not_respect_other_exclusive_zones-1.patch";
44+
url = "https://github.com/canonical/mir/commit/967d872daab50d845adce389c0672edfd18b90c9.patch";
45+
hash = "sha256-XfTWQj+fmPpC1hIqt7ELGU6Yq2wJSO+FQ8bsikI5h0I=";
46+
})
47+
(fetchpatch {
48+
name = "0005-mir-exclude-tests-surfaces_with_exclusive_zone_set_to_negative_one_do_not_respect_other_exclusive_zones-2.patch";
49+
url = "https://github.com/canonical/mir/commit/932d8744852bca9830668018474890bce0c5f6d6.patch";
50+
hash = "sha256-+udEt6pF5VLSBtRgo9r1YdVsinARWLAL4AeEG01DV68=";
51+
})
52+
(fetchpatch {
53+
name = "0006-mir-exclude-tests-surfaces_with_exclusive_zone_set_to_negative_one_do_not_respect_other_exclusive_zones-3.patch";
54+
url = "https://github.com/canonical/mir/commit/fbad5e50be02992f6cf1f41f928950532f3f62c5.patch";
55+
hash = "sha256-J0YEhXf8sAWEHHxU7QKSJjOoHiXsYqotBfgGm79X6GA=";
56+
})
57+
4758
# Fix ignored return value of std::lock_guard
4859
# Remove when version > 2.15.0
4960
# Was changed as part of the big platform API change, no individual upstream commit with this fix

0 commit comments

Comments
 (0)