diff options
| author | Artyom V. Poptsov <poptsov.artyom@gmail.com> | 2025-12-07 23:43:50 +0300 |
|---|---|---|
| committer | Artyom V. Poptsov <poptsov.artyom@gmail.com> | 2025-12-07 23:51:30 +0300 |
| commit | 0494da64db4dbc16b0594d7be6c544ef35af27fd (patch) | |
| tree | a6953519d38a19f3a0ce22b09aa3eeb136826fc8 | |
| parent | 9aa22e6451d465d81977981a0a90e0d21ea84815 (diff) | |
gnu: i3lock-blur: Fix build.
* gnu/packages/wm.scm (i3lock-blur): Fix build with gcc-14.
[native-inputs]: Replace automake with automake-1.16.5.
* gnu/packages/patches/i3lock-blur-fix-build-on-gcc-10.patch: New file.
* gnu/local.mk (dist_patch_DATA): Register it.
Change-Id: I2115b05d22e57242a85f54b2ac1a195e3fb863d0
| -rw-r--r-- | gnu/local.mk | 1 | ||||
| -rw-r--r-- | gnu/packages/patches/i3lock-blur-fix-build-on-gcc-10.patch | 31 | ||||
| -rw-r--r-- | gnu/packages/wm.scm | 10 |
3 files changed, 40 insertions, 2 deletions
diff --git a/gnu/local.mk b/gnu/local.mk index 7a6d044d9a2..0d84b62cf26 100644 --- a/gnu/local.mk +++ b/gnu/local.mk | |||
| @@ -1593,6 +1593,7 @@ dist_patch_DATA = \ | |||
| 1593 | %D%/packages/patches/hurd-rumpdisk-no-hd.patch \ | 1593 | %D%/packages/patches/hurd-rumpdisk-no-hd.patch \ |
| 1594 | %D%/packages/patches/hurd-startup.patch \ | 1594 | %D%/packages/patches/hurd-startup.patch \ |
| 1595 | %D%/packages/patches/hwloc-1-test-btrfs.patch \ | 1595 | %D%/packages/patches/hwloc-1-test-btrfs.patch \ |
| 1596 | %D%/packages/patches/i3lock-blur-fix-build-on-gcc-10.patch \ | ||
| 1596 | %D%/packages/patches/i7z-gcc-10.patch \ | 1597 | %D%/packages/patches/i7z-gcc-10.patch \ |
| 1597 | %D%/packages/patches/icecat-adjust-mozilla-desktop.patch \ | 1598 | %D%/packages/patches/icecat-adjust-mozilla-desktop.patch \ |
| 1598 | %D%/packages/patches/icecat-makeicecat.patch \ | 1599 | %D%/packages/patches/icecat-makeicecat.patch \ |
diff --git a/gnu/packages/patches/i3lock-blur-fix-build-on-gcc-10.patch b/gnu/packages/patches/i3lock-blur-fix-build-on-gcc-10.patch new file mode 100644 index 00000000000..198908b7141 --- /dev/null +++ b/gnu/packages/patches/i3lock-blur-fix-build-on-gcc-10.patch | |||
| @@ -0,0 +1,31 @@ | |||
| 1 | From ec8fe0e7f7d78bf445602ed517efd5c324bb32f7 Mon Sep 17 00:00:00 2001 | ||
| 2 | From: Sergei Trofimovich <slyich@gmail.com> | ||
| 3 | Date: Sun, 15 May 2022 10:36:29 +0100 | ||
| 4 | Subject: [PATCH] fix build on gcc-10 (-fno-common) | ||
| 5 | |||
| 6 | gcc-10 changed the default from -fcommon to fno-common: | ||
| 7 | https://gcc.gnu.org/PR85678 | ||
| 8 | |||
| 9 | As a result build fails as: | ||
| 10 | |||
| 11 | ld: i3lock-unlock_indicator.o:(.bss+0xc): multiple definition of | ||
| 12 | `input_position'; i3lock-i3lock.o:(.bss+0x3c): first defined here | ||
| 13 | |||
| 14 | The change turned one of definitions into declaration. | ||
| 15 | --- | ||
| 16 | unlock_indicator.c | 2 +- | ||
| 17 | 1 file changed, 1 insertion(+), 1 deletion(-) | ||
| 18 | |||
| 19 | diff --git a/unlock_indicator.c b/unlock_indicator.c | ||
| 20 | index 9ef0b48..34e151b 100644 | ||
| 21 | --- a/unlock_indicator.c | ||
| 22 | +++ b/unlock_indicator.c | ||
| 23 | @@ -36,7 +36,7 @@ extern bool debug_mode; | ||
| 24 | |||
| 25 | /* The current position in the input buffer. Useful to determine if any | ||
| 26 | * characters of the password have already been entered or not. */ | ||
| 27 | -int input_position; | ||
| 28 | +extern int input_position; | ||
| 29 | |||
| 30 | /* The lock window. */ | ||
| 31 | extern xcb_window_t win; | ||
diff --git a/gnu/packages/wm.scm b/gnu/packages/wm.scm index 4cb20440cea..6e9d3ab0c50 100644 --- a/gnu/packages/wm.scm +++ b/gnu/packages/wm.scm | |||
| @@ -83,6 +83,7 @@ | |||
| 83 | ;;; Copyright © 2025 Ricardo Wurmus <rekado@elephly.net> | 83 | ;;; Copyright © 2025 Ricardo Wurmus <rekado@elephly.net> |
| 84 | ;;; Copyright © 2025 Andrew Wong <wongandj@icloud.com> | 84 | ;;; Copyright © 2025 Andrew Wong <wongandj@icloud.com> |
| 85 | ;;; Copyright © 2025 Hugo Buddelmeijer <hugo@buddelmeijer.nl> | 85 | ;;; Copyright © 2025 Hugo Buddelmeijer <hugo@buddelmeijer.nl> |
| 86 | ;;; Copyright © 2025 Artyom V. Poptsov <poptsov.artyom@gmail.com> | ||
| 86 | ;;; | 87 | ;;; |
| 87 | ;;; This file is part of GNU Guix. | 88 | ;;; This file is part of GNU Guix. |
| 88 | ;;; | 89 | ;;; |
| @@ -719,10 +720,15 @@ Despite the name it should work with any X11 window manager.") | |||
| 719 | (file-name (git-file-name name version)) | 720 | (file-name (git-file-name name version)) |
| 720 | (sha256 | 721 | (sha256 |
| 721 | (base32 | 722 | (base32 |
| 722 | "1bd5nrlga5g1sz1f64gnc3dqy8yfrr4q1ss59krymbpxa1hhf55c")))) | 723 | "1bd5nrlga5g1sz1f64gnc3dqy8yfrr4q1ss59krymbpxa1hhf55c")) |
| 724 | (patches | ||
| 725 | ;; Pull patch pending upstream inclusion for "-fno-common" | ||
| 726 | ;; toolchain support: | ||
| 727 | ;; <https://github.com/karulont/i3lock-blur/pull/22> | ||
| 728 | (search-patches "i3lock-blur-fix-build-on-gcc-10.patch")))) | ||
| 723 | (build-system gnu-build-system) | 729 | (build-system gnu-build-system) |
| 724 | (native-inputs | 730 | (native-inputs |
| 725 | (list pkg-config automake autoconf)) | 731 | (list pkg-config automake-1.16.5 autoconf)) |
| 726 | (inputs | 732 | (inputs |
| 727 | (list cairo | 733 | (list cairo |
| 728 | mesa | 734 | mesa |
