gptfdisk 1.0.9: add patch to fix UUID generation
This commit is contained in:
parent
302b1d05db
commit
288a708031
|
@ -11,6 +11,13 @@ stdenv.mkDerivation rec {
|
|||
sha256 = "sha256-2v6tJpP6646Ll4MrI0B/btWzIZvBeE9ILdhVd04tUMI=";
|
||||
};
|
||||
|
||||
patches = [
|
||||
# fix UUID generation (from upstream but not yet released):
|
||||
# https://sourceforge.net/p/gptfdisk/code/ci/6a8416cbd12d55f882bb751993b94f72d338d96f/
|
||||
# https://www.mail-archive.com/debian-bugs-dist@lists.debian.org/msg1853985.html
|
||||
./uuid.patch
|
||||
];
|
||||
|
||||
postPatch = ''
|
||||
patchShebangs gdisk_test.sh
|
||||
'' + lib.optionalString stdenv.isDarwin ''
|
||||
|
|
11
pkgs/tools/system/gptfdisk/uuid.patch
Normal file
11
pkgs/tools/system/gptfdisk/uuid.patch
Normal file
|
@ -0,0 +1,11 @@
|
|||
--- 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);
|
Loading…
Reference in a new issue