microsoft / vcpkg

C++ Library Manager for Windows, Linux, and MacOS
MIT License
22.73k stars 6.29k forks source link

[libiconv] Omits the deployment of GNU iconv on OpenBSD #39837

Open ChihHao-Su opened 1 month ago

ChihHao-Su commented 1 month ago

Describe the bug Vcpkg's libiconv port omits the deployment of GNU iconv on OpenBSD, causes some packages depend on that fail to build.

This issus is divided from https://github.com/microsoft/vcpkg/issues/39748, which is infact the obfuscation of two problems.

May be fixed by https://github.com/microsoft/vcpkg/pull/39824.

Environment

Expected behavior Libiconv should not omit its configuration on OpenBSD.

dg0yt commented 1 month ago

OpenBSD has BSD's implementation of iconv, but glib and friends - via gnu gettext - rely on GNU's implementation of iconv.

Where can this be verified w.r.t. BSD?

FTR vcpkg should also correctly handle musl libc Linux systems which don't have gettext/libintl in the C lib.

I do know that gettext comes with detection logic built into m4 files for autotools, and I assume that's why we don't have pkg-config files. CMake has Find modules, but they need wrappers in vcpkg. Meson ... still not encouraging.