diff --git a/packages/a/apostrophe/files/0001-HACK-Fix-multiprocessing-with-Python-3.14.patch b/packages/a/apostrophe/files/0001-HACK-Fix-multiprocessing-with-Python-3.14.patch new file mode 100644 index 00000000000..34209aff9ea --- /dev/null +++ b/packages/a/apostrophe/files/0001-HACK-Fix-multiprocessing-with-Python-3.14.patch @@ -0,0 +1,34 @@ +From 210276f1a10be7f38ac34513832cce4225ae5bdd Mon Sep 17 00:00:00 2001 +From: "Alexander F. Lent" +Date: Mon, 30 Mar 2026 23:45:19 -0400 +Subject: [PATCH] HACK: Fix multiprocessing with Python 3.14+ + +--- + apostrophe/text_view_markup_handler.py | 5 +++++ + 1 file changed, 5 insertions(+) + +diff --git a/apostrophe/text_view_markup_handler.py b/apostrophe/text_view_markup_handler.py +index a4ca14e..aa6b080 100644 +--- a/apostrophe/text_view_markup_handler.py ++++ b/apostrophe/text_view_markup_handler.py +@@ -15,6 +15,7 @@ + + import regex as re + from multiprocessing import Pipe, Process ++import multiprocessing + + import gi + from gi.repository import GLib, Gtk, Pango +@@ -139,6 +140,10 @@ class MarkupHandler: + self.parsing = False + self.apply_pending = False + self.parent_conn, child_conn = Pipe() ++ # HACK: The following line preserves the old behavior in Python 3.14+ (requires 3.4+) ++ # With the new forkserver default on Linux (and spawn default on other platforms) we can ++ # only use pickleable objects across processes. ++ multiprocessing.set_start_method('fork') + Process(target=self.parse, args=(child_conn,), daemon=True).start() + GLib.io_add_watch( + self.parent_conn.fileno(), +-- +2.53.0 \ No newline at end of file diff --git a/packages/a/apostrophe/package.yml b/packages/a/apostrophe/package.yml index feb00a380c8..bcdf7e191d0 100644 --- a/packages/a/apostrophe/package.yml +++ b/packages/a/apostrophe/package.yml @@ -1,7 +1,7 @@ # yaml-language-server: $schema=/usr/share/ypkg/schema/schema.json name : apostrophe version : '3.4' -release : 18 +release : 19 source : - https://gitlab.gnome.org/World/apostrophe/-/archive/v3.4/apostrophe-v3.4.tar.gz : daee484d02f67e03d9c46a0f3ce1ae7828afc7b9946868f6b057267ed591918a homepage : https://world.pages.gitlab.gnome.org/apostrophe/ @@ -26,6 +26,7 @@ rundeps : - python-pypandoc - python-regex setup : | + %patch -p1 -i $pkgfiles/0001-HACK-Fix-multiprocessing-with-Python-3.14.patch %meson_configure build : | %ninja_build diff --git a/packages/a/apostrophe/pspec_x86_64.xml b/packages/a/apostrophe/pspec_x86_64.xml index e940a7a9e60..f9319ca375c 100644 --- a/packages/a/apostrophe/pspec_x86_64.xml +++ b/packages/a/apostrophe/pspec_x86_64.xml @@ -3,8 +3,8 @@ apostrophe https://world.pages.gitlab.gnome.org/apostrophe/ - Joey Riches - josephriches@gmail.com + Muhammad Alfi Syahrin + alfi@getsol.us GPL-3.0-or-later office.notes @@ -170,12 +170,12 @@ - - 2026-06-07 + + 2026-06-18 3.4 Packaging update - Joey Riches - josephriches@gmail.com + Muhammad Alfi Syahrin + alfi@getsol.us \ No newline at end of file