Package Details: ibus-mozc-ut-united 2.28.4715.102_20220423_2.26.4660.102.r106.g4c5d516f-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: ibus-mozc, ibus-mozc-ut2
Provides: ibus-mozc
Submitter: OrangeJuicelol
Maintainer: silverhikari
Last Packager: silverhikari
Votes: 5
Popularity: 0.066536
First Submitted: 2020-06-26 15:05 (UTC)
Last Updated: 2022-04-23 22:13 (UTC)

Pinned Comments

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

silverhikari commented on 2022-05-15 04:10 (UTC) (edited on 2022-05-15 04:10 (UTC) by silverhikari)

@jimreynold2nd it should build fine using the java version specified by bazel which is jdk11-openjdk

jimreynold2nd commented on 2022-05-13 19:27 (UTC)

I have the same problem with homocomputeris. What's the java version used?

silverhikari commented on 2022-03-29 05:37 (UTC)

@homocomputeris i can not replicate this error on my systems, you may want to send this upstream to the bazel issues as this seems to be caused by something going wrong with bazel and java

homocomputeris commented on 2022-03-24 21:52 (UTC)

Is there a way to fix this build error?

==> Starting build()...
=====================================================
               *** Build Info ***
 The following package files will be generated:
  * mozc-ut-united-2.26.4666.102_20220305_2018.02.26.r307.g1b950579-1-x86_64.pkg.tar.zst
  * ibus-mozc-ut-united-2.26.4666.102_20220305_2018.02.26.r307.g1b950579-1-x86_64.pkg.tar.zst
=====================================================
Starting make...
/bin/bash: warning: setlocale: LC_ALL: cannot change locale (en_US)
Extracting Bazel installation...
Starting local Bazel server and connecting to it...
WARNING: ignoring _JAVA_OPTIONS in environment.
INFO: SHA256 (https://www.post.japanpost.jp/zipcode/dl/jigyosyo/zip/jigyosyo.zip) = 80c7a198f03a9f7b954491f7c99c7b3a3af43e29ec0dafb8716ca987d915c98a
DEBUG: Rule 'zip_code_jigyosyo' indicated that a canonical reproducible form can be obtained by modifying arguments sha256 = "80c7a198f03a9f7b954491f7c99c7b3a3af43e29ec0dafb8716ca987d915c98a"
DEBUG: Repository zip_code_jigyosyo instantiated at:
  /home/user/.cache/paru/clone/mozc-ut-united/src/mozc/src/WORKSPACE.bazel:186:13: in <toplevel>
Repository rule http_archive defined at:
  /home/user/.cache/paru/clone/mozc-ut-united/src/bazel-cache/88591a71fda356e20b2f340c858c6981/external/bazel_tools/tools/build_defs/repo/http.bzl:336:31: in <toplevel>
INFO: SHA256 (https://www.post.japanpost.jp/zipcode/dl/kogaki/zip/ken_all.zip) = 1e8a27f9dac60f9288b3cd9d41921f896b44d25f1ea97e16576552ca8f49706c
DEBUG: Rule 'zip_code_ken_all' indicated that a canonical reproducible form can be obtained by modifying arguments sha256 = "1e8a27f9dac60f9288b3cd9d41921f896b44d25f1ea97e16576552ca8f49706c"
DEBUG: Repository zip_code_ken_all instantiated at:
  /home/user/.cache/paru/clone/mozc-ut-united/src/mozc/src/WORKSPACE.bazel:180:13: in <toplevel>
Repository rule http_archive defined at:
  /home/user/.cache/paru/clone/mozc-ut-united/src/bazel-cache/88591a71fda356e20b2f340c858c6981/external/bazel_tools/tools/build_defs/repo/http.bzl:336:31: in <toplevel>
INFO: Analyzed target //:package (112 packages loaded, 4561 targets configured).
INFO: Found 1 target...
[0 / 13] [Prepa] BazelWorkspaceStatusAction stable-status.txt
FATAL: bazel crashed due to an internal error. Printing stack trace:
java.lang.ExceptionInInitializerError
    at com.google.devtools.build.lib.actions.ParameterFile.writeContent(ParameterFile.java:118)
    at com.google.devtools.build.lib.actions.ParameterFile.writeParameterFile(ParameterFile.java:111)
    at com.google.devtools.build.lib.analysis.actions.ParameterFileWriteAction$ParamFileWriter.writeOutputFile(ParameterFileWriteAction.java:175)
    at com.google.devtools.build.lib.exec.FileWriteStrategy.beginWriteOutputToFile(FileWriteStrategy.java:58)
    at com.google.devtools.build.lib.analysis.actions.AbstractFileWriteAction.beginExecution(AbstractFileWriteAction.java:66)
    at com.google.devtools.build.lib.actions.Action.execute(Action.java:127)
    at com.google.devtools.build.lib.skyframe.SkyframeActionExecutor$5.execute(SkyframeActionExecutor.java:855)
    at com.google.devtools.build.lib.skyframe.SkyframeActionExecutor$ActionRunner.continueAction(SkyframeActionExecutor.java:1016)
    at com.google.devtools.build.lib.skyframe.SkyframeActionExecutor$ActionRunner.run(SkyframeActionExecutor.java:975)
    at com.google.devtools.build.lib.skyframe.ActionExecutionState.runStateMachine(ActionExecutionState.java:129)
    at com.google.devtools.build.lib.skyframe.ActionExecutionState.getResultOrDependOnFuture(ActionExecutionState.java:81)
    at com.google.devtools.build.lib.skyframe.SkyframeActionExecutor.executeAction(SkyframeActionExecutor.java:472)
    at com.google.devtools.build.lib.skyframe.ActionExecutionFunction.checkCacheAndExecuteIfNeeded(ActionExecutionFunction.java:834)
    at com.google.devtools.build.lib.skyframe.ActionExecutionFunction.compute(ActionExecutionFunction.java:307)
    at com.google.devtools.build.skyframe.AbstractParallelEvaluator$Evaluate.run(AbstractParallelEvaluator.java:477)
    at com.google.devtools.build.lib.concurrent.AbstractQueueVisitor$WrappedRunnable.run(AbstractQueueVisitor.java:398)
    at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1136)
    at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:635)
    at java.base/java.lang.Thread.run(Thread.java:833)
Caused by: java.lang.reflect.InaccessibleObjectException: Unable to make java.lang.String(byte[],byte) accessible: module java.base does not "opens java.lang" to unnamed module @30ee2816
    at java.base/java.lang.reflect.AccessibleObject.checkCanSetAccessible(AccessibleObject.java:354)
    at java.base/java.lang.reflect.AccessibleObject.checkCanSetAccessible(AccessibleObject.java:297)
    at java.base/java.lang.reflect.Constructor.checkCanSetAccessible(Constructor.java:188)
    at java.base/java.lang.reflect.Constructor.setAccessible(Constructor.java:181)
    at com.google.devtools.build.lib.unsafe.StringUnsafe.<init>(StringUnsafe.java:75)
    at com.google.devtools.build.lib.unsafe.StringUnsafe.initInstance(StringUnsafe.java:56)
    at com.google.devtools.build.lib.unsafe.StringUnsafe.<clinit>(StringUnsafe.java:37)
    ... 19 more
==> ERROR: A failure occurred in build().
    Aborting...
error: failed to build 'mozc-ut-united-2.26.4646.102_20220305_2018.02.26.r289.g650e8de7-1 (ibus-mozc-ut-united)': 
error: packages failed to build: mozc-ut-united-2.26.4646.102_20220305_2018.02.26.r289.g650e8de7-1 (ibus-mozc-ut-united)

hegstal commented on 2022-02-27 15:20 (UTC)

android-fix.patch appears to be broken now due to a slight change in the surrounding code in WORKSPACE.bazel for mozc master (namely reffers -> refers to in commit cf3a9de of mozc).

Can be temporarily worked around by manually making the relevant changes to android-fix.patch:

--- WORKSPACE.bazel 2022-01-31 15:44:11.510958782 -0500
+++ WORKSPACE-new.bazel 2022-01-31 15:48:42.861958776 -0500
@@ -5,11 +5,11 @@
 load("//:config.bzl", "QT_BASE_PATH")

 # This rule refers to $ANDROID_SDK_HOME.
-android_sdk_repository(name = "androidsdk")
+#android_sdk_repository(name = "androidsdk")

 # Android NDK version should be r11c+ for Abseil.
 # This rule refers to $ANDROID_NDK_HOME.
-android_ndk_repository(name = "androidndk")
+#android_ndk_repository(name = "androidndk")

 local_repository(
     name = "com_google_absl",

clay53 commented on 2022-02-19 05:45 (UTC)

@silverhikari Thanks, seems to work now. Still have the preferences window problem. Probably not a problem with this packaging so I might make a git issue for that but it also might be a problem with the WM I'm using (leftwm) or my general setup (kinda edge-casey - Chromebook with a 3rd party legacy bios to boot Arch off a microSD).

Martoko commented on 2022-02-13 13:35 (UTC)

I had to install python-six as well to build, and set my JAVAHOME (using archlinux-java) to Java 11 in order for it to build.

silverhikari commented on 2022-02-03 04:44 (UTC)

@hina yep that is what the android-fix.patch files is doing, along with adding a comment mark to the sdk line just to be extra sure

hina commented on 2022-02-03 04:33 (UTC)

A simple comment-out patch is effective for fixing Android errors. https://github.com/google/mozc/issues/544#issuecomment-1025122998

For example, mozc-ut-common: https://aur.archlinux.org/cgit/aur.git/commit/PKGBUILD?h=mozc-ut-common&id=46a1b8136f02590caeaf12630a64b59b418f484d

silverhikari commented on 2022-02-02 03:54 (UTC)

@clay53 this new uploaded version should fix the android error that appears with bazel 5.0.0

clay53 commented on 2022-01-29 03:10 (UTC)

@silverhikary Thank you, I downgraded my bazel install to 4.2.2 (https://wiki.archlinux.org/title/Arch_Linux_Archive) and it successfully installed. I don't seem to be able to open the preferences window but I don't imagine that that's related.

silverhikari commented on 2022-01-28 18:44 (UTC)

@clay53 after some messages between npreining and i, we have found out the reason this is happening as this seems to be caused by the repository not working well with the new version of bazel(5.0.0) as the version i had tested and build successfully with was 4.2.2

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.

dreamingincode commented on 2020-10-04 21:25 (UTC)

makepkg is failing for another issue:

The next patch would create the file src/third_party/japanese_usage_dictionary/usage_dict.txt,
which already exists!  Skipping patch.
1 out of 1 hunk ignored
==> ERROR: A failure occurred in prepare().
    Aborting...

OrangeJuicelol commented on 2020-10-04 15:26 (UTC)

@dreamingincode Thanks for the notification.

dreamingincode commented on 2020-10-01 10:46 (UTC)

curl: (22) The requested URL returned error: 404 ==> Error: Cannot download https://osdn.net/downloads/users/26/26524/mozcdic-ut-20200718.1.tar.bz2

Visiting the URL directly also showed me a 404 page.

It seems upstream has updated to mozcdic-ut-20200924.1.tar.bz2, so I'll flag this package as outdated as well.