me
/
guix
Archived
1
0
Fork 0

gnu: python-matplotlib: Fix rounding errors on x86 CPUs.

Fixes <https://issues.guix.gnu.org/40406>.

Signed-off-by: Maxim Cournoyer <maxim.cournoyer@gmail.com>
master
Diego Nicola Barbato 2020-11-14 15:07:28 -05:00 committed by Maxim Cournoyer
parent b070e3f810
commit 81643c4cf3
No known key found for this signature in database
GPG Key ID: 1260E46482E63562
1 changed files with 4 additions and 0 deletions

View File

@ -89,6 +89,7 @@
;;; Copyright © 2020 Tim Gesthuizen <tim.gesthuizen@yahoo.de> ;;; Copyright © 2020 Tim Gesthuizen <tim.gesthuizen@yahoo.de>
;;; Copyright © 2020 Bonface Munyoki Kilyungi <bonfacemunyoki@gmail.com> ;;; Copyright © 2020 Bonface Munyoki Kilyungi <bonfacemunyoki@gmail.com>
;;; Copyright © 2020 Ekaitz Zarraga <ekaitz@elenq.tech> ;;; Copyright © 2020 Ekaitz Zarraga <ekaitz@elenq.tech>
;;; Copyright © 2020 Diego N. Barbato <dnbarbato@posteo.de>
;;; ;;;
;;; This file is part of GNU Guix. ;;; This file is part of GNU Guix.
;;; ;;;
@ -5062,6 +5063,9 @@ convert between colorspaces like sRGB, XYZ, CIEL*a*b*, CIECAM02, CAM02-UCS, etc.
;; has not effect. ;; has not effect.
(setenv "LD_LIBRARY_PATH" (string-append cairo "/lib")) (setenv "LD_LIBRARY_PATH" (string-append cairo "/lib"))
(setenv "HOME" (getcwd)) (setenv "HOME" (getcwd))
;; Fix rounding errors when using the x87 FPU.
(when (string-prefix? "i686" ,(%current-system))
(setenv "CFLAGS" "-ffloat-store"))
(call-with-output-file "setup.cfg" (call-with-output-file "setup.cfg"
(lambda (port) (lambda (port)
(format port "[directories]~% (format port "[directories]~%