It's not possible to replace with two packages via quirks. There is another way via a meta package but it's messy.

Can we assume that a user who previously had fcitx-table installed and needs the parts which were split into fcitx-chinese-addons also would have had fcitx-pinyin? If so, we can rely on the quirks entry we just added to get fcitx-chinese-addons installed, and then the new quirks entry should replace fcitx-table -> fcitx-table-extras.

--
 Sent from a phone, apologies for poor formatting.

On 2 June 2022 03:41:04 Yifei Zhan <openbsd@zhan.science> wrote:

Thanks, here are a few packages also need redirecting, versions look
ok and revision bump included :)

fcitx-table 0.3.8 ->  fcitx-chinese-addons 5.0.9
fcitx-configtool-0.4.10 -> fcitx-configtool-qt-5.0.12p0

fcitx-table is actually split into two packages: fcitx-table-extras
and fcitx-chinese-addons, is it possible to replace with both of them?

diff --git a/devel/quirks/Makefile b/devel/quirks/Makefile
index f44fef673d5..b740feee81f 100644
--- a/devel/quirks/Makefile
+++ b/devel/quirks/Makefile
@@ -3,7 +3,7 @@ CATEGORIES = devel databases
DISTFILES =

# API.rev
-PKGNAME = quirks-6.2
+PKGNAME = quirks-6.3
PKG_ARCH = *
MAINTAINER = Marc Espie <es...@openbsd.org>

diff --git a/devel/quirks/files/Quirks.pm b/devel/quirks/files/Quirks.pm
index d4845bfb46c..7dffa976196 100644
--- a/devel/quirks/files/Quirks.pm
+++ b/devel/quirks/files/Quirks.pm
@@ -727,6 +727,8 @@ my $stem_extensions = {
 'spidermonkey78' => 'spidermonkey91',
 'gmime' => 'gmime30',
 'fcitx-pinyin' => 'fcitx-chinese-addons',
+ 'fcitx-table' => 'fcitx-chinese-addons',
+ 'fcitx-configtool' => 'fcitx-configtool-qt',
};

my $obsolete_reason = {};

Reply via email to