[packages/gdisk] Up to 1.0.10
arekm
arekm at pld-linux.org
Thu Oct 29 08:34:29 CET 2026
commit 6c52dace97259b692800328bf2b12aa5221c9812
Author: Arkadiusz Miśkiewicz <arekm at maven.pl>
Date: Thu Oct 29 00:51:40 2026 +0100
Up to 1.0.10
gdisk.spec | 23 +++++++++++++++--------
gptfdisk-1.0.9-libuuid.patch | 37 -------------------------------------
gptfdisk-1.0.9-popt_segv.patch | 22 ----------------------
gptfdisk-utf8-4byte.patch | 15 +++++++++++++++
4 files changed, 30 insertions(+), 67 deletions(-)
---
diff --git a/gdisk.spec b/gdisk.spec
index cd2d2db..e3851b4 100644
--- a/gdisk.spec
+++ b/gdisk.spec
@@ -1,15 +1,18 @@
+#
+# Conditional build:
+%bcond_without tests # test suite
+#
Summary: An fdisk-like partitioning tool for GPT disks
Summary(pl.UTF-8): Podobne do fdiska narzędzie do partycjonowania dysków GPT
Name: gdisk
-Version: 1.0.9
-Release: 2
+Version: 1.0.10
+Release: 1
License: GPL v2
Group: Base
Source0: https://downloads.sourceforge.net/gptfdisk/gptfdisk-%{version}.tar.gz
-# Source0-md5: 01c11ecfa454096543562e3068530e01
-Patch0: gptfdisk-1.0.9-libuuid.patch
-Patch1: gptfdisk-1.0.9-popt_segv.patch
-URL: http://www.rodsbooks.com/gdisk/
+# Source0-md5: 1970269eb7a97560e238611524b7797a
+Patch0: gptfdisk-utf8-4byte.patch
+URL: https://www.rodsbooks.com/gdisk/
BuildRequires: libstdc++-devel
BuildRequires: libuuid-devel
BuildRequires: ncurses-devel
@@ -33,12 +36,16 @@ formatu GPT.
%prep
%setup -q -n gptfdisk-%{version}
%patch -P0 -p1
-%patch -P1 -p1
%build
%{__make} \
CXX="%{__cxx}" \
- CXXFLAGS="%{rpmcxxflags} %{rpmcppflags} -D_FILE_OFFSET_BITS=64"
+ CXXFLAGS="%{rpmcxxflags} %{rpmcppflags} -D_FILE_OFFSET_BITS=64" \
+ LDFLAGS="%{rpmldflags}"
+
+%if %{with tests}
+%{__make} test
+%endif
%install
rm -rf $RPM_BUILD_ROOT
diff --git a/gptfdisk-1.0.9-libuuid.patch b/gptfdisk-1.0.9-libuuid.patch
deleted file mode 100644
index e7a5f68..0000000
--- a/gptfdisk-1.0.9-libuuid.patch
+++ /dev/null
@@ -1,37 +0,0 @@
-From e67faca2c0ca955f56cbd22e90941cdcbdc12597 Mon Sep 17 00:00:00 2001
-From: Rod Smith <rodsmith at rodsbooks.com>
-Date: Sat, 16 Apr 2022 09:32:04 -0400
-Subject: [PATCH] Updated guid.cc to deal with minor change in libuuid
-
----
- NEWS | 3 +++
- guid.cc | 2 +-
- 2 files changed, 4 insertions(+), 1 deletion(-)
-
-diff --git a/NEWS b/NEWS
-index c7add56..3d90d9a 100644
---- a/NEWS
-+++ b/NEWS
-@@ -1,3 +1,6 @@
-+
-+- Updated guid.cc to deal with minor change in libuuid.
-+
- 1.0.9 (4/14/2022):
- ------------------
-
-diff --git a/guid.cc b/guid.cc
-index 1e73ab7..d3e4fd5 100644
---- a/guid.cc
-+++ b/guid.cc
-@@ -141,7 +141,7 @@ void GUIDData::Zero(void) {
- void GUIDData::Randomize(void) {
- int i, uuidGenerated = 0;
-
--#ifdef _UUID_UUID_H
-+#if defined (_UUID_UUID_H) || defined (_UL_LIBUUID_UUID_H)
- uuid_generate(uuidData);
- ReverseBytes(&uuidData[0], 4);
- ReverseBytes(&uuidData[4], 2);
---
-2.36.1
-
diff --git a/gptfdisk-1.0.9-popt_segv.patch b/gptfdisk-1.0.9-popt_segv.patch
deleted file mode 100644
index 470defd..0000000
--- a/gptfdisk-1.0.9-popt_segv.patch
+++ /dev/null
@@ -1,22 +0,0 @@
---- a/gptcl.cc
-+++ b/gptcl.cc
-@@ -156,9 +156,10 @@
-
- // Assume first non-option argument is the device filename....
- device = (char*) poptGetArg(poptCon);
-- poptResetContext(poptCon);
-
- if (device != NULL) {
-+ device = strdup(device);
-+ poptResetContext(poptCon);
- JustLooking(); // reset as necessary
- BeQuiet(); // Tell called functions to be less verbose & interactive
- if (LoadPartitions((string) device)) {
-@@ -498,6 +499,7 @@
- cerr << "Error encountered; not saving changes.\n";
- retval = 4;
- } // if
-+ free(device);
- } // if (device != NULL)
- poptFreeContext(poptCon);
- return retval;
diff --git a/gptfdisk-utf8-4byte.patch b/gptfdisk-utf8-4byte.patch
new file mode 100644
index 0000000..f4d0c10
--- /dev/null
+++ b/gptfdisk-utf8-4byte.patch
@@ -0,0 +1,15 @@
+Wrong second byte for 4-byte UTF-8 sequences: partition names with
+characters above U+FFFF were displayed as invalid UTF-8.
+https://sourceforge.net/p/gptfdisk/code/ci/0e13e907ced9981024d0bdec7e2dc1b2081c9cbe/
+
+--- a/gptpart.cc 2024-02-20 01:55:41.000000000 +0100
++++ b/gptpart.cc 2026-10-29 00:51:00.496666666 +0100
+@@ -131,7 +131,7 @@
+ } // if
+ else {
+ utf8 += (char) ( 0xf0 | ( uni >> 18 ) ) ;
+- utf8 += (char) ( 0xe0 | ( ( uni >> 12 ) & 0x3f ) ) ;
++ utf8 += (char) ( 0x80 | ( ( uni >> 12 ) & 0x3f ) ) ;
+ utf8 += (char) ( 0x80 | ( ( uni >> 6 ) & 0x3f ) ) ;
+ utf8 += (char) ( 0x80 | ( uni & 0x3f ) ) ;
+ } // if
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/gdisk.git/commitdiff/6c52dace97259b692800328bf2b12aa5221c9812
More information about the pld-cvs-commit
mailing list