From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp10.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id wDbjOd8hRGLeFQAAgWs5BA (envelope-from ) for ; Wed, 30 Mar 2022 11:24:47 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp10.migadu.com with LMTPS id kLqlMt8hRGKZQgEAG6o9tA (envelope-from ) for ; Wed, 30 Mar 2022 11:24:47 +0200 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 66896BB4D for ; Wed, 30 Mar 2022 11:24:47 +0200 (CEST) Received: from localhost ([::1]:57706 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nZUZK-0007sU-D5 for larch@yhetil.org; Wed, 30 Mar 2022 05:24:46 -0400 Received: from eggs.gnu.org ([209.51.188.92]:56640) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nZUYc-0007pX-DI for guix-patches@gnu.org; Wed, 30 Mar 2022 05:24:02 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:40609) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1nZUYc-0000Ss-3o for guix-patches@gnu.org; Wed, 30 Mar 2022 05:24:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1nZUYc-00013n-0i for guix-patches@gnu.org; Wed, 30 Mar 2022 05:24:02 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#54635] [PATCH 1/5] gnu: gsl: Force bootstrap when cross-compiling to riscv64-linux. References: <20220330091913.23206-1-arunisaac@systemreboot.net> In-Reply-To: <20220330091913.23206-1-arunisaac@systemreboot.net> Resent-From: Arun Isaac Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Wed, 30 Mar 2022 09:24:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 54635 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 54635@debbugs.gnu.org Cc: Arun Isaac , Efraim Flashner Received: via spool by 54635-submit@debbugs.gnu.org id=B54635.16486322033990 (code B ref 54635); Wed, 30 Mar 2022 09:24:01 +0000 Received: (at 54635) by debbugs.gnu.org; 30 Mar 2022 09:23:23 +0000 Received: from localhost ([127.0.0.1]:34496 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nZUXw-00011r-6X for submit@debbugs.gnu.org; Wed, 30 Mar 2022 05:23:23 -0400 Received: from mugam.systemreboot.net ([139.59.75.54]:51802) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nZUXt-00011b-KQ for 54635@debbugs.gnu.org; Wed, 30 Mar 2022 05:23:19 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=systemreboot.net; s=default; h=Content-Transfer-Encoding:Content-Type: MIME-Version:Message-Id:Date:Subject:Cc:To:From:Sender:Reply-To:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:In-Reply-To:References:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=zMvabFjZY3Am0dZy4NS03MJ1hvRlema0+m2EfOMj0sI=; b=Lu0MTK2V9WI47prLhspTlH/iw4 KFUMhwyG07zhY8KFCIfaQ9Nk7eJY4U2CmmO4V3KIyT5hKc4Wirqz9cgxm3NSVYsjPMP5m11T/GVB4 nkNu7qQqp2Hrjn3bw9nj69FAZE8yAGPSsjYZCKQyun+WbvCk9SeG2ip0XAKhOITHh6sOwbxyFZPrz FRFhMaHSHKkXahoAdT1JOJDu+jYwG0MbkXM/HefRSncEYTzNDAfLTx/09yqcH+YCMkppTem0RAdmy kgm5WeCxRboXFFKnRGUT8EAQsGkQRUL+9+dItMtJcK9o/etefcfjxS2y4kbwFjp7nlk4di7pdeIx1 Al2KDaSw==; Received: from [192.168.2.1] (port=6582 helo=localhost.localdomain) by systemreboot.net with esmtpsa (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.95) (envelope-from ) id 1nZUXq-000T5d-KT; Wed, 30 Mar 2022 14:53:14 +0530 From: Arun Isaac Date: Wed, 30 Mar 2022 14:53:09 +0530 Message-Id: <20220330092313.23584-1-arunisaac@systemreboot.net> X-Mailer: git-send-email 2.34.0 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 X-Migadu-To: larch@yhetil.org X-Migadu-Country: US ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1648632287; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: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=zMvabFjZY3Am0dZy4NS03MJ1hvRlema0+m2EfOMj0sI=; b=fVU3AhSzWSUIw4d9lIG+RP/6Qtw2cUVVXxcE2Ss0xu7EuAqCHM9WlTwCJTLnbNlMPWowzU 1c+nUdO7m4xCt2jI9juuOJZ41hDOnUr5U7E6RlBSjKOTpAnq4JYZyfQrfApat6/O45FjU7 Zmd0gi2wDk/cg3Ix5QDX8HmGcz4B+yyM56jTR6hHGuKhxRyu9EGlqWRnxJyiQzqEJo4zRl crhX2/TbEt0jR8U06yACEzPPu2CLdLVR002AT8b6v1CKHgq0cZBAAc3A+Xj/ELpPTD3Hhy Z/+eizLEjUQYHw+8CIrz5Xqd5FgmXC0WCwAYkAO81GFuCWHgyzFijp5zwx8nNw== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1648632287; a=rsa-sha256; cv=none; b=LCz7WRb8qWZhFaVO6GbmTS71ZRQX3Jmg+aOIX5OJZuNWBGGgoD7oRsg0vGChFsrDLF+ZVD 46aXaq088fKJxVaQguzmwqhC7rhiTQNBLnpM/Usn0BdDHjfKlUcq30mvkOSrKwWEjuAVvn /E2l0GCR8g6c61x9pPnnApZ7zBdcADGJfFll/4X5uXYrrCPnIjxlTk71zMb4pD3foDru2B ji2+gLTNho+hnMbX/3+wpj91bJTx0p/HBw4mE1NcVHEuhzx6NIIvnRAbPwjQnB4SQakI8z Dr+iY4RUd4nH7wD3nQijFZD3oz3R2Ck4rMNI0dfWrpn5h4wZol6Obi0/kwIQEg== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=systemreboot.net header.s=default header.b=Lu0MTK2V; dmarc=fail reason="SPF not aligned (relaxed)" header.from=systemreboot.net (policy=none); spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org" X-Migadu-Spam-Score: 5.83 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=systemreboot.net header.s=default header.b=Lu0MTK2V; dmarc=fail reason="SPF not aligned (relaxed)" header.from=systemreboot.net (policy=none); spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org" X-Migadu-Queue-Id: 66896BB4D X-Spam-Score: 5.83 X-Migadu-Scanner: scn0.migadu.com X-TUID: bNqfUd8YhyFa * gnu/packages/maths.scm (gsl)[arguments]: Force autotools bootstrap when cross-compiling to riscv64-linux. [native-inputs]: Add autoconf, automake and libtool when cross-compiling to riscv64-linux. --- gnu/packages/maths.scm | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/gnu/packages/maths.scm b/gnu/packages/maths.scm index ecb85642ec..f01bf51580 100644 --- a/gnu/packages/maths.scm +++ b/gnu/packages/maths.scm @@ -19,7 +19,7 @@ ;;; Copyright © 2017 Nikita ;;; Copyright © 2017 Ben Woodcroft ;;; Copyright © 2017 Theodoros Foradis -;;; Copyright © 2017, 2019 Arun Isaac +;;; Copyright © 2017, 2019, 2022 Arun Isaac ;;; Copyright © 2017–2021 Tobias Geerinckx-Rice ;;; Copyright © 2017 Dave Love ;;; Copyright © 2018, 2019, 2020, 2021 Jan (janneke) Nieuwenhuizen @@ -533,6 +533,13 @@ (define-public gsl #:phases (modify-phases %standard-phases ,@(cond + ((target-riscv64?) + '((add-after 'unpack 'force-bootstrap + (lambda _ + ;; gsl ships with an old configure script that does not + ;; support riscv64. Regenerate it. + (delete-file "configure"))))) + ((or (string-prefix? "aarch64" system) (string-prefix? "powerpc" system)) ;; Some sparse matrix tests are failing on AArch64 and PowerPC: @@ -568,6 +575,12 @@ (define-public gsl (string-append "exit (77);\n" all))))))) (else '())))))) + (native-inputs + (if (target-riscv64?) + `(("autoconf" ,autoconf) + ("automake" ,automake) + ("libtool" ,libtool)) + '())) (home-page "https://www.gnu.org/software/gsl/") (synopsis "Numerical library for C and C++") (description -- 2.34.0