Package Details: mozc-ut-united 2.28.4960.102_20230107_2.28.4880.102.r161.g7ec82c93-1

Git Clone URL: https://aur.archlinux.org/mozc-ut-united.git (read-only, click to copy)
Package Base: mozc-ut-united
Description: A Japanese Input Method for Chromium OS, Windows, Mac and Linux (the Open Source Edition of Google Japanese Input)
Upstream URL: https://osdn.net/users/utuhiro/pf/utuhiro/files/
Licenses: GPL, custom, BSD
Conflicts: mozc, mozc-neologd-ut, mozc-neologd-ut+ut2, mozc-server, mozc-ut-unified, mozc-ut2, mozc-utils-gui
Provides: mozc
Submitter: OrangeJuicelol
Maintainer: None
Last Packager: silverhikari
Votes: 6
Popularity: 0.000002
First Submitted: 2020-06-26 15:05 (UTC)
Last Updated: 2023-01-07 00:33 (UTC)

Pinned Comments

silverhikari commented on 2023-01-28 17:34 (UTC) (edited on 2023-02-24 05:20 (UTC) by silverhikari)

at the moment this project is now dead, as the maintainer for the mozcdic-ut is no longer publishing the ut dictionary and at the moment they are trying to split it into a version that can be distributed. if you need to something similar i would recommend switching to mozc-ut and ibus-mozc.

direct url to info: http://linuxplayers.g1.xrea.com/mozc-ut.html

OrangeJuicelol commented on 2020-12-10 14:45 (UTC) (edited on 2022-01-13 19:08 (UTC) by OrangeJuicelol)

Notice: If you are building for Emacs, please enable toggle for Emacs and disable toggle for IBus in pkgbuild (Read: https://wiki.archlinux.org/index.php/Mozc#Installation)

Latest Comments

« First ‹ Previous 1 2 3 4 Next › Last »

clay53 commented on 2022-01-28 13:44 (UTC)

I'm getting the same error as @npreining

=====================================================
               *** Build Info ***
 The following package files will be generated:
  * mozc-ut-united-2.26.4610.102.20220112-2-x86_64.pkg.tar.zst
  * ibus-mozc-ut-united-2.26.4610.102.20220112-2-x86_64.pkg.tar.zst
=====================================================
Starting make...
Extracting Bazel installation...
Starting local Bazel server and connecting to it...
ERROR: Traceback (most recent call last):
    File "/home/clay53/.cache/paru/clone/mozc-ut-united/src/bazel-cache/0ac15aff512721a322728db0f2f95d78/external/build_bazel_rules_apple/apple/internal/testing/macos_rules.bzl", line 63, column 73, in <toplevel>
        _macos_internal_ui_test_bundle = rule_factory.create_apple_bundling_rule(
    File "/home/clay53/.cache/paru/clone/mozc-ut-united/src/bazel-cache/0ac15aff512721a322728db0f2f95d78/external/build_bazel_rules_apple/apple/internal/rule_factory.bzl", line 1099, column 55, in _create_apple_bundling_rule
        rule_attrs.append(_common_binary_linking_attrs(
    File "/home/clay53/.cache/paru/clone/mozc-ut-united/src/bazel-cache/0ac15aff512721a322728db0f2f95d78/external/build_bazel_rules_apple/apple/internal/rule_factory.bzl", line 288, column 21, in _common_binary_linking_attrs
        apple_common.objc_proto_aspect,
Error: 'apple_common' value has no field or method 'objc_proto_aspect'
ERROR: Skipping 'package': error loading package '': at /home/clay53/.cache/paru/clone/mozc-ut-united/src/mozc/src/build_defs.bzl:38:6: at /home/clay53/.cache/paru/clone/mozc-ut-united/src/bazel-cache/0ac15aff512721a322728db0f2f95d78/external/build_bazel_rules_apple/apple/macos.bzl:26:5: initialization of module 'apple/internal/testing/macos_rules.bzl' failed
WARNING: Target pattern parsing failed.
ERROR: error loading package '': at /home/clay53/.cache/paru/clone/mozc-ut-united/src/mozc/src/build_defs.bzl:38:6: at /home/clay53/.cache/paru/clone/mozc-ut-united/src/bazel-cache/0ac15aff512721a322728db0f2f95d78/external/build_bazel_rules_apple/apple/macos.bzl:26:5: initialization of module 'apple/internal/testing/macos_rules.bzl' failed
INFO: Elapsed time: 33.391s
INFO: 0 processes.
FAILED: Build did NOT complete successfully (0 package\
s loaded)
    currently loading:
==> ERROR: A failure occurred in build().
    Aborting...
error: failed to build 'mozc-ut-united-2.26.4610.102.20220112-2 (ibus-mozc-ut-united)':
error: packages failed to build: mozc-ut-united-2.26.4610.102.20220112-2 (ibus-mozc-ut-united)

npreining commented on 2022-01-25 04:28 (UTC)

Building is currently broken, not sure but it seems to be a bug in bazel: I get

==> Starting build()...
=====================================================
               *** Build Info ***
 The following package files will be generated:
  * mozc-ut-united-2.26.4610.102.20220112-2-x86_64.pkg.tar.zst
  * emacs-mozc-ut-united-2.26.4610.102.20220112-2-x86_64.pkg.tar.zst
=====================================================
Starting make...
ERROR: Traceback (most recent call last):
        File "/home/norbert/.cache/yay/mozc-ut-united/src/bazel-cache/5194d38a389a73d11dea081229daa810/external/build_bazel_rules_apple/apple/internal/macos_rules.bzl", line 1285, column 60, in <toplevel>
                macos_application = rule_factory.create_apple_bundling_rule(
        File "/home/norbert/.cache/yay/mozc-ut-united/src/bazel-cache/5194d38a389a73d11dea081229daa810/external/build_bazel_rules_apple/apple/internal/rule_factory.bzl", line 1099, column 55, in _create_apple_bundling_rule
                rule_attrs.append(_common_binary_linking_attrs(
        File "/home/norbert/.cache/yay/mozc-ut-united/src/bazel-cache/5194d38a389a73d11dea081229daa810/external/build_bazel_rules_apple/apple/internal/rule_factory.bzl", line 288, column 21, in _common_binary_linking_attrs
                apple_common.objc_proto_aspect,
Error: 'apple_common' value has no field or method 'objc_proto_aspect'
ERROR: Skipping 'package': error loading package '': at /home/norbert/.cache/yay/mozc-ut-united/src/mozc/src/build_defs.bzl:38:6: at /home/norbert/.cache/yay/mozc-ut-united/src/bazel-cache/5194d38a389a73d11dea081229daa810/external/build_bazel_rules_apple/apple/macos.bzl:46:5: initialization of module 'apple/internal/macos_rules.bzl' failed
WARNING: Target pattern parsing failed.
ERROR: error loading package '': at /home/norbert/.cache/yay/mozc-ut-united/src/mozc/src/build_defs.bzl:38:6: at /home/norbert/.cache/yay/mozc-ut-united/src/bazel-cache/5194d38a389a73d11dea081229daa810/external/build_bazel_rules_apple/apple/macos.bzl:46:5: initialization of module 'apple/internal/macos_rules.bzl' failed

I have disabled ibus and enabled emacs building according to the pinned post.

silverhikari commented on 2021-12-06 20:21 (UTC)

hey, i have been reworking the pkgbuild to work with the newer mozc and mozc-ut-dictionary, along with removing patches that are no longer needed as what they fix has been upstreamed, so far the only thing that is difficult is the new japenese era patch, is there a way i can get in contact to send the newer pkgbuild

dreamingincode commented on 2021-01-13 13:42 (UTC)

Although zinnia is listed as a dependency in PKGBUILD, it isn't listed in the makedepends in .SRCINFO, so that AUR helpers may not install it and it's not showing on this page as well: https://aur.archlinux.org/cgit/aur.git/tree/.SRCINFO?h=mozc-ut-united

Could you update the .SRCINFO file?

OrangeJuicelol commented on 2020-12-10 14:45 (UTC) (edited on 2022-01-13 19:08 (UTC) by OrangeJuicelol)

Notice: If you are building for Emacs, please enable toggle for Emacs and disable toggle for IBus in pkgbuild (Read: https://wiki.archlinux.org/index.php/Mozc#Installation)

OrangeJuicelol commented on 2020-12-10 14:40 (UTC)

@homocomputeris zinnia is already in the dependencies so I don't think that's the problem here cause the build is working fine for me. It's maybe because that you were building an older version that wasn't updated with some bug fixes. Also thank you for flagging the package OOD.

homocomputeris commented on 2020-11-01 23:01 (UTC)

Probably, this should be a makedep

==> Making package: mozc-ut-united 2.23.2815.102.20200924-1
==> Checking runtime dependencies...
==> Missing dependencies:
  -> zinnia
==> Checking buildtime dependencies...
==> ERROR: Could not resolve all dependencies.

Nocifer commented on 2020-10-16 08:19 (UTC) (edited on 2020-10-16 08:21 (UTC) by Nocifer)

There's an issue with generating the package version in pkgver(), instead of

printf "%s.%s.%s.%s" $MAJOR $MINOR $BUILD $REVISION

it should be something like

printf "%s.%s.%s.%s.%s" $MAJOR $MINOR $BUILD $REVISION $_utdicdate

so that the date seed is also included in the string.

dreamingincode commented on 2020-10-08 20:22 (UTC) (edited on 2020-10-09 10:26 (UTC) by dreamingincode)

Thanks for the reply! But there is still another error after the update:

patch: **** Can't open patch file /home/zh/.cache/yay/mozc-ut-united/src/usage_dict.txt.patch : No such file or directory
==> ERROR: A failure occurred in prepare().
    Aborting...

And after removing patch -Np1 -i ${srcdir}/usage_dict.txt.patch in prepare():

INFO: Running GYP...
INFO: Running: /usr/bin/gyp --depth=. --include=./gyp/common.gypi -D abs_depth=/home/zh/.cache/yay/mozc-ut-united/src/mozc/src -D ext_third_party_dir=/home/zh/.cache/yay/mozc-ut-united/src/mozc/src/third_party -D python_executable=/usr/bin/python ./base/base.gyp ./base/base_test.gyp ./client/client.gyp ./client/client_test.gyp ./composer/composer.gyp ./composer/composer_test.gyp ./config/config.gyp ./config/config_test.gyp ./converter/converter.gyp ./converter/converter_base.gyp ./converter/converter_main.gyp ./converter/converter_test.gyp ./data/test/session/scenario/scenario.gyp ./data/test/session/scenario/usage_stats/usage_stats.gyp ./data_manager/chromeos/chromeos_data_manager.gyp ./data_manager/chromeos/chromeos_data_manager_base.gyp ./data_manager/chromeos/chromeos_data_manager_test.gyp ./data_manager/data_manager.gyp ./data_manager/data_manager_base.gyp ./data_manager/data_manager_test.gyp ./data_manager/oss/oss_data_manager.gyp ./data_manager/oss/oss_data_manager_base.gyp ./data_manager/oss/oss_data_manager_test.gyp ./data_manager/testing/mock_data_manager.gyp ./data_manager/testing/mock_data_manager_base.gyp ./data_manager/testing/mock_data_manager_test.gyp ./dictionary/dictionary.gyp ./dictionary/dictionary_base.gyp ./dictionary/dictionary_test.gyp ./dictionary/file/dictionary_file.gyp ./dictionary/file/dictionary_file_test.gyp ./dictionary/system/system_dictionary.gyp ./dictionary/system/system_dictionary_test.gyp ./engine/engine.gyp ./engine/engine_test.gyp ./gui/gui.gyp ./gyp/tests.gyp ./handwriting/handwriting.gyp ./handwriting/handwriting_test.gyp ./handwriting/zinnia.gyp ./ipc/ipc.gyp ./mac/mac.gyp ./net/jsoncpp.gyp ./net/net.gyp ./net/net_test.gyp ./prediction/prediction.gyp ./prediction/prediction_base.gyp ./prediction/prediction_test.gyp ./protobuf/protobuf.gyp ./protocol/protocol.gyp ./renderer/renderer.gyp ./request/request.gyp ./rewriter/calculator/calculator.gyp ./rewriter/rewriter.gyp ./rewriter/rewriter_base.gyp ./rewriter/rewriter_test.gyp ./server/server.gyp ./session/session.gyp ./session/session_base.gyp ./session/session_test.gyp ./storage/storage.gyp ./storage/storage_test.gyp ./testing/testing.gyp ./transliteration/transliteration.gyp ./transliteration/transliteration_test.gyp ./unix/emacs/emacs.gyp ./unix/ibus/ibus.gyp ./usage_stats/usage_stats.gyp ./usage_stats/usage_stats_base.gyp ./usage_stats/usage_stats_test.gyp -D branding=Mozc -D use_qt=YES -D qt_dir= -D use_wix=NO -D build_base=/home/zh/.cache/yay/mozc-ut-united/src/mozc/src/out_linux -D build_short_base=out_linux -D warn_as_error=0 -D channel_dev=1 -D enable_cloud_handwriting=0 -D target_platform=Linux -D use_libibus=1 --generator-output=. -G output_dir=out_linux
Traceback (most recent call last):
  File "build_mozc.py", line 1236, in <module>
    main()
  File "build_mozc.py", line 1220, in main
    GypMain(cmd_opts, cmd_args)
  File "build_mozc.py", line 736, in GypMain
    RunOrDie(gyp_command + gyp_options)
  File "/home/zh/.cache/yay/mozc-ut-united/src/mozc/src/build_tools/util.py", line 92, in RunOrDie
    process = subprocess.Popen(argv)
  File "/usr/lib/python3.8/subprocess.py", line 854, in __init__
    self._execute_child(args, executable, preexec_fn, close_fds,
  File "/usr/lib/python3.8/subprocess.py", line 1702, in _execute_child
    raise child_exception_type(errno_num, err_msg, err_filename)
FileNotFoundError: [Errno 2] No such file or directory: '/usr/bin/gyp'
==> ERROR: A failure occurred in build().
    Aborting...

After adding gyp to makedepends, the package can be built.

However, I think the correct solution should be using the bundled gyp inside mozc's third_party directory, which can be done by removing --gypdir=/usr/bin --target_platform=Linux from python build_mozc.py gyp --gypdir=/usr/bin --target_platform=Linux in build() (I found out this from mozc-ut2's PKGBUILD). After all, why not just makedepends on python2 and use python2 instead of python which is Python 3, to build the project, as done in mozc-ut2?

OrangeJuicelol commented on 2020-10-08 16:28 (UTC)

@dreamingincode Updated. Please respond if there's any error left with the build cause I'm not running Linux on my machine rn so I have no way to really check it. Thanks.