guix-commits
[Top][All Lists]
Advanced

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

03/04: gnu: parted: Fix build with glibc >= 2.28.


From: Marius Bakke
Subject: 03/04: gnu: parted: Fix build with glibc >= 2.28.
Date: Sun, 26 Aug 2018 11:46:03 -0400 (EDT)

mbakke pushed a commit to branch core-updates
in repository guix.

commit 8d48f358e965536f01a2d9b1e51f74d428091b90
Author: Marius Bakke <address@hidden>
Date:   Sun Aug 26 16:20:04 2018 +0200

    gnu: parted: Fix build with glibc >= 2.28.
    
    * gnu/packages/patches/parted-glibc-compat.patch: New file.
    * gnu/local.mk (dist_patch_DATA): Register it.
    * gnu/packages/disk.scm (parted)[source](patches): New field.
---
 gnu/local.mk                                   |  1 +
 gnu/packages/disk.scm                          |  1 +
 gnu/packages/patches/parted-glibc-compat.patch | 17 +++++++++++++++++
 3 files changed, 19 insertions(+)

diff --git a/gnu/local.mk b/gnu/local.mk
index bacfc28..0a593fa 100644
--- a/gnu/local.mk
+++ b/gnu/local.mk
@@ -1009,6 +1009,7 @@ dist_patch_DATA =                                         
\
   %D%/packages/patches/p7zip-CVE-2016-9296.patch               \
   %D%/packages/patches/p7zip-CVE-2017-17969.patch              \
   %D%/packages/patches/p7zip-remove-unused-code.patch          \
+  %D%/packages/patches/parted-glibc-compat.patch               \
   %D%/packages/patches/patchelf-page-size.patch                        \
   %D%/packages/patches/patchelf-rework-for-arm.patch           \
   %D%/packages/patches/patchutils-xfail-gendiff-tests.patch    \
diff --git a/gnu/packages/disk.scm b/gnu/packages/disk.scm
index f1b3f26..34709b7 100644
--- a/gnu/packages/disk.scm
+++ b/gnu/packages/disk.scm
@@ -76,6 +76,7 @@
               (method url-fetch)
               (uri (string-append "mirror://gnu/parted/parted-"
                                   version ".tar.xz"))
+              (patches (search-patches "parted-glibc-compat.patch"))
               (sha256
                (base32
                 "1r3qpg3bhz37mgvp9chsaa3k0csby3vayfvz8ggsqz194af5i2w5"))))
diff --git a/gnu/packages/patches/parted-glibc-compat.patch 
b/gnu/packages/patches/parted-glibc-compat.patch
new file mode 100644
index 0000000..edf4afb
--- /dev/null
+++ b/gnu/packages/patches/parted-glibc-compat.patch
@@ -0,0 +1,17 @@
+Include <sys/sysmacros.h> for "major" and "minor".
+
+Taken from upstream:
+https://git.savannah.gnu.org/cgit/parted.git/commit/?id=ba5e0451b51c983e40afd123b6e0d3eddb55e610
+
+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



reply via email to

[Prev in Thread] Current Thread [Next in Thread]