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
This commit is contained in:
Sharlatan Hellseher 2025-09-23 09:11:34 +01:00
parent 777bb5ad05
commit ba549e727b
No known key found for this signature in database
GPG key ID: 76D727BFF62CD2B5

View file

@ -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