Skip to content

Make the ICU SONAME configurable - #495

Merged
Leonard Hecker (lhecker) merged 5 commits into
mainfrom
dev/lhecker/linux-icu-soname
Jun 19, 2025
Merged

Leonard Hecker (lhecker) merged 5 commits into
mainfrom
dev/lhecker/linux-icu-soname

Conversation

@lhecker

@lhecker Leonard Hecker (lhecker) commented Jun 18, 2025 •

Copy link
Copy Markdown
Member

This PR was tested on Ubuntu with:

EDIT_CFG_ICUUC_SONAME=libicuuc.so.74
EDIT_CFG_ICUI18N_SONAME=libicui18n.so.74
EDIT_CFG_ICU_RENAMING_VERSION=74
cargo build --config .cargo/release.toml --release

Search & Replace now works flawlessly. I hope that package maintainers
will be able to make use of this when ingesting future versions of Edit.

Closes #172

@lhecker
Leonard Hecker (lhecker) force-pushed the dev/lhecker/linux-icu-soname branch from a36f3d6 to e6aad7c Compare June 18, 2025 14:35
Comment thread README.md
This project _optionally_ depends on the ICU library for its Search and Replace functionality.
By default, the project will look for a SONAME without version suffix:
* Windows: `icuuc.dll`
* macOS: `libicuuc.dylib`

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think macOS only has libicucore, and not uc/i18n... hmm

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think it also exports all of them as C++ symbols, i.e. with underscore prefix.

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.

Linux: This operation requires the ICU library

2 participants