Package: gdisk Version: 1.0.9-1 Severity: important Tags: patch upstream X-Debbugs-Cc: ja...@french.id.au
Due to an update to libuuid, gdisk fails to find the library and is using fallback UUID generation which may have incompatibility issues: Warning! Unable to generate a proper UUID! Creating an improper one as a last resort! Windows 7 may crash if you save this partition table! This has been fixed upstream in commit 6a8416cbd12d55f882bb751993b94f72d338d96f the patch applies cleanly against 1.0.9 guid.cc. Ref: https://sourceforge.net/p/gptfdisk/code/ci/6a8416cbd12d55f882bb751993b94f72d338d96f/ I suggest that the upstream patch be included in Debian's package until 1.10 is released and packaged. -- System Information: Debian Release: bookworm/sid APT prefers testing APT policy: (500, 'testing') Architecture: amd64 (x86_64) Foreign Architectures: i386 Kernel: Linux 5.17.0-1-amd64 (SMP w/8 CPU threads; PREEMPT) Kernel taint flags: TAINT_PROPRIETARY_MODULE, TAINT_OOT_MODULE, TAINT_UNSIGNED_MODULE Locale: LANG=en_AU.UTF-8, LC_CTYPE=en_AU.UTF-8 (charmap=UTF-8), LANGUAGE not set Shell: /bin/sh linked to /bin/dash Init: systemd (via /run/systemd/system) LSM: AppArmor: enabled Versions of packages gdisk depends on: ii libc6 2.33-7 ii libgcc-s1 12.1.0-1 ii libncursesw6 6.3+20220423-2 ii libpopt0 1.18-3 ii libstdc++6 12.1.0-1 ii libtinfo6 6.3+20220423-2 Versions of packages gdisk recommends: ii groff-base 1.22.4-8 gdisk suggests no packages. -- no debconf information
--- a/guid.cc +++ b/guid.cc @@ -141,7 +141,7 @@ 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);