From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms11 with LMTPS id oKpyAaEb3l6SewAA0tVLHw (envelope-from ) for ; Mon, 08 Jun 2020 11:06:09 +0000 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0 with LMTPS id mBETOaAb3l7TMQAA1q6Kng (envelope-from ) for ; Mon, 08 Jun 2020 11:06:08 +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 98812940900 for ; Mon, 8 Jun 2020 11:06:08 +0000 (UTC) Received: from localhost ([::1]:55962 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jiFbT-0002IJ-Jv for larch@yhetil.org; Mon, 08 Jun 2020 07:06:07 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:58672) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jiFbO-0002IA-DG for guix-patches@gnu.org; Mon, 08 Jun 2020 07:06:02 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:44447) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1jiFbO-0006iQ-4D for guix-patches@gnu.org; Mon, 08 Jun 2020 07:06:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1jiFbN-0004zl-Ui for guix-patches@gnu.org; Mon, 08 Jun 2020 07:06:01 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#40283] [PATCH v2 2/3] gnu: flint: Build with ntl. Resent-From: Jakub =?UTF-8?Q?K=C4=85dzio=C5=82ka?= Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Mon, 08 Jun 2020 11:06:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 40283 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 40283@debbugs.gnu.org Cc: mbakke@fastmail.com Received: via spool by 40283-submit@debbugs.gnu.org id=B40283.159161435919188 (code B ref 40283); Mon, 08 Jun 2020 11:06:01 +0000 Received: (at 40283) by debbugs.gnu.org; 8 Jun 2020 11:05:59 +0000 Received: from localhost ([127.0.0.1]:55993 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jiFbL-0004zP-8E for submit@debbugs.gnu.org; Mon, 08 Jun 2020 07:05:59 -0400 Received: from pat.zlotemysli.pl ([37.59.186.212]:38662) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jiFbI-0004zD-V7 for 40283@debbugs.gnu.org; Mon, 08 Jun 2020 07:05:57 -0400 Received: (qmail 16057 invoked by uid 1009); 8 Jun 2020 13:05:55 +0200 Received: from 188.123.215.55 (kuba@kadziolka.net@188.123.215.55) by pat.zlotemysli.pl (envelope-from , uid 1002) with qmail-scanner-2.08st (clamdscan: 0.98.6/25836. spamassassin: 3.4.0. perlscan: 2.08st. Clear:RC:1(188.123.215.55):. Processed in 0.011936 secs); 08 Jun 2020 11:05:55 -0000 Received: from unknown (HELO localhost.localdomain) (kuba@kadziolka.net@188.123.215.55) by pat.zlotemysli.pl with AES256-SHA encrypted SMTP; 8 Jun 2020 13:05:55 +0200 From: Jakub =?UTF-8?Q?K=C4=85dzio=C5=82ka?= Date: Mon, 8 Jun 2020 13:05:49 +0200 Message-Id: <20200608110550.16488-2-kuba@kadziolka.net> X-Mailer: git-send-email 2.26.2 In-Reply-To: <20200608110550.16488-1-kuba@kadziolka.net> References: <20200608110550.16488-1-kuba@kadziolka.net> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Qmailux-2.08st: added fake Content-Type header Content-Type: text/plain X-Spam-Score: 0.0 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-Spam-Score: -1.0 (-) 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-Scanner: scn0 Authentication-Results: aspmx1.migadu.com; dkim=none; dmarc=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-Spam-Score: 2.49 X-TUID: l6iBaYpTLs0u * gnu/packages/algebra.scm (flint)[inputs]: Add ntl. [arguments]: Pass --with-ntl to configure. --- gnu/packages/algebra.scm | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/gnu/packages/algebra.scm b/gnu/packages/algebra.scm index 4559293a03..6b632d3e95 100644 --- a/gnu/packages/algebra.scm +++ b/gnu/packages/algebra.scm @@ -447,6 +447,8 @@ or text interfaces) or as a C++ library.") (sha256 (base32 "0h08a71kn8347zsqjamqnmrxjpsnnzpmhvxb6d2xmfrcs6nyv2ch")))) (build-system gnu-build-system) + (inputs + `(("ntl" ,ntl))) (propagated-inputs `(("gmp" ,gmp) ("mpfr" ,mpfr))) ; header files from both are included by flint/arith.h @@ -454,17 +456,24 @@ or text interfaces) or as a C++ library.") `(#:parallel-tests? #f ; seems to be necessary on arm #:phases (modify-phases %standard-phases + (add-before 'configure 'newer-c++ + (lambda _ + (substitute* "configure" + (("-ansi") "")) + #t)) (replace 'configure (lambda* (#:key inputs outputs #:allow-other-keys) (let ((out (assoc-ref outputs "out")) (gmp (assoc-ref inputs "gmp")) - (mpfr (assoc-ref inputs "mpfr"))) + (mpfr (assoc-ref inputs "mpfr")) + (ntl (assoc-ref inputs "ntl"))) ;; do not pass "--enable-fast-install", which makes the ;; homebrew configure process fail (invoke "./configure" (string-append "--prefix=" out) (string-append "--with-gmp=" gmp) - (string-append "--with-mpfr=" mpfr)) + (string-append "--with-mpfr=" mpfr) + (string-append "--with-ntl=" ntl)) #t)))))) (synopsis "Fast library for number theory") (description -- 2.26.2