~ruther/guix-local

f7aaf952de553d9b7ba8ab59f42eb77ff7776cf8 — Sharlatan Hellseher 1 year, 3 months ago f710e3c
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
1 files changed, 10 insertions(+), 4 deletions(-)

M gnu/packages/geo.scm
M gnu/packages/geo.scm => gnu/packages/geo.scm +10 -4
@@ 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)))))))