diff --git a/fix-spurious-warnings.patch b/fix-spurious-warnings.patch deleted file mode 100644 index 4518217..0000000 --- a/fix-spurious-warnings.patch +++ /dev/null @@ -1,33 +0,0 @@ -Commit f063fe08e424c99f133df18bf9dce49c851bcb0a: -Fixed bug that caused spurious warnings about the partition table -header claiming an invalid size of partition entries when reading -some MBR disks. -See also https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=981231 - ---- a/gpt.cc -+++ b/gpt.cc -@@ -1042,11 +1042,19 @@ - *crcOk = CheckHeaderCRC(&tempHeader); - - if (tempHeader.sizeOfPartitionEntries != sizeof(GPTPart)) { -- cerr << "Warning: Partition table header claims that the size of partition table\n"; -- cerr << "entries is " << tempHeader.sizeOfPartitionEntries << " bytes, but this program "; -- cerr << " supports only " << sizeof(GPTPart) << "-byte entries.\n"; -- cerr << "Adjusting accordingly, but partition table may be garbage.\n"; -- tempHeader.sizeOfPartitionEntries = sizeof(GPTPart); -+ // Print the below warning only if the CRC is OK -- but correct the -+ // problem either way. The warning is printed only on a valid CRC -+ // because otherwise this warning will display inappropriately when -+ // reading MBR disks. If the CRC is invalid, then a warning about -+ // that will be shown later, so the user will still know that -+ // something is wrong. -+ if (*crcOk) { -+ cerr << "Warning: Partition table header claims that the size of partition table\n"; -+ cerr << "entries is " << tempHeader.sizeOfPartitionEntries << " bytes, but this program "; -+ cerr << " supports only " << sizeof(GPTPart) << "-byte entries.\n"; -+ cerr << "Adjusting accordingly, but partition table may be garbage.\n"; -+ } -+ tempHeader.sizeOfPartitionEntries = sizeof(GPTPart); - } - - if (allOK && (numParts != tempHeader.numParts) && *crcOk) { diff --git a/gptfdisk-1.0.6.tar.gz b/gptfdisk-1.0.6.tar.gz deleted file mode 100644 index 25cfeca..0000000 --- a/gptfdisk-1.0.6.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:ddc551d643a53f0bd4440345d3ae32c49b04a797e9c01036ea460b6bb4168ca8 -size 207017 diff --git a/gptfdisk-1.0.8.tar.gz b/gptfdisk-1.0.8.tar.gz new file mode 100644 index 0000000..c34f8ae --- /dev/null +++ b/gptfdisk-1.0.8.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:95d19856f004dabc4b8c342b2612e8d0a9eebdd52004297188369f152e9dc6df +size 208958 diff --git a/gptfdisk.changes b/gptfdisk.changes index 322a7d0..4365397 100644 --- a/gptfdisk.changes +++ b/gptfdisk.changes @@ -1,3 +1,36 @@ +------------------------------------------------------------------- +Thu Jun 10 08:23:55 UTC 2021 - Paolo Stivanin + +- Update to 1.0.8 + * Fixed double byte swap operation on writes of partition name data on + big-endian systems; this is in addition to the double byte swap fix on + reading partition label data fixed in 1.0.7. (Thanks to Erik Larsson for + both fixes.) + * Added feature to gdisk and sgdisk to enable swapping the byte order of + partition names, so as to correct disks already affected by the preceding + bug. This option is 'b' on the experts' menu in gdisk and + -b/--byte-swap-name in sgdisk. This seems advanced/obscure enough that I + don't want to clutter cgdisk's menu with this option, so I haven't added + it there. + * Added type code for the Barebox boot loader (0xbb00; + 4778ED65-BF42-45FA-9C5B-287A1DC4AAB1). + * Fixed bug that caused spurious warnings about the partition table + header claiming an invalid size of partition entries when reading + some MBR disks. + * Added ARM64 as an architecture for the Mac builds of gdisk and fixparts. + The official GPT fdisk binaries of these files for macOS are now + "universal" x86-64/ARM64 binaries, so they will run natively on the new M1 + (ARM64) Macs. The sgdisk and cgdisk binaries, though, remain built only + for x86-64, because they rely on libraries that are not easily built in + "universal" form. + * Fixed double byte swap operation on partition label data on big-endian + CPUs. This resulted in partition names becoming gibberish on such CPUs. + * Added three new type codes: + - 0x0701 - Microsoft Storage Replica + - 0x0702 - ArcaOS Type 1 + - 0x8401 - Storage Performance Development Kit (SPDK) block device +- Drop fix-spurious-warnings.patch + ------------------------------------------------------------------- Tue Feb 16 00:22:32 UTC 2021 - Manfred Schwarb diff --git a/gptfdisk.spec b/gptfdisk.spec index b85d157..f387fe7 100644 --- a/gptfdisk.spec +++ b/gptfdisk.spec @@ -17,7 +17,7 @@ Name: gptfdisk -Version: 1.0.6 +Version: 1.0.8 Release: 0 Summary: GPT partitioning and MBR repair software License: GPL-2.0-only @@ -25,7 +25,6 @@ Group: System/Base URL: http://rodsbooks.com/gdisk Source: https://downloads.sf.net/%name/%name-%version.tar.gz -Patch0: fix-spurious-warnings.patch BuildRequires: gcc-c++ BuildRequires: ncurses-devel BuildRequires: pkgconfig(popt)