guix-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

15/15: gnu: elogind: Fix build failure with GCC 10.


From: guix-commits
Subject: 15/15: gnu: elogind: Fix build failure with GCC 10.
Date: Thu, 13 May 2021 11:05:53 -0400 (EDT)

mbakke pushed a commit to branch core-updates
in repository guix.

commit f5ca7e71e6a9bc9df4d585ef0084411f665902ec
Author: Marius Bakke <marius@gnu.org>
AuthorDate: Thu May 13 16:38:58 2021 +0200

    gnu: elogind: Fix build failure with GCC 10.
    
    * gnu/packages/freedesktop.scm (elogind)[arguments]: Adjust substitution so
    that the disabled test does not return from a void, which is not allowed in
    newer GCC.
---
 gnu/packages/freedesktop.scm | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/gnu/packages/freedesktop.scm b/gnu/packages/freedesktop.scm
index 6c05c9a..081cae5 100644
--- a/gnu/packages/freedesktop.scm
+++ b/gnu/packages/freedesktop.scm
@@ -645,7 +645,7 @@ the freedesktop.org XDG Base Directory specification.")
              ;; logind system so that it can flicker the monitor, etc.
              ;; Just skip it until a more narrow selection can be made.
              (substitute* "src/libelogind/sd-login/test-login.c"
-               (("r = sd_pid_get_slice.*")
+               (("test_login\\(\\);")
                 "return 77;"))
              #t))
          (add-after 'unpack 'change-pid-file-path



reply via email to

[Prev in Thread] Current Thread [Next in Thread]