From patchwork Thu Jan 31 06:50:13 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Khem Raj X-Patchwork-Id: 157127 Delivered-To: patch@linaro.org Received: by 2002:a02:48:0:0:0:0:0 with SMTP id 69csp6849386jaa; Wed, 30 Jan 2019 22:51:06 -0800 (PST) X-Google-Smtp-Source: ALg8bN403rOfRwVsnA2QWGLCbR7hAEDcdBZ9UoECVdXy39jzzeMpbirpLv6vCUTh1WcJDufZAOAn X-Received: by 2002:a62:3811:: with SMTP id f17mr34302741pfa.206.1548917466165; Wed, 30 Jan 2019 22:51:06 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1548917466; cv=none; d=google.com; s=arc-20160816; b=mMLYKKnk4MBgcFM95cCY5cY4FZT5LyWEQRDB7jYFUXpXAqxvms1ODBkTDzRZiRU8JZ AEBCNIvNc4AlAlJC6Bvq5c15J+7wTMJtvgyRVd+716suHBLcxR2S2Bmzlq8GYTt/HF3A uPzF5FU7smuM8BwkW9taU4lxxlLIHJ+7rjLDepvYsh/g4hGGOJTGgO/HgqxrUWTadvVt oM2YgqJB+dLn2lVbftT1X+TB5vwlWIT3hAuuV37IZXBV9Wkvkpz/XI69AtP7uu3Tn5wg ENSewnoAIvfZvqDn7xRuKQrXcr1Ay4+qWvi7DYzwfxa/9se7u8lD+/TVLVmwv/6WxnRa 6CXA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=errors-to:sender:content-transfer-encoding:list-subscribe:list-help :list-post:list-archive:list-unsubscribe:list-id:precedence:subject :mime-version:references:in-reply-to:message-id:date:to:from :dkim-signature:delivered-to; bh=F9xteIq/X2n9mD6DpBwkktMU2DNn75NLtJx5vvJIcp4=; b=hg/CkpvFuaYKSHuDNOa3ldFcHlCSDHO/jOT9NwmubHmhJtFG+opffk/+v397PyPv// JbpUDwllfqKNfVMoC3PN9ZPg0vBy5YqMYgat+Gpvqzh7ULmrBmlk9n1m3uM8Vj646O8V +rfOSTMpOuDXDbiLrs9vwRh15eFrK4EKw6grTinWz2ToNiIEUL0/L0ENvpaFQe1Nm0Mj phQuxfpmaMgLTAJbcY5vGGxXdtUeuxPRsQyvreML+qx7EHnppqvpkVdVJ2DiFJ78zC+h qU8LB/eKnQgwpeKqlvRCUkHETvoidehJUi8hluWHdgWI2XLHiaqCazfht0N5+m7tKc4s P7Aw== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@gmail.com header.s=20161025 header.b=JYMGQVcQ; spf=pass (google.com: best guess record for domain of openembedded-core-bounces@lists.openembedded.org designates 140.211.169.62 as permitted sender) smtp.mailfrom=openembedded-core-bounces@lists.openembedded.org; dmarc=fail (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from mail.openembedded.org (mail.openembedded.org. [140.211.169.62]) by mx.google.com with ESMTP id b124si3600061pfg.47.2019.01.30.22.51.05; Wed, 30 Jan 2019 22:51:06 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of openembedded-core-bounces@lists.openembedded.org designates 140.211.169.62 as permitted sender) client-ip=140.211.169.62; Authentication-Results: mx.google.com; dkim=neutral (body hash did not verify) header.i=@gmail.com header.s=20161025 header.b=JYMGQVcQ; spf=pass (google.com: best guess record for domain of openembedded-core-bounces@lists.openembedded.org designates 140.211.169.62 as permitted sender) smtp.mailfrom=openembedded-core-bounces@lists.openembedded.org; dmarc=fail (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from 165.28.230.35.bc.googleusercontent.com (localhost [127.0.0.1]) by mail.openembedded.org (Postfix) with ESMTP id 0A8477C403; Thu, 31 Jan 2019 06:50:59 +0000 (UTC) X-Original-To: openembedded-core@lists.openembedded.org Delivered-To: openembedded-core@lists.openembedded.org Received: from mail-pf1-f174.google.com (mail-pf1-f174.google.com [209.85.210.174]) by mail.openembedded.org (Postfix) with ESMTP id 5F06F7BFAD for ; Thu, 31 Jan 2019 06:50:38 +0000 (UTC) Received: by mail-pf1-f174.google.com with SMTP id g62so1035596pfd.12 for ; Wed, 30 Jan 2019 22:50:39 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=lBgS2otMX0+ou1WJZ8EAmJ0Dy8TV9NHfB1MJtQEm48k=; b=JYMGQVcQG6jqammKJCtKOwnWol4HywUpgpcW/jlpRsax4muvBHi81uiy0Ugm25VCWO 9D2ayGxdLw9n6FUvAREBKTgpE+DXrElrAfCeoySXiOU1mNOQzxompqGhn84Baoaex59e PgRrP047foMSJ92XvD+iQRA3sClZFH3eT0NFke30Mo/LIs+A2CAOBwSa/yvYK1GX2E/M p/FkN61BNHi7BiahSeZSeHIC7rPb5Q4fb0JfZ/MyfGNt6m0mo7zG57PAhYSbx1/hMeYE gnmjxI579h8Rf6VbwAVqhtxnRtUGWbYJrTTl4nIkpY4bfWlC//a7YKn4X8pIMISQRX4y 0UwQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=lBgS2otMX0+ou1WJZ8EAmJ0Dy8TV9NHfB1MJtQEm48k=; b=cIcaExyA9hyez6/iB4srL1EpHHz7L7RrEfKXOUi+dkO+MZq1TWtcGkleJHWBv7PHpy P3KsJCrqXS6IoJfe8+9ctjOBxthHeQY5Hd5GWpNSFYeFdFVyhJq2+ZLUqRNJCbK/Fgmh 47+atfSGXSLprlHF2YlW2xlFwU0GEE0DIqRehBb4HX4CO0QfY/F+4VtuAtf+aIgzjP5U Gq8fpGHwvp7L2L+Dgg54PcaZqGIv45smJOfLFGktjQoQbIid+RlkgArppx9NfjwzLIsc 1xtDhBd30wCZIUavomP2BnhZQ5ZDcZE9nWRIIz6ZAGRrdtfrNLAw7Z3ItzKjBmMw1efL ldVA== X-Gm-Message-State: AJcUukePGzzIf22HYw7T2LC4FFuULnwjbjjlfCmlQb+nlbzO82yw0CZb +JpEH/lX7vDAG0R1rrlMgf08EObI X-Received: by 2002:a63:a84a:: with SMTP id i10mr30886327pgp.263.1548917438565; Wed, 30 Jan 2019 22:50:38 -0800 (PST) Received: from apollo.hsd1.ca.comcast.net ([2601:646:8500:6bc6::26b6]) by smtp.gmail.com with ESMTPSA id o85sm1080044pfi.105.2019.01.30.22.50.37 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 30 Jan 2019 22:50:37 -0800 (PST) From: Khem Raj To: openembedded-core@lists.openembedded.org Date: Wed, 30 Jan 2019 22:50:13 -0800 Message-Id: <20190131065016.21887-3-raj.khem@gmail.com> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20190131065016.21887-1-raj.khem@gmail.com> References: <20190131065016.21887-1-raj.khem@gmail.com> MIME-Version: 1.0 Subject: [OE-core] [PATCH 3/6] libproxy: Fix build with clang/libc++ X-BeenThere: openembedded-core@lists.openembedded.org X-Mailman-Version: 2.1.12 Precedence: list List-Id: Patches and discussions about the oe-core layer List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: openembedded-core-bounces@lists.openembedded.org Errors-To: openembedded-core-bounces@lists.openembedded.org Signed-off-by: Khem Raj --- ...t-pac-test-Fix-build-with-clang-libc.patch | 31 +++++++++++++++++++ .../libproxy/libproxy_0.4.15.bb | 4 ++- 2 files changed, 34 insertions(+), 1 deletion(-) create mode 100644 meta/recipes-support/libproxy/libproxy/0001-get-pac-test-Fix-build-with-clang-libc.patch -- 2.20.1 -- _______________________________________________ Openembedded-core mailing list Openembedded-core@lists.openembedded.org http://lists.openembedded.org/mailman/listinfo/openembedded-core 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 @@ +From 2d73469c7a17ebfe4330ac6643b0c8abdc125d05 Mon Sep 17 00:00:00 2001 +From: Khem Raj +Date: Wed, 30 Jan 2019 09:29:44 -0800 +Subject: [PATCH] get-pac-test: Fix build with clang/libc++ + +get-pac-test.cpp:55:10: error: assigning to 'int' from incompatible type '__bind' + ret = bind(m_sock, (sockaddr*)&addr, sizeof (struct sockaddr_in)); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + +Upstream-Status: Submitted [https://github.com/libproxy/libproxy/pull/97] + +Signed-off-by: Khem Raj +--- + libproxy/test/get-pac-test.cpp | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/libproxy/test/get-pac-test.cpp b/libproxy/test/get-pac-test.cpp +index 0059dfb..911f296 100644 +--- a/libproxy/test/get-pac-test.cpp ++++ b/libproxy/test/get-pac-test.cpp +@@ -52,7 +52,7 @@ class TestServer { + + setsockopt(m_sock, SOL_SOCKET, SO_REUSEADDR, &i, sizeof(i)); + +- ret = bind(m_sock, (sockaddr*)&addr, sizeof (struct sockaddr_in)); ++ ret = ::bind(m_sock, (sockaddr*)&addr, sizeof (struct sockaddr_in)); + assert(!ret); + + ret = listen(m_sock, 1); +-- +2.20.1 + 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 \ DEPENDS = "glib-2.0" -SRC_URI = "https://github.com/${BPN}/${BPN}/releases/download/${PV}/${BP}.tar.xz" +SRC_URI = "https://github.com/${BPN}/${BPN}/releases/download/${PV}/${BP}.tar.xz \ + file://0001-get-pac-test-Fix-build-with-clang-libc.patch \ + " SRC_URI[md5sum] = "f6b1d2a1e17a99cd3debaae6d04ab152" SRC_URI[sha256sum] = "654db464120c9534654590b6683c7fa3887b3dad0ca1c4cd412af24fbfca6d4f"