Package Details: mozc-ut 2.30.5432.102.20240407-1

Git Clone URL: https://aur.archlinux.org/mozc-ut.git (read-only, click to copy)
Package Base: mozc-ut
Description: The Open Source edition of Google Japanese Input bundled with the UT dictionary
Upstream URL: https://github.com/google/mozc
Licenses: Apache-2.0 AND BSD-2-Clause AND BSD-3-Clause AND CC0-1.0 AND CC-BY-SA-3.0 AND CC-BY-SA-4.0 AND GPL-2.0-only AND GPL-2.0-or-later AND MIT AND NAIST-2003 AND Unicode-3.0 AND LicenseRef-Okinawa-Dictionary
Conflicts: mozc
Provides: mozc
Submitter: naoina
Maintainer: Nocifer
Last Packager: Nocifer
Votes: 24
Popularity: 0.71
First Submitted: 2020-11-04 02:00 (UTC)
Last Updated: 2024-04-07 11:49 (UTC)

Dependencies (10)

Required by (5)

Sources (11)

Pinned Comments

Nocifer commented on 2022-05-29 21:54 (UTC) (edited on 2023-08-22 09:33 (UTC) by Nocifer)

If you're getting compilation errors, please delete your Bazel cache (~/.cache/bazel by default).

Latest Comments

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

cnut1648 commented on 2023-04-22 23:55 (UTC)

@Nocifer thanks! This was the issue! Have been using manjaro for 2 years and still learn something today lol

Nocifer commented on 2023-04-22 10:13 (UTC)

@cnut1648 Reading your error more carefully, Bazel is actually complaining about a missing pkg-config binary. This probably means that you haven't installed the base-devel meta-package, which is an implicit prerequisite for installing AUR packages. Install that and you should be good to go.

cnut1648 commented on 2023-04-19 15:59 (UTC)

@Nocifer I am using Manjaro. By running pacman -Q | rg qt I have

appstream-qt 0.16.1-2
bluez-qt 5.104.0-1
fcitx5-qt 5.0.17-1
layer-shell-qt 5.27.4-1
libaccounts-qt 1.16-3
libdbusmenu-qt5 0.9.3+16.04.20160218-6
liblastfm-qt5 1.1.0-1
libmygpo-qt5 1.1.0-3
modemmanager-qt 5.104.0-1
networkmanager-qt 5.104.0-1
packagekit-qt5 1.1.1-1
phonon-qt5 4.11.1-3
phonon-qt5-gstreamer 4.10.0-4
polkit-qt5 0.114.0-1
poppler-qt5 23.03.0-1
pulseaudio-qt 1.3-1
python-pyqt5 5.15.9-1
python-pyqt5-sip 12.11.1-1
python-pyqt6 6.4.2-1
python-pyqt6-sip 13.4.1-1
python-pyqt6-webengine 6.4.0-1
python-qscintilla-qt5 2.13.4-1
qca-qt5 2.3.5-2
qscintilla-qt5 2.13.4-1
qt5-3d 5.15.8-1
qt5-base 5.15.8+kde+r185-1
qt5-declarative 5.15.8+kde+r24-2
qt5-graphicaleffects 5.15.8-1
qt5-imageformats 5.15.8+kde+r9-1
qt5-location 5.15.8+kde+r4-2
qt5-multimedia 5.15.8+kde+r2-1
qt5-quickcontrols 5.15.8-1
qt5-quickcontrols2 5.15.8+kde+r7-1
qt5-sensors 5.15.8-1
qt5-speech 5.15.8+kde+r1-1
qt5-svg 5.15.8+kde+r8-1
qt5-tools 5.15.8+kde+r1-3
qt5-translations 5.15.8-1
qt5-virtualkeyboard 5.15.8-1
qt5-wayland 5.15.8+kde+r63-1
qt5-webchannel 5.15.8+kde+r3-1
qt5-webengine 5.15.13-1
qt5-websockets 5.15.8+kde+r3-1
qt5-x11extras 5.15.8-1
qt6-base 6.4.3-1
qt6-declarative 6.4.3-1
qt6-imageformats 6.4.3-1
qt6-positioning 6.4.3-1
qt6-svg 6.4.3-1
qt6-translations 6.4.3-1
qt6-webchannel 6.4.3-1
qt6-webengine 6.4.3-1
qtkeychain-qt5 0.13.2-1

So I believe I have qt5-base and other dependencies installed already.

Nocifer commented on 2023-04-19 11:02 (UTC)

@cnut1648 It seems like Bazel can't find your Qt5 libraries, but it builds fine on my end. Are you using Arch, or one of its derivatives like Manjaro, Artix, etc?

cnut1648 commented on 2023-04-17 15:00 (UTC)

Today (Apr 17 2023) I had this bazel error

==> Sources are ready.
==> Making package: mozc-ut 2.28.5029.102.20230305-1 (Mon 17 Apr 2023 10:59:04 AM EDT)
==> Checking runtime dependencies...
==> Checking buildtime dependencies...
==> WARNING: Using existing $srcdir/ tree
==> Removing existing $pkgdir/ directory...
==> Starting build()...
Starting local Bazel server and connecting to it...
INFO: Repository qt_linux instantiated at:
  /home/jxu/.cache/yay/mozc-ut/src/mozc-ut-git/src/WORKSPACE.bazel:81:22: in <toplevel>
Repository rule pkg_config_repository defined at:
  /home/jxu/.cache/yay/mozc-ut/src/mozc-ut-git/src/pkg_config_repository.bzl:118:40: in <toplevel>
ERROR: An error occurred during the fetch of repository 'qt_linux':
   Traceback (most recent call last):
    File "/home/jxu/.cache/yay/mozc-ut/src/mozc-ut-git/src/pkg_config_repository.bzl", line 98, column 32, in _pkg_config_repository_impl
        includes = _exec_pkg_config(repo_ctx, "--cflags-only-I")
    File "/home/jxu/.cache/yay/mozc-ut/src/mozc-ut-git/src/pkg_config_repository.bzl", line 83, column 30, in _exec_pkg_config
        result = repo_ctx.execute([binary, flag] + repo_ctx.attr.packages)
Error in execute: Argument 0 of execute is neither a path, label, nor string.
ERROR: /home/jxu/.cache/yay/mozc-ut/src/mozc-ut-git/src/WORKSPACE.bazel:81:22: fetching pkg_config_repository rule //external:qt_linux: Traceback (most recent call last):
    File "/home/jxu/.cache/yay/mozc-ut/src/mozc-ut-git/src/pkg_config_repository.bzl", line 98, column 32, in _pkg_config_repository_impl
        includes = _exec_pkg_config(repo_ctx, "--cflags-only-I")
    File "/home/jxu/.cache/yay/mozc-ut/src/mozc-ut-git/src/pkg_config_repository.bzl", line 83, column 30, in _exec_pkg_config
        result = repo_ctx.execute([binary, flag] + repo_ctx.attr.packages)
Error in execute: Argument 0 of execute is neither a path, label, nor string.
ERROR: /home/jxu/.cache/yay/mozc-ut/src/mozc-ut-git/src/gui/tool/BUILD.bazel:96:18: //gui/tool:mozc_tool depends on @qt_linux//:qt_linux in repository @qt_linux which failed to fetch. no such package '@qt_linux//': Argument 0 of execute is neither a path, label, nor string.
ERROR: Analysis of target '//gui/tool:mozc_tool' failed; build aborted: Analysis failed

Seems like a bazel error? My bazel version is 6.1.1 and gcc version 12.2.1. Anyone has a pointer on how to solve it?

Nocifer commented on 2023-01-27 14:57 (UTC)

@Phantasm Indeed, and it even says so on the tin (#!/bin/bash). Thanks for reporting it.

Phantasm commented on 2023-01-27 11:33 (UTC) (edited on 2023-01-27 11:35 (UTC) by Phantasm)

Package fails to build in prepare() when /bin/sh is not bash.

sh ./make.sh needs to be changed to bash make.sh

==> Starting prepare()...
Cloning into '/tmp/mozc-test/src/mozc-ut-git/src/third_party/protobuf'...
Submodule path 'third_party/abseil-cpp': checked out '215105818dfde3174fe799600bb0f3cae233d0bf'
Submodule path 'third_party/breakpad': checked out '216cea7bca53fa441a3ee0d0f5fd339a3a894224'
Submodule path 'third_party/gtest': checked out '58d77fa8070e8cec2dc1ed015d66b454c8d78850'
Submodule path 'third_party/gyp': checked out '9ecf45e37677743503342ee4c6a76eaee80e4a7f'
Submodule path 'third_party/japanese_usage_dictionary': checked out 'e5b3425575734c323e1d947009dd74709437b684'
Submodule path 'third_party/jsoncpp': checked out '11086dd6a7eba04289944367ca82cea71299ed70'
Submodule path 'third_party/protobuf': checked out 'cc7b1b53234cd7a8f50d90ac3933b240dcf4cd97'
Submodule 'third_party/benchmark' (https://github.com/google/benchmark.git) registered for path 'third_party/protobuf/third_party/benchmark'
Submodule 'third_party/googletest' (https://github.com/google/googletest.git) registered for path 'third_party/protobuf/third_party/googletest'
Cloning into '/tmp/mozc-test/src/mozc-ut-git/src/third_party/protobuf/third_party/benchmark'...
Cloning into '/tmp/mozc-test/src/mozc-ut-git/src/third_party/protobuf/third_party/googletest'...
Submodule path 'third_party/protobuf/third_party/benchmark': checked out '5b7683f49e1e9223cf9927b24f6fd3d6bd82e3f8'
Submodule path 'third_party/protobuf/third_party/googletest': checked out '5ec7f0c4a113e2f18ac2c6cc7df51ad6afc24081'
./make.sh: 17: [[: not found
./make.sh: 21: [[: not found
./make.sh: 25: [[: not found
./make.sh: 29: [[: not found
./make.sh: 33: [[: not found
./make.sh: 37: [[: not found
./make.sh: 41: [[: not found
./make.sh: 45: [[: not found
remove_duplicate_ut_entries.rb:24:in `initialize': No such file or directory @ rb_sysopen - mozcdic-ut.txt (Errno::ENOENT)
        from remove_duplicate_ut_entries.rb:24:in `new'
        from remove_duplicate_ut_entries.rb:24:in `<main>'
--2023-01-27 12:26:33--  https://dumps.wikimedia.org/jawiki/latest/jawiki-latest-all-titles-in-ns0.gz
Loaded CA certificate '/etc/ssl/certs/ca-certificates.crt'
Resolving dumps.wikimedia.org (dumps.wikimedia.org)... 208.80.154.142, 2620:0:861:2:208:80:154:142
Connecting to dumps.wikimedia.org (dumps.wikimedia.org)|208.80.154.142|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 13987893 (13M) [application/octet-stream]
Saving to: 'jawiki-latest-all-titles-in-ns0.gz'

jawiki-latest-all-titles-in-ns0.gz                                     100%[=========================================================================================================================================================================>]  13.34M  1.17MB/s    in 9.8s    

2023-01-27 12:26:43 (1.36 MB/s) - 'jawiki-latest-all-titles-in-ns0.gz' saved [13987893/13987893]

count_word_hits.rb:16:in `split': invalid byte sequence in US-ASCII (ArgumentError)
        from count_word_hits.rb:16:in `<main>'
apply_word_hits.rb:21:in `initialize': No such file or directory @ rb_sysopen - jawiki-latest-all-titles-in-ns0.hits (Errno::ENOENT)
        from apply_word_hits.rb:21:in `new'
        from apply_word_hits.rb:21:in `<main>'
cat: /tmp/mozc-test/src/merge-ut-dictionaries/src/mozcdic-ut.txt: No such file or directory
==> ERROR: A failure occurred in prepare().
    Aborting...

soya_daizu commented on 2023-01-20 15:03 (UTC) (edited on 2023-01-21 08:47 (UTC) by soya_daizu)

The UT dictionary project has moved over to a new repository and this package probably needs to be updated.

The dictionary now consists of a several split pieces depending on its source. The word costs has to be calculated and the packages need to be merged into one on the user's side using this script: https://github.com/utuhiro78/merge-ut-dictionaries

There also seems to be an official PKGBUILD provided in the repository.

Sharparam commented on 2022-12-20 19:11 (UTC)

No longer builds with Bazel 6.0.0 (which seems to have arrived to Arch today). Downgrading Bazel to 5.3.2-1 makes it build again.

The output when trying to makepkg -c with Bazel 6.0.0 installed is:

==> Making package: mozc-ut 2.28.4950.102.20221022-1 (2022-12-20T20:02:04 CET)
==> Checking runtime dependencies...
==> Checking buildtime dependencies...
==> Retrieving sources...
  -> Updating mozc-ut-git git repo...
  -> Found mozcdic-ut-20221022.tar.bz2
==> Validating source files with sha256sums...
    mozc-ut-git ... Skipped
    mozcdic-ut-20221022.tar.bz2 ... Passed
==> Extracting sources...
  -> Creating working copy of mozc-ut-git git repo...
Reset branch 'makepkg'
  -> Extracting mozcdic-ut-20221022.tar.bz2 with bsdtar
==> Starting prepare()...
==> Removing existing $pkgdir/ directory...
==> Starting build()...
ERROR: /home/sharparam/.cache/bazel/_bazel_sharparam/21bca58cd528f6af63583eb61d975ee6/external/bazel_tools/platforms/BUILD:59:6: in alias rule @bazel_tools//platforms:osx: Constraints from @bazel_tools//platforms have been removed. Please use constraints from @platforms repository embedded in Bazel, or preferably declare dependency on https://github.com/bazelbuild/platforms. See https://github.com/bazelbuild/bazel/issues/8622 for details.
ERROR: /home/sharparam/.cache/bazel/_bazel_sharparam/21bca58cd528f6af63583eb61d975ee6/external/bazel_tools/platforms/BUILD:59:6: Analysis of target '@bazel_tools//platforms:osx' failed
ERROR: /home/sharparam/repos/aur.archlinux.org/mozc-ut/src/mozc-ut-git/src/gui/tool/BUILD.bazel:96:18: errors encountered resolving select() keys for //gui/tool:mozc_tool
ERROR: Analysis of target '//gui/tool:mozc_tool' failed; build aborted: 
INFO: Elapsed time: 0.049s
INFO: 0 processes.
FAILED: Build did NOT complete successfully (0 packages loaded, 0 targets configured)
==> ERROR: A failure occurred in build().
    Aborting...

Possibly relevant issue?: https://github.com/bazelbuild/bazel/issues/8622

Nocifer commented on 2022-09-04 15:35 (UTC) (edited on 2022-09-04 15:53 (UTC) by Nocifer)

@Misaka13514 Alright, I found the problem: howdy's PKGBUILD author has opted to place the howdy binary in /lib/security/howdy/ and set the permissions for that folder to 600 (yes, 600, not even 700), and then symlink /usr/bin/howdy to that.

As a result, when Bazel tries to scan /usr/bin it tries to follow the symlink and fails to access /lib/security/howdy due to the extremely strict permissions. In fact, on my system, even trying to run howdy from the command line results in a permission denied error as well.

This is IMHO a glaring packaging issue, and the only reason no one has flagged it as such so far is because AFAIU howdy's post-install configuration includes enabling it to be used through PAM, so the problematic folder is actually accessed with elevated privileges.

But Bazel (for example; any other app or build tool that relies on scanning /usr/bin will experience the same issue) will break with such strict permissions, so it should definitely be fixed. I'll report this to howdy's AUR page.