summaryrefslogtreecommitdiff
path: root/gnu/packages/patches/elogind-glibc-2.27.patch
diff options
context:
space:
mode:
authorMark H Weaver <mhw@netris.org>2018-03-25 02:15:49 -0400
committerMark H Weaver <mhw@netris.org>2018-03-28 00:04:35 -0400
commitd4040f6e23f1777fdf5e402622edea94fa98d2be (patch)
tree26afa1a16e53096ab56eb7ba0610b724792fb892 /gnu/packages/patches/elogind-glibc-2.27.patch
parent78666a68a53750192a714e267f7608094920da49 (diff)
downloadguix-patches-d4040f6e23f1777fdf5e402622edea94fa98d2be.tar
guix-patches-d4040f6e23f1777fdf5e402622edea94fa98d2be.tar.gz
gnu: elogind: Fix build with glibc-2.27.
* gnu/packages/patches/elogind-glibc-2.27.patch: New file. * gnu/local.mk (dist_patch_DATA): Add it. * gnu/packages/freedesktop.scm (elogind)[source]: Add patch. [arguments]: Replace the bootstrap phase with what was previously the autogen phase.
Diffstat (limited to 'gnu/packages/patches/elogind-glibc-2.27.patch')
-rw-r--r--gnu/packages/patches/elogind-glibc-2.27.patch22
1 files changed, 22 insertions, 0 deletions
diff --git a/gnu/packages/patches/elogind-glibc-2.27.patch b/gnu/packages/patches/elogind-glibc-2.27.patch
new file mode 100644
index 0000000000..4ade587b5e
--- /dev/null
+++ b/gnu/packages/patches/elogind-glibc-2.27.patch
@@ -0,0 +1,22 @@
+Look for memfd_create in sys/mman.h instead of linux/memfd.h.
+Needed to build with glibc-2.27.
+
+--- a/configure.ac 1969-12-31 19:00:00.000000000 -0500
++++ b/configure.ac 2018-03-27 23:54:15.414589005 -0400
+@@ -360,7 +360,7 @@
+ # ------------------------------------------------------------------------------
+
+ AC_CHECK_HEADERS([sys/capability.h], [], [AC_MSG_ERROR([*** POSIX caps headers not found])])
+-AC_CHECK_HEADERS([linux/memfd.h], [], [])
++AC_CHECK_HEADERS([sys/mman.h], [], [])
+
+ AC_CHECK_HEADERS([printf.h], [have_printf_h=yes], [have_printf_h=no])
+ AS_IF([test x$have_printf_h = xyes], [
+@@ -395,6 +395,7 @@
+ [], [], [[
+ #include <sys/types.h>
+ #include <unistd.h>
++#include <sys/mman.h>
+ #include <sys/mount.h>
+ #include <fcntl.h>
+ #include <sched.h>