From 42512f9fa636296c5f6d3aec9e908100851f4b52 Mon Sep 17 00:00:00 2001 From: "Andrew J. Hesford" Date: Thu, 16 Sep 2021 10:43:57 -0400 Subject: [PATCH] mozc: rebuild for protobuf, patch gyp to build with Python 3.10 --- srcpkgs/mozc/patches/gyp-py310.patch | 20 ++++++++++++++++++++ srcpkgs/mozc/template | 2 +- 2 files changed, 21 insertions(+), 1 deletion(-) create mode 100644 srcpkgs/mozc/patches/gyp-py310.patch diff --git a/srcpkgs/mozc/patches/gyp-py310.patch b/srcpkgs/mozc/patches/gyp-py310.patch new file mode 100644 index 0000000000..56600b8514 --- /dev/null +++ b/srcpkgs/mozc/patches/gyp-py310.patch @@ -0,0 +1,20 @@ +--- a/gyp/pylib/gyp/common.py ++++ b/gyp/pylib/gyp/common.py +@@ -4,7 +4,7 @@ + + from __future__ import with_statement + +-import collections ++import collections.abc + import errno + import filecmp + import os.path +@@ -494,7 +494,7 @@ + + + # Based on http://code.activestate.com/recipes/576694/. +-class OrderedSet(collections.MutableSet): ++class OrderedSet(collections.abc.MutableSet): + def __init__(self, iterable=None): + self.end = end = [] + end += [None, end, end] # sentinel node for doubly linked list diff --git a/srcpkgs/mozc/template b/srcpkgs/mozc/template index 2c279fc35f..f10095f057 100644 --- a/srcpkgs/mozc/template +++ b/srcpkgs/mozc/template @@ -3,7 +3,7 @@ pkgname=mozc # src/data/version/mozc_version_template.bzl # revision is always 102, template always says 100 ;) version=2.26.4472.102 -revision=1 +revision=2 _commit=439a610ac6b6a92375b4a8188d6c9ef45ea591dd _abseil=20210324.1 create_wrksrc=yes