From patchwork Thu Aug 31 05:28:26 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Khem Raj X-Patchwork-Id: 111354 Delivered-To: patch@linaro.org Received: by 10.140.95.112 with SMTP id h103csp2030869qge; Wed, 30 Aug 2017 22:29:00 -0700 (PDT) X-Google-Smtp-Source: ADKCNb7iATvR/gCfj2JJNNmGutAmeY3BnYUOq6UEJyzebjx3wLDsPSlakfGuUQ0vV63Uo/+uyLnk X-Received: by 10.99.44.22 with SMTP id s22mr1099956pgs.108.1504157340507; Wed, 30 Aug 2017 22:29:00 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1504157340; cv=none; d=google.com; s=arc-20160816; b=wVE5976NFaNufHKISSlc0l1O73nilsZuEj/MRW23ikQQrAuzF1c28yQ7GosFSjKk7h VdF6LjKuoTkplhQgAc4v50zMXh2mRFZGyMZHv864R7JAlDhpZ6eNjMPtKBqNEyunW4W+ P7bhjIA5gUdjxBhhtFjcsXn5QeN5j3D7DHDsMLMd+cDzuGJV1dlQ5b926GKKDgY6IG8z A3J5wWsau8IxvBTnkuk3moV01+5Xs3WKkJQ4xCjpqNj9mg9folAhxir5qfd9yKm+qg+9 8iFYqjLhUAn4QcFNP4uuKDZ/yB1S2oG7RIKiThQ47tagWPGKb/+01tF4Dyp+oekBPrs2 XUZQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=errors-to:sender:content-transfer-encoding:mime-version :list-subscribe:list-help:list-post:list-archive:list-unsubscribe :list-id:precedence:subject:message-id:date:to:from:dkim-signature :delivered-to:arc-authentication-results; bh=KRqfrsnWkeMcJaUTBr0DTPYjGMUsZ7rnGZYEOlDxQLQ=; b=c+uIdXEUlC1betP0vp5pmPL8WMnUQXX7ydeobX0E20dGN4cE8SLoYkzI0keMJZY7S9 ILl5kLE0P1uF8Ne+PA2ouI6metWFhHcE/FN9jlC3Cu4PVOxZlYsS/NxI9gqVzy/2xhw/ 0eaNbxPvfA201lDUXAjvvBOdUL5vGqupUiATFi2xFKjSJ8bWw2M9oJDx3NyuQE+UGyZM 9BBskkfNtAa98NIEba5mlXc2d0UX7kbrEvVBIO6CQ+krOT3k+znr987TLx0MqVfixYsn NkhHuBXVkvNHOoy7kMFPMe18nmEfHH0tBnuikCF7MGk0e6u8/oj88tfOiFYantVUn1Uj dWXw== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@gmail.com header.s=20161025 header.b=JDiEbQkC; spf=pass (google.com: best guess record for domain of openembedded-devel-bounces@lists.openembedded.org designates 140.211.169.62 as permitted sender) smtp.mailfrom=openembedded-devel-bounces@lists.openembedded.org; dmarc=fail (p=NONE sp=NONE 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 a3si5745396pfe.202.2017.08.30.22.28.55; Wed, 30 Aug 2017 22:29:00 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of openembedded-devel-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=JDiEbQkC; spf=pass (google.com: best guess record for domain of openembedded-devel-bounces@lists.openembedded.org designates 140.211.169.62 as permitted sender) smtp.mailfrom=openembedded-devel-bounces@lists.openembedded.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=gmail.com Received: from review.yoctoproject.org (localhost [127.0.0.1]) by mail.openembedded.org (Postfix) with ESMTP id 5C73878361; Thu, 31 Aug 2017 05:28:46 +0000 (UTC) X-Original-To: openembedded-devel@lists.openembedded.org Delivered-To: openembedded-devel@lists.openembedded.org Received: from mail-pf0-f194.google.com (mail-pf0-f194.google.com [209.85.192.194]) by mail.openembedded.org (Postfix) with ESMTP id 3492377E0E for ; Thu, 31 Aug 2017 05:28:34 +0000 (UTC) Received: by mail-pf0-f194.google.com with SMTP id r187so5610561pfr.5 for ; Wed, 30 Aug 2017 22:28:36 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id; bh=LzWYjOGUNuExBZyPWHN5IjAsHOmu1C2bg7mLspLLHzQ=; b=JDiEbQkCvPXu1A/RGCVJ2pU1F+C0K+asAeT1KqqVmUWEHVZeuAvXXddIv3QY2byHWA KzYMnehzBd0jJgCKhkfOkHMlg1E2WaMuTw9oaDQf9LjuJFqepiOMWJRAIdXwpHKElaPJ ufCfRhc/q8CZPCsbSYgyAKTQbfQUDA5Vmqf7b4GIPKZNbFKe59GE2BGEYvTvE87uA6Q0 UJRUiuISEK7Zt3lKbBWuyhosJbnltc0Qo2zIeWda58kwfuNBdlPNWbxuXXG/79QWYgvO 6VHAxx7AEOqxBDnEYvE3Z8yhnwL6bZke19V2YmvcOJg1TNOjclLBENXNtEedBvRKx/px 0PWQ== 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; bh=LzWYjOGUNuExBZyPWHN5IjAsHOmu1C2bg7mLspLLHzQ=; b=oYJRP/v2SeKmUSg2ruN8JM5iyc2OmRyZ/x0Yf6qYFnlxNYDF/m5PsaQmdRSO+bxydx oKTHVmQL0j5eIu920Wzu+uQoHHL+F3guRrNPhY+weP2HuUsfd3b5B4N5Z61awZC0fF1w HD0vntEd/xcxfMlIV19Rpf/b9oNgoCZuIY/2yZD14XSPu74SHS7oCWDaCvd0tuQ1rl7+ kb1dYpRKlSF9PQgoqApFTmNeNBCjGQZbUvU6Zrj/jSiWGW8RePaTLyX2PJyEcYAbxYTJ CfMZyewGWAWn843LnQyODNFHf8HQFVnDWx9v++ro73mwJiTOq0VFAxk2rvVcBjJWfy1H ppaA== X-Gm-Message-State: AHYfb5ggvenaysgqCLUb5yimD62Mt98j2mZIs5m8oeZ+zqg1GZdoIWUh 6AYaPpETJ9ECttFE X-Received: by 10.99.1.5 with SMTP id 5mr1106955pgb.313.1504157316122; Wed, 30 Aug 2017 22:28:36 -0700 (PDT) Received: from localhost.localdomain ([2601:646:8882:b8c::2e06]) by smtp.gmail.com with ESMTPSA id y81sm11737754pfi.153.2017.08.30.22.28.35 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 30 Aug 2017 22:28:35 -0700 (PDT) From: Khem Raj To: openembedded-devel@lists.openembedded.org Date: Wed, 30 Aug 2017 22:28:26 -0700 Message-Id: <20170831052827.34529-1-raj.khem@gmail.com> X-Mailer: git-send-email 2.14.1 Subject: [oe] [meta-oe][PATCH 1/2] serial-forward: Fix build with hardening+musl X-BeenThere: openembedded-devel@lists.openembedded.org X-Mailman-Version: 2.1.12 Precedence: list List-Id: Using the OpenEmbedded metadata to build Distributions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Sender: openembedded-devel-bounces@lists.openembedded.org Errors-To: openembedded-devel-bounces@lists.openembedded.org Signed-off-by: Khem Raj --- ...al_forward-Disable-default-static-linking.patch | 29 ++++++++++++++++++++++ .../serial-utils/serial-forward_git.bb | 6 +++-- 2 files changed, 33 insertions(+), 2 deletions(-) create mode 100644 meta-oe/recipes-support/serial-utils/serial-forward/0001-serial_forward-Disable-default-static-linking.patch -- 2.14.1 -- _______________________________________________ Openembedded-devel mailing list Openembedded-devel@lists.openembedded.org http://lists.openembedded.org/mailman/listinfo/openembedded-devel diff --git a/meta-oe/recipes-support/serial-utils/serial-forward/0001-serial_forward-Disable-default-static-linking.patch b/meta-oe/recipes-support/serial-utils/serial-forward/0001-serial_forward-Disable-default-static-linking.patch new file mode 100644 index 000000000..7dcc67d11 --- /dev/null +++ b/meta-oe/recipes-support/serial-utils/serial-forward/0001-serial_forward-Disable-default-static-linking.patch @@ -0,0 +1,29 @@ +From a0d815ad9918aba977aed9275b3bf3d750a1709b Mon Sep 17 00:00:00 2001 +From: Khem Raj +Date: Wed, 30 Aug 2017 19:24:40 -0700 +Subject: [PATCH] serial_forward: Disable default static linking + +This does not work with ssp turned on with hardening flags on musl + +Signed-off-by: Khem Raj +--- + tools/serial_forward/src/Makefile.am | 3 --- + 1 file changed, 3 deletions(-) + +diff --git a/tools/serial_forward/src/Makefile.am b/tools/serial_forward/src/Makefile.am +index 3f598286..bcac9bc9 100644 +--- a/tools/serial_forward/src/Makefile.am ++++ b/tools/serial_forward/src/Makefile.am +@@ -20,9 +20,6 @@ serial_forward_SOURCES = \ + cy8mrln.h \ + $(NULL) + +-serial_forward_LDFLAGS = \ +- -all-static +- + pty_forward_SOURCES = \ + pty_forward.c \ + $(NULL) +-- +2.14.1 + diff --git a/meta-oe/recipes-support/serial-utils/serial-forward_git.bb b/meta-oe/recipes-support/serial-utils/serial-forward_git.bb index 6494de9d3..0ef829856 100644 --- a/meta-oe/recipes-support/serial-utils/serial-forward_git.bb +++ b/meta-oe/recipes-support/serial-utils/serial-forward_git.bb @@ -3,10 +3,12 @@ AUTHOR = "Holger 'Zecke' Freyther'" LICENSE = "GPLv2" LIC_FILES_CHKSUM = "file://COPYING;md5=ebb5c50ab7cab4baeffba14977030c07" SECTION = "console/devel" -SRCREV = "00dbec2636ae0385ad028587e20e446272ff97ec" +SRCREV = "07c6fdede0870edc37a8d51d033b6e7e29aa7c91" PV = "1.1+gitr${SRCPV}" -SRC_URI = "git://github.com/freesmartphone/cornucopia.git" +SRC_URI = "git://github.com/freesmartphone/cornucopia.git \ + file://0001-serial_forward-Disable-default-static-linking.patch;striplevel=3 \ + " S = "${WORKDIR}/git/tools/serial_forward" inherit autotools From patchwork Thu Aug 31 05:28:27 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Khem Raj X-Patchwork-Id: 111355 Delivered-To: patch@linaro.org Received: by 10.140.95.112 with SMTP id h103csp2031555qge; Wed, 30 Aug 2017 22:29:43 -0700 (PDT) X-Google-Smtp-Source: ADKCNb78tnTTkaIRxl1dgbsJTxRZjtlGtuppyiF/KrpEgBQkk0LqzQnyId77JHfl5euVha9hpjzZ X-Received: by 10.98.93.21 with SMTP id r21mr1038788pfb.207.1504157383348; Wed, 30 Aug 2017 22:29:43 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1504157383; cv=none; d=google.com; s=arc-20160816; b=Lukl2c6zpUonRjJyVgZ0hKAsYgl52hhKhLlhAz3schAj42I0IYaXhz60otAojcRr7y blNISnAGwaHn0WQTdisaOUlMXcxffehlV9LtRKvQi1k0iFFkLhkHZLv14vUTRrnctc/P UvC0MGf4ybLmNzWCiWcJNLpSnWUpzuBpJpACvJ+fy6rVB22G7KTGWmutToc8wHbqakOO 3Iy2+SY5yRuciNfcZRF60NCah3jVhri8VI7GWMyWNnAFvFnL57wesHM21YEqUdmCGLtW 4JZdiguRHs3rcARcXKUGXIOacVkn94Ysv73Nid2k0A0bx0NvhulMk3Y8x9A6pKLSOsnL 6lEw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=errors-to:sender:content-transfer-encoding:mime-version :list-subscribe:list-help:list-post:list-archive:list-unsubscribe :list-id:precedence:subject:references:in-reply-to:message-id:date :to:from:dkim-signature:delivered-to:arc-authentication-results; bh=kd3tcgXrkkeZhznbld6rl4E+4cHJTmLgx+FxQUlFHvE=; b=P1/Da+ONhZMMfOyWgFSisevxd6asPeWAfpjI/fPptJuS85iUYTGDpDaXfHf7mxc044 gDpYqtsjx4itE+Ku88Y82JUPVahd9wAoksvRWOQX4YjEZDpy6UnNKeLWL+NzAN8YZeVT ItjxY2U18ypu0HAlXlZ4ekvCp2oj/4H3lvQrLJ0ZJXGTBSsXSkihzsTUrlghcj9a/rod EybsxmarRI/iMqN6WJ+aVJEsFSpgwXdYoiB2iMeyHg/uczY4Z/aFtUZUFZu7KsSGQKe6 oNViBnT6Do1NZNMkVb62C9D+AeUO2o7IHJhGm/ON+TXMo9vFzwJcxMJqiQRlidr4qsFL y/SQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@gmail.com header.s=20161025 header.b=TJNEypEO; spf=pass (google.com: best guess record for domain of openembedded-devel-bounces@lists.openembedded.org designates 140.211.169.62 as permitted sender) smtp.mailfrom=openembedded-devel-bounces@lists.openembedded.org; dmarc=fail (p=NONE sp=NONE 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 67si5651029pfd.252.2017.08.30.22.29.43; Wed, 30 Aug 2017 22:29:43 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of openembedded-devel-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=TJNEypEO; spf=pass (google.com: best guess record for domain of openembedded-devel-bounces@lists.openembedded.org designates 140.211.169.62 as permitted sender) smtp.mailfrom=openembedded-devel-bounces@lists.openembedded.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=gmail.com Received: from review.yoctoproject.org (localhost [127.0.0.1]) by mail.openembedded.org (Postfix) with ESMTP id EC42A78315; Thu, 31 Aug 2017 05:29:40 +0000 (UTC) X-Original-To: openembedded-devel@lists.openembedded.org Delivered-To: openembedded-devel@lists.openembedded.org Received: from mail-pg0-f65.google.com (mail-pg0-f65.google.com [74.125.83.65]) by mail.openembedded.org (Postfix) with ESMTP id 335AD77D6C for ; Thu, 31 Aug 2017 05:28:35 +0000 (UTC) Received: by mail-pg0-f65.google.com with SMTP id 63so6599276pgc.1 for ; Wed, 30 Aug 2017 22:28:37 -0700 (PDT) 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; bh=VtgJTlIeyT12SpW1xDPEPR1w4RQwG3gjB6GlEcJx0tw=; b=TJNEypEOOjDIGLcHdx8KwdZlAqwnDdDjNnhMHOXh84183utLRqA5K5amnLVnch5xJM M4E/K5xai03RK8pukNRPdpLs4uKEHb6BRwp5r61cOZqn1pB5B01zK/wz4aT85VMu7IrK Tt33xEtxTYr7+yUCMCuYbxgmw8ZOKwK9n51qO9SMjyHGIlsqE/GpFLhjtvfYaiRZS8Re 9WXffpI22BrXgUevrBsbDTREq5KY/uCIqtuNVWRNygEYVYi51NL6OF07nza+jQOL10Zx kIz90EAvl4Hnygweyt4fxjt25vk+oEvHA8NbEfMmESCRwhVYHtBH0PnTf0ag0/Khhuk2 QBmQ== 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; bh=VtgJTlIeyT12SpW1xDPEPR1w4RQwG3gjB6GlEcJx0tw=; b=o6ONjF8oDi1CWJPPPja+fd8T+sSwpQmBjHy8Rek+GPg/u3fUWEeVVCSNuFgMWA1qCd Ll9Cimzppg7ldkttL86mZpaQkhFtbeuyqbvxxikr1TyUbMyheqWcfqfoQ1S+yn2/2bUP NBC/wStjHTACZNjcQ+a3WAeJHTmC93oorF8N81XCK/Hrsxv8jFa7DirB1zT15BXlcbUq 0q++uWuPwkCBWs8qTbN11i3S1GYFO6IkrFaWFgACYbOvA/IZsLlwqHWfSdMMmSZhcz9G CP+mQfaACw6I2jh/fkpORhL+D4ZnYhEIL0sLvePoWX5zcdv02LVD/za4nX/PeahUA6uJ CFgw== X-Gm-Message-State: AHYfb5gv6K3Oye12Nx+9VAW81+iXtqVMOIbdNW0sqXwSX8qcU7b90vhl lKHzQswmro3qRIvx X-Received: by 10.99.122.69 with SMTP id j5mr1105279pgn.18.1504157317045; Wed, 30 Aug 2017 22:28:37 -0700 (PDT) Received: from localhost.localdomain ([2601:646:8882:b8c::2e06]) by smtp.gmail.com with ESMTPSA id y81sm11737754pfi.153.2017.08.30.22.28.36 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 30 Aug 2017 22:28:36 -0700 (PDT) From: Khem Raj To: openembedded-devel@lists.openembedded.org Date: Wed, 30 Aug 2017 22:28:27 -0700 Message-Id: <20170831052827.34529-2-raj.khem@gmail.com> X-Mailer: git-send-email 2.14.1 In-Reply-To: <20170831052827.34529-1-raj.khem@gmail.com> References: <20170831052827.34529-1-raj.khem@gmail.com> Subject: [oe] [meta-oe][PATCH 2/2] gsoap: Fix build with musl X-BeenThere: openembedded-devel@lists.openembedded.org X-Mailman-Version: 2.1.12 Precedence: list List-Id: Using the OpenEmbedded metadata to build Distributions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Sender: openembedded-devel-bounces@lists.openembedded.org Errors-To: openembedded-devel-bounces@lists.openembedded.org Signed-off-by: Khem Raj --- .../gsoap/0001-stdgsoap2-Fix-build-with-musl.patch | 63 ++++++++++++++++++++++ meta-oe/recipes-support/gsoap/gsoap_2.8.51.bb | 3 +- 2 files changed, 65 insertions(+), 1 deletion(-) create mode 100644 meta-oe/recipes-support/gsoap/gsoap/0001-stdgsoap2-Fix-build-with-musl.patch -- 2.14.1 -- _______________________________________________ Openembedded-devel mailing list Openembedded-devel@lists.openembedded.org http://lists.openembedded.org/mailman/listinfo/openembedded-devel diff --git a/meta-oe/recipes-support/gsoap/gsoap/0001-stdgsoap2-Fix-build-with-musl.patch b/meta-oe/recipes-support/gsoap/gsoap/0001-stdgsoap2-Fix-build-with-musl.patch new file mode 100644 index 000000000..571cbe540 --- /dev/null +++ b/meta-oe/recipes-support/gsoap/gsoap/0001-stdgsoap2-Fix-build-with-musl.patch @@ -0,0 +1,63 @@ +From db260fbc7af4c73c997c485a0c69c61594a0e59c Mon Sep 17 00:00:00 2001 +From: Khem Raj +Date: Wed, 30 Aug 2017 19:48:50 -0700 +Subject: [PATCH] stdgsoap2: Fix build with musl + +Signed-off-by: Khem Raj +--- + gsoap/stdsoap2.c | 2 +- + gsoap/stdsoap2.cpp | 4 ++-- + gsoap/stdsoap2.h | 2 +- + 3 files changed, 4 insertions(+), 4 deletions(-) + +diff --git a/gsoap/stdsoap2.c b/gsoap/stdsoap2.c +index 58e9df4..62389e1 100644 +--- a/gsoap/stdsoap2.c ++++ b/gsoap/stdsoap2.c +@@ -4462,7 +4462,7 @@ tcp_gethost(struct soap *soap, const char *addr, struct in_addr *inaddr) + return soap->error = SOAP_EOM; + return SOAP_OK; + } +-#if defined(__GLIBC__) || (defined(HAVE_GETHOSTBYNAME_R) && (defined(FREEBSD) || defined(__FreeBSD__))) || defined(__ANDROID__) ++#if defined(LINUX) || (defined(HAVE_GETHOSTBYNAME_R) && (defined(FREEBSD) || defined(__FreeBSD__))) || defined(__ANDROID__) + if (gethostbyname_r(addr, &hostent, soap->buf, sizeof(soap->buf), &host, &soap->errnum) < 0) + host = NULL; + #elif defined(_AIX43) || ((defined(TRU64) || defined(HP_UX)) && defined(HAVE_GETHOSTBYNAME_R)) +diff --git a/gsoap/stdsoap2.cpp b/gsoap/stdsoap2.cpp +index 58e9df4..b637161 100644 +--- a/gsoap/stdsoap2.cpp ++++ b/gsoap/stdsoap2.cpp +@@ -4462,7 +4462,7 @@ tcp_gethost(struct soap *soap, const char *addr, struct in_addr *inaddr) + return soap->error = SOAP_EOM; + return SOAP_OK; + } +-#if defined(__GLIBC__) || (defined(HAVE_GETHOSTBYNAME_R) && (defined(FREEBSD) || defined(__FreeBSD__))) || defined(__ANDROID__) ++#if defined(LINUX) || (defined(HAVE_GETHOSTBYNAME_R) && (defined(FREEBSD) || defined(__FreeBSD__))) || defined(__ANDROID__) + if (gethostbyname_r(addr, &hostent, soap->buf, sizeof(soap->buf), &host, &soap->errnum) < 0) + host = NULL; + #elif defined(_AIX43) || ((defined(TRU64) || defined(HP_UX)) && defined(HAVE_GETHOSTBYNAME_R)) +@@ -19658,7 +19658,7 @@ soap_strerror(struct soap *soap) + { + #ifndef WIN32 + # ifdef HAVE_STRERROR_R +-# if defined(_GNU_SOURCE) && !defined(__ANDROID__) ++# if defined(_GNU_SOURCE) && !defined(__ANDROID__) && defined(__GLIBC__) + return strerror_r(err, soap->msgbuf, sizeof(soap->msgbuf)); /* GNU-specific */ + # else + strerror_r(err, soap->msgbuf, sizeof(soap->msgbuf)); /* XSI-compliant */ +diff --git a/gsoap/stdsoap2.h b/gsoap/stdsoap2.h +index 07a3952..c6ace4c 100644 +--- a/gsoap/stdsoap2.h ++++ b/gsoap/stdsoap2.h +@@ -947,7 +947,7 @@ extern "C" { + # endif + #elif defined(SOCKLEN_T) + # define SOAP_SOCKLEN_T SOCKLEN_T +-#elif defined(__socklen_t_defined) || defined(_SOCKLEN_T) || defined(CYGWIN) || defined(FREEBSD) || defined(__FreeBSD__) || defined(OPENBSD) || defined(__QNX__) || defined(QNX) || defined(OS390) || defined(__ANDROID__) || defined(_XOPEN_SOURCE) ++#elif defined(__socklen_t_defined) || defined(_SOCKLEN_T) || defined(CYGWIN) || defined(FREEBSD) || defined(__FreeBSD__) || defined(OPENBSD) || defined(__QNX__) || defined(QNX) || defined(OS390) || defined(__ANDROID__) || defined(_XOPEN_SOURCE) || defined (LINUX) + # define SOAP_SOCKLEN_T socklen_t + #elif defined(IRIX) || defined(WIN32) || defined(__APPLE__) || defined(SUN_OS) || defined(OPENSERVER) || defined(TRU64) || defined(VXWORKS) + # define SOAP_SOCKLEN_T int +-- +2.14.1 + diff --git a/meta-oe/recipes-support/gsoap/gsoap_2.8.51.bb b/meta-oe/recipes-support/gsoap/gsoap_2.8.51.bb index 41fccb533..887584461 100644 --- a/meta-oe/recipes-support/gsoap/gsoap_2.8.51.bb +++ b/meta-oe/recipes-support/gsoap/gsoap_2.8.51.bb @@ -7,7 +7,8 @@ LIC_FILES_CHKSUM = "file://LICENSE.txt;md5=4f40a941379143186f9602242c3fb729 \ SRC_URI = "${SOURCEFORGE_MIRROR}/${BPN}2/${BPN}_${PV}.zip \ file://0001-Fix-out-of-tree-builds.patch \ -" + file://0001-stdgsoap2-Fix-build-with-musl.patch \ + " SRC_URI[md5sum] = "212951d6e1435bb51fa4320f458809ea" SRC_URI[sha256sum] = "3e7bb24a9e492f5cb86daca34054c9787152f1d7b70add36b789d03816d5ffa1"