From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0 ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms11 with LMTPS id 6OQNAgRROGC2dQAA0tVLHw (envelope-from ) for ; Fri, 26 Feb 2021 01:38:12 +0000 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0 with LMTPS id +KiJOQNROGAGIwAA1q6Kng (envelope-from ) for ; Fri, 26 Feb 2021 01:38:11 +0000 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 5AD9093F2 for ; Fri, 26 Feb 2021 02:38:11 +0100 (CET) Received: from localhost ([::1]:39110 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lFS54-00024s-Hj for larch@yhetil.org; Thu, 25 Feb 2021 20:38:10 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:43232) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lFS4w-00023q-To for guix-patches@gnu.org; Thu, 25 Feb 2021 20:38:02 -0500 Received: from debbugs.gnu.org ([209.51.188.43]:56524) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lFS4w-0005dO-MM for guix-patches@gnu.org; Thu, 25 Feb 2021 20:38:02 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1lFS4w-0002l8-KY for guix-patches@gnu.org; Thu, 25 Feb 2021 20:38:02 -0500 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. 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-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-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: guix-patches@gnu.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+larch=yhetil.org@gnu.org Sender: "Guix-patches" Reply-to: Raghav Gururajan X-ACL-Warn: , Raghav Gururajan via Guix-patches From: Raghav Gururajan via Guix-patches via X-Migadu-Flow: FLOW_IN X-Migadu-Spam-Score: -4.97 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=raghavgururajan.name header.s=key1 header.b=Z5tW3P+0; dmarc=pass (policy=none) header.from=gnu.org; spf=pass (aspmx1.migadu.com: domain of guix-patches-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=guix-patches-bounces@gnu.org X-Migadu-Queue-Id: 5AD9093F2 X-Spam-Score: -4.97 X-Migadu-Scanner: scn0.migadu.com X-TUID: Xp1TdqHhVjYD 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--