* [Buildroot] [PATCH v1] libv4l: bump version to 1.6.3
@ 2015-07-02 21:26 Peter Seiderer
2015-07-02 21:26 ` [Buildroot] [PATCH v1] libv4l: fix uclibc-ng configure/compile Peter Seiderer
2015-07-04 10:41 ` [Buildroot] [PATCH v1] libv4l: bump version to 1.6.3 Thomas Petazzoni
0 siblings, 2 replies; 3+ messages in thread
From: Peter Seiderer @ 2015-07-02 21:26 UTC (permalink / raw)
To: buildroot
Signed-off-by: Peter Seiderer <ps.report@gmx.net>
---
package/libv4l/libv4l.hash | 2 +-
package/libv4l/libv4l.mk | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/package/libv4l/libv4l.hash b/package/libv4l/libv4l.hash
index 609cfbc..3371d34 100644
--- a/package/libv4l/libv4l.hash
+++ b/package/libv4l/libv4l.hash
@@ -1,2 +1,2 @@
# Locally calculated
-sha256 d3d6eb1f0204fb11f3d318bfca35d5f73cc077f88fac7665a47856a16496be7d v4l-utils-1.6.2.tar.bz2
+sha256 164abf5c1befcd27e8e6ef824a82d4015bdfb5d99ae82daa00e77d895ff9864c v4l-utils-1.6.3.tar.bz2
diff --git a/package/libv4l/libv4l.mk b/package/libv4l/libv4l.mk
index 94c7031..b1c783d 100644
--- a/package/libv4l/libv4l.mk
+++ b/package/libv4l/libv4l.mk
@@ -4,7 +4,7 @@
#
################################################################################
-LIBV4L_VERSION = 1.6.2
+LIBV4L_VERSION = 1.6.3
LIBV4L_SOURCE = v4l-utils-$(LIBV4L_VERSION).tar.bz2
LIBV4L_SITE = http://linuxtv.org/downloads/v4l-utils
LIBV4L_INSTALL_STAGING = YES
--
2.1.4
^ permalink raw reply related [flat|nested] 3+ messages in thread
* [Buildroot] [PATCH v1] libv4l: fix uclibc-ng configure/compile
2015-07-02 21:26 [Buildroot] [PATCH v1] libv4l: bump version to 1.6.3 Peter Seiderer
@ 2015-07-02 21:26 ` Peter Seiderer
2015-07-04 10:41 ` [Buildroot] [PATCH v1] libv4l: bump version to 1.6.3 Thomas Petazzoni
1 sibling, 0 replies; 3+ messages in thread
From: Peter Seiderer @ 2015-07-02 21:26 UTC (permalink / raw)
To: buildroot
With raspberrypi_defconfig:
libv4l2rds.c:256:2: error: 'for' loop initial declarations are only allowed in C99 or C11 mode
for (int i = 0; i < tuning->station_cnt; i++) {
^
libv4l2rds.c:256:2: note: use option -std=c99, -std=gnu99, -std=c11 or -std=gnu11 to compile your code
From build/libv4l-1.6.2/config.log:
configure:4709: checking for .../host/usr/bin/arm-buildroot-linux-uclibcgnueabi-gcc option to accept ISO C99
configure:4858: .../host/usr/bin/arm-buildroot-linux-uclibcgnueabi-gcc -std=gnu99 -c -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -Os -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 conftest.c >&5
conftest.c:54:9: error: unknown type name 'wchar_t'
const wchar_t *name;
The C99 detection problem seems more related to missing wchar_t type support than the compiler option?
Adding LIBV4L_CONF_ENV = ac_cv_prog_cc_c99='-std=c99' gives a lot of compile errors like:
libv4lconvert.c: In function 'dev_ioctl':
processing/../libv4lsyscall-priv.h:85:10: error: 'SYS_ioctl' undeclared (first use in this function)
syscall(SYS_ioctl, (int)(fd), (unsigned long)(cmd), (void *)(arg))
^
libv4lconvert.c:43:9: note: in expansion of macro 'SYS_IOCTL'
return SYS_IOCTL(fd, cmd, arg);
^
processing/../libv4lsyscall-priv.h:85:10: note: each undeclared identifier is reported only once for each function it appears in
syscall(SYS_ioctl, (int)(fd), (unsigned long)(cmd), (void *)(arg))
^
libv4lconvert.c:43:9: note: in expansion of macro 'SYS_IOCTL'
return SYS_IOCTL(fd, cmd, arg);
^
Adding LIBV4L_CONF_ENV = ac_cv_prog_cc_c99='-std=gnu99' solves all configure/compile errors.
Signed-off-by: Peter Seiderer <ps.report@gmx.net>
---
Would vote for not applying this patch, maybe theres a better solution...
---
package/libv4l/libv4l.mk | 3 +++
1 file changed, 3 insertions(+)
diff --git a/package/libv4l/libv4l.mk b/package/libv4l/libv4l.mk
index b1c783d..edb2a36 100644
--- a/package/libv4l/libv4l.mk
+++ b/package/libv4l/libv4l.mk
@@ -11,6 +11,9 @@ LIBV4L_INSTALL_STAGING = YES
LIBV4L_DEPENDENCIES = host-pkgconf
LIBV4L_CONF_OPTS = --disable-doxygen-doc
+# fix uclibc-ng configure/compile
+LIBV4L_CONF_ENV = ac_cv_prog_cc_c99='-std=gnu99'
+
# v4l-utils components have different licences, see v4l-utils.spec for details
LIBV4L_LICENSE = GPLv2+ (utilities), LGPLv2.1+ (libraries)
LIBV4L_LICENSE_FILES = COPYING COPYING.libv4l lib/libv4l1/libv4l1-kernelcode-license.txt
--
2.1.4
^ permalink raw reply related [flat|nested] 3+ messages in thread
* [Buildroot] [PATCH v1] libv4l: bump version to 1.6.3
2015-07-02 21:26 [Buildroot] [PATCH v1] libv4l: bump version to 1.6.3 Peter Seiderer
2015-07-02 21:26 ` [Buildroot] [PATCH v1] libv4l: fix uclibc-ng configure/compile Peter Seiderer
@ 2015-07-04 10:41 ` Thomas Petazzoni
1 sibling, 0 replies; 3+ messages in thread
From: Thomas Petazzoni @ 2015-07-04 10:41 UTC (permalink / raw)
To: buildroot
Dear Peter Seiderer,
On Thu, 2 Jul 2015 23:26:31 +0200, Peter Seiderer wrote:
> Signed-off-by: Peter Seiderer <ps.report@gmx.net>
> ---
> package/libv4l/libv4l.hash | 2 +-
> package/libv4l/libv4l.mk | 2 +-
> 2 files changed, 2 insertions(+), 2 deletions(-)
Both applied, thanks.
Thomas
--
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux, Kernel and Android engineering
http://free-electrons.com
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2015-07-04 10:41 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-07-02 21:26 [Buildroot] [PATCH v1] libv4l: bump version to 1.6.3 Peter Seiderer
2015-07-02 21:26 ` [Buildroot] [PATCH v1] libv4l: fix uclibc-ng configure/compile Peter Seiderer
2015-07-04 10:41 ` [Buildroot] [PATCH v1] libv4l: bump version to 1.6.3 Thomas Petazzoni
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox