From unknown Sun Aug 17 00:58:11 2025 X-Loop: help-debbugs@gnu.org Subject: [bug#46788] gnu: Add qhttp. Resent-From: Raghav Gururajan Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Fri, 26 Feb 2021 01:38:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 46788 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: To: 46788@debbugs.gnu.org X-Debbugs-Original-To: guix-patches@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.161430345110552 (code B ref -1); Fri, 26 Feb 2021 01:38:02 +0000 Received: (at submit) by debbugs.gnu.org; 26 Feb 2021 01:37:31 +0000 Received: from localhost ([127.0.0.1]:39835 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lFS4R-0002k8-BR for submit@debbugs.gnu.org; Thu, 25 Feb 2021 20:37:31 -0500 Received: from lists.gnu.org ([209.51.188.17]:40652) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lFS4P-0002k1-L9 for submit@debbugs.gnu.org; Thu, 25 Feb 2021 20:37:30 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:43150) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lFS4P-00021n-DG for guix-patches@gnu.org; Thu, 25 Feb 2021 20:37:29 -0500 Received: from out2.migadu.com ([2001:41d0:2:aacc::]:45592) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lFS4N-0005Q3-Cc for guix-patches@gnu.org; Thu, 25 Feb 2021 20:37:29 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=raghavgururajan.name; s=key1; t=1614303444; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type; bh=WeiSf9tXCVgN3Dp7NcFuYUqAkn8+7PpstMopdHUT94U=; b=Z5tW3P+0BkEpZC6kjJBiF5YJPSPeLwXJR1lR7XyDf84F9nCeMQCbFms8Ipj8m6zajIyc01 BTRuyaofn4d3PlJ97JLMVZo1qB+j4X96d8eroOICKfhIfhGpZl8SyHmoPKMPsEVC1bIEAm oEBjFn3fv5EF1K3rn/hwwZ6Ud4ShtoYx8ckbpARDa0ccyyvFKAEkU1vguhHDDkzHYY+ViR eiAVGh69FCu4CW4bAO6iUYNSRr/SP+O/qJ16pqH1IlZNzwCFVl1PS9/H0O6VagJ+Hj/zoq YtBesEZERGAq3vYH+laroYOg+kR0gIBGTmFWxJNErTdna5nzdUAZTxp6bJz4nw== X-Report-Abuse: Please report any abuse attempt to abuse@migadu.com and include these headers. From: Raghav Gururajan Message-ID: <1696eb36-ffe5-18ce-81fa-7ddb87f486a7@raghavgururajan.name> Date: Thu, 25 Feb 2021 20:37:22 -0500 MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="jV56mJy9z8fMi7DW5ce4FgNVcJYtw6eVK" X-Migadu-Flow: FLOW_OUT X-Migadu-Auth-User: rg@raghavgururajan.name Received-SPF: pass client-ip=2001:41d0:2:aacc::; envelope-from=rg@raghavgururajan.name; helo=out2.migadu.com X-Spam_score_int: -1 X-Spam_score: -0.2 X-Spam_bar: / X-Spam_report: (-0.2 / 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, PDS_OTHER_BAD_TLD=1.948, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=no autolearn_force=no X-Spam_action: no action X-Spam-Score: 0.6 (/) 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: -0.4 (/) This is an OpenPGP/MIME signed message (RFC 4880 and 3156) --jV56mJy9z8fMi7DW5ce4FgNVcJYtw6eVK Content-Type: multipart/mixed; boundary="vm3is8bG2PBccEnjaJgYUbNxDGifIPjiv"; protected-headers="v1" From: Raghav Gururajan To: guix-patches@gnu.org Message-ID: <1696eb36-ffe5-18ce-81fa-7ddb87f486a7@raghavgururajan.name> Subject: gnu: Add qhttp. --vm3is8bG2PBccEnjaJgYUbNxDGifIPjiv Content-Type: multipart/mixed; boundary="------------B259D8A64217D50689DA6D59" Content-Language: en-US This is a multi-part message in MIME format. --------------B259D8A64217D50689DA6D59 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: quoted-printable --------------B259D8A64217D50689DA6D59 Content-Type: text/x-patch; charset=UTF-8; name="0002-gnu-Add-qhttp.patch" Content-Transfer-Encoding: quoted-printable Content-Disposition: attachment; filename="0002-gnu-Add-qhttp.patch" =46rom 0b32a63b75d1faffcb7c7b5c71414eacce4b46e8 Mon Sep 17 00:00:00 2001 From: Raghav Gururajan Date: Thu, 25 Feb 2021 19:45:04 -0500 Subject: [PATCH 2/3] gnu: Add qhttp. * gnu/packages/web.scm (qhttp): New variable. --- gnu/packages/web.scm | 62 ++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 62 insertions(+) diff --git a/gnu/packages/web.scm b/gnu/packages/web.scm index e4ba0d5bf9..cb277947e9 100644 --- a/gnu/packages/web.scm +++ b/gnu/packages/web.scm @@ -170,6 +170,68 @@ #:use-module (gnu packages xml) #:use-module ((srfi srfi-1) #:select (delete-duplicates))) =20 +(define-public qhttp + (package + (name "qhttp") + (version "3.1") + (source + (origin + (method git-fetch) + (uri + (git-reference + (url "https://github.com/azadkuh/qhttp.git") + (commit + (string-append "version-" version)))) + (file-name + (git-file-name name version)) + (sha256 + (base32 "0cx23g4y4k4v9p5ph6h7gfhp8sfy1gcdv1g6bl44hppar1y0zfdq"))= )) + (build-system gnu-build-system) + (arguments + `(#:tests? #f ; No target + #:phases + (modify-phases %standard-phases + (add-after 'unpack 'patch-source + (lambda* (#:key outputs #:allow-other-keys) + (substitute* "commondir.pri" + (("\\$\\$PRJDIR/xbin") + (string-append (assoc-ref outputs "out") "/lib")) + (("-L") + "-lhttp_parser -L") + (("\\$\\$PRJDIR/3rdparty") + "")) + (substitute* "src/src.pro" + (("SOURCES \\+=3D \\$\\$PRJDIR/3rdparty/http-parser/http= _parser.c") + "") + (("HEADERS \\+=3D \\$\\$PRJDIR/3rdparty/http-parser/http= _parser.h") + "")) + (substitute* '("src/private/qhttpbase.hpp" "src/qhttpabstra= cts.cpp") + (("http-parser/http_parser.h") + "http_parser.h")) + #t)) + (replace 'configure + (lambda _ + (invoke "qmake") + #t)) + (add-after 'install 'remove-examples + (lambda* (#:key outputs #:allow-other-keys) + (with-directory-excursion + (string-append (assoc-ref outputs "out") "/lib") + (for-each delete-file + (list + "basic-server" + "helloworld" + "postcollector"))) + #t))))) + (inputs + `(("http-parser" ,http-parser) + ("qtbase" ,qtbase))) + (synopsis "Qt-based HTTP Library") + (description "Qhttp is a light-weight and asynchronous HTTP library +(both server & client) in Qt5 and c++14.") + (home-page "https://github.com/azadkuh/qhttp/") + (license license:expat))) + (define-public httpd (package (name "httpd") --=20 2.30.1 --------------B259D8A64217D50689DA6D59-- --vm3is8bG2PBccEnjaJgYUbNxDGifIPjiv-- --jV56mJy9z8fMi7DW5ce4FgNVcJYtw6eVK Content-Type: application/pgp-signature; name="OpenPGP_signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="OpenPGP_signature" -----BEGIN PGP SIGNATURE----- wnsEABYIACMWIQTNLV6qqYzLN9qR1rBfWBZkf4vlUQUCYDhQ0gUDAAAAAAAKCRBfWBZkf4vlUatv AQCxzzfsLj5qL4AQByNjRzzFZYBS98QEcLxzwCVmRU+3ggEAlAVU6NO7niegc2oF81N8hFj3s7yl lb5T+KM5rt2RCg0= =87DD -----END PGP SIGNATURE----- --jV56mJy9z8fMi7DW5ce4FgNVcJYtw6eVK-- From debbugs-submit-bounces@debbugs.gnu.org Fri Feb 26 12:45:33 2021 Received: (at control) by debbugs.gnu.org; 26 Feb 2021 17:45:33 +0000 Received: from localhost ([127.0.0.1]:42322 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lFhBF-0005Ai-Il for submit@debbugs.gnu.org; Fri, 26 Feb 2021 12:45:33 -0500 Received: from out1.migadu.com ([91.121.223.63]:60387) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lFhBC-0005AZ-Cn for control@debbugs.gnu.org; Fri, 26 Feb 2021 12:45:31 -0500 To: control@debbugs.gnu.org DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=raghavgururajan.name; s=key1; t=1614361527; h=from:from:reply-to:subject:date:date:message-id:message-id:to:to:cc: mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=tl8M5n1eM7nspxojq4T5axiZxN+TiOCy1vfc1cj6txg=; b=SevBhx599KCWTKf3fQ9QafewFNH4PZRzKY8jLMEbRN+6PN5b0QbDsEmsJpqn2rI/jgTmur SVEB33mxTsZuRnn1jyBh/DgAb2uJ0GDxSHo4Ax0/+JsQswMq2wr+M619kHXOHw6LDusL7R yfgo/gEmvNnqgEGHExEmstcnqrQMldUEX3aEYssrLgJ7HJzHyCGUj/VtKxoGun3LU6wPLD vg1DQ9ZFuV0IQ0HszjrvoLCH2wcxnGRNcnX03kHn2lLRabtqcVhU9O4TaNsywArkohnBze vN0CySKXEya+2pjh2diu7LYvUwnxmAVBm1hGoBnBan2qRpcTQ9JL57zqD1JDCg== X-Report-Abuse: Please report any abuse attempt to abuse@migadu.com and include these headers. From: Raghav Gururajan Message-ID: <7ba1b108-15aa-35a9-8ea8-aa955b6a3928@raghavgururajan.name> Date: Fri, 26 Feb 2021 12:45:24 -0500 MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 8bit X-Migadu-Flow: FLOW_OUT X-Migadu-Auth-User: rg@raghavgururajan.name X-Spam-Score: 3.3 (+++) X-Spam-Report: Spam detection software, running on the system "debbugs.gnu.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see the administrator of that system for details. Content preview: close 46788 close 46789 Content analysis details: (3.3 points, 10.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -0.7 RCVD_IN_DNSWL_LOW RBL: Sender listed at https://www.dnswl.org/, low trust [91.121.223.63 listed in list.dnswl.org] -0.0 SPF_PASS SPF: sender matches SPF record 0.0 RCVD_IN_MSPIKE_H4 RBL: Very Good reputation (+4) [91.121.223.63 listed in wl.mailspike.net] 0.0 SPF_HELO_NONE SPF: HELO does not publish an SPF Record 1.8 MISSING_SUBJECT Missing Subject: header 0.2 NO_SUBJECT Extra score for no subject 0.0 RCVD_IN_MSPIKE_WL Mailspike good senders 2.0 BODY_EMPTY No body text in message X-Debbugs-Envelope-To: control 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 (++) X-Spam-Report: Spam detection software, running on the system "debbugs.gnu.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see the administrator of that system for details. Content preview: close 46788 close 46789 Content analysis details: (2.3 points, 10.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -0.7 RCVD_IN_DNSWL_LOW RBL: Sender listed at https://www.dnswl.org/, low trust [91.121.223.63 listed in list.dnswl.org] 0.0 RCVD_IN_MSPIKE_H4 RBL: Very Good reputation (+4) [91.121.223.63 listed in wl.mailspike.net] -0.0 SPF_PASS SPF: sender matches SPF record 0.0 SPF_HELO_NONE SPF: HELO does not publish an SPF Record 1.8 MISSING_SUBJECT Missing Subject: header 0.2 NO_SUBJECT Extra score for no subject 0.0 RCVD_IN_MSPIKE_WL Mailspike good senders -1.0 MAILING_LIST_MULTI Multiple indicators imply a widely-seen list manager 2.0 BODY_EMPTY No body text in message close 46788 close 46789 From unknown Sun Aug 17 00:58:11 2025 X-Loop: help-debbugs@gnu.org Subject: [bug#46788] v2 References: <1696eb36-ffe5-18ce-81fa-7ddb87f486a7@raghavgururajan.name> In-Reply-To: <1696eb36-ffe5-18ce-81fa-7ddb87f486a7@raghavgururajan.name> Resent-From: Raghav Gururajan Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Mon, 01 Mar 2021 01:06:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 46788 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: To: 46788@debbugs.gnu.org Cc: Danny Milosavljevic Received: via spool by 46788-submit@debbugs.gnu.org id=B46788.161456075632288 (code B ref 46788); Mon, 01 Mar 2021 01:06:01 +0000 Received: (at 46788) by debbugs.gnu.org; 1 Mar 2021 01:05:56 +0000 Received: from localhost ([127.0.0.1]:47610 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lGX0V-0008Oi-LW for submit@debbugs.gnu.org; Sun, 28 Feb 2021 20:05:55 -0500 Received: from out2.migadu.com ([188.165.223.204]:15228) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lGX0T-0008OX-23 for 46788@debbugs.gnu.org; Sun, 28 Feb 2021 20:05:54 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=raghavgururajan.name; s=key1; t=1614560751; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type; bh=QL20G+yAkHnedv97fHzdCLIFnnc7kL154/diOGbZmno=; b=GnoILe4LpfZ6eBlv8EndhhD/QR4M6wDc5rSiHeKmfHZRzFcelNljkPJvKtdu9cHHkYfEqQ aBlvdWUNNk6lYxzOtjjsabkoYzoJWAH70GhVT7xoE4nzF9FKUpXRRWFo1eWOLE+9NH/7Ox r0SoLp+dQEJMJyuO+qv2PdPVeJsikBouAaA0Sz5/DG3iDfg4C0TsOKRYFANZ9bxWsgriQd EsRWFT4HjQPy2tsTZ1OKZzjIw+dPLhjceD5tVuyIoccTDsN+KYFpEKoi7TVXXM5Sn0p0Au nHRoSo0W4Wj0PG6tMqCJVLytLog8OB8mmG7OZDabX3wdphWMJ7ZnEWCnzyzZGg== X-Report-Abuse: Please report any abuse attempt to abuse@migadu.com and include these headers. From: Raghav Gururajan Message-ID: <1914b75f-156e-7256-85d2-649f5017b0fc@raghavgururajan.name> Date: Sun, 28 Feb 2021 20:05:48 -0500 MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="aZ2OqPt8yeBXBhmxyECuUQlrdqRsRuiH6" X-Migadu-Flow: FLOW_OUT X-Migadu-Auth-User: rg@raghavgururajan.name X-Spam-Score: 1.3 (+) X-Spam-Report: Spam detection software, running on the system "debbugs.gnu.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see the administrator of that system for details. Content preview: From f8d6fd61db6ef36e67404108e8fb9cff6284ba6a Mon Sep 17 00:00:00 2001 From: Raghav Gururajan Date: Thu, 25 Feb 2021 19:45:04 -0500 Subject: [PATCH 2/5] gnu: Add qhttp. * gnu/packages/web.scm (qhttp): New variable. --- gnu/packages/web.scm | 78 ++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 78 insertions(+) Content analysis details: (1.3 points, 10.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- 1.3 PDS_OTHER_BAD_TLD Untrustworthy TLDs [URI: src.pro (pro)] -0.0 RCVD_IN_MSPIKE_H4 RBL: Very Good reputation (+4) [188.165.223.204 listed in wl.mailspike.net] 0.0 SPF_HELO_NONE SPF: HELO does not publish an SPF Record -0.0 SPF_PASS SPF: sender matches SPF record -0.0 RCVD_IN_MSPIKE_WL Mailspike good senders 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: 0.3 (/) This is an OpenPGP/MIME signed message (RFC 4880 and 3156) --aZ2OqPt8yeBXBhmxyECuUQlrdqRsRuiH6 Content-Type: multipart/mixed; boundary="Kk8GeCnofXRtlU4p6ZvdbjH2VEFCMQJYi"; protected-headers="v1" From: Raghav Gururajan To: 46788@debbugs.gnu.org Cc: Danny Milosavljevic Message-ID: <1914b75f-156e-7256-85d2-649f5017b0fc@raghavgururajan.name> Subject: v2 --Kk8GeCnofXRtlU4p6ZvdbjH2VEFCMQJYi Content-Type: multipart/mixed; boundary="------------4F142951032FCD27E7B41641" Content-Language: en-US This is a multi-part message in MIME format. --------------4F142951032FCD27E7B41641 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: quoted-printable --------------4F142951032FCD27E7B41641 Content-Type: text/x-patch; charset=UTF-8; name="0002-gnu-Add-qhttp.patch" Content-Transfer-Encoding: quoted-printable Content-Disposition: attachment; filename="0002-gnu-Add-qhttp.patch" =46rom f8d6fd61db6ef36e67404108e8fb9cff6284ba6a Mon Sep 17 00:00:00 2001 From: Raghav Gururajan Date: Thu, 25 Feb 2021 19:45:04 -0500 Subject: [PATCH 2/5] gnu: Add qhttp. * gnu/packages/web.scm (qhttp): New variable. --- gnu/packages/web.scm | 78 ++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 78 insertions(+) diff --git a/gnu/packages/web.scm b/gnu/packages/web.scm index e4ba0d5bf9..05182de665 100644 --- a/gnu/packages/web.scm +++ b/gnu/packages/web.scm @@ -77,6 +77,7 @@ #:use-module (guix build-system ant) #:use-module (guix build-system cargo) #:use-module (guix build-system cmake) + #:use-module (guix build-system copy) #:use-module (guix build-system glib-or-gtk) #:use-module (guix build-system gnu) #:use-module (guix build-system go) @@ -170,6 +171,83 @@ #:use-module (gnu packages xml) #:use-module ((srfi srfi-1) #:select (delete-duplicates))) =20 +(define-public qhttp + (package + (name "qhttp") + (version "3.1") + (source + (origin + (method git-fetch) + (uri + (git-reference + (url "https://github.com/azadkuh/qhttp.git") + (commit + (string-append "version-" version)))) + (file-name + (git-file-name name version)) + (sha256 + (base32 "0cx23g4y4k4v9p5ph6h7gfhp8sfy1gcdv1g6bl44hppar1y0zfdq"))= )) + (build-system gnu-build-system) + (arguments + `(#:tests? #f ; No target + #:imported-modules + ((guix build copy-build-system) + ,@%gnu-build-system-modules) + #:modules + (((guix build copy-build-system) + #:prefix copy:) + (guix build gnu-build-system) + (guix build utils)) + #:phases + (modify-phases %standard-phases + (add-after 'unpack 'patch-source + (lambda* (#:key outputs #:allow-other-keys) + (substitute* "commondir.pri" + (("\\$\\$PRJDIR/xbin") + (string-append (assoc-ref outputs "out") "/lib")) + (("-L") + "-lhttp_parser -L") + (("\\$\\$PRJDIR/3rdparty") + "")) + (substitute* "src/src.pro" + (("SOURCES \\+=3D \\$\\$PRJDIR/3rdparty/http-parser/http= _parser.c") + "") + (("HEADERS \\+=3D \\$\\$PRJDIR/3rdparty/http-parser/http= _parser.h") + "")) + (substitute* '("src/private/qhttpbase.hpp" "src/qhttpabstra= cts.cpp") + (("http-parser/http_parser.h") + "http_parser.h")) + #t)) + (replace 'configure + (lambda _ + (invoke "qmake") + #t)) + (replace 'install + (lambda args + (apply (assoc-ref copy:%standard-phases 'install) + #:install-plan + '(("src" "include/qhttp" + #:include-regexp ("\\.hpp$"))) + args))) + (add-after 'install 'remove-examples + (lambda* (#:key outputs #:allow-other-keys) + (with-directory-excursion + (string-append (assoc-ref outputs "out") "/lib") + (for-each delete-file + (list + "basic-server" + "helloworld" + "postcollector"))) + #t))))) + (inputs + `(("http-parser" ,http-parser) + ("qtbase" ,qtbase))) + (synopsis "Qt-based HTTP Library") + (description "Qhttp is a light-weight and asynchronous HTTP library +(both server & client) in Qt5 and c++14.") + (home-page "https://github.com/azadkuh/qhttp/") + (license license:expat))) + (define-public httpd (package (name "httpd") --=20 2.30.1 --------------4F142951032FCD27E7B41641-- --Kk8GeCnofXRtlU4p6ZvdbjH2VEFCMQJYi-- --aZ2OqPt8yeBXBhmxyECuUQlrdqRsRuiH6 Content-Type: application/pgp-signature; name="OpenPGP_signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="OpenPGP_signature" -----BEGIN PGP SIGNATURE----- wnsEABYIACMWIQTNLV6qqYzLN9qR1rBfWBZkf4vlUQUCYDw97AUDAAAAAAAKCRBfWBZkf4vlUSDe AP9lokPeEf3Mn/8k50fQWdnnhwrEGbbOUJWt9mLTO/BQTwD9FG5RDwAtbeufebyyfshfdutAjWmH V26Yn5pRJ3K79A0= =Bdm6 -----END PGP SIGNATURE----- --aZ2OqPt8yeBXBhmxyECuUQlrdqRsRuiH6-- From unknown Sun Aug 17 00:58:11 2025 X-Loop: help-debbugs@gnu.org Subject: [bug#46788] v2 Resent-From: Raghav Gururajan Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Mon, 01 Mar 2021 03:24:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 46788 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: To: 46788@debbugs.gnu.org Cc: Danny Milosavljevic Received: via spool by 46788-submit@debbugs.gnu.org id=B46788.161456901212075 (code B ref 46788); Mon, 01 Mar 2021 03:24:02 +0000 Received: (at 46788) by debbugs.gnu.org; 1 Mar 2021 03:23:32 +0000 Received: from localhost ([127.0.0.1]:47675 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lGZ9g-00038h-2G for submit@debbugs.gnu.org; Sun, 28 Feb 2021 22:23:32 -0500 Received: from out1.migadu.com ([91.121.223.63]:46726) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lGZ9c-00038W-P4 for 46788@debbugs.gnu.org; Sun, 28 Feb 2021 22:23:30 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=raghavgururajan.name; s=key1; t=1614569006; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=b/QhgAc2GOZ/uaLCFEBYdLV3AigD8HWnChDyIP99bvA=; b=cE5GOKFDhvV1jA/URQXfWISZiyQ5QfMwR61WqwJIvhn0uxY6uKTsGhQNT1l/tv/TWBx3XI VFiLgID/v/6fDf1W7FrA+Zh3q/hEQdVLsLrsHJYGUF4b4DoQdExySMU5YFMCq5+IazAJqW VYxzRMzNGGa6yU6E0MhCa3k6Nc9PquH6ekELc4IPk9NvbuEy2Vz8chV4GN1LP0Kp8+uxPp DGgGsFxDo78iWXjQLNdrJX1669Di0BGNbapAIIUL2qpBIbIBDF49xSrbPZC9WP5qIJa9zT Wp4clPmsq3volz+bD6VVNnJfiEc5xxiXHEF7AfUXJmWYOU8b4sCL9T8JO9D9EA== X-Report-Abuse: Please report any abuse attempt to abuse@migadu.com and include these headers. From: Raghav Gururajan References: <1914b75f-156e-7256-85d2-649f5017b0fc@raghavgururajan.name> Message-ID: Date: Sun, 28 Feb 2021 22:23:24 -0500 MIME-Version: 1.0 In-Reply-To: <1914b75f-156e-7256-85d2-649f5017b0fc@raghavgururajan.name> Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="Dl5PVWQQ7eRIoVPlEQfEvEnZWDvqeUrc3" X-Migadu-Flow: FLOW_OUT X-Migadu-Auth-User: rg@raghavgururajan.name X-Spam-Score: 0.6 (/) 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: -0.4 (/) This is an OpenPGP/MIME signed message (RFC 4880 and 3156) --Dl5PVWQQ7eRIoVPlEQfEvEnZWDvqeUrc3 Content-Type: multipart/mixed; boundary="fyKVIgLc45XgeZNFoTD5ZTnqpACLzFpMA"; protected-headers="v1" From: Raghav Gururajan To: 46788@debbugs.gnu.org Cc: Danny Milosavljevic Message-ID: Subject: Re: v2 References: <1914b75f-156e-7256-85d2-649f5017b0fc@raghavgururajan.name> In-Reply-To: <1914b75f-156e-7256-85d2-649f5017b0fc@raghavgururajan.name> --fyKVIgLc45XgeZNFoTD5ZTnqpACLzFpMA Content-Type: multipart/mixed; boundary="------------14F79F17FA9C2747807B0782" Content-Language: en-US This is a multi-part message in MIME format. --------------14F79F17FA9C2747807B0782 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: quoted-printable OOPS! Attached wrong file before. Here is the correct one. --------------14F79F17FA9C2747807B0782 Content-Type: text/x-patch; charset=UTF-8; name="0002-gnu-Add-qhttp.patch" Content-Transfer-Encoding: quoted-printable Content-Disposition: attachment; filename="0002-gnu-Add-qhttp.patch" =46rom 372becc078d1578ba8177319f9f3b671ec476b6d Mon Sep 17 00:00:00 2001 From: Raghav Gururajan Date: Thu, 25 Feb 2021 19:45:04 -0500 Subject: [PATCH 2/5] gnu: Add qhttp. * gnu/packages/web.scm (qhttp): New variable. --- gnu/packages/web.scm | 78 ++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 78 insertions(+) diff --git a/gnu/packages/web.scm b/gnu/packages/web.scm index e4ba0d5bf9..3e9fdbb7f6 100644 --- a/gnu/packages/web.scm +++ b/gnu/packages/web.scm @@ -77,6 +77,7 @@ #:use-module (guix build-system ant) #:use-module (guix build-system cargo) #:use-module (guix build-system cmake) + #:use-module (guix build-system copy) #:use-module (guix build-system glib-or-gtk) #:use-module (guix build-system gnu) #:use-module (guix build-system go) @@ -170,6 +171,83 @@ #:use-module (gnu packages xml) #:use-module ((srfi srfi-1) #:select (delete-duplicates))) =20 +(define-public qhttp + (package + (name "qhttp") + (version "3.1") + (source + (origin + (method git-fetch) + (uri + (git-reference + (url "https://github.com/azadkuh/qhttp.git") + (commit + (string-append "version-" version)))) + (file-name + (git-file-name name version)) + (sha256 + (base32 "0cx23g4y4k4v9p5ph6h7gfhp8sfy1gcdv1g6bl44hppar1y0zfdq"))= )) + (build-system gnu-build-system) + (arguments + `(#:tests? #f ; No target + #:imported-modules + ((guix build copy-build-system) + ,@%gnu-build-system-modules) + #:modules + (((guix build copy-build-system) + #:prefix copy:) + (guix build gnu-build-system) + (guix build utils)) + #:phases + (modify-phases %standard-phases + (add-after 'unpack 'patch-source + (lambda* (#:key outputs #:allow-other-keys) + (substitute* "commondir.pri" + (("\\$\\$PRJDIR/xbin") + (string-append (assoc-ref outputs "out") "/lib")) + (("-L") + "-lhttp_parser -L") + (("\\$\\$PRJDIR/3rdparty") + "")) + (substitute* "src/src.pro" + (("SOURCES \\+=3D \\$\\$PRJDIR/3rdparty/http-parser/http= _parser.c") + "") + (("HEADERS \\+=3D \\$\\$PRJDIR/3rdparty/http-parser/http= _parser.h") + "")) + (substitute* '("src/private/qhttpbase.hpp" "src/qhttpabstra= cts.cpp") + (("http-parser/http_parser.h") + "http_parser.h")) + #t)) + (replace 'configure + (lambda _ + (invoke "qmake") + #t)) + (replace 'install + (lambda args + (apply (assoc-ref copy:%standard-phases 'install) + #:install-plan + '(("src" "include" + #:include-regexp ("\\.hpp$"))) + args))) + (add-after 'install 'remove-examples + (lambda* (#:key outputs #:allow-other-keys) + (with-directory-excursion + (string-append (assoc-ref outputs "out") "/lib") + (for-each delete-file + (list + "basic-server" + "helloworld" + "postcollector"))) + #t))))) + (inputs + `(("http-parser" ,http-parser) + ("qtbase" ,qtbase))) + (synopsis "Qt-based HTTP Library") + (description "Qhttp is a light-weight and asynchronous HTTP library +(both server & client) in Qt5 and c++14.") + (home-page "https://github.com/azadkuh/qhttp/") + (license license:expat))) + (define-public httpd (package (name "httpd") --=20 2.30.1 --------------14F79F17FA9C2747807B0782-- --fyKVIgLc45XgeZNFoTD5ZTnqpACLzFpMA-- --Dl5PVWQQ7eRIoVPlEQfEvEnZWDvqeUrc3 Content-Type: application/pgp-signature; name="OpenPGP_signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="OpenPGP_signature" -----BEGIN PGP SIGNATURE----- wnsEABYIACMWIQTNLV6qqYzLN9qR1rBfWBZkf4vlUQUCYDxeLAUDAAAAAAAKCRBfWBZkf4vlUUhT AQCPn7VXl7ixwlBl4bIiZsuzXoBNk8hgn0WxLCQcRa5PdQEA+8R298u1/e9xgzEmIPHubptnnr6m nsej5oE0pkRBcgs= =cUpV -----END PGP SIGNATURE----- --Dl5PVWQQ7eRIoVPlEQfEvEnZWDvqeUrc3-- From debbugs-submit-bounces@debbugs.gnu.org Tue Mar 02 16:02:27 2021 Received: (at control) by debbugs.gnu.org; 2 Mar 2021 21:02:27 +0000 Received: from localhost ([127.0.0.1]:54346 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lHC9z-0005Df-Hl for submit@debbugs.gnu.org; Tue, 02 Mar 2021 16:02:27 -0500 Received: from out0.migadu.com ([94.23.1.103]:48426) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lHC9v-0005DT-IH for control@debbugs.gnu.org; Tue, 02 Mar 2021 16:02:26 -0500 To: control@debbugs.gnu.org DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=raghavgururajan.name; s=key1; t=1614718941; h=from:from:reply-to:subject:date:date:message-id:message-id:to:to:cc: mime-version:mime-version:content-type:content-type; bh=10j38Hi4GvBI8DxEGlFBnjMxOg/vn8vGaKoW97Mog2s=; b=NvaLR1pK/i3JoUk1HfrCP5/0MEd5P2nc2yfeYweugUJqAeIIf7SKhz+jaI9wlHTeO3cqyn WArfcgPXsy3xcd5Ku8ySwjhH01AyjQ1J8KtiSXqrOqnd/9hPuCFQyS+wvWczyg1ssGsK5S 07kBa0EodoE5W+xk5bN+qrFLBdXRK7ftr9pO7nEOr93aI+Rqn67TXGKcm4BvSQ2VLjD503 A33Ha6Y+F+w3WjqOfSQ/KTQXyXqMuCKDNMw6zfHzczEbiBpq80Kkn5XSF/R06IkZH1wjT4 CNKmBVh6xrU1uZcgDvgrLih05nXZMkFwHPR5E23DNYkM1pF2Xs6fu8Ws1feAYg== X-Report-Abuse: Please report any abuse attempt to abuse@migadu.com and include these headers. From: Raghav Gururajan Message-ID: <021ee658-b092-b4e6-1159-9aa09266b823@raghavgururajan.name> Date: Tue, 2 Mar 2021 16:02:20 -0500 MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="Xe7ebRBVrzWubqKNPAag9ehpA5GtlYsaK" X-Migadu-Flow: FLOW_OUT X-Migadu-Auth-User: rg@raghavgururajan.name X-Spam-Score: 1.3 (+) X-Spam-Report: Spam detection software, running on the system "debbugs.gnu.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see the administrator of that system for details. Content preview: close 46787 close 46788 close 46789 Content analysis details: (1.3 points, 10.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -0.7 RCVD_IN_DNSWL_LOW RBL: Sender listed at https://www.dnswl.org/, low trust [94.23.1.103 listed in list.dnswl.org] 0.0 RCVD_IN_MSPIKE_H4 RBL: Very Good reputation (+4) [94.23.1.103 listed in wl.mailspike.net] -0.0 SPF_PASS SPF: sender matches SPF record 0.0 SPF_HELO_NONE SPF: HELO does not publish an SPF Record 0.0 RCVD_IN_MSPIKE_WL Mailspike good senders 1.8 MISSING_SUBJECT Missing Subject: header 0.2 NO_SUBJECT Extra score for no subject X-Debbugs-Envelope-To: control 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: 0.3 (/) This is an OpenPGP/MIME signed message (RFC 4880 and 3156) --Xe7ebRBVrzWubqKNPAag9ehpA5GtlYsaK Content-Type: multipart/mixed; boundary="6N2O3lYxBu95e68TrXD8Ge4D6j2DSeCEI"; protected-headers="v1" From: Raghav Gururajan To: control@debbugs.gnu.org Message-ID: <021ee658-b092-b4e6-1159-9aa09266b823@raghavgururajan.name> --6N2O3lYxBu95e68TrXD8Ge4D6j2DSeCEI Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: quoted-printable close 46787 close 46788 close 46789 --6N2O3lYxBu95e68TrXD8Ge4D6j2DSeCEI-- --Xe7ebRBVrzWubqKNPAag9ehpA5GtlYsaK Content-Type: application/pgp-signature; name="OpenPGP_signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="OpenPGP_signature" -----BEGIN PGP SIGNATURE----- wnsEABYIACMWIQTNLV6qqYzLN9qR1rBfWBZkf4vlUQUCYD6n3AUDAAAAAAAKCRBfWBZkf4vlUdDx AQDPCLjwE/EYYfkyh2OPpAk45SUMYNaUhRqA0F3xk7AMiwD/bnLuTTbDSOmuxufLwcOtu9/rI8Zv Hkw4k+7hUFcQNA8= =xKVG -----END PGP SIGNATURE----- --Xe7ebRBVrzWubqKNPAag9ehpA5GtlYsaK--