[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
04/45: gnu: libstdc++: Support cross-compilation to powerpc64le-linux-gn
From: |
guix-commits |
Subject: |
04/45: gnu: libstdc++: Support cross-compilation to powerpc64le-linux-gnu. |
Date: |
Thu, 4 Apr 2024 10:40:16 -0400 (EDT) |
civodul pushed a commit to branch master
in repository guix.
commit b3d24c1d4f92daa4cd22b5abaa1e29ae0f23255b
Author: Ludovic Courtès <ludo@gnu.org>
AuthorDate: Thu Apr 4 16:15:08 2024 +0200
gnu: libstdc++: Support cross-compilation to powerpc64le-linux-gnu.
Previously the phase would fail when cross-compiling because the patch
could not be found in ‘inputs’.
* gnu/packages/gcc.scm (make-libstdc++): Add alternative ‘patch-powerpc’
phase for when (%current-target-system) is true.
Change-Id: Ia503d761d34596d95cc9d33edd911cebcc2e0d9e
---
gnu/packages/gcc.scm | 18 +++++++++++++-----
1 file changed, 13 insertions(+), 5 deletions(-)
diff --git a/gnu/packages/gcc.scm b/gnu/packages/gcc.scm
index c8902de6a0..7be4cb9bb1 100644
--- a/gnu/packages/gcc.scm
+++ b/gnu/packages/gcc.scm
@@ -1,5 +1,5 @@
;;; GNU Guix --- Functional package management for GNU
-;;; Copyright © 2012-2023 Ludovic Courtès <ludo@gnu.org>
+;;; Copyright © 2012-2024 Ludovic Courtès <ludo@gnu.org>
;;; Copyright © 2014, 2015, 2018 Mark H Weaver <mhw@netris.org>
;;; Copyright © 2014, 2015, 2016, 2017, 2019, 2021 Ricardo Wurmus
<rekado@elephly.net>
;;; Copyright © 2015, 2023 Andreas Enge <andreas@enge.fr>
@@ -969,10 +969,18 @@ using compilers other than GCC."
(if (and (target-ppc64le?)
(version>=? version "11")
(not (version>=? version "12")))
- #~((add-after 'unpack 'patch-powerpc
- (lambda* (#:key inputs #:allow-other-keys)
- (invoke "patch" "--force" "-p1" "-i"
- (assoc-ref inputs "powerpc64le-patch")))))
+ ;; TODO: Drop the 'else' branch below on next rebuild
+ ;; cycle.
+ (if (%current-target-system)
+ #~((add-after 'unpack 'patch-powerpc ;correct
+ (lambda* (#:key native-inputs inputs
#:allow-other-keys)
+ (invoke "patch" "--force" "-p1" "-i"
+ (assoc-ref (or native-inputs inputs)
+ "powerpc64le-patch")))))
+ #~((add-after 'unpack 'patch-powerpc ;wrong
+ (lambda* (#:key inputs #:allow-other-keys)
+ (invoke "patch" "--force" "-p1" "-i"
+ (assoc-ref inputs
"powerpc64le-patch"))))))
'()))
;; Force rs6000 (i.e., powerpc) libdir to be /lib and not /lib64.
(add-before 'chdir 'fix-rs6000-libdir
- 21/45: gnu: plink: Switch to openblas., (continued)
- 21/45: gnu: plink: Switch to openblas., guix-commits, 2024/04/04
- 23/45: gnu: plink-ng: Remove lapack dep., guix-commits, 2024/04/04
- 24/45: gnu: dealii: Remove dependency on lapack., guix-commits, 2024/04/04
- 09/45: gnu: hypre: Switch to openblas., guix-commits, 2024/04/04
- 12/45: gnu: jags: Switch to openblas., guix-commits, 2024/04/04
- 16/45: gnu: ghc-hmatrix: Switch to openblas., guix-commits, 2024/04/04
- 18/45: gnu: ipopt: Switch to openblas., guix-commits, 2024/04/04
- 28/45: gnu: mpb: Switch to openblas., guix-commits, 2024/04/04
- 29/45: gnu: meep: Switch to openblas., guix-commits, 2024/04/04
- 02/45: gnu: clyrics: Update to 0.16., guix-commits, 2024/04/04
- 04/45: gnu: libstdc++: Support cross-compilation to powerpc64le-linux-gnu.,
guix-commits <=
- 05/45: gnu: arpack-ng: Switch to openblas., guix-commits, 2024/04/04
- 08/45: gnu: scalapack: Switch to openblas., guix-commits, 2024/04/04
- 11/45: gnu: vosk-api: Remove dependency on lapack., guix-commits, 2024/04/04
- 13/45: gnu: sbcl-lla: Switch to openblas., guix-commits, 2024/04/04
- 14/45: gnu: itpp: Switch to openblas., guix-commits, 2024/04/04
- 15/45: gnu: gmsh: Switch to openblas., guix-commits, 2024/04/04
- 17/45: gnu: fenics-dolfin: Remove dependency on lapack., guix-commits, 2024/04/04
- 20/45: gnu: sundials-julia: Switch to openblas., guix-commits, 2024/04/04
- 22/45: gnu: p4est: Remove dependency on lapack., guix-commits, 2024/04/04
- 25/45: gnu: elemental: Remove dependency on lapack., guix-commits, 2024/04/04