Package Details: emacs-mozc-ut-united 2.23.2815.102.20201229-1

Git Clone URL: https://aur.archlinux.org/mozc-ut-united.git (read-only, click to copy)
Package Base: mozc-ut-united
Description: Emacs engine module for Mozc with UT dictionary
Upstream URL: https://osdn.net/users/utuhiro/pf/utuhiro/files/
Licenses: GPL, custom, BSD
Conflicts: emacs-mozc, emacs-mozc-bin, emacs-mozc-ut2
Provides: emacs-mozc
Submitter: OrangeJuicelol
Maintainer: OrangeJuicelol
Last Packager: OrangeJuicelol
Votes: 4
Popularity: 0.27
First Submitted: 2020-06-26 15:05
Last Updated: 2021-01-13 15:43

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)

Thank you all for downloading and using this package. Right now I'm not actively developing so it'd be a huge help if you flag the build when it's out of date. Then I'll try my best to update it ASAP. Also please report any bug/error down in the comments. Again, thank you.

Latest Comments

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)

Thank you all for downloading and using this package. Right now I'm not actively developing so it'd be a huge help if you flag the build when it's out of date. Then I'll try my best to update it ASAP. Also please report any bug/error down in the comments. Again, thank you.

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

OrangeJuicelol commented on 2020-10-04 15:26

@dreamingincode Thanks for the notification.

dreamingincode commented on 2020-10-01 10:46

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.