package/libdvdcss: needs gcc >= 8
PATCH v2 1/3 package/libdvdcss: needs gcc >= 8
Buildroot commit cd3a2f0ff35346ad5fd6a9867113260addccf127 switched the build system to meson which depends on c17:
https://code.videolan.org/videolan/libdvdcss/-/commit/9f16597859120b96006415c084039f63efc84b83#line_0cc1139e3_A5
Add the necessary dependency and propagate to reverse dependencies to fix a build error caught by the Gitlab pipelines:
br-test-pkg/bootlin-aarch64-glibc-old/build/libdvdcss-1.5.0/meson.build:1:0:
ERROR: None of values ['c17'] are supported by the C compiler. Possible values for option "c_std" are ['none', 'c89', 'c99', 'c11', 'gnu89', 'gnu99', 'gnu11']
---
v2: no changes
Gitlab pipelines passed:
https://gitlab.com/bkuhls/buildroot/-/commits/b4f4db5ed78a4121de247715bfb0c4c7d1ca5808
package/dvdauthor/Config.in | 4 ++++ package/gstreamer1/gst1-plugins-ugly/Config.in | 4 ++++ package/libdvdcss/Config.in | 4 ++++ package/libdvdnav/Config.in | 6 ++++-- package/libdvdread/Config.in | 4 ++++ 5 files changed, 20 insertions(+), 2 deletions(-)
package/dvdauthor/Config.in +4 -0
@@ -17,9 +17,13 @@ if BR2_PACKAGE_DVDAUTHOR config BR2_PACKAGE_DVDAUTHOR_DVDUNAUTHOR bool "dvdunauthor" + depends on BR2_TOOLCHAIN_GCC_AT_LEAST_8 # libdvdcss -> libdvdread select BR2_PACKAGE_LIBDVDREAD help This option enables the dvdunauthor program, which requires libdvdread. +comment "dvdunauthor needs a toolchain w/ gcc >= 8" + depends on !BR2_TOOLCHAIN_GCC_AT_LEAST_8 + endif
package/gstreamer1/gst1-plugins-ugly/Config.in +4 -0
@@ -35,10 +35,14 @@ comment "plugins with external dependencies (there may be more available)" config BR2_PACKAGE_GST1_PLUGINS_UGLY_PLUGIN_DVDREAD bool "dvdread" + depends on BR2_TOOLCHAIN_GCC_AT_LEAST_8 # libdvdcss -> libdvdread select BR2_PACKAGE_LIBDVDREAD help Access a DVD with dvdread +comment "dvdread needs a toolchain w/ gcc >= 8" + depends on !BR2_TOOLCHAIN_GCC_AT_LEAST_8 + config BR2_PACKAGE_GST1_PLUGINS_UGLY_PLUGIN_MPEG2DEC bool "mpeg2dec" select BR2_PACKAGE_LIBMPEG2
package/libdvdcss/Config.in +4 -0
@@ -1,7 +1,11 @@ config BR2_PACKAGE_LIBDVDCSS bool "libdvdcss" + depends on BR2_TOOLCHAIN_GCC_AT_LEAST_8 # std=c17 help libdvdcss is a simple library designed for accessing DVDs like a block device without having to bother about the decryption. http://www.videolan.org/developers/libdvdcss.html + +comment "libdvdcss needs a toolchain w/ gcc >= 8" + depends on !BR2_TOOLCHAIN_GCC_AT_LEAST_8
package/libdvdnav/Config.in +4 -2
@@ -1,5 +1,6 @@ config BR2_PACKAGE_LIBDVDNAV bool "libdvdnav" + depends on BR2_TOOLCHAIN_GCC_AT_LEAST_8 # libdvdcss -> libdvdread depends on BR2_TOOLCHAIN_HAS_THREADS select BR2_PACKAGE_LIBDVDREAD help
@@ -9,5 +10,6 @@ config BR2_PACKAGE_LIBDVDNAV https://www.videolan.org/developers/libdvdnav.html -comment "libdvdnav needs a toolchain w/ threads" - depends on !BR2_TOOLCHAIN_HAS_THREADS +comment "libdvdnav needs a toolchain w/ threads, gcc >= 8" + depends on !BR2_TOOLCHAIN_HAS_THREADS || \ + !BR2_TOOLCHAIN_GCC_AT_LEAST_8
package/libdvdread/Config.in +4 -0
@@ -1,8 +1,12 @@ config BR2_PACKAGE_LIBDVDREAD bool "libdvdread" + depends on BR2_TOOLCHAIN_GCC_AT_LEAST_8 # libdvdcss select BR2_PACKAGE_LIBDVDCSS help libdvdread provides a simple foundation for reading DVD-Video images. https://www.videolan.org/developers/libdvdnav.html + +comment "libdvdread needs a toolchain w/ gcc >= 8" + depends on !BR2_TOOLCHAIN_GCC_AT_LEAST_8
Signature · 6 lines
2.47.3 _______________________________________________ buildroot mailing list [email protected] https://lists.buildroot.org/mailman/listinfo/buildroot
PATCH v2 2/3 package/libdvdcss: bump version to 1.6.0
https://code.videolan.org/videolan/libdvdcss/-/blob/1.6.0/NEWS
Removed sha1 hash, sha256 is enough.
Removed patch which is included in this release.
---
v2: no changes
Gitlab pipelines passed:
https://gitlab.com/bkuhls/buildroot/-/commits/0840ccfb19a99449b74f77f651af350a5c01a5aa
...d-compilation-problems-with-PATH_MAX.patch | 46 ------------------- package/libdvdcss/libdvdcss.hash | 6 +-- package/libdvdcss/libdvdcss.mk | 2 +- 3 files changed, 3 insertions(+), 51 deletions(-) delete mode 100644 package/libdvdcss/0001-Fixed-compilation-problems-with-PATH_MAX.patch
package/libdvdcss/0001-Fixed-compilation-problems-with-PATH_MAX.patch deleted +0 -46
@@ -1,46 +0,0 @@ -From be34d026f44389745e29a7da977f84712066d3d0 Mon Sep 17 00:00:00 2001 -From: Bernd Kuhls <[email protected]> -Date: Sat, 15 Nov 2025 19:41:09 +0100 -Subject: [PATCH] Fixed compilation problems with PATH_MAX -MIME-Version: 1.0 -Content-Type: text/plain; charset=UTF-8 -Content-Transfer-Encoding: 8bit - -In file included from ../src/cpxm.c:38: -../src/libdvdcss.h:65:26: error: ‘PATH_MAX’ undeclared here (not in a function) - 65 | char psz_cachefile[PATH_MAX]; - -In file included from ../src/error.c:26: -../src/libdvdcss.h:65:26: error: ‘PATH_MAX’ undeclared here (not in a function) - 65 | char psz_cachefile[PATH_MAX]; - -In file included from ../src/libdvdcpxm.c:47: -../src/libdvdcss.h:65:26: error: ‘PATH_MAX’ undeclared here (not in a function) - 65 | char psz_cachefile[PATH_MAX]; - -Upstream: https://code.videolan.org/videolan/libdvdcss/-/merge_requests/24 - -Signed-off-by: Bernd Kuhls <[email protected]> ---- - src/libdvdcss.h | 5 +++++ - 1 file changed, 5 insertions(+) - -diff --git a/src/libdvdcss.h b/src/libdvdcss.h -index f9d36ba..997af34 100644 ---- a/src/libdvdcss.h -+++ b/src/libdvdcss.h -@@ -26,6 +26,11 @@ - - #include <limits.h> - -+#include <config.h> -+#ifdef HAVE_SYS_PARAM_H -+# include <sys/param.h> -+#endif -+ - #include "dvdcss/dvdcss.h" - #include "cpxm.h" - #include "css.h" --- -2.47.3 -
package/libdvdcss/libdvdcss.hash +2 -4
@@ -1,7 +1,5 @@ -# From https://download.videolan.org/pub/videolan/libdvdcss/1.5.0/libdvdcss-1.5.0.tar.xz.sha1 -sha1 bb21a27a32fa2a1d1e81448722fdc62c521a8803 libdvdcss-1.5.0.tar.xz -# From https://download.videolan.org/pub/videolan/libdvdcss/1.5.0/libdvdcss-1.5.0.tar.xz.sha256 -sha256 529463e4d1befef82e5c6e470db7661a2db0343e092a2fb0d6c037cab8a5c399 libdvdcss-1.5.0.tar.xz +# From http://download.videolan.org/pub/videolan/libdvdcss/1.6.0/libdvdcss-1.6.0.tar.xz.sha256 +sha256 7ea556c846b7bfc32d47b41cae56d1863a6b6d5f706bb162778d6f298490977c libdvdcss-1.6.0.tar.xz # Hash for license file: sha256 8177f97513213526df2cf6184d8ff986c675afb514d4e68a404010521b880643 COPYING
package/libdvdcss/libdvdcss.mk +1 -1
@@ -4,7 +4,7 @@ # ################################################################################ -LIBDVDCSS_VERSION = 1.5.0 +LIBDVDCSS_VERSION = 1.6.0 LIBDVDCSS_SOURCE = libdvdcss-$(LIBDVDCSS_VERSION).tar.xz LIBDVDCSS_SITE = https://download.videolan.org/pub/videolan/libdvdcss/$(LIBDVDCSS_VERSION) LIBDVDCSS_INSTALL_STAGING = YES
Signature · 6 lines
2.47.3 _______________________________________________ buildroot mailing list [email protected] https://lists.buildroot.org/mailman/listinfo/buildroot
PATCH v2 3/3 package/libdvdread: bump version to 7.1.1
In reply to Bernd Kuhlshttps://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.
---
v2: no changes, re-ran Gitlab pipelines
Gitlab pipelines passed:
https://gitlab.com/bkuhls/buildroot/-/commits/c4c2ec87ad62efc576befd14a81a3ca0eb907e73
...d-compilation-problems-with-PATH_MAX.patch | 40 +++++++++++++++++++ package/libdvdread/libdvdread.hash | 6 +-- package/libdvdread/libdvdread.mk | 2 +- 3 files changed, 43 insertions(+), 5 deletions(-) create mode 100644 package/libdvdread/0001-Fixed-compilation-problems-with-PATH_MAX.patch
package/libdvdread/0001-Fixed-compilation-problems-with-PATH_MAX.patch new file +40 -0
@@ -0,0 +1,40 @@ +From 4462612349edd3030d81e3c3a7b638e13e6b8ef2 Mon Sep 17 00:00:00 2001 +From: Bernd Kuhls <[email protected]> +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 <[email protected]> +--- + 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 +
package/libdvdread/libdvdread.hash +2 -4
@@ -1,7 +1,5 @@ -# From https://download.videolan.org/pub/videolan/libdvdread/7.0.1/libdvdread-7.0.1.tar.xz.sha1 -sha1 aaba59e0e04fa12704fab4230344549d8ae4b2e3 libdvdread-7.0.1.tar.xz -# From https://download.videolan.org/pub/videolan/libdvdread/7.0.1/libdvdread-7.0.1.tar.xz.sha256 -sha256 2e3e04a305c15c3963aa03ae1b9a83c1d239880003fcf3dde986d3943355d407 libdvdread-7.0.1.tar.xz +# From https://download.videolan.org/pub/videolan/libdvdread/7.1.1/libdvdread-7.1.1.tar.xz.sha256 +sha256 a0d47876548bec806774bbf8dbf20bb19ba139464383156b32eb8e59915b90a9 libdvdread-7.1.1.tar.xz # Hash for license file: sha256 d6cb0e9e560f51085556949a84af12b79a00f10ab8b66c752537faf7cd665572 COPYING
package/libdvdread/libdvdread.mk +1 -1
@@ -4,7 +4,7 @@ # ################################################################################ -LIBDVDREAD_VERSION = 7.0.1 +LIBDVDREAD_VERSION = 7.1.1 LIBDVDREAD_SOURCE = libdvdread-$(LIBDVDREAD_VERSION).tar.xz LIBDVDREAD_SITE = https://download.videolan.org/pub/videolan/libdvdread/$(LIBDVDREAD_VERSION) LIBDVDREAD_INSTALL_STAGING = YES
Signature · 6 lines
2.47.3 _______________________________________________ buildroot mailing list [email protected] https://lists.buildroot.org/mailman/listinfo/buildroot
Quoted 7 lines · Bernd Kuhls
Buildroot commit
cd3a2f0ff35346ad5fd6a9867113260addccf127switched the build system to meson which depends on c17:
https://code.videolan.org/videolan/libdvdcss/-/commit/9f16597859120b96006415c084039f63efc84b83#line_0cc1139e3_A5Add the necessary dependency and propagate to reverse dependencies to fix a build error caught by the Gitlab pipelines:
Quoted 7 lines
br-test-pkg/bootlin-aarch64-glibc-old/build/libdvdcss-1.5.0/meson.build:1:0:
ERROR: None of values ['c17'] are supported by the C compiler.
Possible
values for option "c_std" are ['none', 'c89', 'c99', 'c11', 'gnu89', 'gnu99', 'gnu11']Signed-off-by Bernd Kuhls <[email protected]>
Series applied to master, thanks.
_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot