janneke pushed a commit to branch core-packages-team
in repository guix.

commit c55369bb6863c4a02441170e27e771738c32d161
Author: Janneke Nieuwenhuizen <jann...@gnu.org>
AuthorDate: Fri Jan 3 15:02:47 2025 +0100

    gnu: python-datrie: Fix build with gcc-14.
    
    * gnu/packages/python-xyz.scm (python-datrie)[arguments]: New field to relax
    gcc-14's strictness.
    
    Change-Id: I44185ba3da9f57326179bd44394d5508da6dd62d
---
 gnu/packages/python-xyz.scm | 11 ++++++++++-
 1 file changed, 10 insertions(+), 1 deletion(-)

diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm
index 013826ebea..71d9686493 100644
--- a/gnu/packages/python-xyz.scm
+++ b/gnu/packages/python-xyz.scm
@@ -144,7 +144,7 @@
 ;;; Copyright © 2023 Parnikkapore <poomk...@yahoo.com>
 ;;; Copyright © 2023 Foundation Devices, Inc. <he...@foundationdevices.com>
 ;;; Copyright © c4droid <c4dr...@foxmail.com>
-;;; Copyright © 2023, 2024 Janneke Nieuwenhuizen <jann...@gnu.org>
+;;; Copyright © 2023, 2024, 2025 Janneke Nieuwenhuizen <jann...@gnu.org>
 ;;; Copyright © 2023 Attila Lendvai <att...@lendvai.name>
 ;;; Copyright © 2023, 2024 Troy Figiel <t...@troyfigiel.com>
 ;;; Copyright © 2023 Adam Faiz <adam.f...@disroot.org>
@@ -14603,6 +14603,15 @@ of the structure, dynamics, and functions of complex 
networks.")
         (base32
          "0pbn32flkrpjiwfcknmj6398qa81ba783kbcvwan3kym73v0hnsj"))))
     (build-system python-build-system)
+    (arguments
+     (list
+      #:phases
+      #~(modify-phases %standard-phases
+          (add-before 'build 'relax-gcc-14-strictness
+            (lambda _
+              (setenv "CFLAGS"
+                      (string-append "-g -O2"
+                                     " 
-Wno-error=incompatible-pointer-types")))))))
     (native-inputs
      (list python-cython python-hypothesis python-pytest
            python-pytest-runner))

Reply via email to