From 08cc0787b033d37761ded732ac6e2fd1570246ce Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C4=90o=C3=A0n=20Tr=E1=BA=A7n=20C=C3=B4ng=20Danh?= Date: Thu, 10 Nov 2022 10:54:24 +0700 Subject: [PATCH] syncthing-gtk: fix for Python 3.11 Fix: #40430 --- srcpkgs/syncthing-gtk/patches/python-3.11.patch | 12 ++++++++++++ srcpkgs/syncthing-gtk/template | 2 +- 2 files changed, 13 insertions(+), 1 deletion(-) create mode 100644 srcpkgs/syncthing-gtk/patches/python-3.11.patch diff --git a/srcpkgs/syncthing-gtk/patches/python-3.11.patch b/srcpkgs/syncthing-gtk/patches/python-3.11.patch new file mode 100644 index 00000000000..40cfe2bf509 --- /dev/null +++ b/srcpkgs/syncthing-gtk/patches/python-3.11.patch @@ -0,0 +1,12 @@ +Index: syncthing-gtk-0.9.4.4/syncthing_gtk/tools.py +=================================================================== +--- syncthing-gtk-0.9.4.4.orig/syncthing_gtk/tools.py ++++ syncthing-gtk-0.9.4.4/syncthing_gtk/tools.py +@@ -259,7 +259,6 @@ def init_locale(localedir=None): + global _localedir + _localedir = localedir + gettext.bindtextdomain(GETTEXT_DOMAIN, localedir) +- gettext.bind_textdomain_codeset(GETTEXT_DOMAIN, "utf-8") + gettext.textdomain(GETTEXT_DOMAIN) + + def get_locale_dir(): diff --git a/srcpkgs/syncthing-gtk/template b/srcpkgs/syncthing-gtk/template index a215517bfce..a4f98a34132 100644 --- a/srcpkgs/syncthing-gtk/template +++ b/srcpkgs/syncthing-gtk/template @@ -2,7 +2,7 @@ pkgname=syncthing-gtk reverts="0.14.36_1 0.9.4.4+ds+git20220108+9023143f8b93_1 0.9.4.4+ds+git20220108+9023143f8b93_2" version=0.9.4.4 -revision=5 +revision=6 _debianver="ds+git20220108+9023143f8b93" build_style=python3-module hostmakedepends="python3-setuptools gettext"