contrib: fix mkdir permissions on Windows for gnutls

This effectively restores a previously removed patch, thought to
be unnecessary (removed in cbba52ef when bumping gnutls). The issue
is fixed in a later version of gnutls, which opendht is not yet
ready to use.

Change-Id: I6d07028f7c5f95803776d1413c7e6a8411902fef
This commit is contained in:
Andreas Traczyk
2025-03-12 15:01:22 -04:00
parent 9edaf4df2a
commit 1b155312ea
2 changed files with 26 additions and 0 deletions

View File

@ -0,0 +1,25 @@
From bad7151d1ae625a87e0ed05a2a7f5af25417bab2 Mon Sep 17 00:00:00 2001
From: Andreas Traczyk <andreas.traczyk@savoirfairelinux.com>
Date: Wed, 12 Mar 2025 14:47:10 -0400
Subject: [PATCH] fix mkdir permissions on Windows
---
SMP/unistd.h | 2 ++
1 file changed, 2 insertions(+)
diff --git a/SMP/unistd.h b/SMP/unistd.h
index b54d4be1..eb712c95 100644
--- a/SMP/unistd.h
+++ b/SMP/unistd.h
@@ -27,6 +27,8 @@
# include_next <unistd.h>
#else
+#define mkdir(path, mode) mkdir(path)
+
#include <stdlib.h>
#include <process.h>
#include <direct.h>
--
2.34.1

View File

@ -17,6 +17,7 @@
"git init",
"git remote add origin https://github.com/ShiftMediaProject/gnutls.git || true",
"git fetch origin --depth=1 --tags && git reset --hard 3.8.3",
"git apply ../../src/gnutls/0001-fix-mkdir-permissions-on-Windows.patch",
"git submodule update --init --recursive --depth=1 gnulib devel/libtasn1"
]
}