diff --git a/0001-add-support-of-gpt_sync_mbr.patch b/0001-add-support-of-gpt_sync_mbr.patch index a6ed0bbb3267019006b3cb07f565cc1c1cdaa463..494c6ca320d6bd5e1309cb071998acfa2b200481 100644 --- a/0001-add-support-of-gpt_sync_mbr.patch +++ b/0001-add-support-of-gpt_sync_mbr.patch @@ -5,6 +5,13 @@ Subject: [PATCH] add-support-of-gpt_sync_mbr Hybrid MBR support is support by adding a new type of 'gpt_sync_mbr' for mklabel command. This feature is migrated from the path of "parted-gpt-mbr-sync.patch" of SUSE 12 SP1. + +Compilation Error: +gpt.c:1345:50: error: 'GPTPartitionData' {aka 'struct _GPTPartitionData'} +has no member named 'boot' +This code has been refactored.'boot' is removed. +So we should call ped_partition_get_flag to instead. +Signed-off-by: Hongtao Zhang --- libparted/labels/gpt.c | 246 ++++++++++++++++++++++++++++++++++++++++++++++++- 1 file changed, 242 insertions(+), 4 deletions(-) @@ -268,7 +275,7 @@ index 4f922b2..b2dad71 100644 + pmbr->PartitionRecord[i].EndSector = 0xFF; + pmbr->PartitionRecord[i].EndTrack = 0xFF; + pmbr->PartitionRecord[i].StartingLBA = PED_CPU_TO_LE32 (_part_32bitmax(part->geom.start)); -+ if(((GPTPartitionData*)part->disk_specific)->boot) ++ if(ped_partition_get_flag(part, PED_PARTITION_BOOT)) + pmbr->PartitionRecord[i].BootIndicator = 0x80; + pmbr->PartitionRecord[i].SizeInLBA = PED_CPU_TO_LE32 (_part_32bitmax(part->geom.end - part->geom.start + 1)); + } diff --git a/parted-3.4.tar.xz b/parted-3.4.tar.xz deleted file mode 100644 index c32a4f4cc0a39d3da9603168117ee598b8063a05..0000000000000000000000000000000000000000 Binary files a/parted-3.4.tar.xz and /dev/null differ diff --git a/parted-3.5.tar.xz b/parted-3.5.tar.xz new file mode 100644 index 0000000000000000000000000000000000000000..ed2c86c36fcc2d0fbadbc919a162258933ddd558 Binary files /dev/null and b/parted-3.5.tar.xz differ diff --git a/parted.spec b/parted.spec index 98a8dca69b99db225cb4859e1f43d5f85c331a91..d99a5060c4f165eeb3375e22e3b5cbbcf271cf9b 100644 --- a/parted.spec +++ b/parted.spec @@ -15,8 +15,8 @@ Summary: The GNU disk partition manipulation program Name: parted -Version: 3.4 -Release: 4 +Version: 3.5 +Release: 1 URL: https://www.gnu.org/software/parted/ Source0: ftp://ftp.gnu.org/gnu/%{name}/%{name}-%{version}.tar.xz License: GPLv3+ @@ -119,6 +119,9 @@ fi %{_libdir}/pkgconfig/libparted*.pc %changelog +* Wed Oct 26 2022 Hongtao Zhang - 3.5-1 +- update to 3.5 + * Thu Mar 3 2022 Li Jinlin - 3.4-4 - fix memory leak in libparted