diff -Nru scim-chewing-0.3.4/debian/changelog scim-chewing-0.3.4/debian/changelog --- scim-chewing-0.3.4/debian/changelog 2012-09-11 20:30:08.000000000 +0000 +++ scim-chewing-0.3.4/debian/changelog 2013-10-08 16:29:52.000000000 +0000 @@ -1,3 +1,9 @@ +scim-chewing (0.3.4-4ubuntu3) saucy; urgency=low + + * Fix checking of higher version of libchewing (LP: #1220224). + + -- Aron Xu Tue, 08 Oct 2013 21:50:24 +0800 + scim-chewing (0.3.4-4ubuntu2) quantal; urgency=low * Really fix the build dependency on scim-gtk-immodele. diff -Nru scim-chewing-0.3.4/debian/patches/30_autotools_changes.patch scim-chewing-0.3.4/debian/patches/30_autotools_changes.patch --- scim-chewing-0.3.4/debian/patches/30_autotools_changes.patch 2012-09-11 19:53:27.000000000 +0000 +++ scim-chewing-0.3.4/debian/patches/30_autotools_changes.patch 2013-10-08 16:29:52.000000000 +0000 @@ -1,6 +1,15 @@ Description: Ubuntu-specific changes on makefiles and configure.ac --- a/configure.ac +++ b/configure.ac +@@ -59,7 +59,7 @@ + + AC_SUBST(SCIM_VERSION) + +-PKG_CHECK_MODULES(CHEWING, [chewing = $CHEWING_VERSION]) ++PKG_CHECK_MODULES(CHEWING, [chewing >= $CHEWING_VERSION]) + AC_SUBST(CHEWING_VERSION) + + AM_CONDITIONAL(SCIM_BUILD_SETUP, [test "$SCIM_HAS_GTKUTILS" = "yes"]) @@ -81,6 +81,7 @@ # libtool option to control which symbols are exported # right now, symbols starting with _ are not exported @@ -29,3 +38,53 @@ po/Rules-quot \ po/Makevars \ po/quot.sed +--- a/configure ++++ b/configure +@@ -18879,11 +18879,11 @@ + elif test -n "$PKG_CONFIG"; then + if test -n "$PKG_CONFIG" && \ + { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"chewing = \$CHEWING_VERSION\""; } >&5 +- ($PKG_CONFIG --exists --print-errors "chewing = $CHEWING_VERSION") 2>&5 ++ ($PKG_CONFIG --exists --print-errors "chewing >= $CHEWING_VERSION") 2>&5 + ac_status=$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; }; then +- pkg_cv_CHEWING_CFLAGS=`$PKG_CONFIG --cflags "chewing = $CHEWING_VERSION" 2>/dev/null` ++ pkg_cv_CHEWING_CFLAGS=`$PKG_CONFIG --cflags "chewing >= $CHEWING_VERSION" 2>/dev/null` + else + pkg_failed=yes + fi +@@ -18894,12 +18894,12 @@ + pkg_cv_CHEWING_LIBS="$CHEWING_LIBS" + elif test -n "$PKG_CONFIG"; then + if test -n "$PKG_CONFIG" && \ +- { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"chewing = \$CHEWING_VERSION\""; } >&5 +- ($PKG_CONFIG --exists --print-errors "chewing = $CHEWING_VERSION") 2>&5 ++ { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"chewing >= \$CHEWING_VERSION\""; } >&5 ++ ($PKG_CONFIG --exists --print-errors "chewing >= $CHEWING_VERSION") 2>&5 + ac_status=$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; }; then +- pkg_cv_CHEWING_LIBS=`$PKG_CONFIG --libs "chewing = $CHEWING_VERSION" 2>/dev/null` ++ pkg_cv_CHEWING_LIBS=`$PKG_CONFIG --libs "chewing >= $CHEWING_VERSION" 2>/dev/null` + else + pkg_failed=yes + fi +@@ -18919,14 +18919,14 @@ + _pkg_short_errors_supported=no + fi + if test $_pkg_short_errors_supported = yes; then +- CHEWING_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "chewing = $CHEWING_VERSION" 2>&1` ++ CHEWING_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "chewing >= $CHEWING_VERSION" 2>&1` + else +- CHEWING_PKG_ERRORS=`$PKG_CONFIG --print-errors "chewing = $CHEWING_VERSION" 2>&1` ++ CHEWING_PKG_ERRORS=`$PKG_CONFIG --print-errors "chewing >= $CHEWING_VERSION" 2>&1` + fi + # Put the nasty error message in config.log where it belongs + echo "$CHEWING_PKG_ERRORS" >&5 + +- as_fn_error $? "Package requirements (chewing = $CHEWING_VERSION) were not met: ++ as_fn_error $? "Package requirements (chewing >= $CHEWING_VERSION) were not met: + + $CHEWING_PKG_ERRORS +