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 ms0.migadu.com with LMTPS id SBqlGxFGFGHIsgAAgWs5BA (envelope-from ) for ; Wed, 11 Aug 2021 23:50:09 +0200 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 AGdKFxFGFGF3KwAA1q6Kng (envelope-from ) for ; Wed, 11 Aug 2021 21:50:09 +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 B1624153B0 for ; Wed, 11 Aug 2021 23:50:08 +0200 (CEST) Received: from localhost ([::1]:56126 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mDw6x-0006NA-Tr for larch@yhetil.org; Wed, 11 Aug 2021 17:50:07 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:52158) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mDw6s-0006N0-4c for guix-patches@gnu.org; Wed, 11 Aug 2021 17:50:02 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:53502) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mDw6r-00028m-U8 for guix-patches@gnu.org; Wed, 11 Aug 2021 17:50:01 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1mDw6r-0002Lc-Pd for guix-patches@gnu.org; Wed, 11 Aug 2021 17:50:01 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#49881] [PATCH] gnu: mpfr-boot: Use gmp-boot as a dependency Resent-From: Ludovic =?UTF-8?Q?Court=C3=A8s?= Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Wed, 11 Aug 2021 21:50:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 49881 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: Thiago Jung Bauermann Cc: 49881@debbugs.gnu.org Received: via spool by 49881-submit@debbugs.gnu.org id=B49881.16287185528965 (code B ref 49881); Wed, 11 Aug 2021 21:50:01 +0000 Received: (at 49881) by debbugs.gnu.org; 11 Aug 2021 21:49:12 +0000 Received: from localhost ([127.0.0.1]:36815 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mDw64-0002KX-Cx for submit@debbugs.gnu.org; Wed, 11 Aug 2021 17:49:12 -0400 Received: from eggs.gnu.org ([209.51.188.92]:43278) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mDw62-0002KL-Qp for 49881@debbugs.gnu.org; Wed, 11 Aug 2021 17:49:11 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]:47198) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mDw5x-0001VV-4H; Wed, 11 Aug 2021 17:49:05 -0400 Received: from [2a01:e0a:1d:7270:af76:b9b:ca24:c465] (port=48780 helo=ribbon) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mDw5w-0001Wh-S9; Wed, 11 Aug 2021 17:49:05 -0400 From: Ludovic =?UTF-8?Q?Court=C3=A8s?= References: <20210804212021.219742-1-bauermann@kolabnow.com> Date: Wed, 11 Aug 2021 23:49:03 +0200 In-Reply-To: <20210804212021.219742-1-bauermann@kolabnow.com> (Thiago Jung Bauermann's message of "Wed, 4 Aug 2021 18:20:21 -0300") Message-ID: <87sfzfire8.fsf@gnu.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.2 (gnu/linux) MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" 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=1628718608; 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: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; bh=jsmP8RPxPf9AD3ZptT16Xc83uNxA29DJ7cgX2o6cHDM=; b=o/XZ4DzAum8pzLJXJvXlAe+XS5UUE8hygVN9uVpJZZdZX6x7M9ltSfCz3f9ikPf3CCZZz2 8J47+f1axZ7oNMDmnG+ZEQTMYW9vcBVRP/cSFmK8Bfy9XB6wctthYzzeeuxrAgHfcD9gUi ZtMiO00RNkOhOiM9GEHqA+qsewAw6l8V/rtP5/w6hyVgGfxCc1o5gjXMsohQ1N5nQz+8ZN khN7x3pQY8AVrROXODu8fLT99Yc65eFRhAPj4zBmeYKzMnxn7fDRXEBFqUX1/3AkznZkdk 9LTBrXNfmZUDQMH6MmL7U0sIchpBiltgA2QXN0IDzYoEwUiBd4pKMc/dAfX+rg== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1628718608; a=rsa-sha256; cv=none; b=dvnX8srF4OkWmOFKwAA1ipQ47tz3+eEf1ymne+eFaSaRtHoTWyeihPTa17NP6LBI9y1CYn SM5ssszs3jgyikfaPFSCU7qDmU9OjhHLSu/Ucvroj3tCALCwCKmLHigpz7KJxGQoUdMfM2 ZQtx/QSJT3WEQv1KMO0agILwEAe9jWt4wICo9oYZL0CtlA8a8LCAcf946fhc1WHwZVFSpb 2JNLaWgjYe2xk2BePL6XVX2vsG0P+FmUYai7eiKC7RxihHUpv667M4YQqklY2UT9u0kQYV PZzJLFdj8woEKPaQCfsjX19+fVzcTcr453A6v37rvQ4HF2jnLmelYOupgf/AZQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=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: -2.91 Authentication-Results: aspmx1.migadu.com; dkim=none; 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: B1624153B0 X-Spam-Score: -2.91 X-Migadu-Scanner: scn0.migadu.com X-TUID: l0KsvneBR/av --=-=-= Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Hi, Thiago Jung Bauermann skribis: > The current GMP version is incompatible with MPFR 2.4 (which was released > in 2009) and causes the build of =E2=80=98mpfr-boot=E2=80=99 to fail. > > Fix the problem by using =E2=80=98gmp-boot=E2=80=99, which is from early = 2010. > > * gnu/packages/commencement.scm (mpfr-boot)[propagated-inputs]: Add > gmp-boot. Indeed. However, it turns out that =E2=80=98gmp-boot=E2=80=99, =E2=80=98mp= fr-boot=E2=80=99, and =E2=80=98mpc-boot=E2=80=99 are not actually used as dependencies; we only e= ver use their source. I propose to instead make that explicit with the patch below. WDYT? Thanks, Ludo=E2=80=99. --=-=-= Content-Type: text/x-patch Content-Disposition: inline diff --git a/gnu/packages/commencement.scm b/gnu/packages/commencement.scm index 10b2987a11..dc9b372132 100644 --- a/gnu/packages/commencement.scm +++ b/gnu/packages/commencement.scm @@ -1733,38 +1733,28 @@ ac_cv_c_float_format='IEEE (little-endian)' "gawk" "grep" "guile" "make" "sed" "tar")))) (define gmp-boot - (package - (inherit gmp) - (version "4.3.2") - (source (origin - (method url-fetch) - (uri (string-append "mirror://gnu/gmp/gmp-" version - ".tar.gz")) - (sha256 (base32 - "15rwq54fi3s11izas6g985y9jklm3xprfsmym3v1g6xr84bavqvv")))))) + (let ((version "4.3.2")) + (origin + (method url-fetch) + (uri (string-append "mirror://gnu/gmp/gmp-" version ".tar.gz")) + (sha256 + (base32 "15rwq54fi3s11izas6g985y9jklm3xprfsmym3v1g6xr84bavqvv"))))) (define mpfr-boot - (package - (inherit mpfr) - (version "2.4.2") - (source (origin - (method url-fetch) - (uri (string-append "mirror://gnu/mpfr/mpfr-" version - ".tar.gz")) - (sha256 (base32 - "0dxn4904dra50xa22hi047lj8kkpr41d6vb9sd4grca880c7wv94")))))) + (let ((version "2.4.2")) + (origin + (method url-fetch) + (uri (string-append "mirror://gnu/mpfr/mpfr-" version ".tar.gz")) + (sha256 + (base32 "0dxn4904dra50xa22hi047lj8kkpr41d6vb9sd4grca880c7wv94"))))) (define mpc-boot - (package - (inherit mpc) - (version "1.0.3") - (source (origin - (method url-fetch) - (uri (string-append - "mirror://gnu/mpc/mpc-" version ".tar.gz")) - (sha256 - (base32 - "1hzci2zrrd7v3g1jk35qindq05hbl0bhjcyyisq9z209xb3fqzb1")))))) + (let ((version "1.0.3")) + (origin + (method url-fetch) + (uri (string-append "mirror://gnu/mpc/mpc-" version ".tar.gz")) + (sha256 + (base32 "1hzci2zrrd7v3g1jk35qindq05hbl0bhjcyyisq9z209xb3fqzb1"))))) (define gcc-core-mesboot1 ;; GCC 4.6.4 is the latest modular distribution. This package is not @@ -1782,9 +1772,9 @@ ac_cv_c_float_format='IEEE (little-endian)' (sha256 (base32 "173kdb188qg79pcz073cj9967rs2vzanyjdjyxy9v0xb0p5sad75")))) - (inputs `(("gmp-source" ,(package-source gmp-boot)) - ("mpfr-source" ,(package-source mpfr-boot)) - ("mpc-source" ,(package-source mpc-boot)))) + (inputs `(("gmp-source" ,gmp-boot) + ("mpfr-source" ,mpfr-boot) + ("mpc-source" ,mpc-boot))) (native-inputs (%boot-mesboot1-inputs)) (arguments (list #:implicit-inputs? #f @@ -1857,14 +1847,17 @@ ac_cv_c_float_format='IEEE (little-endian)' (list gmp mpfr mpc)) ;; Create symlinks like `gmp' -> `gmp-x.y.z'. - #$@(map (lambda (lib) + #$@(map (lambda (lib package) ;; Drop trailing letters, as gmp-6.0.0a unpacks ;; into gmp-6.0.0. #~(symlink #$(string-trim-right - (package-full-name lib "-") + (basename + (origin-actual-file-name lib) + ".tar.gz") char-set:letter) - #$(package-name lib))) - (list gmp-boot mpfr-boot mpc-boot))))) + #$package)) + (list gmp-boot mpfr-boot mpc-boot) + '("gmp" "mpfr" "mpc"))))) (add-before 'configure 'setenv (lambda* (#:key outputs #:allow-other-keys) (let* ((out (assoc-ref outputs "out")) --=-=-=--