From debbugs-submit-bounces@debbugs.gnu.org Thu Jan 20 10:08:58 2022 Received: (at submit) by debbugs.gnu.org; 20 Jan 2022 15:08:58 +0000 Received: from localhost ([127.0.0.1]:58972 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nAZ3a-00032h-2v for submit@debbugs.gnu.org; Thu, 20 Jan 2022 10:08:58 -0500 Received: from lists.gnu.org ([209.51.188.17]:45734) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nAZ3Z-00032Y-5R for submit@debbugs.gnu.org; Thu, 20 Jan 2022 10:08:57 -0500 Received: from eggs.gnu.org ([209.51.188.92]:50176) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nAZ3W-0002i5-6s for guix-patches@gnu.org; Thu, 20 Jan 2022 10:08:55 -0500 Received: from rdmp.org ([52.19.174.175]:33114) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nAZ3T-0004B1-BC for guix-patches@gnu.org; Thu, 20 Jan 2022 10:08:53 -0500 Received: from [127.0.0.1] (helo=[IPv6:::1]) by rdmp.org with esmtp (Exim 4.94) (envelope-from ) id 1nAZ3P-0006DW-Jl for guix-patches@gnu.org; Thu, 20 Jan 2022 15:08:47 +0000 Message-ID: <7223e4b8a73de2ba01fc7a47eb3252587fe91d29.camel@rdmp.org> Subject: [PATCH] gnu: curl: patch curlpp.pc.in before configure. From: Dale Mellor To: guix-patches Date: Thu, 20 Jan 2022 15:08:47 +0000 Organization: DM Bespoke Computer Solutions Ltd Content-Type: text/plain; charset="UTF-8" User-Agent: Evolution 3.38.3-1 MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Received-SPF: softfail client-ip=52.19.174.175; envelope-from=guix-devel-0brg6b@rdmp.org; helo=rdmp.org X-Spam_score_int: -4 X-Spam_score: -0.5 X-Spam_bar: / X-Spam_report: (-0.5 / 5.0 requ) BAYES_00=-1.9, SPF_HELO_SOFTFAIL=0.732, SPF_SOFTFAIL=0.665 autolearn=no autolearn_force=no X-Spam_action: no action X-Spam-Score: -1.3 (-) X-Debbugs-Envelope-To: submit 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: , Reply-To: guix-devel-0brg6b@rdmp.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -2.3 (--) >From 89221aa43acbb32bb8af62e6a3b485e551059af8 Mon Sep 17 00:00:00 2001 From: Dale Mellor Date: Thu, 20 Jan 2022 14:46:54 +0000 Subject: [PATCH] gnu: curl: patch curlpp.pc.in before configure. The current curlpp.pc pkg-config file that gets installed stipulates that compilers take -Iinclude to link against the curlpp library, but this is insufficient to locate the headers. A patch has been pushed upstream, but there has been no response in over a week so we are 'kludging' the issue here until it is fixed properly. * gnu/packages/curl.scm (curlpp): add pre-configure build step "patch-pkg-config", and put pkg-config itself into propagated-inputs. --- gnu/packages/curl.scm | 26 ++++++++++++++++++++++++-- 1 file changed, 24 insertions(+), 2 deletions(-) diff --git a/gnu/packages/curl.scm b/gnu/packages/curl.scm index 9a9d788ceb..e1b0344be5 100644 --- a/gnu/packages/curl.scm +++ b/gnu/packages/curl.scm @@ -292,10 +292,32 @@ (define-public curlpp (build-system cmake-build-system) ;; There are no build tests to be had. (arguments - '(#:tests? #f)) + '(#:phases (modify-phases %standard-phases + (add-before 'configure 'patch-pkg-config + (lambda* (#:key outputs #:allow-other-keys) + (with-output-to-file "extras/curlpp.pc.in" + (lambda () + (display + "\ +prefix=@prefix@ +exec_prefix=${prefix} +includedir=${prefix}/@includedir@ +libdir=${exec_prefix}/@libdir@ + +Name: curlpp +Description: cURLpp is a libcurl C++ wrapper +Version: @VERSION@ +Libs: -L${libdir} -lcurlpp @LDFLAGS@ @LIBS@ +Cflags: -I${includedir} @CURLPP_CXXFLAGS@ +# libcurl is required as non-private because CurlHandle.inl uses curl_easy_setopt. +Requires: libcurl +" + ) + #t))))) + #:tests? #f)) ;; The installed version needs the header files from the C library. (propagated-inputs - (list curl)) + (list pkg-config curl)) (synopsis "C++ wrapper around libcURL") (description "This package provides a free and easy-to-use client-side C++ URL -- 2.34.0 From debbugs-submit-bounces@debbugs.gnu.org Fri Oct 20 11:56:17 2023 Received: (at 53392) by debbugs.gnu.org; 20 Oct 2023 15:56:17 +0000 Received: from localhost ([127.0.0.1]:41271 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qtrrE-00040M-Fc for submit@debbugs.gnu.org; Fri, 20 Oct 2023 11:56:17 -0400 Received: from rdmp.org ([52.19.174.175]:57688) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qtpPg-0004ZO-Dh for 53392@debbugs.gnu.org; Fri, 20 Oct 2023 09:19:45 -0400 Received: from [127.0.0.1] (helo=[IPv6:::1]) by rdmp.org with esmtp (Exim 4.94) (envelope-from ) id 1qtpP8-0004gb-Ra for 53392@debbugs.gnu.org; Fri, 20 Oct 2023 13:19:06 +0000 Message-ID: <69ac811d2100fd8d570a22925a66550fbc927a70.camel@rdmp.org> Subject: Is there a reason this issue is not getting addressed? From: Dale Mellor To: 53392@debbugs.gnu.org Date: Fri, 20 Oct 2023 14:19:06 +0100 Organization: DM Bespoke Computer Solutions Ltd Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable User-Agent: Evolution 3.46.4 MIME-Version: 1.0 X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 53392 X-Mailman-Approved-At: Fri, 20 Oct 2023 11:56:15 -0400 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: , Reply-To: guix-devel-0brg6b@rdmp.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) I'm sick of fighting against this problem, is anyone going to consider pulling it?