Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 420217 - app-i18n/fcitx-4.2.4 missing dependency: app-text/enchant
Summary: app-i18n/fcitx-4.2.4 missing dependency: app-text/enchant
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Mu Qiao (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-06-08 09:21 UTC by Light
Modified: 2012-06-10 09:17 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
build log (build.log,5.10 KB, text/plain)
2012-06-08 09:21 UTC, Light
Details
output of emerge -pqv (useflags.txt,138 bytes, text/plain)
2012-06-08 09:22 UTC, Light
Details
emerge --info (info.txt,5.07 KB, text/plain)
2012-06-08 09:22 UTC, Light
Details
build environment (environment,96.00 KB, text/plain)
2012-06-08 09:23 UTC, Light
Details
fcitx-4.2.4-r1.ebuild (fcitx-4.2.4-r1.ebuild,46.54 KB, text/plain)
2012-06-10 00:36 UTC, Havee
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Light 2012-06-08 09:21:42 UTC
Created attachment 314661 [details]
build log

fcitx 4.2.4 is missing one dependecy: enchant. Without it, cmake fails at :
Could NOT find Enchant (missing: ENCHANT_LIBRARIES ENCHANT_INCLUDE_DIR)
Call Stack (most recent call first):
  /usr/share/cmake/Modules/FindPackageHandleStandardArgs.cmake:288 (_FPHSA_FAILURE_MESSAGE)
  cmake/FindEnchant.cmake:31 (find_package_handle_standard_args)
  CMakeLists.txt:57 (find_package)

-- Configuring incomplete, errors occurred!

After mannually install enchant, fcitx builds and worls well.
Comment 1 Light 2012-06-08 09:22:19 UTC
Created attachment 314663 [details]
output of emerge -pqv
Comment 2 Light 2012-06-08 09:22:42 UTC
Created attachment 314665 [details]
emerge --info
Comment 3 Light 2012-06-08 09:23:14 UTC
Created attachment 314667 [details]
build environment
Comment 4 Havee 2012-06-10 00:29:35 UTC
app-text/iso-codes
app-text/enchant
dev-libs/icu

These are the new dependence
Comment 5 Havee 2012-06-10 00:34:44 UTC
and gir USE flag should be changed to introspection
Comment 6 Havee 2012-06-10 00:36:58 UTC
Created attachment 314831 [details]
fcitx-4.2.4-r1.ebuild

fcitx-4.2.4-r1.ebuild
Comment 7 Havee 2012-06-10 00:40:04 UTC
Comment on attachment 314831 [details]
fcitx-4.2.4-r1.ebuild

# Copyright 1999-2012 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $

EAPI=3

inherit cmake-utils

DESCRIPTION="Free Chinese Input Toy of X - Input Method Server for X window system"
HOMEPAGE="http://fcitx.googlecode.com"
SRC_URI="${HOMEPAGE}/files/${P}.tar.xz
	${HOMEPAGE}/files/pinyin.tar.gz
	table? ( ${HOMEPAGE}/files/table.tar.gz )"

LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE="+cairo debug +gtk +gtk3 introspection lua opencc +pango qt snooper static-libs table test"
RESTRICT="mirror"

RDEPEND="cairo? ( x11-libs/cairo[X]
		pango? ( x11-libs/pango[X] )
		!pango? ( media-libs/fontconfig ) )
	sys-apps/dbus
	gtk3? ( x11-libs/gtk+:3
		dev-libs/glib:2
		dev-libs/dbus-glib )
	gtk? ( x11-libs/gtk+:2
		dev-libs/glib:2
		dev-libs/dbus-glib )
	introspection? ( dev-libs/gobject-introspection )
	opencc? ( app-i18n/opencc )
	qt? ( x11-libs/qt-gui:4
		x11-libs/qt-dbus:4 )
	lua? ( dev-lang/lua )
	x11-libs/libX11"
DEPEND="${RDEPEND}
	app-arch/tar
	app-arch/xz-utils
	app-text/iso-codes
	app-text/enchant
	dev-libs/icu
	dev-util/intltool
	app-arch/xz-utils
	x11-libs/libxkbfile"

gtk_query_immodules_2() {
	local query_exec="${1}"
	local gtk_conf="${2}"
	local gtk_conf_dir=$(dirname "${gtk_conf}")

	einfo "Generating gtk+ immodules/gdk-pixbuf loaders listing:"
	einfo "-> ${gtk_conf}"

	mkdir -p "${gtk_conf_dir}"
	local tmp_file=$(mktemp -t tmp.XXXXXXXXXXgtk_query_immodules)
	if [ -z "${tmp_file}" ]; then
		ewarn "gtk_query_immodules: cannot create temporary file"
		return 1
	fi

	if "${query_exec}" > "${tmp_file}"; then
		cat "${tmp_file}" > "${gtk_conf}" || \
			ewarn "Failed to write to ${gtk_conf}"
	else
		ewarn "Cannot update gtk.immodules, file generation failed"
	fi
	rm "${tmp_file}"
	return 0
}

update_gtk_immodules() {
	local GTK2_CONFDIR="/etc/gtk-2.0"
	# bug #366889
	if has_version '>=x11-libs/gtk+-2.22.1-r1:2' || has_multilib_profile; then
		GTK2_CONFDIR="${GTK2_CONFDIR}/$(get_abi_CHOST)"
	fi
	mkdir -p "${EPREFIX}${GTK2_CONFDIR}"
	if [ -x "${EPREFIX}/usr/bin/gtk-query-immodules-2.0" ]; then
		gtk_query_immodules_2 \
			"${EPREFIX}/usr/bin/gtk-query-immodules-2.0" \
			"${EPREFIX}${GTK2_CONFDIR}/gtk.immodules"
	fi
}

update_gtk3_immodules() {
	if [ -x "${EPREFIX}/usr/bin/gtk-query-immodules-3.0" ]; then
		"${EPREFIX}/usr/bin/gtk-query-immodules-3.0" --update-cache
	fi
}

src_prepare() {
	cp ${DISTDIR}/pinyin.tar.gz ${S}/data || die
	if use table; then
		cp ${DISTDIR}/table.tar.gz ${S}/data/table || die
	fi
}

src_configure() {
	local mycmakeargs=(
			$(cmake-utils_use_enable cairo CAIRO ) \
			$(cmake-utils_use_enable debug DEBUG ) \
			$(cmake-utils_use_enable gtk GTK2_IM_MODULE ) \
			$(cmake-utils_use_enable gtk3 GTK3_IM_MODULE ) \
			$(cmake-utils_use_enable introspection GIR ) \
			$(cmake-utils_use_enable lua LUA ) \
			$(cmake-utils_use_enable opencc OPENCC ) \
			$(cmake-utils_use_enable pango PANGO ) \
			$(cmake-utils_use_enable qt QT_IM_MODULE ) \
			$(cmake-utils_use_enable static-libs STATIC ) \
			$(cmake-utils_use_enable snooper SNOOPER ) \
			$(cmake-utils_use_enable table TABLE ) \
			$(cmake-utils_use_enable test TEST )
	)
	cmake-utils_src_configure
}

pkg_postinst() {
	use gtk3 && update_gtk3_immodules
	use gtk && update_gtk_immodules
}

pkg_postrm() {
	use gtk3 && update_gtk3_immodules
	use gtk && update_gtk_immodules
}
Comment 8 Havee 2012-06-10 00:42:05 UTC
Comment on attachment 314831 [details]
fcitx-4.2.4-r1.ebuild

# Copyright 1999-2012 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $

EAPI=3

inherit cmake-utils

DESCRIPTION="Free Chinese Input Toy of X - Input Method Server for X window system"
HOMEPAGE="http://fcitx.googlecode.com"
SRC_URI="${HOMEPAGE}/files/${P}.tar.xz
	${HOMEPAGE}/files/pinyin.tar.gz
	table? ( ${HOMEPAGE}/files/table.tar.gz )"

LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE="+cairo debug +gtk +gtk3 introspection lua opencc +pango qt snooper static-libs table test"
RESTRICT="mirror"

RDEPEND="cairo? ( x11-libs/cairo[X]
		pango? ( x11-libs/pango[X] )
		!pango? ( media-libs/fontconfig ) )
	sys-apps/dbus
	gtk3? ( x11-libs/gtk+:3
		dev-libs/glib:2
		dev-libs/dbus-glib )
	gtk? ( x11-libs/gtk+:2
		dev-libs/glib:2
		dev-libs/dbus-glib )
	introspection? ( dev-libs/gobject-introspection )
	opencc? ( app-i18n/opencc )
	qt? ( x11-libs/qt-gui:4
		x11-libs/qt-dbus:4 )
	lua? ( dev-lang/lua )
	x11-libs/libX11"
DEPEND="${RDEPEND}
	app-arch/tar
	app-arch/xz-utils
	app-text/iso-codes
	app-text/enchant
	dev-libs/icu
	dev-util/intltool
	app-arch/xz-utils
	x11-libs/libxkbfile"

gtk_query_immodules_2() {
	local query_exec="${1}"
	local gtk_conf="${2}"
	local gtk_conf_dir=$(dirname "${gtk_conf}")

	einfo "Generating gtk+ immodules/gdk-pixbuf loaders listing:"
	einfo "-> ${gtk_conf}"

	mkdir -p "${gtk_conf_dir}"
	local tmp_file=$(mktemp -t tmp.XXXXXXXXXXgtk_query_immodules)
	if [ -z "${tmp_file}" ]; then
		ewarn "gtk_query_immodules: cannot create temporary file"
		return 1
	fi

	if "${query_exec}" > "${tmp_file}"; then
		cat "${tmp_file}" > "${gtk_conf}" || \
			ewarn "Failed to write to ${gtk_conf}"
	else
		ewarn "Cannot update gtk.immodules, file generation failed"
	fi
	rm "${tmp_file}"
	return 0
}

update_gtk_immodules() {
	local GTK2_CONFDIR="/etc/gtk-2.0"
	# bug #366889
	if has_version '>=x11-libs/gtk+-2.22.1-r1:2' || has_multilib_profile; then
		GTK2_CONFDIR="${GTK2_CONFDIR}/$(get_abi_CHOST)"
	fi
	mkdir -p "${EPREFIX}${GTK2_CONFDIR}"
	if [ -x "${EPREFIX}/usr/bin/gtk-query-immodules-2.0" ]; then
		gtk_query_immodules_2 \
			"${EPREFIX}/usr/bin/gtk-query-immodules-2.0" \
			"${EPREFIX}${GTK2_CONFDIR}/gtk.immodules"
	fi
}

update_gtk3_immodules() {
	if [ -x "${EPREFIX}/usr/bin/gtk-query-immodules-3.0" ]; then
		"${EPREFIX}/usr/bin/gtk-query-immodules-3.0" --update-cache
	fi
}

src_prepare() {
	cp ${DISTDIR}/pinyin.tar.gz ${S}/data || die
	if use table; then
		cp ${DISTDIR}/table.tar.gz ${S}/data/table || die
	fi
}

src_configure() {
	local mycmakeargs=(
			$(cmake-utils_use_enable cairo CAIRO ) \
			$(cmake-utils_use_enable debug DEBUG ) \
			$(cmake-utils_use_enable gtk GTK2_IM_MODULE ) \
			$(cmake-utils_use_enable gtk3 GTK3_IM_MODULE ) \
			$(cmake-utils_use_enable introspection GIR ) \
			$(cmake-utils_use_enable lua LUA ) \
			$(cmake-utils_use_enable opencc OPENCC ) \
			$(cmake-utils_use_enable pango PANGO ) \
			$(cmake-utils_use_enable qt QT_IM_MODULE ) \
			$(cmake-utils_use_enable static-libs STATIC ) \
			$(cmake-utils_use_enable snooper SNOOPER ) \
			$(cmake-utils_use_enable table TABLE ) \
			$(cmake-utils_use_enable test TEST )
	)
	cmake-utils_src_configure
}

pkg_postinst() {
	use gtk3 && update_gtk3_immodules
	use gtk && update_gtk_immodules
}

pkg_postrm() {
	use gtk3 && update_gtk3_immodules
	use gtk && update_gtk_immodules
}
Comment 9 Ben de Groot (RETIRED) gentoo-dev 2012-06-10 05:25:54 UTC
The global useflag qt4 should be used instead of the local qt.
Comment 10 Mu Qiao (RETIRED) gentoo-dev 2012-06-10 09:17:19 UTC
Additional dependencies are added now. The local use flag is changed to qt4. Thanks for reporting