diff --git a/srcpkgs/ibus/template b/srcpkgs/ibus/template index e4e922ee9f9..7a1ae6ec8de 100644 --- a/srcpkgs/ibus/template +++ b/srcpkgs/ibus/template @@ -1,7 +1,7 @@ # Template file for 'ibus' pkgname=ibus version=1.5.30 -revision=1 +revision=2 build_style=gnu-configure build_helper="gir" configure_args="--enable-ui --enable-gtk3 --enable-gtk4 @@ -35,7 +35,20 @@ post_configure() { } pre_build() { - export GIR_EXTRA_LIBS_PATH="${wrksrc}/src/.libs" + [ -n "${CROSS_BUILD}" ] || return 0 + + # TODO: fix this hack! + # + # GIR_EXTRA_LIBS_PATH in g-ir-scanner-qemuwrapper is not being honored, + # and the linker cannot find libibus-1.0.so.5 when scanning. Linking + # the missing library alongside the scanner targets is sufficient. + local s d + + s="${wrksrc}/src/.libs/libibus-1.0.so.5" + for d in tools bindings/vala client/wayland; do + mkdir -p "${d}/.libs" + ln -Tsf "${s}" "${d}/.libs/libibus-1.0.so.5" + done } post_install() {