All of lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] [PATCH v2,1/1] libv4l: fix build with sdl2_image
@ 2018-06-30 18:40 Fabrice Fontaine
  2018-06-30 19:56 ` Thomas Petazzoni
  2018-07-19  9:54 ` Peter Korsgaard
  0 siblings, 2 replies; 3+ messages in thread
From: Fabrice Fontaine @ 2018-06-30 18:40 UTC (permalink / raw)
  To: buildroot

sdlcam test includes jpeglib.h so add a patch to disable it if jpeg is
disabled

Fixes:
 - http://autobuild.buildroot.net/results/1eded8b44cc369550566c6ce0b3c042f1aec8d44

Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
---
Changes v1->v2 (after review of Thomas Petazzoni):
 - Update patch to use HAVE_JPEG instead of adding --disable-tests

 ...0004-Build-sdlcam-only-if-jpeg-is-enabled.patch | 31 ++++++++++++++++++++++
 package/libv4l/libv4l.mk                           |  4 +++
 2 files changed, 35 insertions(+)
 create mode 100644 package/libv4l/0004-Build-sdlcam-only-if-jpeg-is-enabled.patch

diff --git a/package/libv4l/0004-Build-sdlcam-only-if-jpeg-is-enabled.patch b/package/libv4l/0004-Build-sdlcam-only-if-jpeg-is-enabled.patch
new file mode 100644
index 0000000000..4c4365f907
--- /dev/null
+++ b/package/libv4l/0004-Build-sdlcam-only-if-jpeg-is-enabled.patch
@@ -0,0 +1,31 @@
+From 5c407e130f8d0416f91f5a12bcdc2709f00dda65 Mon Sep 17 00:00:00 2001
+From: Fabrice Fontaine <fontaine.fabrice@gmail.com>
+Date: Fri, 29 Jun 2018 21:15:10 +0200
+Subject: [PATCH] Build sdlcam only if jpeg is enabled
+
+Fixes:
+ - http://autobuild.buildroot.net/results/1eded8b44cc369550566c6ce0b3c042f1aec8d44
+
+Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
+---
+ contrib/test/Makefile.am | 2 ++
+ 1 file changed, 2 insertions(+)
+
+diff --git a/contrib/test/Makefile.am b/contrib/test/Makefile.am
+index 0188fe21..c7c38e7a 100644
+--- a/contrib/test/Makefile.am
++++ b/contrib/test/Makefile.am
+@@ -17,8 +17,10 @@ noinst_PROGRAMS += v4l2gl
+ endif
+ 
+ if HAVE_SDL
++if HAVE_JPEG
+ noinst_PROGRAMS += sdlcam
+ endif
++endif
+ 
+ driver_test_SOURCES = driver-test.c
+ driver_test_LDADD = ../../utils/libv4l2util/libv4l2util.la
+-- 
+2.14.1
+
diff --git a/package/libv4l/libv4l.mk b/package/libv4l/libv4l.mk
index 95a700b2d5..c95b2778cd 100644
--- a/package/libv4l/libv4l.mk
+++ b/package/libv4l/libv4l.mk
@@ -10,6 +10,10 @@ LIBV4L_SITE = https://linuxtv.org/downloads/v4l-utils
 LIBV4L_INSTALL_STAGING = YES
 LIBV4L_DEPENDENCIES = host-pkgconf
 LIBV4L_CONF_OPTS = --disable-doxygen-doc
+# We're patching contrib/test/Makefile.am
+LIBV4L_AUTORECONF = YES
+# add host-gettext for AM_ICONV macro
+LIBV4L_DEPENDENCIES += host-gettext
 
 # fix uclibc-ng configure/compile
 LIBV4L_CONF_ENV = ac_cv_prog_cc_c99='-std=gnu99'
-- 
2.14.1

^ permalink raw reply related	[flat|nested] 3+ messages in thread

* [Buildroot] [PATCH v2,1/1] libv4l: fix build with sdl2_image
  2018-06-30 18:40 [Buildroot] [PATCH v2,1/1] libv4l: fix build with sdl2_image Fabrice Fontaine
@ 2018-06-30 19:56 ` Thomas Petazzoni
  2018-07-19  9:54 ` Peter Korsgaard
  1 sibling, 0 replies; 3+ messages in thread
From: Thomas Petazzoni @ 2018-06-30 19:56 UTC (permalink / raw)
  To: buildroot

Hello,

On Sat, 30 Jun 2018 20:40:32 +0200, Fabrice Fontaine wrote:
> sdlcam test includes jpeglib.h so add a patch to disable it if jpeg is
> disabled
> 
> Fixes:
>  - http://autobuild.buildroot.net/results/1eded8b44cc369550566c6ce0b3c042f1aec8d44
> 
> Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
> ---
> Changes v1->v2 (after review of Thomas Petazzoni):
>  - Update patch to use HAVE_JPEG instead of adding --disable-tests

Applied to master, thanks. Please submit the patch upstream. The
previous patches I submitted to upstream libv4l were merged without
much problems, so it's definitely worth it.

Thanks,

Thomas
-- 
Thomas Petazzoni, CTO, Bootlin (formerly Free Electrons)
Embedded Linux and Kernel engineering
https://bootlin.com

^ permalink raw reply	[flat|nested] 3+ messages in thread

* [Buildroot] [PATCH v2,1/1] libv4l: fix build with sdl2_image
  2018-06-30 18:40 [Buildroot] [PATCH v2,1/1] libv4l: fix build with sdl2_image Fabrice Fontaine
  2018-06-30 19:56 ` Thomas Petazzoni
@ 2018-07-19  9:54 ` Peter Korsgaard
  1 sibling, 0 replies; 3+ messages in thread
From: Peter Korsgaard @ 2018-07-19  9:54 UTC (permalink / raw)
  To: buildroot

>>>>> "Fabrice" == Fabrice Fontaine <fontaine.fabrice@gmail.com> writes:

 > sdlcam test includes jpeglib.h so add a patch to disable it if jpeg is
 > disabled

 > Fixes:
 >  - http://autobuild.buildroot.net/results/1eded8b44cc369550566c6ce0b3c042f1aec8d44

 > Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
 > ---
 > Changes v1->v2 (after review of Thomas Petazzoni):
 >  - Update patch to use HAVE_JPEG instead of adding --disable-tests

Committed to 2018.02.x and 2018.05.x, thanks.

-- 
Bye, Peter Korsgaard

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2018-07-19  9:54 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-06-30 18:40 [Buildroot] [PATCH v2,1/1] libv4l: fix build with sdl2_image Fabrice Fontaine
2018-06-30 19:56 ` Thomas Petazzoni
2018-07-19  9:54 ` Peter Korsgaard

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.