From ac36258c83329462f7b7730ea9a753cd4fe61a66 Mon Sep 17 00:00:00 2001 From: L p R n d n Date: Tue, 16 Apr 2019 13:26:22 +0200 Subject: [PATCH 03/10] gnu: lightdm: Disable python tests only. * gnu/packages/patches/lightdm-disable-python-tests.patch: New file. * gnu/local.mk (dist_patch_DATA): Add it. * gnu/packages/display-managers.scm (lightdm)[source]: Use patch. * gnu/packages/display-managers.scm (lightdm)[arguments]: Remove test-python-greeter wrapping. * gnu/packages/display-managers.scm (lightdm)[native-inputs]: Remove python and python-gobject. --- gnu/local.mk | 1 + gnu/packages/display-managers.scm | 18 ++------- .../lightdm-disable-python-tests.patch | 40 +++++++++++++++++++ 3 files changed, 44 insertions(+), 15 deletions(-) create mode 100644 gnu/packages/patches/lightdm-disable-python-tests.patch diff --git a/gnu/local.mk b/gnu/local.mk index 952fc55df4..880adcd457 100644 --- a/gnu/local.mk +++ b/gnu/local.mk @@ -1169,6 +1169,7 @@ dist_patch_DATA = \ %D%/packages/patches/lierolibre-newer-libconfig.patch \ %D%/packages/patches/lierolibre-remove-arch-warning.patch \ %D%/packages/patches/lierolibre-try-building-other-arch.patch \ + %D%/packages/patches/lightdm-disable-python-tests.patch \ %D%/packages/patches/linkchecker-tests-require-network.patch \ %D%/packages/patches/linux-libre-support-for-Pinebook-Pro.patch \ %D%/packages/patches/linux-pam-no-setfsuid.patch \ diff --git a/gnu/packages/display-managers.scm b/gnu/packages/display-managers.scm index 065b1c0000..e8fae583f1 100644 --- a/gnu/packages/display-managers.scm +++ b/gnu/packages/display-managers.scm @@ -133,7 +133,8 @@ create smooth, animated user interfaces.") version "/lightdm-" version ".tar.xz")) (sha256 (base32 - "158zb2d0v1309a8v19hh32y4yj3v6yg4yg6m0l7v59d3a2b7f651")))) + "158zb2d0v1309a8v19hh32y4yj3v6yg4yg6m0l7v59d3a2b7f651")) + (patches (search-patches "lightdm-disable-python-tests.patch")))) (build-system gnu-build-system) (arguments '(#:parallel-tests? #f ; fails when run in parallel @@ -152,19 +153,8 @@ create smooth, animated user interfaces.") (substitute* "src/seat.c" (("/bin/sh") (which "sh"))) #t)) - (add-after 'unpack 'disable-broken-tests - (lambda _ - (substitute* "tests/Makefile.in" - (("test-sessions-gobject ") "") - ((" test-sessions-python ") " ")) - #t)) (add-before 'check 'pre-check - ;; Run test-suite under a dbus session. (lambda* (#:key inputs #:allow-other-keys) - (wrap-program "tests/src/test-python-greeter" - `("PYTHONPATH" ":" prefix (,(getenv "PYTHONPATH"))) - `("GI_TYPELIB_PATH" ":" prefix (,(getenv "GI_TYPELIB_PATH")))) - ;; Avoid printing locale warnings, which trip up the text ;; matching tests. (unsetenv "LC_ALL") @@ -182,9 +172,7 @@ create smooth, animated user interfaces.") ("intltool" ,intltool) ("vala" ,vala) ;For vala bindings ;; For tests - ("dbus" ,dbus) - ("python" ,python-2) - ("python-pygobject" ,python2-pygobject))) + ("dbus" ,dbus))) ;; Required by liblightdm-gobject-1.pc. (propagated-inputs `(("glib" ,glib) diff --git a/gnu/packages/patches/lightdm-disable-python-tests.patch b/gnu/packages/patches/lightdm-disable-python-tests.patch new file mode 100644 index 0000000000..b1850f279c --- /dev/null +++ b/gnu/packages/patches/lightdm-disable-python-tests.patch @@ -0,0 +1,40 @@ + tests/Makefile.in | 23 ----------------------- + 1 file changed, 23 deletions(-) + +diff --git a/tests/Makefile.in b/tests/Makefile.in +index 9451a6f..46c027c 100644 +--- a/tests/Makefile.in ++++ b/tests/Makefile.in +@@ -810,29 +810,6 @@ TESTS = test-xserver-fail-start test-greeter-fail-start \ + test-wayland-autologin test-wayland-greeter \ + test-wayland-session test-invalid-seat \ + test-seatdefaults-still-supported \ +- test-autologin-timeout-python \ +- test-autologin-guest-timeout-python \ +- test-autologin-session-timeout-python \ +- test-cancel-authentication-python test-sessions-python \ +- test-users-python test-login-python test-login-manual-python \ +- test-login-manual-previous-session-python \ +- test-login-no-password-python test-login-long-username-python \ +- test-login-long-password-python test-login-two-factor-python \ +- test-login-new-authtok-python test-login-info-prompt-python \ +- test-login-multi-info-prompt-python \ +- test-login-previous-session-python \ +- test-login-wrong-password-python \ +- test-login-invalid-user-python \ +- test-login-invalid-session-python test-login-logout-python \ +- test-login-pick-session-python \ +- test-login-remember-session-python \ +- test-login-manual-remember-session-python \ +- test-login-guest-python test-login-guest-pick-session-python \ +- test-login-guest-disabled-python \ +- test-login-guest-no-setup-script-python \ +- test-login-guest-fail-setup-script-python \ +- test-login-guest-logout-python \ +- test-login-remote-session-python test-power-python \ + $(am__append_1) $(am__append_2) + EXTRA_DIST = \ + $(TESTS) \ +-- +2.25.1 + -- 2.26.1