guix_mirror_bot pushed a commit to branch master
in repository guix.

commit 9b6ed483955da46ac4027d10fe46381b262ead6f
Author: Brendan Tildesley <[email protected]>
AuthorDate: Tue Nov 25 01:56:59 2025 +0800

    gnu: python-rencode: Prevent native comp.
    
    * gnu/packages/python-xyz.scm (python-rencode):
    [arguments]: Remove -march=native and -mfma flags.
    
    Fixes: guix/guix#4440
    Change-Id: I6ee16c91f6a34a6af44367bb4136d7e4c0c5f438
    
    Change-Id: I8612f4b2fe78c558eff301b4733db2ac34d16a0e
    Signed-off-by: Sharlatan Hellseher <[email protected]>
---
 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 9297aee97e..5f2dacbf16 100644
--- a/gnu/packages/python-xyz.scm
+++ b/gnu/packages/python-xyz.scm
@@ -42,7 +42,7 @@
 ;;; Copyright © 2017, 2020, 2021 Roel Janssen <[email protected]>
 ;;; Copyright © 2017, 2018, 2019 Kei Kebreau <[email protected]>
 ;;; Copyright © 2017 Rutger Helling <[email protected]>
-;;; Copyright © 2017, 2019, 2021 Brendan Tildesley <[email protected]>
+;;; Copyright © 2017, 2019, 2021, 2025 Brendan Tildesley <[email protected]>
 ;;; Copyright © 2018 Ethan R. Jones <[email protected]
 ;;; Copyright © 2018 Fis Trivial <[email protected]>
 ;;; Copyright © 2018 Vijayalakshmi Vedantham <[email protected]>
@@ -25521,6 +25521,15 @@ case-folding for case-insensitive matches in Unicode.")
        (sha256
         (base32 "1dicbm8gdii2bjp85s2p4pnclf25k9x4b4kaj80y8ddhh87glrlk"))))
     (build-system pyproject-build-system)
+    (arguments
+     (list
+      #:phases
+      #~(modify-phases %standard-phases
+          (add-after 'unpack 'disable-native-optimization
+            (lambda _
+              (substitute* "build.py"
+                (("^COMPILE_ARGS.*")
+                 "COMPILE_ARGS: list[str] = []\n")))))))
     (native-inputs
      (list python-cython
            python-pytest

Reply via email to