Wednesday, October 19, 2011

Fix the dependency error for mozc under ubuntu 11.10

When build mozc revision 74 Debian package under ubuntu 11.10, got the dependency error for libibus-dev.

dpkg-checkbuilddeps: Unmet build dependencies: libibus-dev
dpkg-buildpackage: warning: Build dependencies/conflicts unsatisfied; aborting.
dpkg-buildpackage: warning: (Use -d flag to override.)
debuild: fatal error at line 1348:
dpkg-buildpackage -rfakeroot -D -us -uc -b failed

This is because there is no libibus-dev package now in ubuntu 11.10. Instead you need to install libibus-1.0-dev (sudo apt-get install libibus-1.0-dev) and change a little in following file.
Index: debian/control
===================================================================
--- debian/control (revision 74)
+++ debian/control (working copy)
@@ -2,7 +2,7 @@
Section: utils
Priority: extra
Maintainer: Yusuke Sato
-Build-Depends: debhelper (>= 4.0.0), libibus-dev, libcurl4-openssl-dev, pkg-config, libprotobuf-dev, protobuf-compiler, libgtest-dev, libqt4-dev, scim, libscim-dev, gyp, libzinnia-dev
+Build-Depends: debhelper (>= 4.0.0), libibus-1.0-dev, libcurl4-openssl-dev, pkg-config, libprotobuf-dev, protobuf-compiler, libgtest-dev, libqt4-dev, scim, libscim-dev, gyp, libzinnia-dev
Standards-Version: 3.6.2

Package: ibus-mozc

No comments: