summaryrefslogtreecommitdiff
path: root/gnu/packages/libffi.scm
diff options
context:
space:
mode:
Diffstat (limited to 'gnu/packages/libffi.scm')
-rw-r--r--gnu/packages/libffi.scm16
1 files changed, 10 insertions, 6 deletions
diff --git a/gnu/packages/libffi.scm b/gnu/packages/libffi.scm
index f09a43db37..0c59509a91 100644
--- a/gnu/packages/libffi.scm
+++ b/gnu/packages/libffi.scm
@@ -43,17 +43,16 @@
(define-public libffi
(package
(name "libffi")
- (version "3.3")
+ (version "3.4.2")
(source (origin
(method url-fetch)
(uri
- (string-append "ftp://sourceware.org/pub/libffi/"
+ (string-append "https://github.com/libffi/libffi/releases"
+ "/download/v" version "/"
name "-" version ".tar.gz"))
(sha256
(base32
- "0mi0cpf8aa40ljjmzxb7im6dbj45bb0kllcd09xgmp834y9agyvj"))
- (patches (search-patches "libffi-3.3-powerpc-fixes.patch"
- "libffi-float128-powerpc64le.patch"))))
+ "081nx7wpzds168jbr59m34n6s3lyiq6r8zggvqxvlslsc4hvf3sl"))))
(build-system gnu-build-system)
(arguments
`(;; Prevent the build system from passing -march and -mtune to the
@@ -111,7 +110,12 @@ conversions for values passed between the two languages.")
"linker_so='gcc -shared')")))
(substitute* "testing/cffi0/test_ownlib.py"
(("\"cc testownlib") "\"gcc testownlib"))
- (invoke "py.test" "-v" "c/" "testing/")))
+ (invoke "pytest" "-v" "c/" "testing/"
+ ;; Disable tests that fail (harmlessly) with glibc
+ ;; 2.34 and later:
+ ;; https://foss.heptapod.net/pypy/cffi/-/issues/528
+ "-k" (string-append "not TestFFI.test_dlopen_handle "
+ "and not test_dlopen_handle"))))
(add-before 'check 'patch-paths-of-dynamically-loaded-libraries
(lambda* (#:key inputs #:allow-other-keys)
;; Shared libraries should be referred by their absolute path as