Commit Graph

38 Commits

Author SHA1 Message Date
Khem Raj 86f430b5b6 anthy: port to anthy-unicode 1.0.0.20260213
Replace the long-dead anthy 9100h (last released 2009, fetched from an old
Ubuntu source tarball) with the maintained fork anthy-unicode, which is UTF-8
native and actively released on GitHub.

anthy-unicode renames its libraries (libanthy-unicode, libanthydic-unicode,
libanthyinput-unicode), pkg-config module file (anthy-unicode.pc), headers
(includedir/anthy-unicode-1.0/anthy), config file (anthy-unicode.conf) and
binaries (anthy-*-unicode). The recipe and packaging are updated accordingly:
libanthy-unicode0 for the runtime libraries and the standard PN-dev for the
development files.

The cross-compilation strategy is carried over from the old recipe: dictionary
generation runs helper programs (mkfiledic, mkworddic, mkdepgraph, calctrans,
proccorpus) that cannot execute when cross compiling. native-helpers.patch
promotes them to bin_PROGRAMS so anthy-unicode-native stages them into the
native sysroot; target-helpers.patch makes the target dictionary rules call
them from PATH instead of ./. not_build_elc.patch avoids byte-compiling the
Emacs lisp (no target Emacs under cross compilation). The patches are
regenerated against anthy-unicode's -unicode-suffixed libtool archives. The
legacy 2ch_t.patch is dropped; anthy-unicode has no mkanthydic/2ch.t.

uim is switched from the legacy EUC-JP anthy backend to the UTF-8
anthy-unicode backend it already supports: configure with --without-anthy
--with-anthy-utf8, DEPENDS on anthy-unicode, and the uim-anthy package is
renamed uim-anthy-utf8 (plugin libuim-anthy-utf8, anthy-utf8*.scm, module
registered as anthy-utf8) with RDEPENDS on libanthy-unicode0.

packagegroup-meta-oe: anthy -> anthy-unicode.

Verified by building anthy-unicode-native and anthy-unicode for
x86-64 (do_package_qa clean): the native helpers stage into the native
sysroot, the target build generates anthy.wdic/anthy.dep/anthy.dic via those
native helpers, and packaging splits into anthy-unicode, libanthy-unicode0 and
anthy-unicode-dev. uim variables verified by parse (it requires the x11
DISTRO_FEATURE, which the qemux86-64 yoe distro strips, so it is not buildable
in this configuration).

Signed-off-by: Khem Raj <khem.raj@oss.qualcomm.com>
2026-07-25 19:30:24 -07:00
Khem Raj 8f3df8b447 recipes: Convert licenses to SPDX expressions
- Automatically convert all licenses to valid SPDX license expressions
  using convert-spdx-licenses.py

Signed-off-by: Khem Raj <khem.raj@oss.qualcomm.com>
2026-07-20 22:35:47 -07:00
Khem Raj eb86706cf0 uim: fix cross-build segfault by loading native plugins in uim-module-manager
The target build runs uim-module-manager (from uim-native, via PATH) to
generate scm/installed-modules.scm. Module registration makes the tool
uim_init() and dlopen the uim C plugins found in LIBUIM_PLUGIN_LIB_DIR,
which scm/Makefile hardcodes to the target build's uim/.libs. The native
uim-module-manager therefore loads target objects (and, transitively, the
target libuim) into the native process, which crashes do_compile when the
build host ABI differs from the target:

  make[1]: *** [Makefile:869: installed-modules.scm] Segmentation fault

seen building for x86-64-v3-poky-linux on an x86-64 host.

Make LIBUIM_PLUGIN_LIB_DIR overridable in scm/Makefile.am and point it at
the native plugin directory (${STAGING_LIBDIR_NATIVE}/uim/plugin) for the
target build, so the native tool loads compatible native plugins. The
generated installed-modules.scm is architecture independent, so the result
is unchanged. The native build is unaffected (the patch and override are
class-target only).

Signed-off-by: Khem Raj <khem.raj@oss.qualcomm.com>
2026-07-10 19:39:15 -07:00
Khem Raj 1685684e33 uim: Upgrade to 1.9.6
uim 1.9.6 (May 16, 2025)
Improvements:

Changed the default value of --enable-default-toolkit to automatically detect the default toolkit
GTK+ 3: Simplified implementation
GTK+ 2: Added support again (after being dropped in 1.9.4)

Fixes:

sqlite3: Added missing libuim-scm.la dependency

uim 1.9.5 (May 6, 2025)
Fixes:

GTK+ 3: Fixed a build problem

uim 1.9.4 (May 6, 2025)
Improvements:

Suppressed incompatible-pointer-types warnings
Updated bundled SigScheme to 0.9.3
Dropped support for GTK+ 2 (later restored in 1.9.6)

uim 1.9.3
Improvements:

Updated bundled SigScheme 0.9.2 that is C23 ready (to support GCC 15's default C23 mode)

uim 1.9.2
Improvements:

Qt: Changed to use metadata.json from metadata.desktop because metadata.desktop is deprecated
Qt: Specified cmake_minimum_required() explicitly for CMake 4

Signed-off-by: Khem Raj <raj.khem@gmail.com>
2025-07-25 17:09:25 -07:00
Chen Qi acacb59a48 Revert "recipes: adapt to qemu.bbclass refactoring"
This reverts commit 24ff52ba3b.

The original patch was my bad. The patches for oe-core were re-worked,
but I forgot the recall this patch.

In fact, inheriting qemu is needed because it sets a clear barriar
for people to use qemu user mode. And the QEMU_OPTIONS settings
are also in qemu.bbclass.

Signed-off-by: Chen Qi <Qi.Chen@windriver.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2025-05-29 22:28:02 -07:00
Khem Raj 5cac401d00 uim: Stick to C17
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2025-05-04 23:18:20 -07:00
Chen Qi 24ff52ba3b recipes: adapt to qemu.bbclass refactoring
Avoid inheriting qemu.bbclass and use oe.qemu.xxx instead.

Also, the 'qemu-native' dep is replaced by 'qemuwrapper-cross' for
PACKAGE_WRITE_DEPS. qemuwrapper-cross is the one that is actually
used by postints and it has 'qemu-native' in DEPENDS.

Signed-off-by: Chen Qi <Qi.Chen@windriver.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2025-05-03 01:59:06 -07:00
Khem Raj 7e89f2c4da uim: Upgrade to 1.9.0
Changelog - https://github.com/uim/uim/releases/tag/1.9.0

Signed-off-by: Khem Raj <raj.khem@gmail.com>
2025-03-16 09:09:48 -07:00
Faiz HAMMOUCHE 1a54bbf3eb uim: update UPSTREAM_CHECK_* variables to fix devtool upgrades
Update UPSTREAM_CHECK_* variables to fix UNKNOWN_BROKEN status with
devtool check-upgrade-status

Signed-off-by: Faiz HAMMOUCHE <faiz.hammouche@smile.fr>
Reviewed-by: Yoann Congal <yoann.congal@smile.fr>
2024-07-24 08:56:51 -07:00
Khem Raj 14f9af8522 uim: Upgrade to 1.8.9
Drop upstreamed patch and second patch is no longer needed

Signed-off-by: Khem Raj <raj.khem@gmail.com>
2024-05-23 16:17:12 -07:00
Martin Jansa be8c765c7c *.patch: add Upstream-Status to all patches
There is new patch-status QA check in oe-core:
https://git.openembedded.org/openembedded-core/commit/?id=76a685bfcf927593eac67157762a53259089ea8a

This is temporary work around just to hide _many_ warnings from
optional patch-status (if you add it to WARN_QA).

This just added
Upstream-Status: Pending
everywhere without actually investigating what's the proper status.

This is just to hide current QA warnings and to catch new .patch files being
added without Upstream-Status, but the number of Pending patches is now terrible:

5 (26%) 	meta-xfce
6 (50%) 	meta-perl
15 (42%)        meta-webserver
21 (36%)        meta-gnome
25 (57%)        meta-filesystems
26 (43%)        meta-initramfs
45 (45%)        meta-python
47 (55%)        meta-multimedia
312 (63%)       meta-networking
756 (61%)       meta-oe

Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2023-06-21 09:15:20 -07:00
Khem Raj 5ee9c9ca08 uim: Fix build with libtool 2.4.7
Delete old m4 macros, so autoreconf can repopulate it.

Fixes

libtool: Version mismatch error.  This is libtool 2.4.7, but the
libtool: definition of this LT_INIT comes from libtool 2.4.6.
libtool: You should recreate aclocal.m4 with macros from libtool 2.4.7
libtool: and run autoconf again.

Signed-off-by: Khem Raj <raj.khem@gmail.com>
2022-03-19 01:45:03 -07:00
Khem Raj 14c7d8a0d7 recipes: Update LICENSE variable to use SPDX license identifiers
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2022-03-04 17:41:45 -08:00
leimaohui b8297bc6bd uim: Dleted takao fonts from DEPENDS.
It is odd that specify fonts in uim DEPENDS.

Signed-off-by: Lei Maohui <leimaohui@fujitsu.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2021-08-17 08:15:01 -07:00
Martin Jansa c61dc077bb Convert to new override syntax
This is the result of automated script (0.9.1) conversion:

oe-core/scripts/contrib/convert-overrides.py .

converting the metadata to use ":" as the override character instead of "_".

Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
2021-08-03 10:21:25 -07:00
Khem Raj 5c6f679704 uim: Add patch to fix -fno-common link error
This is unearthed by gcc10 like below

| /mnt/b/yoe/master/build/tmp/hosttools/ld: .libs/gcroots.o:(.bss+0x0): multiple definition of `GCROOTS_jmp_buf'; .libs/mark.o:(.bss+0x0): first defined here
| /mnt/b/yoe/master/build/tmp/hosttools/ld: .libs/mach_dep.o:(.bss+0x0): multiple definition of `GCROOTS_jmp_buf'; .libs/mark.o:(.bss+0x0): first defined here
| collect2: error: ld returned 1 exit status

Signed-off-by: Khem Raj <raj.khem@gmail.com>
2020-05-16 14:52:48 -07:00
Pierre-Jean Texier b7eaa85ee3 uim: fix upstream version check
Fixes:

INFO: Skip package uim (status = UNKNOWN_BROKEN, current version = 1.8.8, next version = N/A)

After this commit:

INFO: Skip package uim (status = MATCH, current version = 1.8.8, next version = 1.8.8)

Signed-off-by: Pierre-Jean Texier <pjtexier@koncepto.io>
2020-03-05 07:11:50 -08:00
Denys Dmytriyenko 4c00e5fed9 recipes: rename distro_features_check to features_check
Avoid warning due to the class rename in OE-Core.

Signed-off-by: Denys Dmytriyenko <denys@ti.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2019-11-21 17:51:37 -08:00
Khem Raj 9c6302ba08 uim: Fix cross-builds
riscv is not yet supported to exclude it

Signed-off-by: Khem Raj <raj.khem@gmail.com>
2019-09-25 11:58:25 -07:00
Khem Raj 290ad988fb uim: Update to 1.8.8
License-Update: Change URI from code.google.com to github.com [1]
Drop the patches they seem to be not needed
Add dependency on libedit

Disable parallel make due to races

aarch64 support is upstream so drop the patch

[1] https://github.com/uim/uim/commit/a1cf71ec3719389874c42dd4c719a15509983485#diff-7116ef0705885343c9e1b2171a06be0e

Signed-off-by: Khem Raj <raj.khem@gmail.com>
2019-09-20 19:09:06 -07:00
Takuro Ashie 3490d00bff uim: Fix SRC_URI
The place of uim archives has been moved to
https://github.com/uim/uim/releases

Signed-off-by: Takuro Ashie <ashie@clear-code.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2018-08-19 16:09:28 -07:00
Armin Kuster b25363f0cd uim: refresh patches
WARNING:
Some of the context lines in patches were ignored. This can lead to incorrectly applied patches.
The context lines in the patches can be updated with devtool:

    devtool modify <recipe>
    devtool finish --force-patch-refresh <recipe> <layer_path>

Then the updated patches and the source tree (in devtool's workspace)
should be reviewed to make sure the patches apply in the correct place
and don't introduce duplicate lines (which can, and does happen
when some of the context is ignored). Further information:
http://lists.openembedded.org/pipermail/openembedded-core/2018-March/148675.html
https://bugzilla.yoctoproject.org/show_bug.cgi?id=10450
Details:
checking file scm/Makefile.am
Hunk #1 succeeded at 119 with fuzz 2 (offset 61 lines).

Signed-off-by: Armin Kuster <akuster808@gmail.com>
2018-04-13 12:43:38 -07:00
Martin Jansa 4cbe85add7 uim: add glibc-utils glibc-gconv-euc-jp only for libc-glibc
* musl doesn't provide these
* I'm not using uim, but this is breaking signatures test in world builds
  for many months and nobody seems to care

Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
Signed-off-by: Armin Kuster <akuster808@gmail.com>
2018-03-16 19:15:49 -07:00
Armin Kuster af19773cd3 uim: add distro_features_check for x11
Signed-off-by: Armin Kuster <akuster808@gmail.com>
2018-03-12 09:59:32 -07:00
Yusuke Mitsuki e44af0d743 uim: Fixed a problem that an immodule.cache is not updated appropriately when uim-gtk2.0 or uim-gtk3 was installed.
pkg_postinst_uim-gtk2.0 is not worked. Plus, uim-gtk3 is not supported.
oe-core has gtk-immodule-cache class for update the immodule.cache.
Modified to use the this class instead of pkg_post_uim-gtk2.0 and added support to uim-gtk3.

Signed-off-by: Yusuke Mitsuki <mickey.happygolucky@gmail.com>
Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
2017-08-13 13:20:59 +02:00
Yusuke Mitsuki 087348874f uim: Fixed pkg_postinst_*/pkg_prerm_* for uim-anthy and uim-skk.
pkg_postinst*/pkg_prerm_* functions are not worked correctly.
Because uim-module-manager executes on the host machine.
It needs executed via qemu.

Signed-off-by: Yusuke Mitsuki <mickey.happygolucky@gmail.com>
Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
2017-08-13 13:20:59 +02:00
Yusuke Mitsuki 8c5e619658 uim: Removed pkg_postinst_uim-common/pkg_prerm_uim-common.
These functions are not worked correctly.
However default im is installed. thus we determined it not need.

Signed-off-by: Yusuke Mitsuki <mickey.happygolucky@gmail.com>
Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
2017-08-13 13:20:59 +02:00
Yusuke Mitsuki 370e65d3fb uim: Added glibc-utils and glibc-gconv-euc-jp to RDEPENDS_uim-anthy
To uim-anthy is working correctly needs register by uim-module-manager.
However 'uim-module-manager --register anthy' is failed.
Because uim-module-manager uses iconv(EUCJP to UTF8) internally.
iconv needs glibc-utils and EUCJP conversion needs glibc-gconv-euc-jp.

Signed-off-by: Yusuke Mitsuki <mickey.happygolucky@gmail.com>
Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
2017-08-13 13:20:59 +02:00
Yusuke Mitsuki 2eab3fa619 uim: add dependency on anthy
anthy.h could not found at confiugre of uim.

class-target override was used incorrectly with +=,
but instead of expected append to DEPENDS set above
it overrided whole DEPENDS for target builds so anthy
was missing.

Signed-off-by: Yusuke Mitsuki <mickey.happygolucky@gmail.com>
Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
2017-08-13 13:20:59 +02:00
Yusuke Mitsuki f1d6a48684 uim: Modified the order of package definition.
The uim-anthy package is created that empty.
To avoid this problem by defining a packages with a rough PATH list after the uim-anthy package.

Signed-off-by: Yusuke Mitsuki <mickey.happygolucky@gmail.com>
Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
2017-08-13 13:20:59 +02:00
Khem Raj 36aa6edabf uim: Add support for aarch64
Backport patch from
https://github.com/uim/libgcroots/pull/1

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
2017-07-14 23:43:22 +02:00
Martin Jansa 289217bbc3 meta-oe: fix indentation
* remove tabs which sneaked in since last cleanup
* meta-oe layers are using consistent indentation with 4 spaces, see
  http://www.openembedded.org/wiki/Styleguide

Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
2016-08-22 15:56:28 +02:00
Armin Kuster 4ff633a23a uim: Fix Warning
WARNING: uim-1.8.6-r0 do_configure: Missing DEPENDS on intltool-native

Signed-off-by: Armin Kuster <akuster808@gmail.com>
Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
2016-05-19 12:03:54 +02:00
Martin Jansa db304d23d5 uim: fix packaging issues
* I'm not sure if these belong to uim-xim or rather uim-gtk2.0/uim-gtk3
  but original author obviously doesn't care so I'll follow the
  uim-candwin-gtk example and put them all in uim-xim
* fixes:
  uim-1.8.6: uim: Files/directories were installed but not shipped in any package:
  /usr/libexec/uim-candwin-horizontal-gtk
  /usr/libexec/uim-candwin-gtk3
  /usr/libexec/uim-candwin-tbl-gtk3
  /usr/libexec/uim-candwin-tbl-gtk
  /usr/libexec/uim-candwin-horizontal-gtk3
  Please set FILES such that these items are packaged. Alternatively if they are unneeded, avoid installing them or delete them within do_install.
  uim: 5 installed and not shipped files. [installed-vs-shipped]

Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
2016-02-25 17:47:29 +01:00
leimaohui 1cd9f5b30f uim_1.8.6: fix QA issue
uim-1.8.6: uim: Files/directories were installed but not shipped in any
package:
  /usr/lib/gtk-3.0/3.0.0/immodules/im-uim.so
  /usr/lib/gtk-3.0/3.0.0/immodules/im-uim.la

Signed-off-by: Lei Maohui <leimaohui@cn.fujitsu.com>
Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
2015-09-23 15:37:16 +02:00
leimaohui f2a8309af7 uim: 1.3.1->1.8.6
- deleted 0001-fix-bug-about-stdlib.patch that not be needed.
- modified license

Signed-off-by: Lei Maohui <leimaohui@cn.fujitsu.com>
Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
2015-08-31 19:30:55 +02:00
Yi Zhao 67d903e519 uim: use _remove operator to drop silent rules
When MACHINE=qemux86-64 and enable multilib, lib32-uim fails to build
because CONFIGUREOPTS isn't expanded correctly.

See similar issue:
http://lists.openembedded.org/pipermail/openembedded-core/2013-November/086510.html

Signed-off-by: Yi Zhao <yi.zhao@windriver.com>
Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
2015-08-24 13:59:43 +02:00
Bian Naimeng 63c7ae49d0 uim: add new recipe
UIM(Universal Input Method) is a multilingual user input method library.

Signed-off-by: Bian Naimeng <biannm@cn.fujitsu.com>
2015-07-16 21:09:06 +02:00