[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
03/04: gnu: spacefm: Fix build against glibc 2.28.
From: |
guix-commits |
Subject: |
03/04: gnu: spacefm: Fix build against glibc 2.28. |
Date: |
Fri, 18 Jan 2019 19:26:45 -0500 (EST) |
civodul pushed a commit to branch master
in repository guix.
commit 9a0bc7b5aa863eecf1d224d2e976b42e78170d40
Author: Ludovic Courtès <address@hidden>
Date: Fri Jan 18 22:48:04 2019 +0100
gnu: spacefm: Fix build against glibc 2.28.
* gnu/packages/lxde.scm (spacefm)[source](modules, snippet): New fields.
---
gnu/packages/lxde.scm | 14 ++++++++++++--
1 file changed, 12 insertions(+), 2 deletions(-)
diff --git a/gnu/packages/lxde.scm b/gnu/packages/lxde.scm
index 1f32ec3..a5720ce 100644
--- a/gnu/packages/lxde.scm
+++ b/gnu/packages/lxde.scm
@@ -6,7 +6,7 @@
;;; Copyright © 2017 Brendan Tildesley <address@hidden>
;;; Copyright © 2018 Tobias Geerinckx-Rice <address@hidden>
;;; Copyright © 2018 Ison111 <address@hidden>
-;;; Copyright © 2018 Ludovic Courtès <address@hidden>
+;;; Copyright © 2018, 2019 Ludovic Courtès <address@hidden>
;;; Copyright © 2018 Ricardo Wurmus <address@hidden>
;;;
;;; This file is part of GNU Guix.
@@ -249,7 +249,17 @@ with freedesktop.org standard.")
version ".tar.gz"))
(sha256
(base32
- "1jg7xfyr7kihjnalxp8wxyb9qjk8hqf5l36rp3s0lvkpmpyakppy"))
+ "1jg7xfyr7kihjnalxp8wxyb9qjk8hqf5l36rp3s0lvkpmpyakppy"))
+ (modules '((guix build utils)))
+ (snippet
+ '(begin
+ (substitute* "src/main.c"
+ (("#include <sys/types\\.h>" all)
+ ;; Add missing include for 'major' and 'minor' with glibc
+ ;; >= 2.28.
+ (string-append all "\n"
+ "#include <sys/sysmacros.h>\n")))
+ #t))
(file-name (string-append name "-" version ".tar.gz"))))
(build-system gnu-build-system)
(native-inputs `(("pkg-config" ,pkg-config)