Merge pull request #304798 from OPNA2608/update/lomiri/stuff

Update ayatana datetime & some OTA-less Lomiri things

authored by Cosima Neidahl and committed by GitHub bb54a0c1 9e93dea6

+35 -95
+6 -25
pkgs/by-name/ay/ayatana-indicator-datetime/package.nix
··· 1 1 { stdenv 2 2 , lib 3 3 , fetchFromGitHub 4 - , fetchpatch 5 4 , gitUpdater 6 5 , nixosTests 7 6 , ayatana-indicator-messages ··· 32 31 in 33 32 stdenv.mkDerivation (finalAttrs: { 34 33 pname = "ayatana-indicator-datetime"; 35 - version = "23.10.1"; 34 + version = "24.2.0"; 36 35 37 36 src = fetchFromGitHub { 38 37 owner = "AyatanaIndicators"; 39 38 repo = "ayatana-indicator-datetime"; 40 39 rev = finalAttrs.version; 41 - hash = "sha256-cm1zhG9TODGe79n/fGuyVnWL/sjxUc3ZCu9FhqA1NLE="; 40 + hash = "sha256-J3Yp7Dx4UvvdlM8Cp1sPe4Ftm/aAmNzpo4re/jF7pRo="; 42 41 }; 43 42 44 - patches = [ 45 - # Fix test-menus building & running 46 - # Remove when version > 23.10.1 47 - (fetchpatch { 48 - name = "0001-ayatana-indicator-datetime-Fix-test-menus-tests.patch"; 49 - url = "https://github.com/AyatanaIndicators/ayatana-indicator-datetime/commit/ddabb4a61a496da14603573b700c5961a3e5b834.patch"; 50 - hash = "sha256-vf8aVXonCoTWMuAQZG6FuklWR2IaGY4hecFtoyNCGg8="; 51 - }) 52 - 53 - # Fix EDS-related tests 54 - # Remove when version > 23.10.1 55 - (fetchpatch { 56 - name = "0002-ayatana-indicator-datetime-Fix-EDS-colour-tests.patch"; 57 - url = "https://github.com/AyatanaIndicators/ayatana-indicator-datetime/commit/6d67f7b458911833e72e0b4a162b1d823609d6f8.patch"; 58 - hash = "sha256-VUdMJuma6rmsjUOeyO0W8UNKADODiM+wDVfj6aDhqgw="; 59 - }) 60 - ]; 61 - 62 43 postPatch = '' 63 - # Queries systemd user unit dir via pkg_get_variable, can't override prefix 44 + # Override systemd prefix 64 45 substituteInPlace data/CMakeLists.txt \ 65 - --replace-fail 'pkg_get_variable(SYSTEMD_USER_DIR systemd systemduserunitdir)' 'set(SYSTEMD_USER_DIR ''${CMAKE_INSTALL_PREFIX}/lib/systemd/user)' \ 66 - --replace-fail '/etc' "\''${CMAKE_INSTALL_FULL_SYSCONFDIR}" 46 + --replace-fail 'pkg_get_variable(SYSTEMD_USER_DIR systemd systemduserunitdir)' 'pkg_get_variable(SYSTEMD_USER_DIR systemd systemduserunitdir DEFINE_VARIABLES prefix=''${CMAKE_INSTALL_PREFIX})' \ 47 + --replace-fail 'XDG_AUTOSTART_DIR "/etc' 'XDG_AUTOSTART_DIR "''${CMAKE_INSTALL_FULL_SYSCONFDIR}' 67 48 68 49 # Looking for Lomiri schemas for code generation 69 50 substituteInPlace src/CMakeLists.txt \ ··· 136 117 ]} 137 118 ''; 138 119 120 + # schema is already added automatically by wrapper, EDS needs to be added explicitly 139 121 preFixup = '' 140 - # schema is already added automatically by wrapper, EDS needs to be added explicitly 141 122 gappsWrapperArgs+=( 142 123 --prefix XDG_DATA_DIRS : "${edsDataDir}" 143 124 )
+7 -29
pkgs/desktops/lomiri/applications/lomiri-system-settings/default.nix
··· 44 44 45 45 stdenv.mkDerivation (finalAttrs: { 46 46 pname = "lomiri-system-settings-unwrapped"; 47 - version = "1.0.2"; 47 + version = "1.1.0"; 48 48 49 49 src = fetchFromGitLab { 50 50 owner = "ubports"; 51 51 repo = "development/core/lomiri-system-settings"; 52 52 rev = finalAttrs.version; 53 - hash = "sha256-gi6ZujIs0AEDLsqcTNlRNSS8SyqEU6q0+xaDf55XwuM="; 53 + hash = "sha256-Po5eArO7zyaGatTf6kqci3DdzFDJSZakeglbiMx9kR8="; 54 54 }; 55 55 56 56 outputs = [ ··· 73 73 hash = "sha256-lSKAhtE3oSSv7USvDbbcfBZWAtWMmuKneWawKQABIiM="; 74 74 }) 75 75 76 - # Remove when version > 1.0.2 77 - (fetchpatch { 78 - name = "0003-lomiri-system-settings-Use-GSettings-for-DT2W-value.patch"; 79 - url = "https://gitlab.com/ubports/development/core/lomiri-system-settings/-/commit/29e2533efcac23e41b083b11c540c9221b71de7e.patch"; 80 - hash = "sha256-d52d/b1ZdafaqhOljCg5E3I12XWtFAfG4rmn8CYngB4="; 81 - }) 82 - ] ++ lib.optionals (lib.strings.versionOlder python3.pkgs.python-dbusmock.version "0.30.1") [ 83 - # Makes tests work with newer dbusmock, but breaks with much-newer dbusmock 84 - # See for details: 85 - # - https://gitlab.com/ubports/development/core/lomiri-system-settings/-/merge_requests/354 86 - # - https://gitlab.com/ubports/development/core/lomiri-system-settings/-/merge_requests/426 87 - # Remove/adjust based on merges & next LSS release, and packaged version of dbusmock 88 - (fetchpatch { 89 - name = "0101-lomiri-system-settings-Pass-missing-parameters-to-dbusmock.patch"; 90 - url = "https://gitlab.com/ubports/development/core/lomiri-system-settings/-/commit/b9aacd88e3789dbb7578f32b31ad5b239db227a2.patch"; 91 - hash = "sha256-jf+jMc+6QxONavlX5C9UZyX23jb6fZnYV8mWFyQGGbU="; 92 - }) 93 - (fetchpatch { 94 - name = "0102-lomiri-system-settings-Fix-BT-plugin-testIsPaired.patch"; 95 - url = "https://gitlab.com/ubports/development/core/lomiri-system-settings/-/commit/e39b9728e18635413f07f9c9f6ddc73208260b2a.patch"; 96 - hash = "sha256-YUtdlQ2XcanXzsxD40SbML7fSxG75yMKz/XnaQN9YP8="; 97 - }) 76 + # Fixes tests with very-recent python-dbusmock 77 + # Remove when version > 1.1.0 98 78 (fetchpatch { 99 - name = "0103-lomiri-system-settings-Fix-BT-plugin-testGet-IconName-Type.patch"; 100 - url = "https://gitlab.com/ubports/development/core/lomiri-system-settings/-/commit/9ad5d9324945f06f764d3a963dbfc7bccefe574b.patch"; 101 - # Merge conflict, relevant change handled further down 102 - excludes = [ "CMakeLists.txt" ]; 103 - hash = "sha256-QCgkVos9Q9/8jd25rqzdEKdnBw0Re47X7B9nLH8QOQU="; 79 + name = "0003-lomiri-system-settings-Revert-Pass-missing-parameter-to-dbusmock-bluez-PairDevice-function.patch"; 80 + url = "https://gitlab.com/ubports/development/core/lomiri-system-settings/-/commit/67d9e28ebab8bdb9473d5bf8da2b7573e6848fa2.patch"; 81 + hash = "sha256-pFWNne2UH3R5Fz9ayHvIpDXDQbXPs0k4b/oRg0fzi+s="; 104 82 }) 105 83 ] ++ [ 106 84
+11 -14
pkgs/desktops/lomiri/qml/lomiri-ui-toolkit/2001-Mark-problematic-tests.patch
··· 1 - From 243477a2bd6e315c77ebaf5b2ed4a9c9c4e1e22a Mon Sep 17 00:00:00 2001 2 - From: OPNA2608 <christoph.neidahl@gmail.com> 3 - Date: Sat, 25 Nov 2023 10:49:32 +0100 1 + From c71d5fed4ef1f0b6d56400cddf02d8ac438168c8 Mon Sep 17 00:00:00 2001 2 + From: OPNA2608 <opna2608@protonmail.com> 3 + Date: Wed, 17 Apr 2024 16:18:23 +0200 4 4 Subject: [PATCH] Mark problematic tests 5 5 6 6 - ShapeMaterial requires a Qt OpenGL context, doesn't work in our sandbox 7 7 - SignalSpy on QML shaders compilers don't see changes 8 - - Scaling value from environment not picked up properly since Qt 5.15.11 9 - https://gitlab.com/ubports/development/core/lomiri-ui-toolkit/-/issues/34 10 8 - TypeError on some properties with Qt 5.15 11 9 https://gitlab.com/ubports/development/core/lomiri-ui-toolkit/-/issues/9 12 10 --- 13 - tests/checkresults.sh | 89 ++++++++++++++++++++++++++++++++++++++++--- 14 - 1 file changed, 83 insertions(+), 6 deletions(-) 11 + tests/checkresults.sh | 88 ++++++++++++++++++++++++++++++++++++++++--- 12 + 1 file changed, 82 insertions(+), 6 deletions(-) 15 13 16 14 diff --git a/tests/checkresults.sh b/tests/checkresults.sh 17 - index fc498985e..730b9d406 100755 15 + index fc498985e..b5d204d0d 100755 18 16 --- a/tests/checkresults.sh 19 17 +++ b/tests/checkresults.sh 20 18 @@ -22,6 +22,7 @@ ERRORS_PATTERN='<failure' ··· 25 23 EXCEPTED=0 26 24 for _XML in $*; do 27 25 _TESTNAME=$(basename $_XML | sed -r 's@(.+)\.xml@\1@' -) 28 - @@ -31,7 +32,72 @@ for _XML in $*; do 26 + @@ -31,7 +32,71 @@ for _XML in $*; do 29 27 exit 1 30 28 fi 31 29 ··· 91 89 + swipearea \ 92 90 + tst_icon.11.qml \ 93 91 + tst_icon.13.qml \ 94 - + dpr1 \ 95 92 + ' 96 93 + 97 94 + EXCEPTIONS='\ ··· 99 96 tst_tabbar.11.qml \ 100 97 tst_datepicker.bug1567840.SEGFAULT.12.qml \ 101 98 tst_datepicker.bug1567840.SEGFAULT.13.qml \ 102 - @@ -49,22 +115,28 @@ for _XML in $*; do 99 + @@ -49,22 +114,28 @@ for _XML in $*; do 103 100 inversemousearea \ 104 101 tst_listitem_focus_bug.13.qml \ 105 102 tst_shortcuts.13.qml \ ··· 132 129 WOOT_FILES="${WOOT_FILES} ${_TESTNAME}\n" 133 130 fi 134 131 done 135 - @@ -82,6 +154,11 @@ if [ -n "$FATAL_WARNINGS_FILES" ]; then 132 + @@ -82,6 +153,11 @@ if [ -n "$FATAL_WARNINGS_FILES" ]; then 136 133 echo -e "$FATAL_WARNINGS_FILES" 137 134 fi 138 135 ··· 144 141 if [ -n "$EXCEPTED_FILES" ]; then 145 142 echo The following tests issued $EXCEPTED expected warnings: 146 143 echo -e "$EXCEPTED_FILES" 147 - @@ -89,7 +166,7 @@ fi 144 + @@ -89,7 +165,7 @@ fi 148 145 149 146 if [ -n "$WOOT_FILES" ]; then 150 147 echo Woot! Known problematic tests passed! ··· 154 151 fi 155 152 156 153 -- 157 - 2.40.1 154 + 2.42.0 158 155
+11 -27
pkgs/desktops/lomiri/qml/lomiri-ui-toolkit/default.nix
··· 1 1 { stdenv 2 2 , lib 3 3 , fetchFromGitLab 4 - , fetchpatch 5 4 , gitUpdater 6 5 , substituteAll 7 6 , testers ··· 35 34 in 36 35 stdenv.mkDerivation (finalAttrs: { 37 36 pname = "lomiri-ui-toolkit"; 38 - version = "1.3.5012"; 37 + version = "1.3.5100"; 39 38 40 39 src = fetchFromGitLab { 41 40 owner = "ubports"; 42 41 repo = "development/core/lomiri-ui-toolkit"; 43 42 rev = finalAttrs.version; 44 - hash = "sha256-Azz2IOm/7XRvDbyIKaYxrkR47evSB17ejtssuEJayPc="; 43 + hash = "sha256-r+wUCl+ywFcgFYo7BjBoXiulQptd1Zd3LJchXiMtx4I="; 45 44 }; 46 45 47 46 outputs = [ "out" "dev" ]; 48 47 49 48 patches = [ 50 - # Upstreaming effort for these two patches: https://gitlab.com/ubports/development/core/lomiri-ui-toolkit/-/merge_requests/44 51 - (fetchpatch { 52 - name = "0001-lomiri-ui-toolkit-fix-tests-on-qt-5.15.4.patch"; 53 - url = "https://salsa.debian.org/ubports-team/lomiri-ui-toolkit/-/raw/1ad650c326ba9706d549d1dbe8335c70f6b382c8/debian/patches/0001-fix-tests-on-qt-5.15.4.patch"; 54 - hash = "sha256-Y5HVvulR2760DBzlmYkImbJ/qIeqMISqPpUppbv8xJA="; 55 - }) 56 - (fetchpatch { 57 - name = "0002-lomiri-ui-toolkit-fix-tests-on-qt-5.15.5.patch"; 58 - url = "https://salsa.debian.org/ubports-team/lomiri-ui-toolkit/-/raw/03bcafadd3e4fda34bcb5af23454f4b202cf5517/debian/patches/0002-fix-tests-on-qt-5.15.5.patch"; 59 - hash = "sha256-x8Zk7+VBSlM16a3V1yxJqIB63796H0lsS+F4dvR/z80="; 60 - }) 61 - 62 49 ./2001-Mark-problematic-tests.patch 63 50 (substituteAll { 64 51 src = ./2002-Nixpkgs-versioned-QML-path.patch.in; ··· 70 57 postPatch = '' 71 58 patchShebangs documentation/docs.sh tests/ 72 59 73 - substituteInPlace tests/tests.pro \ 74 - --replace "\''$\''$PYTHONDIR" "$dev/${python3.sitePackages}" 75 - 76 60 for subproject in po app-launch-profiler lomiri-ui-toolkit-launcher; do 77 61 substituteInPlace $subproject/$subproject.pro \ 78 - --replace "\''$\''$[QT_INSTALL_PREFIX]" "$out" \ 79 - --replace "\''$\''$[QT_INSTALL_LIBS]" "$out/lib" 62 + --replace-fail "\''$\''$[QT_INSTALL_PREFIX]" "$out" \ 63 + --replace-warn "\''$\''$[QT_INSTALL_LIBS]" "$out/lib" 80 64 done 81 65 82 66 # Install apicheck tool into bin 83 67 substituteInPlace apicheck/apicheck.pro \ 84 - --replace "\''$\''$[QT_INSTALL_LIBS]/lomiri-ui-toolkit" "$out/bin" 68 + --replace-fail "\''$\''$[QT_INSTALL_LIBS]/lomiri-ui-toolkit" "$out/bin" 85 69 86 70 # Causes redefinition error with our own fortify hardening 87 71 sed -i '/DEFINES += _FORTIFY_SOURCE/d' features/lomiri_common.prf ··· 98 82 # Using /run/current-system/sw/share/locale instead of /usr/share/locale isn't a great 99 83 # solution, but at least it should get us working localisations 100 84 substituteInPlace src/LomiriToolkit/i18n.cpp \ 101 - --replace "/usr" "/run/current-system/sw" 85 + --replace-fail "/usr" "/run/current-system/sw" 102 86 103 87 # The code here overrides the regular QML import variables so the just-built modules are found & used in the tests 104 88 # But we need their QML dependencies too, so put them back in there 105 89 substituteInPlace export_qml_dir.sh \ 106 - --replace '_IMPORT_PATH=$BUILD_DIR/qml' '_IMPORT_PATH=$BUILD_DIR/qml:${qtQmlPaths}' 90 + --replace-fail '_IMPORT_PATH=$BUILD_DIR/qml' '_IMPORT_PATH=$BUILD_DIR/qml:${qtQmlPaths}' 107 91 108 92 # These tests try to load Suru theme icons, but override XDG_DATA_DIRS / use full paths to load them 109 93 substituteInPlace \ 110 94 tests/unit/visual/tst_visual.cpp \ 111 95 tests/unit/visual/tst_icon.{11,13}.qml \ 112 96 tests/unit/visual/tst_imageprovider.11.qml \ 113 - --replace '/usr/share' '${suru-icon-theme}/share' 97 + --replace-fail '/usr/share' '${suru-icon-theme}/share' 114 98 ''; 115 99 116 100 # With strictDeps, QMake only picks up Qt dependencies from nativeBuildInputs ··· 190 174 # Qt-generated wrapper script lacks QML paths to dependencies 191 175 for qmlModule in Components PerformanceMetrics Test; do 192 176 substituteInPlace src/imports/$qmlModule/wrapper.sh \ 193 - --replace 'QML2_IMPORT_PATH=' 'QML2_IMPORT_PATH=${qtQmlPaths}:' 177 + --replace-fail 'QML2_IMPORT_PATH=' 'QML2_IMPORT_PATH=${qtQmlPaths}:' 194 178 done 195 179 ''; 196 180 ··· 198 182 # Code loads Qt's qt_module.prf, which force-overrides all QMAKE_PKGCONFIG_* variables except PREFIX for QMake-generated pkg-config files 199 183 for pcFile in Lomiri{Gestures,Metrics,Toolkit}.pc; do 200 184 substituteInPlace $out/lib/pkgconfig/$pcFile \ 201 - --replace "${lib.getLib qtbase}/lib" "\''${prefix}/lib" \ 202 - --replace "${lib.getDev qtbase}/include" "\''${prefix}/include" 185 + --replace-fail "${lib.getLib qtbase}/lib" "\''${prefix}/lib" \ 186 + --replace-fail "${lib.getDev qtbase}/include" "\''${prefix}/include" 203 187 done 204 188 205 189 # These are all dev-related tools, but declaring a bin output also moves around the QML modules