Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix FreeBSD support #122

Merged
merged 5 commits into from
Oct 22, 2022
Merged

Fix FreeBSD support #122

merged 5 commits into from
Oct 22, 2022

Conversation

Flamefire
Copy link
Collaborator

Mostly a fix for a warning and a workaround for the CMake build at least.

FreeBSD has a builtin iconv and an external one in /usr/local.
When linking against ICU (in /usr/local) the (incompatible) headers
of the external libiconv are found failing with missing symbols such
as `libiconv_open`.
Account for that in the CMake build.

Signed-off-by: Alexander Grund <Flamefire@users.noreply.github.com>
Signed-off-by: Alexander Grund <Flamefire@users.noreply.github.com>
@codecov
Copy link

codecov bot commented Oct 21, 2022

Codecov Report

Merging #122 (5641825) into develop (7a9c4cf) will decrease coverage by 0.00%.
The diff coverage is 100.00%.

Additional details and impacted files

Impacted file tree graph

@@             Coverage Diff             @@
##           develop     #122      +/-   ##
===========================================
- Coverage    88.46%   88.45%   -0.01%     
===========================================
  Files          100      100              
  Lines         8982     8977       -5     
===========================================
- Hits          7946     7941       -5     
  Misses        1036     1036              
Impacted Files Coverage Δ
include/boost/locale/boundary/index.hpp 98.76% <ø> (ø)
src/boost/locale/icu/date_time.cpp 83.72% <ø> (ø)
src/boost/locale/icu/formatter.cpp 82.88% <ø> (ø)
src/boost/locale/util/codecvt_converter.cpp 92.64% <ø> (ø)
src/boost/locale/encoding/iconv_codepage.ipp 90.90% <100.00%> (-0.14%) ⬇️
src/boost/locale/posix/codecvt.cpp 87.96% <100.00%> (-0.84%) ⬇️
src/boost/locale/util/iconv.hpp 100.00% <100.00%> (ø)

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 7a9c4cf...5641825. Read the comment docs.

The test tools would add duplicate definitions of POSIX functions/types
when the POSIX backend is disabled.
So check for that and always include the POSIX stuff where available.

Signed-off-by: Alexander Grund <Flamefire@users.noreply.github.com>
A variable was erronously unused. Refactor the implementation to simplify the code.

Signed-off-by: Alexander Grund <Flamefire@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant