mirror of
https://git.savannah.gnu.org/git/guix.git
synced 2026-04-06 21:20:33 +02:00
gnu: python-cf-units: Fix build with gcc@14.
* gnu/packages/geo.scm (python-cf-units) [arguments] <phases>: Remove 'ubunits-path; add combined 'set-configure-flags ignoring warnings. Change-Id: Iffced8c2bd987ab661fc6b5c1181f442c68b4901
This commit is contained in:
@@ -1881,14 +1881,20 @@ extension.")
|
||||
(list
|
||||
#:phases
|
||||
#~(modify-phases %standard-phases
|
||||
(add-after 'unpack 'udunits-path
|
||||
(add-after 'unpack 'set-configure-flags
|
||||
(lambda _
|
||||
(setenv "UDUNITS2_XML_PATH"
|
||||
(format #f "~a/share/udunits/udunits2.xml"
|
||||
#$(this-package-input "udunits")))))
|
||||
#$(this-package-input "udunits")))
|
||||
(setenv "CFLAGS"
|
||||
(string-join
|
||||
(list "-Wno-error=implicit-function-declaration"
|
||||
"-Wno-error=int-conversion")
|
||||
" "))))
|
||||
(replace 'check
|
||||
;; To load built module and bypath error: ImportError: cannot import
|
||||
;; name '_udunits2' from partially initialized module 'cf_units'.
|
||||
;; To load built module and bypath error: ImportError: cannot
|
||||
;; import name '_udunits2' from partially initialized module
|
||||
;; 'cf_units'.
|
||||
(lambda* (#:key tests? test-flags #:allow-other-keys)
|
||||
(with-directory-excursion #$output
|
||||
(apply invoke "pytest" "-vv" test-flags)))))))
|
||||
|
||||
Reference in New Issue
Block a user