This is an automated email from the git hooks/post-receive script.

guix_mirror_bot pushed a commit to branch master
in repository guix.

The following commit(s) were added to refs/heads/master by this push:
     new f7aaf952de gnu: python-cf-units: Fix build with gcc@14.
f7aaf952de is described below

commit f7aaf952de553d9b7ba8ab59f42eb77ff7776cf8
Author: Sharlatan Hellseher <sharlata...@gmail.com>
AuthorDate: Sun Jul 20 09:17:40 2025 +0100

    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
---
 gnu/packages/geo.scm | 14 ++++++++++----
 1 file changed, 10 insertions(+), 4 deletions(-)

diff --git a/gnu/packages/geo.scm b/gnu/packages/geo.scm
index 49fe76c99f..97e537ea6c 100644
--- a/gnu/packages/geo.scm
+++ b/gnu/packages/geo.scm
@@ -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)))))))

Reply via email to