Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 582588

Summary: app-i18n/fcitx-4.2.9.1: src/module/spell/dict/CMakeFiles/spell-en-download.dir/build.make:57: recipe for target 'src/module/spell/dict/CMakeFiles/spell-en-download' failed
Product: Gentoo Linux Reporter: S. Gilles <sgilles>
Component: Current packagesAssignee: Arfrever Frehtes Taifersar Arahesis <arfrever.fta>
Status: RESOLVED OBSOLETE    
Severity: normal CC: cjk
Priority: Normal    
Version: unspecified   
Hardware: AMD64   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: build.log
output of `emerge --info`

Description S. Gilles 2016-05-09 16:32:13 UTC
app-i18n/fcitx fails to install, and the build log indicates spell-en-download is the failing target.

Reproducible: Always

Steps to Reproduce:
# MAKEOPTS="-j1" USE="-autostart -introspection -xml -enchant" emerge -pvq fcitx
[ebuild  N    ] app-i18n/fcitx-4.2.9.1  USE="X cairo nls pango table -autostart -dbus -debug -enchant -gtk2 -gtk3 -introspection -lua -opencc -qt4 -static-libs {-test} -xml"
# MAKEOPTS="-j1" USE="-autostart -introspection -xml -enchant" emerge fcitx --ask n
Actual Results:  
Compile phase fails on target spell-en-download.

Expected Results:  
fcitx should install

Please see attached build.log and output of emerge --info.
Comment 1 S. Gilles 2016-05-09 16:32:52 UTC
Created attachment 433778 [details]
build.log
Comment 2 S. Gilles 2016-05-09 16:35:30 UTC
Created attachment 433780 [details]
output of `emerge --info`
Comment 3 Arfrever Frehtes Taifersar Arahesis 2018-06-13 06:48:30 UTC
Build system defines fcitx_download function (in cmake/FcitxMacro.cmake) which uses fcitx-cmake-helper.sh (cmake/fcitx-cmake-helper.sh).
This function downloads a file if it is absent, and optionally verifies MD5 checksum of a file.
Reading of MD5 checksum is performed by 'cmake -E md5sum ${file}' command.

This function is used for 5 files in this package (src/module/spell/dict/en_dict-20121020.tar.gz amongst them) (and e.g. 1 file in fcitx-libpinyin).

fcitx-*_dict.tar.xz tarballs already contain these files, so normally no additional downloading occurs. (These files are absent in git repository, so live ebuild places them in SRC_URI to ensure that no additional downloading occurs during src_compile() phase.)

According to build log from S. Gilles, downloading occurred with successful result (while it should not have occurred at all), but target in Makefile still failed.
The only possible explanation is that verification of MD5 checksum failed, which was due to a bug in /usr/bin/cmake or a library used by /usr/bin/cmake.