Files
buildroot/package/libdvdread/0001-Fixed-compilation-problems-with-PATH_MAX.patch
Bernd Kuhls cd9f9b47d7 package/libdvdread: bump version to 7.1.1
https://code.videolan.org/videolan/libdvdread/blob/7.1.1/NEWS

Removed sha1 hash, the sha256 hash is sufficient.

Added patch to fix build error which would be introduced by this bump
that was seen with br-arm-full-static defconfig by the Gitlab pipelines.

Signed-off-by: Bernd Kuhls <bernd@kuhls.net>
Signed-off-by: Julien Olivain <ju.o@free.fr>
2026-08-15 19:15:55 +02:00

41 lines
1.2 KiB
Diff

From 4462612349edd3030d81e3c3a7b638e13e6b8ef2 Mon Sep 17 00:00:00 2001
From: Bernd Kuhls <bernd@kuhls.net>
Date: Wed, 12 Aug 2026 22:40:26 +0200
Subject: [PATCH] Fixed compilation problems with PATH_MAX
../src/dvd_reader.c: In function 'dir_has_file':
../src/dvd_reader.c:393:14: error: 'PATH_MAX' undeclared (first use in this function)
393 | char path[ PATH_MAX + 1 ];
The build error was introduced by
https://code.videolan.org/videolan/libdvdread/-/commit/da7d7ed4e8fe08c0af310925995b2f4742f7eabf
and was found using the buildroot Gitlab pipelines with gcc 9.3.0.
Upstream: https://code.videolan.org/videolan/libdvdread/-/merge_requests/142
Signed-off-by: Bernd Kuhls <bernd@kuhls.net>
---
src/dvd_reader.c | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/src/dvd_reader.c b/src/dvd_reader.c
index ceef4ee..2a70958 100644
--- a/src/dvd_reader.c
+++ b/src/dvd_reader.c
@@ -29,6 +29,11 @@
#include <limits.h> /* PATH_MAX */
#include <ctype.h> /* isalpha */
+#include <config.h>
+#ifdef HAVE_SYS_PARAM_H
+# include <sys/param.h> /* PATH_MAX */
+#endif
+
#if defined(__FreeBSD__) || defined(__OpenBSD__) || defined(__NetBSD__) || defined(__bsdi__) || defined(__APPLE__)
# define SYS_BSD 1
#endif
--
2.47.3