conan-io / conan-center-index

Recipes for the ConanCenter repository
https://conan.io/center
MIT License
966 stars 1.77k forks source link

[package] boost/1.75.0: Boost.Locale is not built with i18n_backend=icu #4073

Closed theodelrieu closed 1 week ago

theodelrieu commented 3 years ago

Hello,

It seems this commit (552189c144dea0ef9287c208a2cc5cf03a568e62) broke Boost.Locale build. It was working well two weeks ago.

Package and Environment Details (include every applicable attribute)

Steps to reproduce (Include if Applicable)

conan install boost/1.75.0@ --build missing -o boost:i18n_backend=icu -o boost:without_locale=False

Logs (Include/Attach if Applicable)

Click to expand log b2 output ``` - has statx syscall : no - has_icu builds : no - zlib : yes - bzip2 : yes - icu : no - icu (lib64) : no - Boost.Locale needs either iconv or ICU library to be built. - Boost.Locale needs either iconv or ICU library to be built. ``` conan output ``` boost/1.75.0: WARN: Boost component 'locale' is missing libraries. Try building boost with '-o boost:without_locale'. ERROR: boost/1.75.0: Error in package_info() method, line 1331 raise ConanException("These libraries were expected to be built, but were not built: {}".format(non_built)) ConanException: These libraries were expected to be built, but were not built: {'boost_locale'} ```
theodelrieu commented 3 years ago

I've dug a bit and I've another build issue on Windows, Boost.Locale ICU detection is broken for several reasons:

There's several solutions:

I'd like to hear your input on this, thanks.

Cogitri commented 2 years ago

Unfortunately I've hit this too, even with boost:i18n_backend_icu=True set boost::locale:::localization_backend_manager::global().get_all_backends() returns an empty vector.

Cogitri commented 2 years ago

Actually, it appears that the ICU backend works when building with boost:shared=True and ich:shared=True

uilianries commented 1 week ago

Closing this issue due its age and the reported error seems be gone:

Full build logs checking the current issue are available here: https://gist.github.com/uilianries/17bc2863edbcb00f999da1ffb7b8318c

Please, feel free to re-open it in case this error still persists.