Accepting request 777384 from home:qzhao:branches:M17N

Add ibus-table_fix_other_tables_compile_error.patch: Fix ibus other tables compile errors(bnc#1160315).

OBS-URL: https://build.opensuse.org/request/show/777384
OBS-URL: https://build.opensuse.org/package/show/M17N/ibus-table?expand=0&rev=42
This commit is contained in:
Marguerite Su 2020-02-20 01:31:20 +00:00 committed by Git OBS Bridge
parent 6a52c7630e
commit f66f273a6e
3 changed files with 33 additions and 3 deletions

View File

@ -1,3 +1,9 @@
-------------------------------------------------------------------
Wed Feb 19 12:08:01 UTC 2020 - Cliff Zhao <qzhao@suse.com>
- Add ibus-table_fix_other_tables_compile_error.patch: Fix ibus
other tables compile errors(bnc#1160315).
-------------------------------------------------------------------
Sat Oct 13 13:40:35 UTC 2018 - hillwood@opensuse.org

View File

@ -1,7 +1,7 @@
#
# spec file for package ibus-table
#
# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany.
# Copyright (c) 2020 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@ -12,7 +12,7 @@
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via http://bugs.opensuse.org/
# Please submit bugfixes or comments via https://bugs.opensuse.org/
#
@ -22,8 +22,10 @@ Release: 0
Summary: The Table engine for IBus platform
License: LGPL-2.1-or-later
Group: System/I18n/Chinese
Url: https://github.com/mike-fabian/ibus-table/
URL: https://github.com/mike-fabian/ibus-table/
Source: https://github.com/mike-fabian/ibus-table/releases/download/%{version}/%{name}-%{version}.tar.gz
# PATCH-FIX-OPENSUSE ibus-table_fix_other_tables_compile_error.patch bnc#1160315 qzhao@suse.com -- Fix ibus other tables compile error.
Patch0: ibus-table_fix_other_tables_compile_error.patch
BuildRequires: docbook-utils-minimal
BuildRequires: fdupes
BuildRequires: gettext-tools
@ -49,6 +51,7 @@ This package contains the files required for the development of ibus-table.
%prep
%setup -q
%patch0 -p1
chmod -x AUTHORS COPYING README
%build

View File

@ -0,0 +1,21 @@
diff -Nura ibus-table-1.9.21/engine/ibus_table_location.py ibus-table-1.9.21_new/engine/ibus_table_location.py
--- ibus-table-1.9.21/engine/ibus_table_location.py 2018-08-28 22:36:37.000000000 +0800
+++ ibus-table-1.9.21_new/engine/ibus_table_location.py 2020-02-19 22:12:51.972000000 +0800
@@ -73,7 +73,7 @@
IBUS_TABLE_LOCATION['data_home'] = os.path.join(
IBUS_TABLE_LOCATION['data_home'], 'ibus-table')
if not os.access(IBUS_TABLE_LOCATION['data_home'], os.F_OK):
- os.makedirs(IBUS_TABLE_LOCATION['data_home'])
+ os.makedirs(IBUS_TABLE_LOCATION['data_home'], exist_ok=True)
# $XDG_CACHE_HOME defines the base directory relative to which user
# specific non-essential data files should be stored. If
@@ -89,7 +89,7 @@
IBUS_TABLE_LOCATION['cache_home'] = os.path.join(
IBUS_TABLE_LOCATION['cache_home'], 'ibus-table')
if not os.access(IBUS_TABLE_LOCATION['cache_home'], os.F_OK):
- os.makedirs(IBUS_TABLE_LOCATION['cache_home'])
+ os.makedirs(IBUS_TABLE_LOCATION['cache_home'], exist_ok=True)
class __ModuleInitializer:
def __init__(self):