summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--meta-networking/recipes-support/spice/files/0001-spice-compile-warnings.m4-don-t-define-FORITFY_SOURC.patch37
-rw-r--r--meta-networking/recipes-support/spice/spice_git.bb32
2 files changed, 54 insertions, 15 deletions
diff --git a/meta-networking/recipes-support/spice/files/0001-spice-compile-warnings.m4-don-t-define-FORITFY_SOURC.patch b/meta-networking/recipes-support/spice/files/0001-spice-compile-warnings.m4-don-t-define-FORITFY_SOURC.patch
new file mode 100644
index 0000000000..666960566b
--- /dev/null
+++ b/meta-networking/recipes-support/spice/files/0001-spice-compile-warnings.m4-don-t-define-FORITFY_SOURC.patch
@@ -0,0 +1,37 @@
1From bf85d26f0326d4ea20429c29fd408703ee5bad54 Mon Sep 17 00:00:00 2001
2From: Martin Jansa <Martin.Jansa@gmail.com>
3Date: Wed, 13 Sep 2017 15:53:02 +0200
4Subject: [PATCH] spice-compile-warnings.m4: don't define FORITFY_SOURCES
5
6* otherwise fails when the native gcc already defines
7 FORTIFY_SOURCES (e.g. in gentoo).
8 | In file included from ../../git/server/inputs_channel.c:19:0:
9 | ../config.h:17:0: error: "_FORTIFY_SOURCE" redefined [-Werror]
10 | # define _FORTIFY_SOURCE 2
11
12Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
13---
14 m4/spice-compile-warnings.m4 | 7 -------
15 1 file changed, 7 deletions(-)
16
17diff --git a/m4/spice-compile-warnings.m4 b/m4/spice-compile-warnings.m4
18index 959971a2..55352ad6 100644
19--- a/m4/spice-compile-warnings.m4
20+++ b/m4/spice-compile-warnings.m4
21@@ -109,13 +109,6 @@ AC_DEFUN([SPICE_COMPILE_WARNINGS],[
22 # This should be < 1024 really. pixman_utils is the blackspot
23 # preventing lower usage
24 gl_WARN_ADD([-Wframe-larger-than=20460])
25-
26- # Use improved glibc headers
27- AH_VERBATIM([FORTIFY_SOURCE],
28- [/* Enable compile-time and run-time bounds-checking, and some warnings. */
29-#if __OPTIMIZE__
30-# define _FORTIFY_SOURCE 2
31-#endif
32 ])
33
34 # Extra special flags
35--
362.14.1
37
diff --git a/meta-networking/recipes-support/spice/spice_git.bb b/meta-networking/recipes-support/spice/spice_git.bb
index 2039841ddf..dfe4613641 100644
--- a/meta-networking/recipes-support/spice/spice_git.bb
+++ b/meta-networking/recipes-support/spice/spice_git.bb
@@ -25,19 +25,21 @@ SRCREV_spice-protocol = "784407f248e7f99d2bfcc9368f9acd1efb2b9617"
25 25
26SRCREV_FORMAT = "spice_spice-common_spice-protocol" 26SRCREV_FORMAT = "spice_spice-common_spice-protocol"
27 27
28SRC_URI = "git://anongit.freedesktop.org/spice/spice;name=spice \ 28SRC_URI = " \
29 git://anongit.freedesktop.org/spice/spice-common;destsuffix=git/spice-common;name=spice-common \ 29 git://anongit.freedesktop.org/spice/spice;name=spice \
30 git://anongit.freedesktop.org/spice/spice-protocol;destsuffix=git/spice-common/spice-protocol;name=spice-protocol \ 30 git://anongit.freedesktop.org/spice/spice-common;destsuffix=git/spice-common;name=spice-common \
31 " 31 git://anongit.freedesktop.org/spice/spice-protocol;destsuffix=git/spice-common/spice-protocol;name=spice-protocol \
32"
32 33
33SRC_URI += " \ 34SRC_URI += " \
34 file://spice-fix-CVE-2013-4282.patch \ 35 file://spice-fix-CVE-2013-4282.patch \
35 file://configure.ac-add-subdir-objects-to-AM_INIT_AUTOMAKE.patch \ 36 file://configure.ac-add-subdir-objects-to-AM_INIT_AUTOMAKE.patch \
36 file://build-allow-separated-src-and-build-dirs.patch \ 37 file://build-allow-separated-src-and-build-dirs.patch \
37 file://0001-red_parse_qxl-Fix-BITMAP_FMT_IS_RGB-defined-but-not-.patch \ 38 file://0001-red_parse_qxl-Fix-BITMAP_FMT_IS_RGB-defined-but-not-.patch \
38 file://0001-Use-PRI-macros-in-printf-to-keep-compatibility-betwe.patch \ 39 file://0001-Use-PRI-macros-in-printf-to-keep-compatibility-betwe.patch \
39 file://Fix-build-issues-with-gcc-7.patch \ 40 file://Fix-build-issues-with-gcc-7.patch \
40 " 41 file://0001-spice-compile-warnings.m4-don-t-define-FORITFY_SOURC.patch \
42"
41 43
42S = "${WORKDIR}/git" 44S = "${WORKDIR}/git"
43 45
@@ -66,13 +68,13 @@ FILES_${PN}-protocol += "${includedir}/spice-1"
66FILES_${PN}-protocol += "${datadir}/pkgconfig" 68FILES_${PN}-protocol += "${datadir}/pkgconfig"
67 69
68do_configure_prepend() { 70do_configure_prepend() {
69 mkdir -p ${S}/spice-common/spice-protocol/m4 71 mkdir -p ${S}/spice-common/spice-protocol/m4
70} 72}
71 73
72do_install_append() { 74do_install_append() {
73 cd ${B}/spice-common/spice-protocol 75 cd ${B}/spice-common/spice-protocol
74 oe_runmake DESTDIR="${D}" install 76 oe_runmake DESTDIR="${D}" install
75 cd - 77 cd -
76} 78}
77 79
78COMPATIBLE_HOST = '(x86_64|i.86).*-linux' 80COMPATIBLE_HOST = '(x86_64|i.86).*-linux'