Package Details: mozc-ut-united 2.26.4610.102.20220112-2

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=2.26.4610.102
Submitter: OrangeJuicelol
Maintainer: silverhikari
Last Packager: silverhikari
Votes: 5
Popularity: 0.76
First Submitted: 2020-06-26 15:05
Last Updated: 2022-01-20 17:03

Pinned Comments

OrangeJuicelol commented on 2020-12-10 14:45

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

1 2 Next › Last »

npreining commented on 2022-01-25 04:28

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

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

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

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

@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

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

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

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

@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

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...