SHA256
1
0
forked from pool/parted
OBS User unknown 2008-10-22 16:35:54 +00:00 committed by Git OBS Bridge
parent e062379e55
commit 6db9b44096
3 changed files with 27 additions and 1 deletions

View File

@ -0,0 +1,17 @@
diff -up ./libparted/labels/gpt.c.orig ./libparted/labels/gpt.c
--- ./libparted/labels/gpt.c.orig 2008-10-20 10:05:25.000000000 +0200
+++ ./libparted/labels/gpt.c 2008-10-20 10:35:34.000000000 +0200
@@ -674,11 +674,10 @@ _parse_header (PedDisk* disk, GuidPartit
parted invocation.
*/
- last_usable_if_grown
- = PED_CPU_TO_LE64 (disk->dev->length - 2 -
+ last_usable_if_grown = disk->dev->length - 2 -
((PedSector)(PED_LE32_TO_CPU(gpt->NumberOfPartitionEntries)) *
(PedSector)(PED_LE32_TO_CPU(gpt->SizeOfPartitionEntry)) /
- disk->dev->sector_size));
+ disk->dev->sector_size);
last_usable_min_default = disk->dev->length - 2 -
GPT_DEFAULT_PARTITION_ENTRY_ARRAY_SIZE / disk->dev->sector_size;

View File

@ -1,3 +1,8 @@
-------------------------------------------------------------------
Mon Oct 20 11:27:45 CEST 2008 - puzel@suse.cz
- fix improper data conversion (bnc#435702)
------------------------------------------------------------------- -------------------------------------------------------------------
Tue Oct 7 10:55:11 CEST 2008 - puzel@suse.cz Tue Oct 7 10:55:11 CEST 2008 - puzel@suse.cz

View File

@ -26,7 +26,7 @@ License: GPL v2 or later
Group: System/Filesystems Group: System/Filesystems
Summary: GNU partitioner Summary: GNU partitioner
Version: 1.8.8 Version: 1.8.8
Release: 87 Release: 88
Source0: %{name}-%{version}.tar.bz2 Source0: %{name}-%{version}.tar.bz2
Patch: always-resize-part.dif Patch: always-resize-part.dif
Patch1: parted-type.patch Patch1: parted-type.patch
@ -46,6 +46,7 @@ Patch53: largest_partition_number.patch
Patch54: parted-gpt-mbr-sync.patch Patch54: parted-gpt-mbr-sync.patch
Patch55: parted-fdasd-compile-fixes Patch55: parted-fdasd-compile-fixes
Patch56: parted-no-inttypes-include Patch56: parted-no-inttypes-include
Patch57: fix-improper-data-conversion.patch
BuildRoot: %{_tmppath}/%{name}-%{version}-build BuildRoot: %{_tmppath}/%{name}-%{version}-build
Url: http://www.gnu.org/software/parted/ Url: http://www.gnu.org/software/parted/
PreReq: %install_info_prereq PreReq: %install_info_prereq
@ -101,6 +102,7 @@ Authors:
%patch54 %patch54
%patch55 -p1 %patch55 -p1
%patch56 -p1 %patch56 -p1
%patch57 -p1
%build %build
AUTOPOINT=true autoreconf --force --install AUTOPOINT=true autoreconf --force --install
@ -145,6 +147,8 @@ rm -rf "$RPM_BUILD_ROOT"
%{_libdir}/*.so %{_libdir}/*.so
%changelog %changelog
* Mon Oct 20 2008 puzel@suse.cz
- fix improper data conversion (bnc#435702)
* Tue Oct 07 2008 puzel@suse.cz * Tue Oct 07 2008 puzel@suse.cz
- updated largest_partition_number.patch (bnc#428992) - updated largest_partition_number.patch (bnc#428992)
* Thu Aug 28 2008 kukuk@suse.de * Thu Aug 28 2008 kukuk@suse.de