[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#879801: ftbfs with icu from experimental



> Could you address this problem in the meantime @TL upstream? AFAICT there

I did it already on the internal list, without much activity but the
depressing outlook on c++11 imminent requirement :-(

I am not checking it myself, shouldn't be too complicated.

Is there a guide *how* icu-config calls need to be translated to
pkg-config calls?

The m4 code is quite straight-forward:
if $ICU_CONFIG --version >/dev/null 2>&1; then
  ICU_INCLUDES=`$ICU_CONFIG --cppflags`
  ICU_LIBS=`$ICU_CONFIG --ldflags-searchpath m4_ifset([kpse_icu_config_args],
                                                      [kpse_icu_config_args ])--ldflags-libsonly --ldflags-system`
elif test "x$need_icu:$with_system_icu" = xyes:yes; then
  AC_MSG_ERROR([did not find icu-config required for system icu libraries])
fi

So we need to change that to:
if $ICU_CONFIG --version >/dev/null 2>&1; then
  ICU_INCLUDES=`$ICU_CONFIG --cppflags`
  ICU_LIBS=`$ICU_CONFIG --ldflags-searchpath m4_ifset([kpse_icu_config_args],
                                                      [kpse_icu_config_args ])--ldflags-libsonly --ldflags-system`
elif $PKG_CONFIG icu-i18n >/dev/null 2>&1; then
  ICU_INCLUDES=`$PKG_CONFIG icu-i18n --cppflags`
  ....
  .. do we only need icu-i18n? other ones? currently -uc, -io are also present
  ...
elif test "x$need_icu:$with_system_icu" = xyes:yes; then
  AC_MSG_ERROR([did not find icu-config required for system icu libraries])
fi

Norbert

--
PREINING Norbert                               http://www.preining.info
Accelia Inc.     +    JAIST     +    TeX Live     +    Debian Developer
GPG: 0x860CDC13   fp: F7D8 A928 26E3 16A1 9FA0 ACF0 6CAC A448 860C DC13


Reply to: