Skip to content

[gettext] fix ios compile, add ios support to vcpkg_configure_make#26520

Closed
russelltg wants to merge 9 commits intomicrosoft:masterfrom
russelltg:gettext_ios
Closed

[gettext] fix ios compile, add ios support to vcpkg_configure_make#26520
russelltg wants to merge 9 commits intomicrosoft:masterfrom
russelltg:gettext_ios

Conversation

@russelltg
Copy link
Copy Markdown
Contributor

@russelltg russelltg commented Aug 25, 2022

  • Fix gettext port by specifying that gid_t is in sys/types.h
  • Make sure to gather CMAKE_OSX_SYSROOT in get_cmake_vars
  • Make sure to set --host when compiling for ios

I do have a few questions:

  • Does my implementation of z_vcpkg_determine_autotools_target_arch_ios make any sense? I honestly felt confused that z_vcpkg_determine_autotools_target_arch_mac defaults to VCPKG_DETECTED_CMAKE_HOST_SYSTEM_PROCESSOR instead of VCPKG_TARGET_ARCHITECTURE. arm64 is an acceptable target architecture on iOS, it seems, no need to translate to aarch64
  • Should I make the same changes to ports/vcpkg-cmake-get-vars/cmake_get_vars/CMakeLists.txt?

Copy link
Copy Markdown

@github-actions github-actions bot left a comment

Choose a reason for hiding this comment

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

This is a new experimental fast check for PR issues. Please let us know if this bot is helpful!

PRs must add only one version and must not modify any published versions

When making any changes to a library, the version or port-version in vcpkg.json or CONTROL must be modified.

error: checked-in files for gettext have changed but the version was not updated
version: 0.21#9
old SHA: 5bf45743516e2ae999eb14017370828e237ad533
new SHA: fd6cc135f2f5e172cb8c82ef8bcd51c57a3539aa
Did you remember to update the version or port version?
Use --overwrite-version to bypass this check
***No files were updated***

github-actions[bot]
github-actions bot previously approved these changes Aug 25, 2022
Copy link
Copy Markdown

@github-actions github-actions bot left a comment

Choose a reason for hiding this comment

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

You have modified or added at least one vcpkg.json where you should check the license field.

Details

If you feel able to do so, please consider adding a "license" field to the following files:

  • ports/gettext/vcpkg.json

Valid values for the license field can be found in the documentation

@russelltg
Copy link
Copy Markdown
Contributor Author

So it seems like the libraries are LGPL and binaries are GPL: https://www.gnu.org/software/gettext/manual/html_node/Licenses.html

How should that be reflected in the "license" field?

github-actions[bot]
github-actions bot previously approved these changes Aug 25, 2022
Copy link
Copy Markdown

@github-actions github-actions bot left a comment

Choose a reason for hiding this comment

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

You have modified or added at least one vcpkg.json where you should check the license field.

Details

If you feel able to do so, please consider adding a "license" field to the following files:

  • ports/gettext/vcpkg.json

Valid values for the license field can be found in the documentation

github-actions[bot]
github-actions bot previously approved these changes Aug 25, 2022
Copy link
Copy Markdown

@github-actions github-actions bot left a comment

Choose a reason for hiding this comment

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

You have modified or added at least one vcpkg.json where you should check the license field.

Details

If you feel able to do so, please consider adding a "license" field to the following files:

  • ports/gettext/vcpkg.json

Valid values for the license field can be found in the documentation

github-actions[bot]
github-actions bot previously approved these changes Aug 25, 2022
Copy link
Copy Markdown

@github-actions github-actions bot left a comment

Choose a reason for hiding this comment

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

You have modified or added at least one vcpkg.json where you should check the license field.

Details

If you feel able to do so, please consider adding a "license" field to the following files:

  • ports/gettext/vcpkg.json

Valid values for the license field can be found in the documentation

@dg0yt
Copy link
Copy Markdown
Contributor

dg0yt commented Aug 25, 2022

How should that be reflected in the "license" field?

Conditions can't be expressed, so you have to use null (without quotes) which means "Read the copyright file".
In some ports, I added conditional output to the copyright file, but gettext probably needs work.

@m-kuhn
Copy link
Copy Markdown
Contributor

m-kuhn commented Aug 26, 2022

See also #25670

@JackBoosY JackBoosY self-assigned this Aug 29, 2022
@JackBoosY JackBoosY added category:port-feature The issue is with a library, which is requesting new capabilities that didn’t exist category:tool-update The issue is with build tool or build script, which requires update or should be executed correctly category:community-triplet A PR or issue related to community triplets not officially validated by the vcpkg team. labels Aug 29, 2022
@m-kuhn
Copy link
Copy Markdown
Contributor

m-kuhn commented Aug 31, 2022

@russelltg in order to mutualize the efforts as much as possible and avoid duplicate work and merge conflicts, could you check if #25670 also solves your gettext issues, so we can abandon one or the other? On the script front, #25670 tries to harmonize things between meson and autoconf as well as between macos and ios (see triplets).

If there is something that still needs to be done for gettext, that can also be ported there.

If there is good reasons to stick to this work instead, I can also dismiss mine.

@russelltg
Copy link
Copy Markdown
Contributor Author

Your PR's do everything needed for gettext, I'm pretty sure. I'll close this one for now and will reopen a new PR with the gettext change when #25670 lands.

@russelltg russelltg closed this Aug 31, 2022
@m-kuhn
Copy link
Copy Markdown
Contributor

m-kuhn commented Aug 31, 2022

Thanks, happy to see more people helping on the iOS bits!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

category:community-triplet A PR or issue related to community triplets not officially validated by the vcpkg team. category:port-feature The issue is with a library, which is requesting new capabilities that didn’t exist category:tool-update The issue is with build tool or build script, which requires update or should be executed correctly

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants