diff options
author | Khem Raj <raj.khem@gmail.com> | 2019-01-30 22:50:13 -0800 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2019-02-02 11:06:00 +0000 |
commit | df12337a3132c2df86b20bfc378b72234cda79e9 (patch) | |
tree | fb5834f2df2516928b7c772aa57154c27e5ed27a /meta/recipes-support | |
parent | c38a24f6205df5814373e1b3f1a4bee0a94d07e4 (diff) | |
download | poky-df12337a3132c2df86b20bfc378b72234cda79e9.tar.gz |
libproxy: Fix build with clang/libc++
(From OE-Core rev: 3f61b8e612a1506af289a3dafb5f2706531e6bf5)
Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-support')
-rw-r--r-- | meta/recipes-support/libproxy/libproxy/0001-get-pac-test-Fix-build-with-clang-libc.patch | 31 | ||||
-rw-r--r-- | meta/recipes-support/libproxy/libproxy_0.4.15.bb | 4 |
2 files changed, 34 insertions, 1 deletions
diff --git a/meta/recipes-support/libproxy/libproxy/0001-get-pac-test-Fix-build-with-clang-libc.patch b/meta/recipes-support/libproxy/libproxy/0001-get-pac-test-Fix-build-with-clang-libc.patch new file mode 100644 index 0000000000..fedda9dd95 --- /dev/null +++ b/meta/recipes-support/libproxy/libproxy/0001-get-pac-test-Fix-build-with-clang-libc.patch | |||
@@ -0,0 +1,31 @@ | |||
1 | From 2d73469c7a17ebfe4330ac6643b0c8abdc125d05 Mon Sep 17 00:00:00 2001 | ||
2 | From: Khem Raj <raj.khem@gmail.com> | ||
3 | Date: Wed, 30 Jan 2019 09:29:44 -0800 | ||
4 | Subject: [PATCH] get-pac-test: Fix build with clang/libc++ | ||
5 | |||
6 | get-pac-test.cpp:55:10: error: assigning to 'int' from incompatible type '__bind<int &, sockaddr *, unsigned int>' | ||
7 | ret = bind(m_sock, (sockaddr*)&addr, sizeof (struct sockaddr_in)); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | ||
8 | |||
9 | Upstream-Status: Submitted [https://github.com/libproxy/libproxy/pull/97] | ||
10 | |||
11 | Signed-off-by: Khem Raj <raj.khem@gmail.com> | ||
12 | --- | ||
13 | libproxy/test/get-pac-test.cpp | 2 +- | ||
14 | 1 file changed, 1 insertion(+), 1 deletion(-) | ||
15 | |||
16 | diff --git a/libproxy/test/get-pac-test.cpp b/libproxy/test/get-pac-test.cpp | ||
17 | index 0059dfb..911f296 100644 | ||
18 | --- a/libproxy/test/get-pac-test.cpp | ||
19 | +++ b/libproxy/test/get-pac-test.cpp | ||
20 | @@ -52,7 +52,7 @@ class TestServer { | ||
21 | |||
22 | setsockopt(m_sock, SOL_SOCKET, SO_REUSEADDR, &i, sizeof(i)); | ||
23 | |||
24 | - ret = bind(m_sock, (sockaddr*)&addr, sizeof (struct sockaddr_in)); | ||
25 | + ret = ::bind(m_sock, (sockaddr*)&addr, sizeof (struct sockaddr_in)); | ||
26 | assert(!ret); | ||
27 | |||
28 | ret = listen(m_sock, 1); | ||
29 | -- | ||
30 | 2.20.1 | ||
31 | |||
diff --git a/meta/recipes-support/libproxy/libproxy_0.4.15.bb b/meta/recipes-support/libproxy/libproxy_0.4.15.bb index dd7ad922d3..19dddebd44 100644 --- a/meta/recipes-support/libproxy/libproxy_0.4.15.bb +++ b/meta/recipes-support/libproxy/libproxy_0.4.15.bb | |||
@@ -8,7 +8,9 @@ LIC_FILES_CHKSUM = "file://COPYING;md5=4fbd65380cdd255951079008b364516c \ | |||
8 | 8 | ||
9 | DEPENDS = "glib-2.0" | 9 | DEPENDS = "glib-2.0" |
10 | 10 | ||
11 | SRC_URI = "https://github.com/${BPN}/${BPN}/releases/download/${PV}/${BP}.tar.xz" | 11 | SRC_URI = "https://github.com/${BPN}/${BPN}/releases/download/${PV}/${BP}.tar.xz \ |
12 | file://0001-get-pac-test-Fix-build-with-clang-libc.patch \ | ||
13 | " | ||
12 | SRC_URI[md5sum] = "f6b1d2a1e17a99cd3debaae6d04ab152" | 14 | SRC_URI[md5sum] = "f6b1d2a1e17a99cd3debaae6d04ab152" |
13 | SRC_URI[sha256sum] = "654db464120c9534654590b6683c7fa3887b3dad0ca1c4cd412af24fbfca6d4f" | 15 | SRC_URI[sha256sum] = "654db464120c9534654590b6683c7fa3887b3dad0ca1c4cd412af24fbfca6d4f" |
14 | 16 | ||