From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2 ([2001:41d0:2:4a6f::]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id 9eh/LOv6g2Ca2QAAgWs5BA (envelope-from ) for ; Sat, 24 Apr 2021 13:03:07 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2 with LMTPS id wLNVJ+v6g2DbYwAAB5/wlQ (envelope-from ) for ; Sat, 24 Apr 2021 11:03:07 +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 4FF121FA16 for ; Sat, 24 Apr 2021 13:03:07 +0200 (CEST) Received: from localhost ([::1]:43278 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1laG42-0004j7-7i for larch@yhetil.org; Sat, 24 Apr 2021 07:03:06 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:54472) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1laG3y-0004iz-2x for guix-patches@gnu.org; Sat, 24 Apr 2021 07:03:02 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:56243) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1laG3x-0001md-Ri for guix-patches@gnu.org; Sat, 24 Apr 2021 07:03:01 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1laG3x-0005On-P3 for guix-patches@gnu.org; Sat, 24 Apr 2021 07:03:01 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#47972] [PATCH 1/6] gnu: Add boost-for-irods. Resent-From: Maxime Devos Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Sat, 24 Apr 2021 11:03:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 47972 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: To: Ricardo Wurmus , 47972@debbugs.gnu.org Received: via spool by 47972-submit@debbugs.gnu.org id=B47972.161926215120714 (code B ref 47972); Sat, 24 Apr 2021 11:03:01 +0000 Received: (at 47972) by debbugs.gnu.org; 24 Apr 2021 11:02:31 +0000 Received: from localhost ([127.0.0.1]:39556 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1laG3T-0005O2-7x for submit@debbugs.gnu.org; Sat, 24 Apr 2021 07:02:31 -0400 Received: from albert.telenet-ops.be ([195.130.137.90]:37656) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1laG3R-0005Ns-5y for 47972@debbugs.gnu.org; Sat, 24 Apr 2021 07:02:30 -0400 Received: from ptr-bvsjgyjmffd7q9timvx.18120a2.ip6.access.telenet.be ([IPv6:2a02:1811:8c09:9d00:aaf1:9810:a0b8:a55d]) by albert.telenet-ops.be with bizsmtp id wb2T240030mfAB406b2Tky; Sat, 24 Apr 2021 13:02:27 +0200 Message-ID: <115b5c8ccca573a6086d5cbc929619ef30335266.camel@telenet.be> From: Maxime Devos Date: Sat, 24 Apr 2021 13:02:11 +0200 In-Reply-To: <20210423143201.12831-1-rekado@elephly.net> References: <878s59qe0b.fsf@elephly.net> <20210423143201.12831-1-rekado@elephly.net> Content-Type: multipart/signed; micalg="pgp-sha512"; protocol="application/pgp-signature"; boundary="=-KyTSsgW5tjXlCSqyQIjk" User-Agent: Evolution 3.34.2 MIME-Version: 1.0 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=telenet.be; s=r21; t=1619262147; bh=Nr+7qx0MGopFYsCZVhTm5i0xZ/m0vENgz+a90FDeywo=; h=Subject:From:To:Date:In-Reply-To:References; b=Oj6/JYaO3rnFO7aHIXLqbMldifggUCx+g7qXorbJWGc1MX3LU8/7M/773Caxx1RDy beR6AQd3dWN7EWmk0LqbR1AdV/xdogVzXT4U2Ji1jER2ty73uhsK5ipj2PFNhsNTDW 1McjtoHfOfp1Q0uRoWvvZT00CnozFOaLZXzE2oMtZaUjphZ7N/bHR4GiN8fDKKA1+w wxFgqWC+EV3jR8y+ZHAey5FD74zZpOW4LyhGY70SfFdBx9KGgxJ0Xa0PL1Cu+QXMwU ufBqzugKkgxl6aDM2HGsUd2CtVUko9KKjjAP/nf7+Lzs2zjBP9u8sHFA1CvFoJPkT+ 3uHptatiUAbKw== 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" X-Migadu-Flow: FLOW_IN ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1619262187; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:mime-version:mime-version: content-type:content-type:resent-cc:resent-from:resent-sender: resent-message-id:in-reply-to:in-reply-to:references:references: list-id:list-help:list-unsubscribe:list-subscribe:list-post: dkim-signature; bh=Nr+7qx0MGopFYsCZVhTm5i0xZ/m0vENgz+a90FDeywo=; b=VMr+0lpowZmRGa8oKYtuMlhqFeQF7eIBHlHGlUsszKbymDpa91zcrJblSd9GR4dkf5tcxt IQfbQepAV1xBlkjDB8S39atHLoAuAy7RYZqF8IhPtZewcw8hF33Qp65rfBasq0vn8XvZDA 9jqo95MIo88JUBs0Zh0/IHYm8TYnH+RM6GI1oVIioNAsq2I4hOsvxTm/WDV5awn0TONKkw QPO/JihwvazJHG0gDE+Qb0aIdmwrB4WUnfYLOCH5A5oAKZtGRO/15/vGKG8oLCq6qUjCjh i3DieAMoFIAlB9szYj//Hs1Lxf+IjfmEyrWdAJ5uNVO/m3B1wrT6QzyDP6T+XA== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1619262187; a=rsa-sha256; cv=none; b=EJzBy+5XNf1qA4giVnI7hRIZWre1a4eYQEmtBHCSSKOQr4+x3v17lFN74YMZwsmlKt6EnS oTKXCUTbRawzzqPOPjNpgOsJKY+RBdA5XUbypNeqrVeJAiMnlrhGhbLPgVK0dpvmXMxxuJ 9pfPu03ipSmEd/k2JLaRrHh2yr9VjkEOs4H4LGH34W2D5BgitVnjDzCzYpE08UB5Ah4YnL 4vrzTxxIXm8cy/ibiZoTkHY+FEYzQZOyBxSB+YfRqPOdfCtWyxQTDkqo2PzwyfypApSVIv hQV1nV6HWivsyRdeRbCb6JSWVMlQhFG8UFJwCnvmxr0rfJ3CCguLti9UrZA+nA== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=telenet.be header.s=r21 header.b="Oj6/JYaO"; dmarc=fail reason="SPF not aligned (relaxed)" header.from=telenet.be (policy=none); 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-Spam-Score: -3.44 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=telenet.be header.s=r21 header.b="Oj6/JYaO"; dmarc=fail reason="SPF not aligned (relaxed)" header.from=telenet.be (policy=none); 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: 4FF121FA16 X-Spam-Score: -3.44 X-Migadu-Scanner: scn0.migadu.com X-TUID: jpiJr28UZ418 --=-KyTSsgW5tjXlCSqyQIjk Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Ricardo Wurmus schreef op vr 23-04-2021 om 16:31 [+0200]: > *+;; Sadly, this is needed for irods. It won't link with 1.69 or later. > +(define-public boost-for-irods > + [...] > + (native-inputs > + `(("clang" ,clang-6) > + ("libcxx" ,libcxx+libcxxabi-6) > + ("libcxxabi" ,libcxxabi-6) "libcxx" and "libcxxabi" look lik they should be in "inputs", but perhaps s= omething special is going on here. > + ("perl" ,perl) > + ("tcsh" ,tcsh))) > + (arguments > + `(#:tests? #f > + #:make-flags > + (list "threading=3Dmulti" "link=3Dshared" > + "cxxflags=3D-stdlib=3Dlibc++" > + "--without-python" > + > + ;; Set the RUNPATH to $libdir so that the libs find each ot= her. > + (string-append "linkflags=3D-stdlib=3Dlibc++ -Wl,-rpath=3D" > + (assoc-ref %outputs "out") "/lib")) > + #:phases > + (modify-phases %standard-phases > + (delete 'bootstrap) > + (add-after 'set-paths 'adjust-CPLUS_INCLUDE_PATH > + (lambda* (#:key inputs #:allow-other-keys) > + (let ((gcc (assoc-ref inputs "gcc"))) For cross-compilation, this should be (assoc-ref (or native-inputs inputs) = "gcc"). > + (setenv "CPLUS_INCLUDE_PATH" Maybe you need to set "CROSS_CPLUS_INCLUDE_PATH" here instead, not sure tho= ugh. > + (string-join > + (cons (string-append (assoc-ref inputs "libcxx") > + "/include/c++/v1") > + ;; Hide GCC's C++ headers so that they do = not interfere with > + ;; the Clang headers. > + (delete (string-append gcc "/include/c++") > + (string-split (getenv "CPLUS_INCLU= DE_PATH") > + #\:))) > + ":")) > + (format #true > + "environment variable `CPLUS_INCLUDE_PATH' change= d to ~a~%" > + (getenv "CPLUS_INCLUDE_PATH"))))) > + (replace 'configure > + (lambda* (#:key inputs outputs #:allow-other-keys) > + (let ((icu (assoc-ref inputs "icu4c")) > + (zlib (assoc-ref inputs "zlib")) > + (out (assoc-ref outputs "out"))) > + (substitute* '("libs/config/configure" > + "libs/spirit/classic/phoenix/test/runtest.= sh" > + "tools/build/src/engine/execunix.c" > + "tools/build/src/engine/Jambase" > + "tools/build/src/engine/jambase.c") > + (("/bin/sh") (which "sh"))) When cross-compiling, "which" looks in the 'native-inputs', and not 'inputs= '. For tools/**/*.c, you should use (string-append (assoc-ref inputs "bash") "= /bin/sh") or something like that. If/when is mer= ged, you can write the simpler (which "sh" inputs) instead, but that's not (yet)= the case. > + > + (setenv "SHELL" (which "sh")) > + (setenv "CONFIG_SHELL" (which "sh")) > + > + (invoke "./bootstrap.sh" > + (string-append "--prefix=3D" out) > + ;; Auto-detection looks for ICU only in tradition= al > + ;; install locations. > + (string-append "--with-icu=3D" icu) > + "--with-toolset=3Dclang")))) > + (replace 'build > + (lambda* (#:key inputs make-flags #:allow-other-keys) > + (let ((zlib (assoc-ref inputs "zlib"))) The ((zlib (assoc-ref ...))) binding seems unused here. Greetings, Maxime. --=-KyTSsgW5tjXlCSqyQIjk Content-Type: application/pgp-signature; name="signature.asc" Content-Description: This is a digitally signed message part Content-Transfer-Encoding: 7bit -----BEGIN PGP SIGNATURE----- iI0EABYKADUWIQTB8z7iDFKP233XAR9J4+4iGRcl7gUCYIP6sxccbWF4aW1lZGV2 b3NAdGVsZW5ldC5iZQAKCRBJ4+4iGRcl7vUgAP9etwEXC5TEIqHE5YaZWjA7shU5 I8KrjKTzXvBDiq11FAEA9Rrx2Z35iQ7QJ5p0hZmQG0SDwqymvKN1O3xcN1nNXg4= =YPzB -----END PGP SIGNATURE----- --=-KyTSsgW5tjXlCSqyQIjk--