From patchwork Thu Jul 19 13:54:08 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Micha=C3=ABl_Burtin?= X-Patchwork-Id: 946372 Return-Path: X-Original-To: incoming-buildroot@patchwork.ozlabs.org Delivered-To: patchwork-incoming-buildroot@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (mailfrom) smtp.mailfrom=busybox.net (client-ip=140.211.166.138; helo=whitealder.osuosl.org; envelope-from=buildroot-bounces@busybox.net; receiver=) Authentication-Results: ozlabs.org; dmarc=none (p=none dis=none) header.from=netgem.com Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (1024-bit key; unprotected) header.d=netgem.com header.i=@netgem.com header.b="XMrWGbyc"; dkim-atps=neutral Received: from whitealder.osuosl.org (smtp1.osuosl.org [140.211.166.138]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 41WbK82TTgz9s5c for ; Fri, 20 Jul 2018 00:01:16 +1000 (AEST) Received: from localhost (localhost [127.0.0.1]) by whitealder.osuosl.org (Postfix) with ESMTP id B00B48A106; Thu, 19 Jul 2018 14:01:11 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from whitealder.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id nA8E9jzPvmN9; Thu, 19 Jul 2018 14:01:09 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by whitealder.osuosl.org (Postfix) with ESMTP id 4F11F8A0EC; Thu, 19 Jul 2018 14:01:09 +0000 (UTC) X-Original-To: buildroot@lists.busybox.net Delivered-To: buildroot@osuosl.org Received: from silver.osuosl.org (smtp3.osuosl.org [140.211.166.136]) by ash.osuosl.org (Postfix) with ESMTP id 1A0841C1217 for ; Thu, 19 Jul 2018 14:01:08 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by silver.osuosl.org (Postfix) with ESMTP id 1756B309B7 for ; Thu, 19 Jul 2018 14:01:08 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from silver.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 6hCyX+5abMLR for ; Thu, 19 Jul 2018 14:01:07 +0000 (UTC) X-Greylist: delayed 00:06:48 by SQLgrey-1.7.6 Received: from mail-wr1-f66.google.com (mail-wr1-f66.google.com [209.85.221.66]) by silver.osuosl.org (Postfix) with ESMTPS id 0523A26B67 for ; Thu, 19 Jul 2018 14:01:06 +0000 (UTC) Received: by mail-wr1-f66.google.com with SMTP id q10-v6so8199072wrd.4 for ; Thu, 19 Jul 2018 07:01:06 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=netgem.com; s=google; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=A2lcMLyfO52tvM2wz18AH+OjiMobNiSJukhyvIIIY7Y=; b=XMrWGbycLWv7DbUV53yY35KIPosIdjJlDG2gV+0qgQmMrMNQPXQjibe6YpfIeqcX3J UvKwW/mb9app3bnDMZioWV/nKbjOM7Z0oAcZWZvdNUWdEE1mFIOrhEIVHPALMeTQbFCD 0mSjpM901l6cSaWLOrLsdp/KkwNgv5AXmXNn0= 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:mime-version :content-transfer-encoding; bh=A2lcMLyfO52tvM2wz18AH+OjiMobNiSJukhyvIIIY7Y=; b=XBuMjPRP8NETpTVBOrAG5cGsI/92tLGRjDivp71KdSyzaQZTq9NLcAtq4fMkUT510Q 9KrUw9c3qZMKC61cKc2teCXnfIexv7nZAi1jl5c0vt9ylCWsyohyKZ53str3rV9YURgP DQ56vXYSo9C+73mw7Fn0s4dezz85tCsTNIWvbOdo2r836SLJbrGPyTuFF9q5vRR3ePmd OCAzRw/AmnwShRTlNcS5OiHEsvmgBKU8d8ylIQip1fbN+N9BoMnhlHsnDMGS0Jlae1LQ SKvftTd5UVFvlWjxNQAVtJ6l7CNh2hakijr3zn01nEnUXWcZGlO0kqYqKMfOvm1cPnPs 5t5g== X-Gm-Message-State: AOUpUlEOLP058ePrDSeFO33yVArVUREowwJBfVU7+nZlTqYfS+Xu5uyN JNKibE83FkK+gKtlM1QYMSlWLIzSuKE= X-Google-Smtp-Source: AAOMgpcNZryN2w0dlTOJ2zQ3lI+Zk1aSek6lA2Pt7+jTo7dcWYoUDdh63hPd20Bvkew69D0Nz4bTqw== X-Received: by 2002:adf:e9c1:: with SMTP id l1-v6mr7377827wrn.14.1532008457664; Thu, 19 Jul 2018 06:54:17 -0700 (PDT) Received: from NTGL-CZC7447F3Z.dev.netgem.com (196-132-190-109.isp.overthebox.ovh. [109.190.132.196]) by smtp.gmail.com with ESMTPSA id b13-v6sm9734258wrn.17.2018.07.19.06.54.16 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Thu, 19 Jul 2018 06:54:17 -0700 (PDT) From: =?utf-8?q?Micha=C3=ABl_Burtin?= To: buildroot@buildroot.org Date: Thu, 19 Jul 2018 15:54:08 +0200 Message-Id: <20180719135409.8859-1-michael.burtin@netgem.com> X-Mailer: git-send-email 2.13.6 MIME-Version: 1.0 Subject: [Buildroot] [PATCH v2 1/2] nghttp2: new package X-BeenThere: buildroot@busybox.net X-Mailman-Version: 2.1.24 Precedence: list List-Id: Discussion and development of buildroot List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Anisse Astier , =?utf-8?q?Micha=C3=ABl_B?= =?utf-8?q?urtin?= Errors-To: buildroot-bounces@busybox.net Sender: "buildroot" nghttp2 is an implementation of HTTP/2 and its header compression algorithm HPACK in C. Signed-off-by: Michaël Burtin Signed-off-by: Anisse Astier --- Changes v1 -> v2 (from Thomas Petazzoni review): - rename package to nghttp2 (original software name) - fix formatting (checked with check-package) - package added to DEVELOPERS file - fix LICENSE_FILES (remove LICENCE) - add checksum for COPYING file --- DEVELOPERS | 1 + package/Config.in | 1 + package/nghttp2/Config.in | 7 +++++++ package/nghttp2/nghttp2.hash | 3 +++ package/nghttp2/nghttp2.mk | 22 ++++++++++++++++++++++ 5 files changed, 34 insertions(+) create mode 100644 package/nghttp2/Config.in create mode 100644 package/nghttp2/nghttp2.hash create mode 100644 package/nghttp2/nghttp2.mk diff --git a/DEVELOPERS b/DEVELOPERS index de09979999..535e2f48ed 100644 --- a/DEVELOPERS +++ b/DEVELOPERS @@ -157,6 +157,7 @@ F: package/sysdig/ N: Anisse Astier F: package/go/ +F: package/nghttp2/ N: Anthony Viallard F: package/gnuplot/ diff --git a/package/Config.in b/package/Config.in index eedce83616..68c2243f87 100644 --- a/package/Config.in +++ b/package/Config.in @@ -1480,6 +1480,7 @@ menu "Networking" source "package/mongoose/Config.in" source "package/nanomsg/Config.in" source "package/neon/Config.in" + source "package/nghttp2/Config.in" source "package/norm/Config.in" source "package/nss-mdns/Config.in" source "package/nss-pam-ldapd/Config.in" diff --git a/package/nghttp2/Config.in b/package/nghttp2/Config.in new file mode 100644 index 0000000000..03fe71d097 --- /dev/null +++ b/package/nghttp2/Config.in @@ -0,0 +1,7 @@ +config BR2_PACKAGE_NGHTTP2 + bool "nghttp2" + help + nghttp2 is an implementation of HTTP/2 and its header + compression algorithm HPACK in C. + + https://nghttp2.org/ diff --git a/package/nghttp2/nghttp2.hash b/package/nghttp2/nghttp2.hash new file mode 100644 index 0000000000..d000fd56c5 --- /dev/null +++ b/package/nghttp2/nghttp2.hash @@ -0,0 +1,3 @@ +# Locally calculated +sha256 f75e8f228217f23aa5eabfbab140e061cda00b7c21e34c891ecfb248d663303f nghttp2-1.32.0.tar.gz +sha256 6b94f3abc1aabd0c72a7c7d92a77f79dda7c8a0cb3df839a97890b4116a2de2a COPYING diff --git a/package/nghttp2/nghttp2.mk b/package/nghttp2/nghttp2.mk new file mode 100644 index 0000000000..20bfee75a3 --- /dev/null +++ b/package/nghttp2/nghttp2.mk @@ -0,0 +1,22 @@ +################################################################################ +# +# nghttp2 +# +################################################################################ + +NGHTTP2_VERSION = 1.32.0 +NGHTTP2_SITE = https://github.com/nghttp2/nghttp2/releases/download/v$(NGHTTP2_VERSION) +NGHTTP2_LICENSE = MIT +NGHTTP2_LICENSE_FILES = COPYING +NGHTTP2_INSTALL_STAGING = YES +NGHTTP2_DEPENDENCIES = host-pkgconf +NGHTTP2_CONF_OPTS = --enable-lib-only + +define NGHTTP2_INSTALL_CLEAN_HOOK + # Remove fetch-ocsp-response script unused by library + $(Q)$(RM) -rf $(TARGET_DIR)/usr/share/nghttp2 +endef + +NGHTTP2_POST_INSTALL_TARGET_HOOKS += NGHTTP2_INSTALL_CLEAN_HOOK + +$(eval $(autotools-package)) From patchwork Thu Jul 19 13:54:09 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Micha=C3=ABl_Burtin?= X-Patchwork-Id: 946347 Return-Path: X-Original-To: incoming-buildroot@patchwork.ozlabs.org Delivered-To: patchwork-incoming-buildroot@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (mailfrom) smtp.mailfrom=busybox.net (client-ip=140.211.166.136; helo=silver.osuosl.org; envelope-from=buildroot-bounces@busybox.net; receiver=) Authentication-Results: ozlabs.org; dmarc=none (p=none dis=none) header.from=netgem.com Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (1024-bit key; unprotected) header.d=netgem.com header.i=@netgem.com header.b="AJbPrFCA"; dkim-atps=neutral Received: from silver.osuosl.org (smtp3.osuosl.org [140.211.166.136]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 41Wb9P72bsz9s55 for ; Thu, 19 Jul 2018 23:54:33 +1000 (AEST) Received: from localhost (localhost [127.0.0.1]) by silver.osuosl.org (Postfix) with ESMTP id C7C0F309B8; Thu, 19 Jul 2018 13:54:30 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from silver.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id aZ3MtPkJFuX9; Thu, 19 Jul 2018 13:54:28 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by silver.osuosl.org (Postfix) with ESMTP id ED17A309B7; Thu, 19 Jul 2018 13:54:27 +0000 (UTC) X-Original-To: buildroot@lists.busybox.net Delivered-To: buildroot@osuosl.org Received: from whitealder.osuosl.org (smtp1.osuosl.org [140.211.166.138]) by ash.osuosl.org (Postfix) with ESMTP id AFCDD1C1217 for ; Thu, 19 Jul 2018 13:54:26 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by whitealder.osuosl.org (Postfix) with ESMTP id ACFA38A07F for ; Thu, 19 Jul 2018 13:54:26 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from whitealder.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id C6nM+sUUkSbJ for ; Thu, 19 Jul 2018 13:54:25 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from mail-wm0-f66.google.com (mail-wm0-f66.google.com [74.125.82.66]) by whitealder.osuosl.org (Postfix) with ESMTPS id 336B08A08A for ; Thu, 19 Jul 2018 13:54:25 +0000 (UTC) Received: by mail-wm0-f66.google.com with SMTP id 69-v6so6481184wmf.3 for ; Thu, 19 Jul 2018 06:54:25 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=netgem.com; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=kjT7gVCWrMJ/G5iHHGaPNSYVxRg0M0+IU7kjKXp7QBc=; b=AJbPrFCAOOV7MjX5kOdyhw4Q1yrTrUzxUVCVjc9m2K9ABfuvOWLfrtz4wH/eCZDZ7Z SjSo6nzevfDy9JN98fO+oPpPplfdgfBhdzoec5/m6YBI5r9ROj1bWzZScJe4I6ms5+Ma coVprGdnIAEDLEUCCDvzY3YRJmW2gcmGAlSNw= 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=kjT7gVCWrMJ/G5iHHGaPNSYVxRg0M0+IU7kjKXp7QBc=; b=pJ+tT48uiEQiSeYUlZyh53HtGPOPTpnol5l93e5qpiT2uUhtfS+7uckLKYExzF4eTl I9mqmOCIt/jugLWs5T87TgB1uAussHNjoync71PE8lNdzYt+DFHa9vDmIJK13ZjhIJrr PFYJ9YAbhHrqAO16zEFO4LsEMzuNUQ0IZkpzM6lN5znEUKnZloV+WR0dUBVDVNj8EG0C qsq3xsPsqnPvWOUJOXqcILnl9PYhudEA+0ofKI9dGFoK1YDJ9vXZ/JnloLWq6AIntmW2 oVO9ndBxW7VxAafwhYxVbVpT0jgPaEQg2B/ZIllkx/xILkuja8zWrHUyhs2ztdn8qrRH CVNQ== X-Gm-Message-State: AOUpUlEtt4OLiiZ1DJAvKwGXqAapYzas9fTflEo1uyln4lNiZyYCsuYg eVsHxgDKY8Q1rFnq+OHlJlFzMEC5Yyg= X-Google-Smtp-Source: AAOMgpf9jW6eSWnFKBOgCIsA3NC+xme6O10JYEp9Eb8XBcTIOsikDLGkBQbdlu+FdNEHhTZvRCImkw== X-Received: by 2002:a1c:5d55:: with SMTP id r82-v6mr4236734wmb.152.1532008463575; Thu, 19 Jul 2018 06:54:23 -0700 (PDT) Received: from NTGL-CZC7447F3Z.dev.netgem.com (196-132-190-109.isp.overthebox.ovh. [109.190.132.196]) by smtp.gmail.com with ESMTPSA id b13-v6sm9734258wrn.17.2018.07.19.06.54.22 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Thu, 19 Jul 2018 06:54:23 -0700 (PDT) From: =?utf-8?q?Micha=C3=ABl_Burtin?= To: buildroot@buildroot.org Date: Thu, 19 Jul 2018 15:54:09 +0200 Message-Id: <20180719135409.8859-2-michael.burtin@netgem.com> X-Mailer: git-send-email 2.13.6 In-Reply-To: <20180719135409.8859-1-michael.burtin@netgem.com> References: <20180719135409.8859-1-michael.burtin@netgem.com> MIME-Version: 1.0 Subject: [Buildroot] [PATCH v2 2/2] libcurl: add nghttp2 optional dependency X-BeenThere: buildroot@busybox.net X-Mailman-Version: 2.1.24 Precedence: list List-Id: Discussion and development of buildroot List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Anisse Astier , =?utf-8?q?Micha=C3=ABl_B?= =?utf-8?q?urtin?= Errors-To: buildroot-bounces@busybox.net Sender: "buildroot" The nghttp2 package has recently been added to buildroot. When enabled, this adds support for HTTP2 to libcurl. By default, libcurl configure script will enable HTTP2 if the library is found using pkg-config. Adding this option makes the build consistent. Signed-off-by: Michaël Burtin Signed-off-by: Anisse Astier --- Changes v1 -> v2 (from Thomas Petazzoni review): - update after rename from libnghttp2 to nghttp2 --- package/libcurl/libcurl.mk | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/package/libcurl/libcurl.mk b/package/libcurl/libcurl.mk index c9b325c672..e0ecb081b7 100644 --- a/package/libcurl/libcurl.mk +++ b/package/libcurl/libcurl.mk @@ -88,6 +88,13 @@ else LIBCURL_CONF_OPTS += --without-brotli endif +ifeq ($(BR2_PACKAGE_NGHTTP2),y) +LIBCURL_DEPENDENCIES += nghttp2 +LIBCURL_CONF_OPTS += --with-nghttp2 +else +LIBCURL_CONF_OPTS += --without-nghttp2 +endif + define LIBCURL_FIX_DOT_PC printf 'Requires: openssl\n' >>$(@D)/libcurl.pc.in endef