summaryrefslogtreecommitdiffstats
path: root/meta-networking/recipes-support/spice
diff options
context:
space:
mode:
authorHongxu Jia <hongxu.jia@windriver.com>2021-02-05 01:52:13 -0800
committerKhem Raj <raj.khem@gmail.com>2021-02-05 10:59:49 -0800
commitbf527522e019346fcd92bb5d9d5c1906147e24f3 (patch)
tree41b980fe92101de6b46899d3d1c7323f55915088 /meta-networking/recipes-support/spice
parentc105afd3220203fffe78c780b8d7fe2296562852 (diff)
downloadmeta-openembedded-bf527522e019346fcd92bb5d9d5c1906147e24f3.tar.gz
spice: make conpatible to autoconf-2.70
In order to build with autoconf 2.7, explicitly link to jpeg lib since lib jpeg is already in DEPENDS ... | checking for jpeglib.h... ../git/configure: line 16008: CPP: command not found ... Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com> Signed-off-by: Khem Raj <raj.khem@gmail.com>
Diffstat (limited to 'meta-networking/recipes-support/spice')
-rw-r--r--meta-networking/recipes-support/spice/spice/0001-configure.ac-explicitly-link-to-jpeg-lib.patch48
-rw-r--r--meta-networking/recipes-support/spice/spice_git.bb1
2 files changed, 49 insertions, 0 deletions
diff --git a/meta-networking/recipes-support/spice/spice/0001-configure.ac-explicitly-link-to-jpeg-lib.patch b/meta-networking/recipes-support/spice/spice/0001-configure.ac-explicitly-link-to-jpeg-lib.patch
new file mode 100644
index 000000000..2d05143db
--- /dev/null
+++ b/meta-networking/recipes-support/spice/spice/0001-configure.ac-explicitly-link-to-jpeg-lib.patch
@@ -0,0 +1,48 @@
1From 6ffd9db8e02e411bda2f421abf7951dab6cf0e38 Mon Sep 17 00:00:00 2001
2From: Hongxu Jia <hongxu.jia@windriver.com>
3Date: Fri, 5 Feb 2021 01:43:44 -0800
4Subject: [PATCH] configure.ac: explicitly link to jpeg lib
5
6Since oe has added lib jpeg to the depends, explicitly link to jpeg lib
7to workaround build failure with autoconf 2.7
8
9Upstream-Status: Inappropriate [oe specific]
10
11Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com>
12---
13 configure.ac | 14 +-------------
14 1 file changed, 1 insertion(+), 13 deletions(-)
15
16diff --git a/configure.ac b/configure.ac
17index 1ce81f91..8bbb50de 100644
18--- a/configure.ac
19+++ b/configure.ac
20@@ -191,24 +191,12 @@ AC_SUBST(SSL_CFLAGS)
21 AC_SUBST(SSL_LIBS)
22 AS_VAR_APPEND([SPICE_REQUIRES], [" openssl"])
23
24-AC_CHECK_LIB(jpeg, jpeg_destroy_decompress,
25- AC_MSG_CHECKING([for jpeglib.h])
26- AC_TRY_CPP(
27-[#include <stdio.h>
28-#undef PACKAGE
29-#undef VERSION
30-#undef HAVE_STDLIB_H
31-#include <jpeglib.h>],
32- JPEG_LIBS='-ljpeg'
33- AC_MSG_RESULT($jpeg_ok),
34- AC_MSG_ERROR([jpeglib.h not found])),
35- AC_MSG_ERROR([libjpeg not found]))
36+JPEG_LIBS='-ljpeg'
37 AC_SUBST(JPEG_LIBS)
38
39 AC_CHECK_LIB(z, deflate, Z_LIBS='-lz', AC_MSG_ERROR([zlib not found]))
40 AC_SUBST(Z_LIBS)
41
42-
43 AC_ARG_ENABLE([manual],
44 AS_HELP_STRING([--enable-manual=@<:@auto/yes/no@:>@],
45 [Build SPICE manual]),
46--
472.29.2
48
diff --git a/meta-networking/recipes-support/spice/spice_git.bb b/meta-networking/recipes-support/spice/spice_git.bb
index fad8b639e..52dad7124 100644
--- a/meta-networking/recipes-support/spice/spice_git.bb
+++ b/meta-networking/recipes-support/spice/spice_git.bb
@@ -25,6 +25,7 @@ SRC_URI = " \
25 git://anongit.freedesktop.org/spice/spice-common;destsuffix=git/subprojects/spice-common;name=spice-common \ 25 git://anongit.freedesktop.org/spice/spice-common;destsuffix=git/subprojects/spice-common;name=spice-common \
26 file://0001-Convert-pthread_t-to-be-numeric.patch \ 26 file://0001-Convert-pthread_t-to-be-numeric.patch \
27 file://0001-Fix-compile-errors-on-Linux-32bit-system.patch \ 27 file://0001-Fix-compile-errors-on-Linux-32bit-system.patch \
28 file://0001-configure.ac-explicitly-link-to-jpeg-lib.patch \
28" 29"
29 30
30S = "${WORKDIR}/git" 31S = "${WORKDIR}/git"