Skip to contentSkip to conversation

package/libv4l: disable wrappers for uClibc-ng

PATCH New Bernd Kuhls 1 participant 1 message Nov 22

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 package/libv4l: disable wrappers for uClibc-ng

Upstream forces -D_FILE_OFFSET_BITS=32 for the wrappers:
https://git.linuxtv.org/v4l-utils.git/commit/?id=99f245f5e2826c7ae3ac8de530bc2fbd906eb62b

The bump of uClibc-ng to version 1.0.58 by buildroot commit c7fef3704c704e6337b4f8f6ff467c6c70991443 causes build errors due to commit
https://github.com/wbx-github/uclibc-ng/commit/87b354252a6a8519f8b671ae23ff38ce9360b6b5

/home/autobuild/autobuild/instance-14/output-1/host/i686-buildroot-linux-uclibc/sysroot/usr/include/features.h:336:3:
error: #error "_FILE_OFFSET_BITS != 64 is not supported by uClibc-ng"

To fix the problem we disable the build of the wrappers when uClibc-ng is used.

Fixes:
https://autobuild.buildroot.net/results/89f/89f69f8b73c9945c1a4f159bbdf227782c3a2808/

---
 package/libv4l/libv4l.mk | 4 ++++
 1 file changed, 4 insertions(+)
package/libv4l/libv4l.mk +4 -0
index f2069390a3..882bbea37d 100644
@@ -20,6 +20,10 @@ ifeq ($(BR2_STATIC_LIBS),y)
 LIBV4L_CONF_OPTS += -Dv4l-plugins=false -Dv4l-wrappers=false
 endif
 
+ifeq ($(BR2_TOOLCHAIN_USES_UCLIBC),y)
+LIBV4L_CONF_OPTS += -Dv4l-wrappers=false
+endif
+
 ifeq ($(BR2_PACKAGE_ALSA_LIB),y)
 LIBV4L_DEPENDENCIES += alsa-lib
 endif
Signature · 6 lines
2.47.3

_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot