From unknown Fri Aug 15 18:47:45 2025 X-Loop: help-debbugs@gnu.org Subject: [bug#50200] [PATCH] gnu: Add h2c. Resent-From: Felix Gruber Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Wed, 25 Aug 2021 17:01:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 50200 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 50200@debbugs.gnu.org Cc: Felix Gruber X-Debbugs-Original-To: guix-patches@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.16299108184381 (code B ref -1); Wed, 25 Aug 2021 17:01:01 +0000 Received: (at submit) by debbugs.gnu.org; 25 Aug 2021 17:00:18 +0000 Received: from localhost ([127.0.0.1]:47531 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mIwG4-00018W-SI for submit@debbugs.gnu.org; Wed, 25 Aug 2021 13:00:18 -0400 Received: from lists.gnu.org ([209.51.188.17]:41224) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mIwFz-00018E-0g for submit@debbugs.gnu.org; Wed, 25 Aug 2021 13:00:11 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:45324) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mIwFy-0005dS-Ip for guix-patches@gnu.org; Wed, 25 Aug 2021 13:00:06 -0400 Received: from mout01.posteo.de ([185.67.36.65]:43229) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mIwFs-0000hx-8X for guix-patches@gnu.org; Wed, 25 Aug 2021 13:00:06 -0400 Received: from submission (posteo.de [89.146.220.130]) by mout01.posteo.de (Postfix) with ESMTPS id 572C324002A for ; Wed, 25 Aug 2021 18:59:56 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1629910796; bh=afLcTrgjM0y+k5mmerU2Tk4NUhBqEe3WHUU+KIDLiWw=; h=From:To:Cc:Subject:Date:From; b=rdk0BDFmVznmeeR3IoVwpxpW0D2E5tFqDTPSFcKNb7uKsOieewbXFTfrWAq3mvUQN nNo5H1iRS2sF1sEuZXJRhZ7Oi6+eiSoM1FEF99cCcaWyzBecnNg+GlFAytDB8ldW6D kfzmOAcOL8g8Kvp+D4UJQBK5f9SgPxgqzGnyNsflLbr7VGeB/dW5nrwIZIhEeXBNcB JTYpZutQiYsiDr8egizXpXQgGfsHAxY7yGbo/4JDfxO4akATN+tmCugiE2L9RZtX2R juTfHx69WjjfsSi0Wg4RgqCnWfzn+GkQ5FAOvT2WzYpPKXsslTvZK/rjtvjY47WFtj uwsO35nIuQdVA== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4GvsfM4vrmz6tm6; Wed, 25 Aug 2021 18:59:55 +0200 (CEST) From: Felix Gruber Date: Wed, 25 Aug 2021 16:59:32 +0000 Message-Id: <20210825165932.36513-1-felgru@posteo.net> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Received-SPF: pass client-ip=185.67.36.65; envelope-from=felgru@posteo.net; helo=mout01.posteo.de X-Spam_score_int: -43 X-Spam_score: -4.4 X-Spam_bar: ---- X-Spam_report: (-4.4 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_MED=-2.3, RCVD_IN_MSPIKE_H2=-0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Spam-Score: -1.3 (-) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -2.3 (--) * gnu/packages/curl.scm (h2c): New variable. --- gnu/packages/curl.scm | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) diff --git a/gnu/packages/curl.scm b/gnu/packages/curl.scm index e6f1bb0c41..c61a56256c 100644 --- a/gnu/packages/curl.scm +++ b/gnu/packages/curl.scm @@ -12,6 +12,7 @@ ;;; Copyright © 2020 Jakub Kądziołka ;;; Copyright © 2020 Dale Mellor ;;; Copyright © 2021 Jean-Baptiste Volatier +;;; Copyright © 2021 Felix Gruber ;;; ;;; This file is part of GNU Guix. ;;; @@ -35,6 +36,7 @@ #:use-module (guix git-download) #:use-module (guix utils) #:use-module (guix build-system cmake) + #:use-module (guix build-system copy) #:use-module (guix build-system gnu) #:use-module (guix build-system go) #:use-module (gnu packages) @@ -334,3 +336,30 @@ user+password authentication, file transfer resume, http proxy tunneling and more!") (home-page "http://www.curlpp.org") (license license:expat))) + +(define-public h2c + (package + (name "h2c") + (version "1.0") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/curl/h2c") + (commit version))) + (sha256 + (base32 + "1n8z6avzhg3yb330di2y9zymsps1qp1235p29kidcp4fkmn7fgb2")) + (file-name (git-file-name name version)))) + (build-system copy-build-system) + (arguments + '(#:install-plan + '(("./h2c" "bin/")))) + (inputs + `(("perl" ,perl))) + (home-page "https://curl.se/h2c/") + (synopsis "Convert HTTP headers to a curl command line") + (description + "Provided a set of HTTP request headers, h2c outputs how to invoke +curl to obtain exactly that HTTP request.") + (license license:expat))) -- 2.30.2 From unknown Fri Aug 15 18:47:45 2025 MIME-Version: 1.0 X-Mailer: MIME-tools 5.505 (Entity 5.505) X-Loop: help-debbugs@gnu.org From: help-debbugs@gnu.org (GNU bug Tracking System) To: Felix Gruber Subject: bug#50200: closed (Re: bug#50200: [PATCH] gnu: Add h2c.) Message-ID: References: <87bl5d67nr.fsf@gnu.org> <20210825165932.36513-1-felgru@posteo.net> X-Gnu-PR-Message: they-closed 50200 X-Gnu-PR-Package: guix-patches X-Gnu-PR-Keywords: patch Reply-To: 50200@debbugs.gnu.org Date: Tue, 31 Aug 2021 13:56:01 +0000 Content-Type: multipart/mixed; boundary="----------=_1630418161-20204-1" This is a multi-part message in MIME format... ------------=_1630418161-20204-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" Your bug report #50200: [PATCH] gnu: Add h2c. which was filed against the guix-patches package, has been closed. The explanation is attached below, along with your original report. If you require more details, please reply to 50200@debbugs.gnu.org. --=20 50200: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=3D50200 GNU Bug Tracking System Contact help-debbugs@gnu.org with problems ------------=_1630418161-20204-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at 50200-done) by debbugs.gnu.org; 31 Aug 2021 13:55:45 +0000 Received: from localhost ([127.0.0.1]:34206 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mL4Eq-00051P-Ea for submit@debbugs.gnu.org; Tue, 31 Aug 2021 09:55:45 -0400 Received: from eggs.gnu.org ([209.51.188.92]:41922) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mL4Eo-00051C-6B for 50200-done@debbugs.gnu.org; Tue, 31 Aug 2021 09:55:42 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]:36540) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mL4Ei-0008Fy-RT; Tue, 31 Aug 2021 09:55:36 -0400 Received: from [2a01:e0a:19b:d9a0:f2f7:a404:c3d3:f8b4] (port=37384 helo=meije) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mL4EE-0001o5-2l; Tue, 31 Aug 2021 09:55:16 -0400 From: Mathieu Othacehe To: Felix Gruber Subject: Re: bug#50200: [PATCH] gnu: Add h2c. References: <20210825165932.36513-1-felgru@posteo.net> Date: Tue, 31 Aug 2021 15:55:04 +0200 In-Reply-To: <20210825165932.36513-1-felgru@posteo.net> (Felix Gruber's message of "Wed, 25 Aug 2021 16:59:32 +0000") Message-ID: <87bl5d67nr.fsf@gnu.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.2 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 50200-done Cc: 50200-done@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) > * gnu/packages/curl.scm (h2c): New variable. Pushed, thanks! Mathieu ------------=_1630418161-20204-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at submit) by debbugs.gnu.org; 25 Aug 2021 17:00:18 +0000 Received: from localhost ([127.0.0.1]:47531 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mIwG4-00018W-SI for submit@debbugs.gnu.org; Wed, 25 Aug 2021 13:00:18 -0400 Received: from lists.gnu.org ([209.51.188.17]:41224) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mIwFz-00018E-0g for submit@debbugs.gnu.org; Wed, 25 Aug 2021 13:00:11 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:45324) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mIwFy-0005dS-Ip for guix-patches@gnu.org; Wed, 25 Aug 2021 13:00:06 -0400 Received: from mout01.posteo.de ([185.67.36.65]:43229) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mIwFs-0000hx-8X for guix-patches@gnu.org; Wed, 25 Aug 2021 13:00:06 -0400 Received: from submission (posteo.de [89.146.220.130]) by mout01.posteo.de (Postfix) with ESMTPS id 572C324002A for ; Wed, 25 Aug 2021 18:59:56 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1629910796; bh=afLcTrgjM0y+k5mmerU2Tk4NUhBqEe3WHUU+KIDLiWw=; h=From:To:Cc:Subject:Date:From; b=rdk0BDFmVznmeeR3IoVwpxpW0D2E5tFqDTPSFcKNb7uKsOieewbXFTfrWAq3mvUQN nNo5H1iRS2sF1sEuZXJRhZ7Oi6+eiSoM1FEF99cCcaWyzBecnNg+GlFAytDB8ldW6D kfzmOAcOL8g8Kvp+D4UJQBK5f9SgPxgqzGnyNsflLbr7VGeB/dW5nrwIZIhEeXBNcB JTYpZutQiYsiDr8egizXpXQgGfsHAxY7yGbo/4JDfxO4akATN+tmCugiE2L9RZtX2R juTfHx69WjjfsSi0Wg4RgqCnWfzn+GkQ5FAOvT2WzYpPKXsslTvZK/rjtvjY47WFtj uwsO35nIuQdVA== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4GvsfM4vrmz6tm6; Wed, 25 Aug 2021 18:59:55 +0200 (CEST) From: Felix Gruber To: guix-patches@gnu.org Subject: [PATCH] gnu: Add h2c. Date: Wed, 25 Aug 2021 16:59:32 +0000 Message-Id: <20210825165932.36513-1-felgru@posteo.net> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Received-SPF: pass client-ip=185.67.36.65; envelope-from=felgru@posteo.net; helo=mout01.posteo.de X-Spam_score_int: -43 X-Spam_score: -4.4 X-Spam_bar: ---- X-Spam_report: (-4.4 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_MED=-2.3, RCVD_IN_MSPIKE_H2=-0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Spam-Score: -1.3 (-) X-Debbugs-Envelope-To: submit Cc: Felix Gruber X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -2.3 (--) * gnu/packages/curl.scm (h2c): New variable. --- gnu/packages/curl.scm | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) diff --git a/gnu/packages/curl.scm b/gnu/packages/curl.scm index e6f1bb0c41..c61a56256c 100644 --- a/gnu/packages/curl.scm +++ b/gnu/packages/curl.scm @@ -12,6 +12,7 @@ ;;; Copyright © 2020 Jakub Kądziołka ;;; Copyright © 2020 Dale Mellor ;;; Copyright © 2021 Jean-Baptiste Volatier +;;; Copyright © 2021 Felix Gruber ;;; ;;; This file is part of GNU Guix. ;;; @@ -35,6 +36,7 @@ #:use-module (guix git-download) #:use-module (guix utils) #:use-module (guix build-system cmake) + #:use-module (guix build-system copy) #:use-module (guix build-system gnu) #:use-module (guix build-system go) #:use-module (gnu packages) @@ -334,3 +336,30 @@ user+password authentication, file transfer resume, http proxy tunneling and more!") (home-page "http://www.curlpp.org") (license license:expat))) + +(define-public h2c + (package + (name "h2c") + (version "1.0") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/curl/h2c") + (commit version))) + (sha256 + (base32 + "1n8z6avzhg3yb330di2y9zymsps1qp1235p29kidcp4fkmn7fgb2")) + (file-name (git-file-name name version)))) + (build-system copy-build-system) + (arguments + '(#:install-plan + '(("./h2c" "bin/")))) + (inputs + `(("perl" ,perl))) + (home-page "https://curl.se/h2c/") + (synopsis "Convert HTTP headers to a curl command line") + (description + "Provided a set of HTTP request headers, h2c outputs how to invoke +curl to obtain exactly that HTTP request.") + (license license:expat))) -- 2.30.2 ------------=_1630418161-20204-1--