[gnome-build-meta/jjardon/freedesktop-sdk-18.08.29_gnome_3_30: 4/4] core-deps/parted: backport a patch to build with glibc 2.28



commit 1719846ac43f6bbe8889e5a832ac84cd9ae1d045
Author: Abderrahim Kitouni <akitouni gnome org>
Date:   Fri Mar 29 19:38:41 2019 +0100

    core-deps/parted: backport a patch to build with glibc 2.28

 elements/core-deps/parted.bst        |  2 ++
 files/parted/include-sysmacros.patch | 22 ++++++++++++++++++++++
 2 files changed, 24 insertions(+)
---
diff --git a/elements/core-deps/parted.bst b/elements/core-deps/parted.bst
index 5b9f818e..43b3ab1e 100644
--- a/elements/core-deps/parted.bst
+++ b/elements/core-deps/parted.bst
@@ -2,6 +2,8 @@ kind: autotools
 sources:
 - kind: tar
   url: ftp_gnu_org:parted/parted-3.2.tar.xz
+- kind: patch
+  path: files/parted/include-sysmacros.patch
   ref: 858b589c22297cacdf437f3baff6f04b333087521ab274f7ab677cb8c6bb78e4
 depends:
 - core-deps/lvm2.bst
diff --git a/files/parted/include-sysmacros.patch b/files/parted/include-sysmacros.patch
new file mode 100644
index 00000000..82ca3e48
--- /dev/null
+++ b/files/parted/include-sysmacros.patch
@@ -0,0 +1,22 @@
+From ba5e0451b51c983e40afd123b6e0d3eddb55e610 Mon Sep 17 00:00:00 2001
+From: "Richard W.M. Jones" <rjones redhat com>
+Date: Sat, 24 Mar 2018 17:37:02 +0000
+Subject: linux: Include <sys/sysmacros.h> for major() macro.
+
+Since glibc 2.27 this header is required.
+---
+ libparted/arch/linux.c | 1 +
+ 1 file changed, 1 insertion(+)
+
+diff --git a/libparted/arch/linux.c b/libparted/arch/linux.c
+index 31b98ab..7e86b51 100644
+--- a/libparted/arch/linux.c
++++ b/libparted/arch/linux.c
+@@ -41,6 +41,7 @@
+ #include <sys/utsname.h>        /* for uname() */
+ #include <scsi/scsi.h>
+ #include <assert.h>
++#include <sys/sysmacros.h>
+ #ifdef ENABLE_DEVICE_MAPPER
+ #include <libdevmapper.h>
+ #endif


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