任务单 #45160

Meson: Rework icu dependency handling

开放日期: 2022-07-19 22:32 最后更新: 2022-08-06 19:19

报告人:
属主:
类型:
状态:
关闭
组件:
里程碑:
优先:
5 - Medium
严重性:
5 - Medium
处理结果:
Fixed
文件:
1

Details

Currently meson build just does find_library('icu') when building libfreeciv. For comparison, autotools does pkg-config on icu-uc at configure time.

That current meson implementation has several shortcomings:
- It's awfully late to detect missing dependencies halfway through the *build* phase + resulting in obscure error messages (took me a while to figure out why the specific symbol was not available on that specific architecture, as the error told)
- It only does the library detection part. Include paths are not touched at all.
- It can break when icu needs special compile/link flags (like linking in its own dependencies). pkg-config would (at least in theory - if the icu packaging for the platform is done right) feed in all the correct flags

This is causing one of the build failures on homebrew/macOS meson builds on #45156

任务单历史 (3/4 Histories)

2022-07-19 22:32 Updated by: cazfi
  • New Ticket "Meson: Rework icu dependency handling" created
2022-07-29 07:35 Updated by: cazfi
  • 属主 Update from (无) to cazfi
  • 处理结果 Update from to Accepted
2022-08-06 19:19 Updated by: cazfi
  • 状态 Update from 开启 to 关闭
  • 处理结果 Update from Accepted to Fixed

编辑

Please login to add comment to this ticket » 登录名