From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 76618158030 for ; Mon, 27 Feb 2023 04:31:23 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id A8DF5E0825; Mon, 27 Feb 2023 04:31:22 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 95568E0825 for ; Mon, 27 Feb 2023 04:31:22 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id A41A4340C76 for ; Mon, 27 Feb 2023 04:31:21 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 56C85865 for ; Mon, 27 Feb 2023 04:31:19 +0000 (UTC) From: "Yixun Lan" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Yixun Lan" Message-ID: <1677472270.8f4d2ebbb6d06762e2e75eb896283731c69fe6ea.dlan@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: app-i18n/ibus-pinyin/files/, app-i18n/ibus-pinyin/ X-VCS-Repository: repo/gentoo X-VCS-Files: app-i18n/ibus-pinyin/files/ibus-pinyin-1.5.0-sqlite-3.41.0.patch app-i18n/ibus-pinyin/ibus-pinyin-1.5.0-r5.ebuild X-VCS-Directories: app-i18n/ibus-pinyin/ app-i18n/ibus-pinyin/files/ X-VCS-Committer: dlan X-VCS-Committer-Name: Yixun Lan X-VCS-Revision: 8f4d2ebbb6d06762e2e75eb896283731c69fe6ea X-VCS-Branch: master Date: Mon, 27 Feb 2023 04:31:19 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: 871bc8c8-780b-4ab5-a09f-05a10e209209 X-Archives-Hash: 4ed999e24e80f04e09bbb7871a88152b commit: 8f4d2ebbb6d06762e2e75eb896283731c69fe6ea Author: jinqiang zhang 0x0 ee> AuthorDate: Mon Feb 27 04:05:11 2023 +0000 Commit: Yixun Lan gentoo org> CommitDate: Mon Feb 27 04:31:10 2023 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=8f4d2ebb app-i18n/ibus-pinyin: fix sqlite 3.41.0 build failure Closes: https://bugs.gentoo.org/896366 Closes: https://github.com/gentoo/gentoo/pull/29822 Signed-off-by: jinqiang zhang 0x0.ee> Signed-off-by: Yixun Lan gentoo.org> .../files/ibus-pinyin-1.5.0-sqlite-3.41.0.patch | 23 ++++++++++++++++++++++ app-i18n/ibus-pinyin/ibus-pinyin-1.5.0-r5.ebuild | 1 + 2 files changed, 24 insertions(+) diff --git a/app-i18n/ibus-pinyin/files/ibus-pinyin-1.5.0-sqlite-3.41.0.patch b/app-i18n/ibus-pinyin/files/ibus-pinyin-1.5.0-sqlite-3.41.0.patch new file mode 100644 index 000000000000..0faa622e3230 --- /dev/null +++ b/app-i18n/ibus-pinyin/files/ibus-pinyin-1.5.0-sqlite-3.41.0.patch @@ -0,0 +1,23 @@ +UPSTREAM: https://github.com/ibus/ibus-pinyin/pull/12 +BUG: https://bugs.gentoo.org/896366 +AUTHOR: jinqiang zhang + +As sqlite 3.41.0 release note say: + + The double-quoted string misfeature is now disabled by default for CLI + builds. Legacy use cases can reenable the misfeature at run-time using + the ".dbconfig dqs_dml on" and ".dbconfig dqs_ddl on" commands. + +We should change this double quote to single quote + +--- a/data/db/english/english.awk ++++ b/data/db/english/english.awk +@@ -16,7 +16,7 @@ BEGIN { + } + + # Insert data into english table +- { printf "INSERT INTO english (word, freq) VALUES (\"%s\", \"%f\");\n", $1, $2} ++ { printf "INSERT INTO english (word, freq) VALUES (\'%s\', %f);\n", $1, $2} + + #quit sqlite3 + END { diff --git a/app-i18n/ibus-pinyin/ibus-pinyin-1.5.0-r5.ebuild b/app-i18n/ibus-pinyin/ibus-pinyin-1.5.0-r5.ebuild index 3524ba6ebedb..2df80c6b265c 100644 --- a/app-i18n/ibus-pinyin/ibus-pinyin-1.5.0-r5.ebuild +++ b/app-i18n/ibus-pinyin/ibus-pinyin-1.5.0-r5.ebuild @@ -39,6 +39,7 @@ PATCHES=( "${FILESDIR}"/${PN}-boost.patch "${FILESDIR}"/${P}-content-type-method.patch "${FILESDIR}"/${P}-python3.patch + "${FILESDIR}"/${P}-sqlite-3.41.0.patch ) pkg_setup() {