[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
02/04: REMOVEME gnu: Add libffi-previous for guile to prevent rebuild at
From: |
guix-commits |
Subject: |
02/04: REMOVEME gnu: Add libffi-previous for guile to prevent rebuild at this time. |
Date: |
Thu, 5 Dec 2024 02:53:40 -0500 (EST) |
janneke pushed a commit to branch core-packages-team
in repository guix.
commit 50c1487dac2dc612f84b55b1ae9cda64548ba0b9
Author: Janneke Nieuwenhuizen <janneke@gnu.org>
AuthorDate: Thu Dec 5 08:03:51 2024 +0100
REMOVEME gnu: Add libffi-previous for guile to prevent rebuild at this time.
* gnu/packages/guile.scm (libffi-previous): New variable.
(guile-2.0): Use it.
Change-Id: Ia53b6ace670f1f5aa7ccacc276645cfc02e47b9e
---
gnu/packages/guile.scm | 28 +++++++++++++++++++++++++++-
1 file changed, 27 insertions(+), 1 deletion(-)
diff --git a/gnu/packages/guile.scm b/gnu/packages/guile.scm
index 69dff9211f..8bb0567abf 100644
--- a/gnu/packages/guile.scm
+++ b/gnu/packages/guile.scm
@@ -156,6 +156,32 @@ without requiring the source code to be rewritten.")
(home-page "https://www.gnu.org/software/guile/")
(license license:lgpl2.0+)))
+(define libffi-previous
+ (package/inherit libffi
+ (name "libffi")
+ (version "3.4.4")
+ (source (origin
+ (method url-fetch)
+ (uri
+ (string-append "https://github.com/libffi/libffi/releases"
+ "/download/v" version "/"
+ name "-" version ".tar.gz"))
+ (sha256
+ (base32
+ "0xpn5mqlbdmqgxgp910ba1qj79axpwr8nh7wklmcz0ls4nnmcv6n"))))
+ (arguments
+ `( ;; Prevent the build system from passing -march and -mtune to the
+ ;; compiler. See "ax_cc_maxopt.m4" and "ax_gcc_archflag.m4".
+ #:configure-flags '("--enable-portable-binary"
+ "--without-gcc-arch"
+ ,@(if (or (target-hurd64?)
+ (%current-target-system)
+ (and (target-x86-64?) (target-linux?)))
+ (list (string-append
+ "CFLAGS=-g -O2"
+ " -Wno-implicit-function-declaration"))
+ '()))))))
+
(define-public guile-2.0
(package
(name "guile")
@@ -176,7 +202,7 @@ without requiring the source code to be rewritten.")
(list this-package)
'())))
(inputs
- (append (list libffi libxcrypt)
+ (append (list libffi-previous libxcrypt)
(libiconv-if-needed)
;; We need Bash when cross-compiling because some of the scripts