diff options
| author | Brian Cully <bjc@spork.org> | 2023-04-28 17:25:22 -0400 |
|---|---|---|
| committer | Ludovic Courtès <ludo@gnu.org> | 2023-04-30 23:14:49 +0200 |
| commit | efce51a194a7a05860a4d489ccb3f3b7c4d5985a (patch) | |
| tree | 45f52844dc1e59d1fb808e91ea7e36b1a429247f /gnu/packages/display-managers.scm | |
| parent | 5cb04b570f96b50eefb220ea742d32833ce35909 (diff) | |
gnu: slim: Fix build failure with GCC-11
GCC-11 sniffed out a long-standing bug where a pointer was being tested for a
negative value, which is impossible. Instead, check for NULL, which is how the
error result is actually returned.
See https://github.com/iwamatsu/slim/issues/14 for details.
Fixes <https://issues.guix.gnu.org/63155>.
* gnu/packages/display-managers.scm (slim) [fix-0-pointer-comparison]: new
phase
Signed-off-by: Ludovic Courtès <ludo@gnu.org>
Diffstat (limited to 'gnu/packages/display-managers.scm')
| -rw-r--r-- | gnu/packages/display-managers.scm | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/gnu/packages/display-managers.scm b/gnu/packages/display-managers.scm index b0d388f1bc9..c1a08e85530 100644 --- a/gnu/packages/display-managers.scm +++ b/gnu/packages/display-managers.scm | |||
| @@ -475,7 +475,11 @@ GTK+, lets you select a desktop session and log in to it.") | |||
| 475 | ;; The build system's logic here is: if "Linux", then | 475 | ;; The build system's logic here is: if "Linux", then |
| 476 | ;; "systemd". Strip that. | 476 | ;; "systemd". Strip that. |
| 477 | "")) | 477 | "")) |
| 478 | #t))) | 478 | #t)) |
| 479 | (add-before 'configure 'fix-0-pointer-comparison | ||
| 480 | (lambda _ | ||
| 481 | (substitute* "panel.cpp" | ||
| 482 | (("WinGC < 0") "WinGC == NULL"))))) | ||
| 479 | #:configure-flags '("-DUSE_PAM=yes" | 483 | #:configure-flags '("-DUSE_PAM=yes" |
| 480 | "-DUSE_CONSOLEKIT=no") | 484 | "-DUSE_CONSOLEKIT=no") |
| 481 | #:tests? #f)) | 485 | #:tests? #f)) |
