public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/vlc] epel9-next: Backport MR #6527 to support libnfs 6+
@ 2026-07-20 18:06 Adam Williamson
0 siblings, 0 replies; only message in thread
From: Adam Williamson @ 2026-07-20 18:06 UTC (permalink / raw)
To: git-commits
A new commit has been pushed.
Repo : rpms/vlc
Branch : epel9-next
Commit : 11c2eec2ba8f296c8db5b50bfc524b55dffce3ed
Author : Adam Williamson <awilliam@redhat.com>
Date : 2025-01-23T10:20:52-08:00
Stats : +48/-0 in 2 file(s)
URL : https://src.fedoraproject.org/rpms/vlc/c/11c2eec2ba8f296c8db5b50bfc524b55dffce3ed?branch=epel9-next
Log:
Backport MR #6527 to support libnfs 6+
libnfs 6 changes some API we build against. This patch from
upstream adapts to the new API (while maintaining support for the
old one, so it can even be merged ahead of the libnfs bump).
Signed-off-by: Adam Williamson <awilliam@redhat.com>
---
diff --git a/6527.patch b/6527.patch
new file mode 100644
index 0000000..1c386fa
--- /dev/null
+++ b/6527.patch
@@ -0,0 +1,46 @@
+From a945944c2d50cacfacdd5b16d4ea5e7b4766a9fc Mon Sep 17 00:00:00 2001
+From: Steve Lhomme <robux4@ycbcr.xyz>
+Date: Mon, 16 Dec 2024 09:28:55 +0100
+Subject: [PATCH] nfs: fix libnfs API v2 support
+
+Introduced in libnfs 6.0.0.
+
+Co-authored-by: ronnie sahlberg <ronniesahlberg@gmail.com>
+Co-authored-by: Thomas Guillem <thomas@gllm.fr>
+---
+ modules/access/nfs.c | 9 ++++++++-
+ 1 file changed, 8 insertions(+), 1 deletion(-)
+
+diff --git a/modules/access/nfs.c b/modules/access/nfs.c
+index f164cda86499..3510c3fe1f14 100644
+--- a/modules/access/nfs.c
++++ b/modules/access/nfs.c
+@@ -188,7 +188,8 @@ nfs_read_cb(int i_status, struct nfs_context *p_nfs, void *p_data,
+ else
+ {
+ p_sys->res.read.i_len = i_status;
+- memcpy(p_sys->res.read.p_buf, p_data, i_status);
++ if (p_sys->res.read.p_buf != NULL && p_data != NULL)
++ memcpy(p_sys->res.read.p_buf, p_data, i_status);
+ }
+ }
+
+@@ -208,9 +209,15 @@ FileRead(stream_t *p_access, void *p_buf, size_t i_len)
+ return 0;
+
+ p_sys->res.read.i_len = 0;
++#ifdef LIBNFS_API_V2
++ p_sys->res.read.p_buf = NULL;
++ if (nfs_read_async(p_sys->p_nfs, p_sys->p_nfsfh, p_buf, i_len, nfs_read_cb,
++ p_access) < 0)
++#else
+ p_sys->res.read.p_buf = p_buf;
+ if (nfs_read_async(p_sys->p_nfs, p_sys->p_nfsfh, i_len, nfs_read_cb,
+ p_access) < 0)
++#endif
+ {
+ msg_Err(p_access, "nfs_read_async failed");
+ return 0;
+--
+GitLab
+
diff --git a/vlc.spec b/vlc.spec
index 0146ba1..db248bf 100644
--- a/vlc.spec
+++ b/vlc.spec
@@ -51,6 +51,8 @@ Patch: https://code.videolan.org/videolan/vlc/-/merge_requests/6168.patch
Patch: https://code.videolan.org/videolan/vlc/-/merge_requests/6273.patch
# avcodec: vaapi: support VAAPI with latest FFmpeg
Patch: https://code.videolan.org/videolan/vlc/-/merge_requests/6606.patch
+# nfs: fix libnfs API v2 support (rhbz#2341791)
+Patch: https://code.videolan.org/videolan/vlc/-/merge_requests/6527.patch
## upstreamable patches
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2026-07-20 18:06 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-07-20 18:06 [rpms/vlc] epel9-next: Backport MR #6527 to support libnfs 6+ Adam Williamson
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox