about summary refs log tree commit diff
path: root/pkgs/tools/system/gptfdisk/uuid.patch
diff options
context:
space:
mode:
authorIzumi Raine <63145238+IzumiRaine@users.noreply.github.com>2022-09-14 17:48:47 +0200
committerehmry <ehmry@posteo.net>2022-09-14 21:28:55 -0500
commit288a708031cbe396847c89ee4213596242a12520 (patch)
treefc39cf91e47221f242bb816d5a5c849ee2a6b9e1 /pkgs/tools/system/gptfdisk/uuid.patch
parent302b1d05db31ae2eaf7d5456fd260df8b9e7ab97 (diff)
downloadnixlib-288a708031cbe396847c89ee4213596242a12520.tar
nixlib-288a708031cbe396847c89ee4213596242a12520.tar.gz
nixlib-288a708031cbe396847c89ee4213596242a12520.tar.bz2
nixlib-288a708031cbe396847c89ee4213596242a12520.tar.lz
nixlib-288a708031cbe396847c89ee4213596242a12520.tar.xz
nixlib-288a708031cbe396847c89ee4213596242a12520.tar.zst
nixlib-288a708031cbe396847c89ee4213596242a12520.zip
gptfdisk 1.0.9: add patch to fix UUID generation
Diffstat (limited to 'pkgs/tools/system/gptfdisk/uuid.patch')
-rw-r--r--pkgs/tools/system/gptfdisk/uuid.patch11
1 files changed, 11 insertions, 0 deletions
diff --git a/pkgs/tools/system/gptfdisk/uuid.patch b/pkgs/tools/system/gptfdisk/uuid.patch
new file mode 100644
index 000000000000..110c3d106b43
--- /dev/null
+++ b/pkgs/tools/system/gptfdisk/uuid.patch
@@ -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);