Accepting request 626929 from home:sparschauer:branches:Base:System

libparted: Include <sys/sysmacros.h> for major() macro

OBS-URL: https://build.opensuse.org/request/show/626929
OBS-URL: https://build.opensuse.org/package/show/Base:System/parted?expand=0&rev=141
This commit is contained in:
Sebastian Parschauer 2018-08-01 15:15:42 +00:00 committed by Git OBS Bridge
parent bc4d4d481c
commit 995757fbd9
3 changed files with 32 additions and 0 deletions

23
libparted-sysmacros.patch Normal file
View File

@ -0,0 +1,23 @@
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.
Patch-mainline: v3.3
Git-commit: ba5e0451b51c983e40afd123b6e0d3eddb55e610
Since glibc 2.27 this header is required.
Acked-by: Sebastian Parschauer <sparschauer@suse.de>
---
libparted/arch/linux.c | 1 +
1 file changed, 1 insertion(+)
--- a/libparted/arch/linux.c
+++ b/libparted/arch/linux.c
@@ -42,6 +42,7 @@
#include <sys/file.h>
#include <scsi/scsi.h>
#include <assert.h>
+#include <sys/sysmacros.h>
#ifdef ENABLE_DEVICE_MAPPER
#include <libdevmapper.h>
#endif

View File

@ -1,3 +1,10 @@
-------------------------------------------------------------------
Wed Aug 1 14:49:47 UTC 2018 - sparschauer@suse.de
- libparted: Include <sys/sysmacros.h> for major() macro with
glibc >= 2.27
- add: libparted-sysmacros.patch
-------------------------------------------------------------------
Thu May 24 15:57:24 CEST 2018 - kukuk@suse.de

View File

@ -87,6 +87,7 @@ Patch58: parted-add-ignore-busy-option.patch
Patch59: parted-fix-resizepart-and-rm-command.patch
Patch60: libparted-use-BLKRRPART-only-when-needed.patch
Patch61: libparted-canonicalize-dev-md-paths.patch
Patch62: libparted-sysmacros.patch
# Fatresize
Patch100: parted-fatresize-autoconf.patch
Patch101: fatresize-fix-getting-dev-name.patch
@ -201,6 +202,7 @@ to develop applications that require these.
%patch59 -p1
%patch60 -p1
%patch61 -p1
%patch62 -p1
%patch100 -p1
%patch101 -p1
%patch150 -p1