- add parted-workaround-windows7-gpt-implementation.patch

(bnc#781688)

OBS-URL: https://build.opensuse.org/package/show/Base:System/parted?expand=0&rev=67
This commit is contained in:
Petr Uzel 2012-09-27 13:49:43 +00:00 committed by Git OBS Bridge
parent 6253503a7b
commit 4173425efb
3 changed files with 22 additions and 0 deletions

View File

@ -0,0 +1,14 @@
bnc#781688
Index: parted-2.4/libparted/labels/gpt.c
===================================================================
--- parted-2.4.orig/libparted/labels/gpt.c
+++ parted-2.4/libparted/labels/gpt.c
@@ -488,7 +488,7 @@ _has_hybrid_pmbr (const PedDevice *dev)
if ((mbr.PartitionRecord[0].OSType == EFI_PMBR_OSTYPE_EFI) &&
(mbr.PartitionRecord[0].StartingLBA == PED_CPU_TO_LE32(1)) &&
- (mbr.PartitionRecord[0].SizeInLBA == PED_CPU_TO_LE32(efi_gpt_expected_size)))
+ ((mbr.PartitionRecord[0].SizeInLBA == PED_CPU_TO_LE32(efi_gpt_expected_size)) || (mbr.PartitionRecord[0].SizeInLBA == PED_CPU_TO_LE32(0xFFFFFFFF))))
/* pMBR is not hybrid */
has_hybrid_pmbr = 0;

View File

@ -1,3 +1,9 @@
-------------------------------------------------------------------
Thu Sep 27 13:40:56 UTC 2012 - puzel@suse.com
- add parted-workaround-windows7-gpt-implementation.patch
(bnc#781688)
-------------------------------------------------------------------
Fri Jul 27 09:14:44 UTC 2012 - aj@suse.de

View File

@ -46,6 +46,7 @@ Patch17: fix-nilfs2-probe-function.patch
Patch18: parted-fix-cciss-partition-naming.patch
Patch19: dummy-bootcode-only-for-x86.patch
Patch20: parted-stdio.h.patch
Patch21: parted-workaround-windows7-gpt-implementation.patch
Requires: /sbin/udevadm
BuildRequires: check-devel
BuildRequires: device-mapper-devel >= 1.02.33
@ -114,6 +115,7 @@ to develop applications that require these.
%patch18 -p1
%patch19 -p1
%patch20 -p1
%patch21 -p1
%build
export CFLAGS="%{optflags} `ncursesw6-config --cflags`"