GNU bug report logs - #77953
[PATCH] gnu: kitty: Fix build for Python update.

Previous Next

Package: guix-patches;

Reported by: Roman Scherer <roman <at> burningswell.com>

Date: Mon, 21 Apr 2025 10:39:01 UTC

Severity: normal

Tags: patch

Done: Sharlatan Hellseher <sharlatanus <at> gmail.com>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: help-debbugs <at> gnu.org (GNU bug Tracking System)
To: Roman Scherer <roman <at> burningswell.com>
Subject: bug#77953: closed ([PATCH] gnu: kitty: Fix build for Python update.)
Date: Mon, 21 Apr 2025 14:30:02 +0000
[Message part 1 (text/plain, inline)]
Your bug report

#77953: [PATCH] gnu: kitty: Fix build for Python update.

which was filed against the guix-patches package, has been closed.

The explanation is attached below, along with your original report.
If you require more details, please reply to 77953 <at> debbugs.gnu.org.

-- 
77953: https://debbugs.gnu.org/cgi/bugreport.cgi?bug=77953
GNU Bug Tracking System
Contact help-debbugs <at> gnu.org with problems
[Message part 2 (message/rfc822, inline)]
From: Sharlatan Hellseher <sharlatanus <at> gmail.com>
To: 77953-done <at> debbugs.gnu.org
Subject: [PATCH] gnu: kitty: Fix build for Python update.
Date: Mon, 21 Apr 2025 15:28:53 +0100
[Message part 3 (text/plain, inline)]
I've adjusted commit message and pushed to master as
bca0016e9b785bba3947a9e9ec5aa88c289ec521.

--
Oleg
[signature.asc (application/pgp-signature, inline)]
[Message part 5 (message/rfc822, inline)]
From: Roman Scherer <roman <at> burningswell.com>
To: guix-patches <at> gnu.org
Cc: Roman Scherer <roman <at> burningswell.com>, sharlatanus <at> gmail.com
Subject: [PATCH] gnu: kitty: Fix build for Python update.
Date: Mon, 21 Apr 2025 12:37:34 +0200
* gnu/packages/terminals.scm (kitty): Fix build for Python update.

Change-Id: I4324526936c2a104b3c2f85f75344f54813c089a
---
 gnu/packages/terminals.scm | 27 +++++++++++++++++++++++++++
 1 file changed, 27 insertions(+)

diff --git a/gnu/packages/terminals.scm b/gnu/packages/terminals.scm
index 3931811024..2ca6c791e3 100644
--- a/gnu/packages/terminals.scm
+++ b/gnu/packages/terminals.scm
@@ -1338,6 +1338,8 @@ (define-public kitty
           (delete 'configure)   ;no configure script
           (replace 'build
             (lambda* (#:key inputs #:allow-other-keys)
+              ;; Don't fail on deprecation warnings from GCC
+              (setenv "CFLAGS" "-Wno-error=deprecated-declarations")
               ;; The "kitty" sub-directory must be writable prior to
               ;; configuration (e.g., un-setting updates).
               (for-each make-file-writable (find-files "kitty"))
@@ -1355,6 +1357,31 @@ (define-public kitty
                 ;; tests.
                 (setenv "PATH" (string-append "linux-package/bin:"
                                               (getenv "PATH")))
+                ;; Don't fail on deprecation warnings from Python
+                (substitute* "test.py"
+                  (("'error'") "'ignore'"))
+                ;; Fails: No writable cache directories
+                (substitute* "kitty_tests/fonts.py"
+                  (("    def test_box_drawing")
+                   (string-append
+                    "    @unittest.skip('No writable cache directories')\n"
+                    "    def test_box_drawing")))
+                ;; Fails: Permission denied
+                (substitute* "kitty_tests/parser.py"
+                  (("import time")
+                   "import time\nimport unittest\n")
+                  (("    def test_graphics_command")
+                   (string-append
+                    "    @unittest.skip('Permission denied')\n"
+                    "    def test_graphics_command")))
+                ;; TypeError: expected bytes, str found
+                (substitute* "kitty_tests/tui.py"
+                  (("from . import BaseTest")
+                   "from . import BaseTest\nimport unittest\n")
+                  (("    def test_multiprocessing_spawn")
+                   (string-append
+                    "    @unittest.skip('TypeError: expected bytes, str found')\n"
+                    "    def test_multiprocessing_spawn")))
                 (invoke "python3" "test.py"))))
           (add-before 'install 'rm-pycache
             ;; created python cache __pycache__ are non deterministic

base-commit: f9a7f2c8afdf33a36bd36177c0aa98d35331bf26
-- 
2.49.0




This bug report was last modified 87 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.