[vlc-commits] [Git][videolan/vlc][master] contrib: nfs: update to 8.0.1

Steve Lhomme (@robUx4) gitlab at videolan.org
Thu Nov 19 07:51:13 UTC 2026



Steve Lhomme pushed to branch master at VideoLAN / VLC


Commits:
8b8413df by Steve Lhomme at 2026-11-19T07:07:37+00:00
contrib: nfs: update to 8.0.1

The 6.x.x branch doesn't seem to be maintained and 7.x.x/8.x.x just got
security releases.
All the patches we used have been merged upstream.

- - - - -


11 changed files:

- − contrib/src/nfs/0001-cant-have-win32.h-referenced-from-a-header-we-instal.patch
- − contrib/src/nfs/0001-cmake-export-the-necessary-library-in-the-pkg-config.patch
- − contrib/src/nfs/0002-pthread-and-win32-need-to-be-exclusive-in-multithrea.patch
- − contrib/src/nfs/0003-win32-define-struct-timezone-for-non-mingw-w32.patch
- − contrib/src/nfs/0004-win32-fix-build-with-MSVC.patch
- − contrib/src/nfs/0005-win32-don-t-use-pthread-on-Windows.patch
- − contrib/src/nfs/0007-tls-add-support-for-kernel-without-TLS_1_3_VERSION.patch
- − contrib/src/nfs/0008-tls-define-TLS_RX-if-it-s-missing.patch
- − contrib/src/nfs/0009-win32-stop-read-loop-when-transport-replaced.patch
- contrib/src/nfs/SHA512SUMS
- contrib/src/nfs/rules.mak


Changes:

=====================================
contrib/src/nfs/0001-cant-have-win32.h-referenced-from-a-header-we-instal.patch deleted
=====================================
@@ -1,28 +0,0 @@
-From b713ca0fb7272b5a22d86ad0e823dbc40cc22a59 Mon Sep 17 00:00:00 2001
-From: Ronnie Sahlberg <ronniesahlberg at gmail.com>
-Date: Mon, 16 Dec 2024 18:49:59 +1000
-Subject: [PATCH 1/5] cant have win32.h referenced from a header we install
-
-Signed-off-by: Ronnie Sahlberg <ronniesahlberg at gmail.com>
----
- include/nfsc/libnfs-raw.h | 4 ----
- 1 file changed, 4 deletions(-)
-
-diff --git a/include/nfsc/libnfs-raw.h b/include/nfsc/libnfs-raw.h
-index 80d31f4..0bd88a2 100644
---- a/include/nfsc/libnfs-raw.h
-+++ b/include/nfsc/libnfs-raw.h
-@@ -39,10 +39,6 @@
- #include "ps3_compat.h"
- #endif
- 
--#ifdef WIN32
--#include <win32/win32_compat.h>
--#endif
--
- #include <stdint.h>
- 
- #if defined(HAVE_SYS_UIO_H) || (defined(__APPLE__) && defined(__MACH__))
--- 
-2.45.0.windows.1
-


=====================================
contrib/src/nfs/0001-cmake-export-the-necessary-library-in-the-pkg-config.patch deleted
=====================================
@@ -1,59 +0,0 @@
-From 8615adc07b66c78a12211324ff0992afe4be79cf Mon Sep 17 00:00:00 2001
-From: Steve Lhomme <robux4 at ycbcr.xyz>
-Date: Mon, 16 Dec 2024 11:46:16 +0100
-Subject: [PATCH] cmake: export the necessary library in the pkg-config file
-
-That includes gnutls on Linux if it's used.
-
-Co-authored-by: Khalid Masum <khalid.masum.92 at gmail.com>
----
- CMakeLists.txt        | 11 ++++++++++-
- cmake/libnfs.pc.cmake |  4 ++--
- 2 files changed, 12 insertions(+), 3 deletions(-)
-
-diff --git a/CMakeLists.txt b/CMakeLists.txt
-index 1b94d2e..aa64acb 100644
---- a/CMakeLists.txt
-+++ b/CMakeLists.txt
-@@ -86,7 +86,7 @@ if(CMAKE_SYSTEM_NAME STREQUAL Linux)
-     else()
-       message(STATUS "Using ${GNUTLS_LIBRARIES}")
-       add_definitions(-DHAVE_TLS)
--      list(APPEND SYSTEM_LIBRARIES ${GNUTLS_LIBRARIES})
-+      list(APPEND REQUIRED_LIBRARIES "gnutls")
-       add_subdirectory(tls)
-     endif()
-   endif()
-@@ -155,6 +155,15 @@ install(FILES cmake/FindNFS.cmake
-         DESTINATION ${INSTALL_CMAKE_DIR})
- 
- # handle pc-config files
-+set(PKG_LIBLIST "")
-+foreach(LIB ${SYSTEM_LIBRARIES})
-+  if(IS_ABSOLUTE ${LIB} AND EXISTS ${LIB})
-+    list(APPEND PKG_LIBLIST "${LIB}")
-+  else()
-+    list(APPEND PKG_LIBLIST "-l${LIB}")
-+  endif()
-+endforeach()
-+string(REPLACE ";" " " PKG_REQUIRED_LIBRARIES "${REQUIRED_LIBRARIES}")
- configure_file(cmake/libnfs.pc.cmake
-                ${CMAKE_CURRENT_BINARY_DIR}/libnfs.pc @ONLY)
- 
-diff --git a/cmake/libnfs.pc.cmake b/cmake/libnfs.pc.cmake
-index 8a4e11e..1699df7 100644
---- a/cmake/libnfs.pc.cmake
-+++ b/cmake/libnfs.pc.cmake
-@@ -8,7 +8,7 @@ includedir=@INSTALL_INC_DIR@
- Name: libnfs
- Description: libnfs is a client library for accessing NFS shares over a network.
- Version: @PROJECT_VERSION@
--Requires:
-+Requires: @PKG_REQUIRED_LIBRARIES@
- Conflicts:
--Libs: -L${libdir} -lnfs
-+Libs: -L${libdir} -lnfs @PKG_LIBLIST@
- Cflags: -I${includedir}
--- 
-2.45.1.windows.1
-


=====================================
contrib/src/nfs/0002-pthread-and-win32-need-to-be-exclusive-in-multithrea.patch deleted
=====================================
@@ -1,268 +0,0 @@
-From 9d67b60f6ea777264b9b0db46a90e7c0a52d428c Mon Sep 17 00:00:00 2001
-From: Ronnie Sahlberg <ronniesahlberg at gmail.com>
-Date: Mon, 16 Dec 2024 19:01:06 +1000
-Subject: [PATCH 2/5] pthread and win32 need to be exclusive in multithread.c
-
-Signed-off-by: Ronnie Sahlberg <ronniesahlberg at gmail.com>
----
- lib/multithreading.c | 238 +++++++++++++++++++++----------------------
- 1 file changed, 118 insertions(+), 120 deletions(-)
-
-diff --git a/lib/multithreading.c b/lib/multithreading.c
-index b04cd5b..2dc4177 100644
---- a/lib/multithreading.c
-+++ b/lib/multithreading.c
-@@ -54,7 +54,124 @@
- 
- #ifdef HAVE_MULTITHREADING
- 
--#ifdef HAVE_PTHREAD
-+#ifdef WIN32
-+nfs_tid_t nfs_mt_get_tid(void)
-+{
-+    return GetCurrentThreadId();
-+}
-+static void* nfs_mt_service_thread(void* arg)
-+{
-+    struct nfs_context* nfs = (struct nfs_context*)arg;
-+    struct pollfd pfd;
-+    int revents;
-+    int ret;
-+
-+    nfs->rpc->multithreading_enabled = 1;
-+
-+    while (nfs->rpc->multithreading_enabled) {
-+        pfd.fd = nfs_get_fd(nfs);
-+        pfd.events = nfs_which_events(nfs);
-+        pfd.revents = 0;
-+
-+        ret = poll(&pfd, 1, 0);
-+        if (ret < 0) {
-+            nfs_set_error(nfs, "Poll failed");
-+            revents = -1;
-+        }
-+        else {
-+            revents = pfd.revents;
-+        }
-+        if (nfs_service(nfs, revents) < 0) {
-+            if (revents != -1)
-+                nfs_set_error(nfs, "nfs_service failed");
-+        }
-+    }
-+    return NULL;
-+}
-+
-+static DWORD WINAPI service_thread_init(LPVOID lpParam)
-+{
-+    HANDLE hStdout;
-+    struct nfs_context* nfs;
-+
-+    hStdout = GetStdHandle(STD_OUTPUT_HANDLE);
-+    if (hStdout == INVALID_HANDLE_VALUE) {
-+        return 1;
-+    }
-+    nfs = (struct nfs_context *)lpParam;
-+    nfs_mt_service_thread(nfs);
-+    return 0;
-+}
-+
-+int nfs_mt_service_thread_start(struct nfs_context* nfs)
-+{
-+    nfs->nfsi->service_thread = CreateThread(NULL, 1024*1024, service_thread_init, nfs, 0, NULL);
-+    if (nfs->nfsi->service_thread == NULL) {
-+        nfs_set_error(nfs, "Failed to start service thread");
-+        return -1;
-+    }
-+    while (nfs->rpc->multithreading_enabled == 0) {
-+        Sleep(100);
-+    }
-+    return 0;
-+}
-+
-+void nfs_mt_service_thread_stop(struct nfs_context* nfs)
-+{
-+    nfs->rpc->multithreading_enabled = 0;
-+    while (WaitForSingleObject(nfs->nfsi->service_thread, INFINITE) != WAIT_OBJECT_0);
-+}
-+
-+int nfs_mt_mutex_init(libnfs_mutex_t* mutex)
-+{
-+    *mutex = CreateSemaphoreA(NULL, 1, 1, NULL);
-+    return 0;
-+}
-+
-+int nfs_mt_mutex_destroy(libnfs_mutex_t* mutex)
-+{
-+    CloseHandle(*mutex);
-+    return 0;
-+}
-+
-+int nfs_mt_mutex_lock(libnfs_mutex_t* mutex)
-+{
-+    while (WaitForSingleObject(*mutex, INFINITE) != WAIT_OBJECT_0);
-+    return 0;
-+}
-+
-+int nfs_mt_mutex_unlock(libnfs_mutex_t* mutex)
-+{
-+    ReleaseSemaphore(*mutex, 1, NULL);
-+    return 0;
-+}
-+
-+int nfs_mt_sem_init(libnfs_sem_t* sem, int value)
-+{
-+    *sem = CreateSemaphoreA(NULL, 0, 16, NULL);
-+    return 0;
-+}
-+
-+int nfs_mt_sem_destroy(libnfs_sem_t* sem)
-+{
-+    CloseHandle(*sem);
-+    return 0;
-+}
-+
-+int nfs_mt_sem_post(libnfs_sem_t* sem)
-+{
-+    ReleaseSemaphore(*sem, 1, NULL);
-+    return 0;
-+}
-+
-+int nfs_mt_sem_wait(libnfs_sem_t* sem)
-+{
-+    while (WaitForSingleObject(*sem, INFINITE) != WAIT_OBJECT_0);
-+    return 0;
-+}
-+
-+#elif HAVE_PTHREAD /* WIN32 */
-+
- #include <unistd.h>
- #include <sys/syscall.h>
- 
-@@ -226,124 +343,5 @@ int nfs_mt_sem_wait(libnfs_sem_t *sem)
- 
- #endif /* HAVE_PTHREAD */
- 
--#ifdef WIN32
--nfs_tid_t nfs_mt_get_tid(void)
--{
--    return GetCurrentThreadId();
--}
--static void* nfs_mt_service_thread(void* arg)
--{
--    struct nfs_context* nfs = (struct nfs_context*)arg;
--    struct pollfd pfd;
--    int revents;
--    int ret;
--
--    nfs->rpc->multithreading_enabled = 1;
--
--    while (nfs->rpc->multithreading_enabled) {
--        pfd.fd = nfs_get_fd(nfs);
--        pfd.events = nfs_which_events(nfs);
--        pfd.revents = 0;
--
--        ret = poll(&pfd, 1, 0);
--        if (ret < 0) {
--            nfs_set_error(nfs, "Poll failed");
--            revents = -1;
--        }
--        else {
--            revents = pfd.revents;
--        }
--        if (nfs_service(nfs, revents) < 0) {
--            if (revents != -1)
--                nfs_set_error(nfs, "nfs_service failed");
--        }
--    }
--    return NULL;
--}
--
--static DWORD WINAPI service_thread_init(LPVOID lpParam)
--{
--    HANDLE hStdout;
--    struct nfs_context* nfs;
--
--    hStdout = GetStdHandle(STD_OUTPUT_HANDLE);
--    if (hStdout == INVALID_HANDLE_VALUE) {
--        return 1;
--    }
--    nfs = (struct nfs_context *)lpParam;
--    nfs_mt_service_thread(nfs);
--    return 0;
--}
--
--int nfs_mt_service_thread_start(struct nfs_context* nfs)
--{
--    nfs->nfsi->service_thread = CreateThread(NULL, 1024*1024, service_thread_init, nfs, 0, NULL);
--    if (nfs->nfsi->service_thread == NULL) {
--        nfs_set_error(nfs, "Failed to start service thread");
--        return -1;
--    }
--    while (nfs->rpc->multithreading_enabled == 0) {
--        Sleep(100);
--    }
--    return 0;
--}
--
--void nfs_mt_service_thread_stop(struct nfs_context* nfs)
--{
--    nfs->rpc->multithreading_enabled = 0;
--    while (WaitForSingleObject(nfs->nfsi->service_thread, INFINITE) != WAIT_OBJECT_0);
--}
--
--int nfs_mt_mutex_init(libnfs_mutex_t* mutex)
--{
--    *mutex = CreateSemaphoreA(NULL, 1, 1, NULL);
--    return 0;
--}
--
--int nfs_mt_mutex_destroy(libnfs_mutex_t* mutex)
--{
--    CloseHandle(*mutex);
--    return 0;
--}
--
--int nfs_mt_mutex_lock(libnfs_mutex_t* mutex)
--{
--    while (WaitForSingleObject(*mutex, INFINITE) != WAIT_OBJECT_0);
--    return 0;
--}
--
--int nfs_mt_mutex_unlock(libnfs_mutex_t* mutex)
--{
--    ReleaseSemaphore(*mutex, 1, NULL);
--    return 0;
--}
--
--int nfs_mt_sem_init(libnfs_sem_t* sem, int value)
--{
--    *sem = CreateSemaphoreA(NULL, 0, 16, NULL);
--    return 0;
--}
--
--int nfs_mt_sem_destroy(libnfs_sem_t* sem)
--{
--    CloseHandle(*sem);
--    return 0;
--}
--
--int nfs_mt_sem_post(libnfs_sem_t* sem)
--{
--    ReleaseSemaphore(*sem, 1, NULL);
--    return 0;
--}
--
--int nfs_mt_sem_wait(libnfs_sem_t* sem)
--{
--    while (WaitForSingleObject(*sem, INFINITE) != WAIT_OBJECT_0);
--    return 0;
--}
--
--#endif /* WIN32 */
--
--
- #endif /* HAVE_MULTITHREADING */
- 
--- 
-2.45.0.windows.1
-


=====================================
contrib/src/nfs/0003-win32-define-struct-timezone-for-non-mingw-w32.patch deleted
=====================================
@@ -1,53 +0,0 @@
-From 42e0694555f80ed93ff2013580d805fa1d928ff7 Mon Sep 17 00:00:00 2001
-From: Steve Lhomme <robux4 at ycbcr.xyz>
-Date: Mon, 16 Dec 2024 10:01:27 +0100
-Subject: [PATCH 3/5] win32: define struct timezone for non-mingw-w32
-
-The compiler complains if the structure used in the .c file is defined after an
-anonymous version was used in the header.
----
- include/win32/win32_compat.h | 8 +++++++-
- win32/win32_compat.c         | 6 ------
- 2 files changed, 7 insertions(+), 7 deletions(-)
-
-diff --git a/include/win32/win32_compat.h b/include/win32/win32_compat.h
-index 70214b7..e11bf70 100755
---- a/include/win32/win32_compat.h
-+++ b/include/win32/win32_compat.h
-@@ -150,9 +150,15 @@ struct pollfd {
- int     getpid(void);
- int     win32_inet_pton(int af, const char * src, void * dst);
- int     win32_poll(struct pollfd *fds, unsigned int nfsd, int timeout);
--int     win32_gettimeofday(struct timeval *tv, struct timezone *tz);
- #ifdef __MINGW32__
- # define win32_gettimeofday mingw_gettimeofday
-+#else
-+struct timezone
-+{
-+  int  tz_minuteswest; /* minutes W of Greenwich */
-+  int  tz_dsttime;     /* type of dst correction */
-+};
-+int     win32_gettimeofday(struct timeval *tv, struct timezone *tz);
- #endif
- 
- #define DllExport
-diff --git a/win32/win32_compat.c b/win32/win32_compat.c
-index 3654788..fb5f0aa 100644
---- a/win32/win32_compat.c
-+++ b/win32/win32_compat.c
-@@ -157,12 +157,6 @@ int win32_poll(struct pollfd *fds, unsigned int nfds, int timo)
- #endif
-  
- #ifndef __MINGW32__
--struct timezone 
--{
--  int  tz_minuteswest; /* minutes W of Greenwich */
--  int  tz_dsttime;     /* type of dst correction */
--};
-- 
- int win32_gettimeofday(struct timeval *tv, struct timezone *tz)
- {
-   FILETIME ft;
--- 
-2.45.0.windows.1
-


=====================================
contrib/src/nfs/0004-win32-fix-build-with-MSVC.patch deleted
=====================================
@@ -1,42 +0,0 @@
-From 7f4d51641ae8383d51779f104ae4f7ba121b75f6 Mon Sep 17 00:00:00 2001
-From: Steve Lhomme <robux4 at ycbcr.xyz>
-Date: Mon, 16 Dec 2024 10:06:20 +0100
-Subject: [PATCH 4/5] win32: fix build with MSVC
-
-strndup doesn't exist, but there's a compat version for that.
----
- include/win32/win32_compat.h | 2 +-
- lib/nfs_v4.c                 | 4 ++++
- 2 files changed, 5 insertions(+), 1 deletion(-)
-
-diff --git a/include/win32/win32_compat.h b/include/win32/win32_compat.h
-index e11bf70..09f8eb1 100755
---- a/include/win32/win32_compat.h
-+++ b/include/win32/win32_compat.h
-@@ -163,7 +163,7 @@ int     win32_gettimeofday(struct timeval *tv, struct timezone *tz);
- 
- #define DllExport
- 
--#ifdef __MINGW32__
-+#if defined(__MINGW32__) || defined(_MSC_VER)
- char* libnfs_strndup(const char *s, size_t n);
- #define strndup libnfs_strndup
- #endif
-diff --git a/lib/nfs_v4.c b/lib/nfs_v4.c
-index 31d89d7..dbbea95 100644
---- a/lib/nfs_v4.c
-+++ b/lib/nfs_v4.c
-@@ -88,6 +88,10 @@
- #include <pwd.h>
- #endif
- 
-+#ifdef WIN32
-+#include <win32/win32_compat.h>
-+#endif
-+
- #include <ctype.h>
- #include <stdio.h>
- #include <stdarg.h>
--- 
-2.45.0.windows.1
-


=====================================
contrib/src/nfs/0005-win32-don-t-use-pthread-on-Windows.patch deleted
=====================================
@@ -1,49 +0,0 @@
-From e540715f492e7cb13cf811838327f54831832389 Mon Sep 17 00:00:00 2001
-From: Steve Lhomme <robux4 at ycbcr.xyz>
-Date: Mon, 16 Dec 2024 10:12:01 +0100
-Subject: [PATCH 5/5] win32: don't use pthread on Windows
-
-mingw-w64 has winpthread which is detected as available. But on Windows
-there is custom threading code to use. We should only use one of them.
-And the win32 API doesn't require an extra -lpthread to link.
-
-Fixes #506
----
- include/libnfs-multithreading.h | 14 ++++++--------
- 1 file changed, 6 insertions(+), 8 deletions(-)
-
-diff --git a/include/libnfs-multithreading.h b/include/libnfs-multithreading.h
-index e3caa97..305ad95 100644
---- a/include/libnfs-multithreading.h
-+++ b/include/libnfs-multithreading.h
-@@ -29,7 +29,12 @@ extern "C" {
- 
- #ifdef HAVE_MULTITHREADING
- 
--#ifdef HAVE_PTHREAD
-+#ifdef WIN32
-+typedef HANDLE libnfs_thread_t;
-+typedef HANDLE libnfs_mutex_t;
-+typedef HANDLE libnfs_sem_t;
-+typedef DWORD nfs_tid_t;
-+#elif defined(HAVE_PTHREAD)
- #include <pthread.h>
- typedef pthread_t libnfs_thread_t;
- typedef pthread_mutex_t libnfs_mutex_t;
-@@ -48,13 +53,6 @@ typedef pid_t nfs_tid_t;
- #endif
- #endif /* HAVE_PTHREAD */
- 
--#ifdef WIN32
--typedef HANDLE libnfs_thread_t;
--typedef HANDLE libnfs_mutex_t;
--typedef HANDLE libnfs_sem_t;
--typedef DWORD nfs_tid_t;
--#endif
--
- nfs_tid_t nfs_mt_get_tid(void);
- int nfs_mt_mutex_init(libnfs_mutex_t *mutex);
- int nfs_mt_mutex_destroy(libnfs_mutex_t *mutex);
--- 
-2.45.0.windows.1
-


=====================================
contrib/src/nfs/0007-tls-add-support-for-kernel-without-TLS_1_3_VERSION.patch deleted
=====================================
@@ -1,50 +0,0 @@
-From 10a4fe89df7d2780a2e8711d908568f34b5e7d50 Mon Sep 17 00:00:00 2001
-From: Steve Lhomme <robux4 at ycbcr.xyz>
-Date: Fri, 16 Jan 2026 11:55:17 +0100
-Subject: [PATCH 7/8] tls: add support for kernel without TLS_1_3_VERSION
-
-810ef615eac7b5e8c8da9619016e0d8cc18c81ea assumed Kernel 5.10+ would be used.
----
- tls/ktls.c | 20 ++++++++++++++++----
- 1 file changed, 16 insertions(+), 4 deletions(-)
-
-diff --git a/tls/ktls.c b/tls/ktls.c
-index ae277d7..eeba9d0 100644
---- a/tls/ktls.c
-+++ b/tls/ktls.c
-@@ -125,16 +125,28 @@ static int ktls_setsockopt(int sock, bool read, const void *info, socklen_t info
- #define tls12_crypto_info_AES_CCM_128 		tls12_crypto_info_aes_ccm_128
- #define tls12_crypto_info_CHACHA20_POLY1305	tls12_crypto_info_chacha20_poly1305
- 
--#define GENERATE_SET_CRYPTO_INFO(CIPHER) 				\
--static int ktls_set_##CIPHER##_info(gnutls_session_t session) 		\
--{ 									\
-+#ifdef TLS_1_3_VERSION
-+#define GENERATE_TLS_INFO(CIPHER) 				\
- 	const bool is_tls12 = 						\
- 		(gnutls_protocol_get_version(session) == GNUTLS_TLS1_2);\
- 	struct tls12_crypto_info_##CIPHER info = { 			\
- 		.info.version           = (is_tls12 ? TLS_1_2_VERSION	\
- 						    : TLS_1_3_VERSION), \
- 		.info.cipher_type       = TLS_CIPHER_##CIPHER, 		\
--	}; 								\
-+	};
-+#else /* !TLS_1_3_VERSION */
-+#define GENERATE_TLS_INFO(CIPHER) 				\
-+	const bool is_tls12 =  1;\
-+	struct tls12_crypto_info_##CIPHER info = { 			\
-+		.info.version           = TLS_1_2_VERSION, \
-+		.info.cipher_type       = TLS_CIPHER_##CIPHER, 		\
-+	};
-+#endif /* !TLS_1_3_VERSION */
-+
-+#define GENERATE_SET_CRYPTO_INFO(CIPHER) 				\
-+static int ktls_set_##CIPHER##_info(gnutls_session_t session) 		\
-+{ 									\
-+	GENERATE_TLS_INFO(CIPHER) \	
- 	unsigned char seq_number[12]; 					\
- 	gnutls_datum_t cipher_key; 					\
- 	gnutls_datum_t mac_key; 					\
--- 
-2.52.0.windows.1
-


=====================================
contrib/src/nfs/0008-tls-define-TLS_RX-if-it-s-missing.patch deleted
=====================================
@@ -1,27 +0,0 @@
-From 2904ad8fb49c070b8350f7b2dfad36f25b35609b Mon Sep 17 00:00:00 2001
-From: Steve Lhomme <robux4 at ycbcr.xyz>
-Date: Tue, 27 Jan 2026 10:32:36 +0100
-Subject: [PATCH 8/8] tls: define TLS_RX if it's missing
-
----
- tls/ktls.c | 4 ++++
- 1 file changed, 4 insertions(+)
-
-diff --git a/tls/ktls.c b/tls/ktls.c
-index eeba9d0..cb88a78 100644
---- a/tls/ktls.c
-+++ b/tls/ktls.c
-@@ -93,6 +93,10 @@ static bool tls_is_ktls_enabled(gnutls_session_t session _U_, bool read _U_)
- }
- #endif
- 
-+#ifndef TLS_RX
-+#define TLS_RX 2
-+#endif
-+
- static int ktls_setsockopt(int sock, bool read, const void *info, socklen_t infolen)
- {
- 	const int ret = setsockopt(sock, SOL_TLS, read ? TLS_RX : TLS_TX, info, infolen);
--- 
-2.52.0.windows.1
-


=====================================
contrib/src/nfs/0009-win32-stop-read-loop-when-transport-replaced.patch deleted
=====================================
@@ -1,50 +0,0 @@
-From 6680b11bbf4516c5718d14eaf3468f4d91cbdefd Tue Aug 04 11:45:11 2026
-From: jaypitts23 <jayalanpitts at gmail.com>
-Date: Tue, 04 Aug 2026 11:45:11 +0000
-Subject: [PATCH] win32: stop rpc_read_from_socket() when the transport is
- replaced mid-read
-
----
- lib/socket.c | 24 ++++++++++++++++++++++++
- 1 file changed, 24 insertions(+)
-
---- a/lib/socket.c	2026-07-26 13:31:24.953045209 +0000
-+++ b/lib/socket.c	2026-07-26 13:31:57.107691689 +0000
-@@ -555,6 +555,16 @@
- 	ssize_t count;
-         int pos;
-         uint32_t inbuf_size;
-+        /* A reply callback (e.g. the portmap GETPORT handler) can disconnect
-+         * the socket we are reading on and open a new connection while we are
-+         * still inside this read loop. If the loop then iterates and calls
-+         * recv() on the freshly created, not-yet-connected socket, Windows
-+         * returns WSAENOTCONN (not mapped to EAGAIN), which is treated as a
-+         * fatal read error and aborts the mount. Snapshot the transport and,
-+         * once a PDU callback has replaced it, stop reading and let the next
-+         * mainloop iteration service the new socket. */
-+        int saved_fd = rpc->fd;
-+        int saved_is_connected = rpc->is_connected;
- 
- 	assert(rpc->magic == RPC_CONTEXT_MAGIC);
-         if (rpc->socket_disabled) {
-@@ -841,6 +851,17 @@
-                                                       "Closing socket");
-                                         return -1;
-                                 }
-+                                /* The PDU callback replaced the transport
-+                                 * (fd changed and/or is_connected dropped to
-+                                 * 0); stop reading the now-stale connection.
-+                                 * Checking is_connected too avoids missing the
-+                                 * case where Windows recycles the fd number. */
-+                                if (rpc->fd != saved_fd ||
-+                                    rpc->is_connected != saved_is_connected) {
-+                                        rpc->inpos = 0;
-+                                        rpc->state = READ_RM;
-+                                        return 0;
-+                                }
- #ifdef HAVE_LIBKRB5
-                                 /*
-                                  * Since we don't do zero-copy reads for
-
---
-2.39.2


=====================================
contrib/src/nfs/SHA512SUMS
=====================================
@@ -1 +1 @@
-539790ab98aac7b2f25755b745d1f5e016518f1adb3748b8c58df187048bc31e091915d59e6359bb95c49dd986361cbbf2536edcda02598b0fac236762b61a46  libnfs-6.0.2.tar.gz
+6ce4450f28e163bc04b32954ef2094bfa464733e08520026821ce366946de501dae22aff073e729145d6450213317eda84f0078b47d3356b1d98d7dfee23e922  libnfs-8.0.1.tar.gz


=====================================
contrib/src/nfs/rules.mak
=====================================
@@ -1,5 +1,5 @@
 # NFS
-NFS_VERSION := 6.0.2
+NFS_VERSION := 8.0.1
 NFS_URL := $(GITHUB)/sahlberg/libnfs/archive/libnfs-$(NFS_VERSION).tar.gz
 
 ifdef BUILD_NETWORK
@@ -21,15 +21,6 @@ $(TARBALLS)/libnfs-$(NFS_VERSION).tar.gz:
 nfs: UNPACK_DIR=libnfs-libnfs-$(NFS_VERSION)
 nfs: libnfs-$(NFS_VERSION).tar.gz .sum-nfs
 	$(UNPACK)
-	$(APPLY) $(SRC)/nfs/0001-cant-have-win32.h-referenced-from-a-header-we-instal.patch
-	$(APPLY) $(SRC)/nfs/0002-pthread-and-win32-need-to-be-exclusive-in-multithrea.patch
-	$(APPLY) $(SRC)/nfs/0003-win32-define-struct-timezone-for-non-mingw-w32.patch
-	$(APPLY) $(SRC)/nfs/0004-win32-fix-build-with-MSVC.patch
-	$(APPLY) $(SRC)/nfs/0005-win32-don-t-use-pthread-on-Windows.patch
-	$(APPLY) $(SRC)/nfs/0001-cmake-export-the-necessary-library-in-the-pkg-config.patch
-	$(APPLY) $(SRC)/nfs/0007-tls-add-support-for-kernel-without-TLS_1_3_VERSION.patch
-	$(APPLY) $(SRC)/nfs/0008-tls-define-TLS_RX-if-it-s-missing.patch
-	$(APPLY) $(SRC)/nfs/0009-win32-stop-read-loop-when-transport-replaced.patch
 	$(MOVE)
 
 .nfs: nfs toolchain.cmake



View it on GitLab: https://code.videolan.org/videolan/vlc/-/commit/8b8413df6168f72b4579844a6ec26e188b225291

-- 
View it on GitLab: https://code.videolan.org/videolan/vlc/-/commit/8b8413df6168f72b4579844a6ec26e188b225291
You're receiving this email because of your account on code.videolan.org. Manage all notifications: https://code.videolan.org/-/profile/notifications | Help: https://code.videolan.org/help




More information about the vlc-commits mailing list