Fix for missing major/minor() macros in glibc 2.27.
This commit is contained in:
parent
639e36f434
commit
749ef2e667
25
0001-linux-Include-sys-sysmacros.h-for-major-macro.patch
Normal file
25
0001-linux-Include-sys-sysmacros.h-for-major-macro.patch
Normal file
@ -0,0 +1,25 @@
|
|||||||
|
From 2d572685e56e46fa10ea25c46185a17e38cb156c 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: [PATCH] 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
|
||||||
|
--
|
||||||
|
2.15.1
|
||||||
|
|
@ -4,7 +4,7 @@
|
|||||||
Summary: The GNU disk partition manipulation program
|
Summary: The GNU disk partition manipulation program
|
||||||
Name: parted
|
Name: parted
|
||||||
Version: 3.2
|
Version: 3.2
|
||||||
Release: 31%{?dist}
|
Release: 32%{?dist}
|
||||||
License: GPLv3+
|
License: GPLv3+
|
||||||
Group: Applications/System
|
Group: Applications/System
|
||||||
URL: http://www.gnu.org/software/parted
|
URL: http://www.gnu.org/software/parted
|
||||||
@ -96,6 +96,10 @@ Patch0079: 0079-atari.c-Drop-xlocale.h-1476934.patch
|
|||||||
Patch0080: 0080-libparted-labels-link-with-libiconv-if-needed.patch
|
Patch0080: 0080-libparted-labels-link-with-libiconv-if-needed.patch
|
||||||
Patch0081: 0081-Add-support-for-NVDIMM-devices.patch
|
Patch0081: 0081-Add-support-for-NVDIMM-devices.patch
|
||||||
|
|
||||||
|
# Fix for missing major/minor() macros in glibc 2.27.
|
||||||
|
# Sent upstream 2018-03-24.
|
||||||
|
Patch0099: 0001-linux-Include-sys-sysmacros.h-for-major-macro.patch
|
||||||
|
|
||||||
|
|
||||||
Buildroot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
Buildroot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
||||||
BuildRequires: gcc
|
BuildRequires: gcc
|
||||||
@ -231,6 +235,9 @@ fi
|
|||||||
|
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Sat Mar 24 2018 Richard W.M. Jones <rjones@redhat.com> - 3.2-32
|
||||||
|
- Fix for missing major/minor() macros in glibc 2.27.
|
||||||
|
|
||||||
* Mon Feb 19 2018 Brian C. Lane <bcl@redhat.com> - 3.2-31
|
* Mon Feb 19 2018 Brian C. Lane <bcl@redhat.com> - 3.2-31
|
||||||
- Add gcc BuildRequires for future minimal buildroot support
|
- Add gcc BuildRequires for future minimal buildroot support
|
||||||
- Remove %clean section
|
- Remove %clean section
|
||||||
|
Loading…
Reference in New Issue
Block a user