~ruther/guix-local

3de27678f761afcb6b5b28e432491a2a9266eb76 — Sharlatan Hellseher 6 months ago b06b3ad
gnu: breezy: Fix build with gcc-14.

* gnu/packages/version-control.scm (breezy)[arguments] <phases>: Add
'relax-gcc-14-strictness.
[phases]{check}: Skip one more test.
[native-inputs]: Remove python-cython; add python-cython-0.

Change-Id: Ibdaf1851d49b01e1a7f7c168ca9962e92155cfe7
1 files changed, 8 insertions(+), 2 deletions(-)

M gnu/packages/version-control.scm
M gnu/packages/version-control.scm => gnu/packages/version-control.scm +8 -2
@@ 228,6 228,10 @@
                                   (find-files "breezy/tests"))
                (("#!/bin/sh")
                 (format #f "#!~a" (which "sh"))))))
          (add-after 'unpack 'relax-gcc-14-strictness
            (lambda _
              (setenv "CFLAGS"
                      (string-append "-g -O2 -Wno-error=implicit-function-declaration"))))
          (add-before 'build 'adjust-for-python-3.10
            (lambda _
              (substitute* '("breezy/doc_generate/__init__.py"


@@ 253,11 257,13 @@
                        ;; Unknown Failure
                        "-x" "breezy.tests.test_plugins.TestLoadPluginAt.test_compiled_loaded"
                        "-x" "breezy.tests.test_plugins.TestPlugins.test_plugin_get_path_pyc_only"
                        "-x" "breezy.tests.test_selftest.TestActuallyStartBzrSubprocess.test_start_and_stop_bzr_subprocess_send_signal")))))))
                        "-x" "breezy.tests.test_selftest.TestActuallyStartBzrSubprocess.test_start_and_stop_bzr_subprocess_send_signal"
                        ;; AttributeError: module 'paramiko' has no attribute 'DSSKey'
                        "-x" "breezy.tests.test_transport.TestSSHConnections.test_bzr_connect_to_bzr_ssh")))))))
    (native-inputs
     (append
      (list gettext-minimal
            python-cython
            python-cython-0
            python-setuptools
            python-setuptools-gettext
            python-setuptools-rust