-
-
Notifications
You must be signed in to change notification settings - Fork 12.5k
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
libxml2: fix build when pkg-config
is present
#197591
Merged
Merged
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ZhongRuoyu
added
the
CI-skip-recursive-dependents
Pass --skip-recursive-dependents to brew test-bot.
label
Nov 13, 2024
github-actions
bot
added
icu4c
ICU use is a significant feature of the PR or issue
CI-linux-self-hosted-deps
Test dependents on Linux self-hosted runner
labels
Nov 13, 2024
ZhongRuoyu
force-pushed
the
libxml2-icu-fix
branch
2 times, most recently
from
November 13, 2024 19:13
2de9503
to
ae30d77
Compare
ZhongRuoyu
force-pushed
the
libxml2-icu-fix
branch
from
November 15, 2024 16:11
ae30d77
to
a032877
Compare
ZhongRuoyu
added
CI-no-fail-fast-deps
Continue dependent tests despite failing GitHub Actions matrix tests.
long dependent tests
Set a long timeout for dependent testing
labels
Nov 16, 2024
ZhongRuoyu
force-pushed
the
libxml2-icu-fix
branch
from
November 17, 2024 00:35
a032877
to
6bd2d03
Compare
When `pkg-config` is present during build, checks for ICU libraries do not work correctly, causing the build to fail. See [1], [2] for more details. Let's apply the patch that fixes this issue. Also, use `pkg-config` for stable builds too. When `pkg-config` is missing, build falls back to using `icu-config` for ICU checks, but that is deprecated upstream [3]. In addition, avoid hard-coding cellar paths that could invalidate dependents' pkg-config files after version bumps. [1]: https://github.com/orgs/Homebrew/discussions/5699#discussioncomment-11243333 [2]: https://gitlab.gnome.org/GNOME/libxml2/-/merge_requests/289 [3]: https://unicode-org.github.io/icu/userguide/icu/howtouseicu.html#notes-on-icu-config
ZhongRuoyu
force-pushed
the
libxml2-icu-fix
branch
from
November 17, 2024 01:00
6bd2d03
to
b48037d
Compare
ZhongRuoyu
added
ready to merge
PR can be merged once CI is green
and removed
ready to merge
PR can be merged once CI is green
labels
Nov 17, 2024
carlocab
approved these changes
Nov 19, 2024
🤖 An automated task has requested bottles to be published to this PR. |
github-actions
bot
added
the
CI-published-bottle-commits
The commits for the built bottles have been pushed to the PR branch.
label
Nov 19, 2024
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
CI-linux-self-hosted-deps
Test dependents on Linux self-hosted runner
CI-no-fail-fast-deps
Continue dependent tests despite failing GitHub Actions matrix tests.
CI-published-bottle-commits
The commits for the built bottles have been pushed to the PR branch.
CI-skip-recursive-dependents
Pass --skip-recursive-dependents to brew test-bot.
icu4c
ICU use is a significant feature of the PR or issue
long dependent tests
Set a long timeout for dependent testing
ready to merge
PR can be merged once CI is green
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
HOMEBREW_NO_INSTALL_FROM_API=1 brew install --build-from-source <formula>
, where<formula>
is the name of the formula you're submitting?brew test <formula>
, where<formula>
is the name of the formula you're submitting?brew audit --strict <formula>
(after doingHOMEBREW_NO_INSTALL_FROM_API=1 brew install --build-from-source <formula>
)? If this is a new formula, does it passbrew audit --new <formula>
?When
pkg-config
is present during build, checks for ICU libraries do not work correctly, causing the build to fail. See 1, 2 for more details. Let's apply the patch that fixes this issue.Also, use
pkg-config
for stable builds too. Whenpkg-config
is missing, build falls back to usingicu-config
for ICU checks, but that is deprecated upstream 3.In addition, avoid hard-coding cellar paths that could invalidate dependents' pkg-config files after version bumps.
Footnotes
https://github.com/orgs/Homebrew/discussions/5699#discussioncomment-11243333 ↩
https://gitlab.gnome.org/GNOME/libxml2/-/merge_requests/289 ↩
https://unicode-org.github.io/icu/userguide/icu/howtouseicu.html#notes-on-icu-config ↩