[gtk] Add a dependency on gettext[tools] to build translation files#24596
Merged
dan-shaw merged 1 commit intomicrosoft:masterfrom Jun 17, 2022
soylent-io:fix/gtk-translations
Merged
[gtk] Add a dependency on gettext[tools] to build translation files#24596dan-shaw merged 1 commit intomicrosoft:masterfrom soylent-io:fix/gtk-translations
dan-shaw merged 1 commit intomicrosoft:masterfrom
soylent-io:fix/gtk-translations
Conversation
Contributor
|
No portfile changes for explicit control? |
FrankXie05
suggested changes
May 9, 2022
Contributor
|
/azp run |
|
Azure Pipelines successfully started running 1 pipeline(s). |
Contributor
|
cc @Neumann-A |
Contributor
Author
|
/azp run |
|
Commenter does not have sufficient privileges for PR 24596 in repo microsoft/vcpkg |
FrankXie05
approved these changes
Jun 6, 2022
ras0219-msft
requested changes
Jun 6, 2022
ports/gtk/portfile.cmake
Outdated
Contributor
There was a problem hiding this comment.
Suggested change
| vcpkg_add_to_path("${CURRENT_HOST_INSTALLED_DIR}/tools/gettext/bin") |
We should instead add msgfmt to ADDITIONAL_NATIVE_BINARIES in vcpkg_configure_meson() below to ensure it's using our copy of gettext:
msgfmt='${CURRENT_HOST_INSTALLED_DIR}/tools/gettext/bin/msgfmt${VCPKG_HOST_EXECUTABLE_SUFFIX}'
Contributor
There was a problem hiding this comment.
ADDITIONAL_NATIVE_BINARIESinvcpkg_configure_meson()
... undocumented ...
Contributor
Author
There was a problem hiding this comment.
Actually PATH is altered by ports/gettext/vcpkg-port-config.cmake so I removed this patch hunk.
Additionally, when checking for gettext availability meson checks for xgettext binary, not msgfmt, so your suggestion does not seem to be valid.
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
GTK translation files are built only when gettext-tools is present
What does your PR fix?
N/A
Which triplets are supported/not supported? Have you updated the CI baseline?
all
Does your PR follow the maintainer guide?
Yes
If you have added/updated a port: Have you run
./vcpkg x-add-version --alland committed the result?Yes
If you are still working on the PR, open it as a Draft: https://github.blog/2019-02-14-introducing-draft-pull-requests/