Script 'mail_helper' called by obssrc Hello community, here is the log from the commit of package gptfdisk for openSUSE:Factory checked in at 2022-10-03 13:44:43 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/gptfdisk (Old) and /work/SRC/openSUSE:Factory/.gptfdisk.new.2275 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "gptfdisk" Mon Oct 3 13:44:43 2022 rev:24 rq:1007401 version:1.0.9 Changes: -------- --- /work/SRC/openSUSE:Factory/gptfdisk/gptfdisk.changes 2022-08-30 14:48:43.368004495 +0200 +++ /work/SRC/openSUSE:Factory/.gptfdisk.new.2275/gptfdisk.changes 2022-10-03 13:44:59.845380501 +0200 @@ -1,0 +2,6 @@ +Fri Sep 30 11:17:17 UTC 2022 - Fabian Vogt <fv...@suse.com> + +- Add patch to fix sgdisk with popt 1.19: + * 0001-Fix-failure-crash-of-sgdisk-when-compiled-with-lates.patch + +------------------------------------------------------------------- New: ---- 0001-Fix-failure-crash-of-sgdisk-when-compiled-with-lates.patch ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ gptfdisk.spec ++++++ --- /var/tmp/diff_new_pack.4Ruetm/_old 2022-10-03 13:45:00.341381592 +0200 +++ /var/tmp/diff_new_pack.4Ruetm/_new 2022-10-03 13:45:00.345381601 +0200 @@ -23,8 +23,10 @@ License: GPL-2.0-only Group: System/Base URL: http://rodsbooks.com/gdisk - +#Git-Clone: https://git.code.sf.net/p/gptfdisk/code gptfdisk-code +#Git-Web: https://sourceforge.net/p/gptfdisk/code/ci/master/tree/ Source: https://downloads.sf.net/%name/%name-%version.tar.gz +Patch1: 0001-Fix-failure-crash-of-sgdisk-when-compiled-with-lates.patch BuildRequires: gcc-c++ BuildRequires: ncurses-devel BuildRequires: pkgconfig(popt) ++++++ 0001-Fix-failure-crash-of-sgdisk-when-compiled-with-lates.patch ++++++ >From 5d5e76d369a412bfb3d2cebb5fc0a7509cef878d Mon Sep 17 00:00:00 2001 From: Rod Smith <rodsm...@rodsbooks.com> Date: Fri, 15 Apr 2022 18:10:14 -0400 Subject: [PATCH] Fix failure & crash of sgdisk when compiled with latest popt (commit 740; presumably eventually release 1.19) --- NEWS | 8 ++++++++ gptcl.cc | 2 +- support.h | 2 +- 3 files changed, 10 insertions(+), 2 deletions(-) diff --git a/NEWS b/NEWS index c7add56..9e153fd 100644 --- a/NEWS +++ b/NEWS @@ -1,3 +1,11 @@ +1.0.10 (?/??/2022): +------------------- + +- Fixed problem that caused sgdisk to crash with errors about being unable + to read the disk's partition table when compiled with the latest popt + (commit 740, which is pre-release as I type; presumably version 1.19 and + later once released). + 1.0.9 (4/14/2022): ------------------ diff --git a/gptcl.cc b/gptcl.cc index 34c9421..0d578eb 100644 --- a/gptcl.cc +++ b/gptcl.cc @@ -155,7 +155,7 @@ int GPTDataCL::DoOptions(int argc, char* argv[]) { } // while // Assume first non-option argument is the device filename.... - device = (char*) poptGetArg(poptCon); + device = strdup((char*) poptGetArg(poptCon)); poptResetContext(poptCon); if (device != NULL) { diff --git a/support.h b/support.h index 8ba9ad1..f91f1bc 100644 --- a/support.h +++ b/support.h @@ -8,7 +8,7 @@ #include <stdlib.h> #include <string> -#define GPTFDISK_VERSION "1.0.9" +#define GPTFDISK_VERSION "1.0.9.1" #if defined (__FreeBSD__) || defined (__FreeBSD_kernel__) || defined (__APPLE__) // Darwin (Mac OS) & FreeBSD: disk IOCTLs are different, and there is no lseek64 -- 2.36.1