From patchwork Sat Jul 4 00:44:36 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sergio Prado X-Patchwork-Id: 1322702 Return-Path: X-Original-To: incoming-buildroot@patchwork.ozlabs.org Delivered-To: patchwork-incoming-buildroot@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=busybox.net (client-ip=140.211.166.137; helo=fraxinus.osuosl.org; envelope-from=buildroot-bounces@busybox.net; receiver=) Authentication-Results: ozlabs.org; dmarc=none (p=none dis=none) header.from=e-labworks.com Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=e-labworks-com.20150623.gappssmtp.com header.i=@e-labworks-com.20150623.gappssmtp.com header.a=rsa-sha256 header.s=20150623 header.b=OhVltJko; dkim-atps=neutral Received: from fraxinus.osuosl.org (smtp4.osuosl.org [140.211.166.137]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 49zCm13gPQz9s1x for ; Sat, 4 Jul 2020 10:45:05 +1000 (AEST) Received: from localhost (localhost [127.0.0.1]) by fraxinus.osuosl.org (Postfix) with ESMTP id 0DA7F878FB; Sat, 4 Jul 2020 00:45:01 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from fraxinus.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id xC327-4rPEeb; Sat, 4 Jul 2020 00:44:59 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by fraxinus.osuosl.org (Postfix) with ESMTP id 80073878BD; Sat, 4 Jul 2020 00:44:59 +0000 (UTC) X-Original-To: buildroot@lists.busybox.net Delivered-To: buildroot@osuosl.org Received: from hemlock.osuosl.org (smtp2.osuosl.org [140.211.166.133]) by ash.osuosl.org (Postfix) with ESMTP id E468B1BF9C6 for ; Sat, 4 Jul 2020 00:44:58 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by hemlock.osuosl.org (Postfix) with ESMTP id E0ECE89504 for ; Sat, 4 Jul 2020 00:44:58 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from hemlock.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id RmXD9gu1pvSd for ; Sat, 4 Jul 2020 00:44:58 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from mail-ej1-f65.google.com (mail-ej1-f65.google.com [209.85.218.65]) by hemlock.osuosl.org (Postfix) with ESMTPS id DE59D894F2 for ; Sat, 4 Jul 2020 00:44:57 +0000 (UTC) Received: by mail-ej1-f65.google.com with SMTP id y10so35983032eje.1 for ; Fri, 03 Jul 2020 17:44:57 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=e-labworks-com.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id; bh=upbS8sA/SoTcPv6Lhq9VR9fyehPINWF9iXJD4IkmkWw=; b=OhVltJkoI0Jceu7o0C11NI9RexBtyKi6xjYTyF7iu0Slr6z7MqlI6aqgA95md/reQq XOuemG+t8+y8gBKJ98RQyEvIlCchP3DTkyn5355Kz4gS1GktAmdfC0gx0h8Wa4iafU8o AHT5dRwAyMbIxOh/Ug6g+QMWJKKRZszEV7v0vXrfs4gl4mylWf8ccAQgPNsRLisQSvEA f6tQykgNcLCmRIwBt7FFNwOV979DtgT9bAqJSsmJRRQy0xQP3LJ2d7G62wKkr/gyhs0H baB6FY9ZeuIKNjAQtcJE8IPQFGg0/0Des8Z6Qrc0580Bnx6vfsptDlqTit6qG2Nhzfh4 nsxQ== 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=upbS8sA/SoTcPv6Lhq9VR9fyehPINWF9iXJD4IkmkWw=; b=OBVRWNjYQ9p4VJLSp3pxvq6ZNBFhJA+2WsLwKuEdpEblazUuoal/Ttcyue9SHLUzTs v4cG32k8g31HgX9GJoMoXZP0eF4epwq4B7vXHNZBhqwTbBDCAqL9NqGPbP1kdlIjNXpJ GDvMX1X/sdY84MEB4CqRYmJUmDQFEPihzq/IWHfoEUZM2I8oRrTfImlgmkmPDIYVbQ3u dcc6lHjzp67Ngz4tV9XUWCRNcnLwPD8InLFmIOnVoubHIS+h1vt7QqXO88rC7gMH348b +VvNW6GxPBPTXaCe08X+zxVhJ45SwUF8/uOkCYfbJnY4lwpK+JkWrCz+ATruT1BzIei2 Wiqg== X-Gm-Message-State: AOAM533j3AoDIV2Lj5zB0JyqxNDqfZO0FM51QPOEgzE/eVIpGHotJJMF h4AsBjWDrx4g32t9VTMcWjJSNm8GWeA= X-Google-Smtp-Source: ABdhPJwPgVpFek9QRZVbYzzQc7RQT6rqycV6zhYkJjf570WhoYn1MDEYWdLDYAvabfTM/ZKaGXx1Fw== X-Received: by 2002:a17:906:2c53:: with SMTP id f19mr32891979ejh.523.1593823495827; Fri, 03 Jul 2020 17:44:55 -0700 (PDT) Received: from localhost.localdomain ([189.62.45.221]) by smtp.gmail.com with ESMTPSA id v24sm10647591eja.29.2020.07.03.17.44.54 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 03 Jul 2020 17:44:55 -0700 (PDT) From: Sergio Prado To: buildroot@buildroot.org Date: Fri, 3 Jul 2020 21:44:36 -0300 Message-Id: <20200704004436.21509-1-sergio.prado@e-labworks.com> X-Mailer: git-send-email 2.17.1 Subject: [Buildroot] [PATCH] package/azure-iot-sdk-c: bump version to LTS_02_2020_Ref01 X-BeenThere: buildroot@busybox.net X-Mailman-Version: 2.1.29 Precedence: list List-Id: Discussion and development of buildroot List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Sergio Prado MIME-Version: 1.0 Errors-To: buildroot-bounces@busybox.net Sender: "buildroot" Also: - Add missing hash file. - Add new libraries to the install target. - Apply patch to fix build with musl (MR sent upstream in [1]). - Since there is no maintainer for this package, I can help maintain it, so add the package to the DEVELOPERS file. [1] https://github.com/Azure/azure-c-shared-utility/pull/456 Signed-off-by: Sergio Prado --- DEVELOPERS | 1 + ...0001-Fix-redirection-of-errno-header.patch | 32 +++++++++++++++++++ package/azure-iot-sdk-c/azure-iot-sdk-c.hash | 5 +++ package/azure-iot-sdk-c/azure-iot-sdk-c.mk | 12 ++++--- 4 files changed, 46 insertions(+), 4 deletions(-) create mode 100644 package/azure-iot-sdk-c/0001-Fix-redirection-of-errno-header.patch create mode 100644 package/azure-iot-sdk-c/azure-iot-sdk-c.hash diff --git a/DEVELOPERS b/DEVELOPERS index 4b6a346a05d3..d67c75033fdd 100644 --- a/DEVELOPERS +++ b/DEVELOPERS @@ -2304,6 +2304,7 @@ N: Sergio Prado F: board/toradex/apalis-imx6/ F: configs/toradex_apalis_imx6_defconfig F: package/aoetools/ +F: package/azure-iot-sdk-c/ F: package/curlpp/ F: package/daq/ F: package/libgdiplus/ diff --git a/package/azure-iot-sdk-c/0001-Fix-redirection-of-errno-header.patch b/package/azure-iot-sdk-c/0001-Fix-redirection-of-errno-header.patch new file mode 100644 index 000000000000..efc3d3326540 --- /dev/null +++ b/package/azure-iot-sdk-c/0001-Fix-redirection-of-errno-header.patch @@ -0,0 +1,32 @@ +From 9ff62052a9490c96366d97096a039dca30702b2d Mon Sep 17 00:00:00 2001 +From: Sergio Prado +Date: Fri, 3 Jul 2020 21:09:20 -0300 +Subject: [PATCH] Fix redirection of errno header + +The POSIX correct header to include is . + +The glibc silently redirects incorrect includes, but musl libc prints +a warning: + #warning redirecting incorrect #include to + +Signed-off-by: Sergio Prado +--- + c-utility/pal/linux/socket_async_os.h | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/c-utility/pal/linux/socket_async_os.h b/c-utility/pal/linux/socket_async_os.h +index bd59e487c099..1797089851e3 100644 +--- a/c-utility/pal/linux/socket_async_os.h ++++ b/c-utility/pal/linux/socket_async_os.h +@@ -10,7 +10,7 @@ + #include + #include + #include +-#include ++#include + #include + #include + #include +-- +2.17.1 + diff --git a/package/azure-iot-sdk-c/azure-iot-sdk-c.hash b/package/azure-iot-sdk-c/azure-iot-sdk-c.hash new file mode 100644 index 000000000000..e9c3cf427965 --- /dev/null +++ b/package/azure-iot-sdk-c/azure-iot-sdk-c.hash @@ -0,0 +1,5 @@ +# Locally computed: +sha256 36f41f4f59eb0b4a61e7d64ba8fabb4bcc66ab21473688273cd45c2a7b65bb49 azure-iot-sdk-c-LTS_02_2020_Ref01.tar.gz + +# Hash for license files: +sha256 be2e9913fad9ff33607287c728f392579e2a6cc83e51b203ef6274c41db02ee7 LICENSE diff --git a/package/azure-iot-sdk-c/azure-iot-sdk-c.mk b/package/azure-iot-sdk-c/azure-iot-sdk-c.mk index f63297844db5..caca857591de 100644 --- a/package/azure-iot-sdk-c/azure-iot-sdk-c.mk +++ b/package/azure-iot-sdk-c/azure-iot-sdk-c.mk @@ -4,7 +4,7 @@ # ################################################################################ -AZURE_IOT_SDK_C_VERSION = 2018-12-13 +AZURE_IOT_SDK_C_VERSION = LTS_02_2020_Ref01 AZURE_IOT_SDK_C_SITE = https://github.com/Azure/azure-iot-sdk-c AZURE_IOT_SDK_C_SITE_METHOD = git AZURE_IOT_SDK_C_GIT_SUBMODULES = YES @@ -29,6 +29,8 @@ AZURE_IOT_SDK_C_LIBS += \ iothub_service_client/libiothub_service_client.a \ serializer/libserializer.a \ umqtt/libumqtt.a \ + deps/uhttp/libuhttp.a \ + deps/umock-c/libumock_c.a \ libparson.a else AZURE_IOT_SDK_C_LIBS += \ @@ -42,12 +44,14 @@ AZURE_IOT_SDK_C_LIBS += \ iothub_client/libiothub_client_mqtt_transport.so \ iothub_service_client/libiothub_service_client.so \ serializer/libserializer.so \ - umqtt/libumqtt.so.1.1.11 \ + umqtt/libumqtt.so.1.1.12 \ + deps/uhttp/libuhttp.so \ + deps/umock-c/libumock_c.so \ libparson.so define AZURE_IOT_SDK_C_CREATE_SYMLINKS - ln -sf libumqtt.so.1.1.11 $(1)/usr/lib/libumqtt.so.1 - ln -sf libumqtt.so.1.1.11 $(1)/usr/lib/libumqtt.so + ln -sf libumqtt.so.1.1.12 $(1)/usr/lib/libumqtt.so.1 + ln -sf libumqtt.so.1.1.12 $(1)/usr/lib/libumqtt.so endef endif