Skip to content

Conversation

@jobor
Copy link
Contributor

@jobor jobor commented Jan 5, 2026

Configure with --with-system-tzdata on non-Windows systems if /usr/share/zoneinfo exists.

The port forces configure to think that it's crosscompiling, and that requires a zic executable or already available tzdata.

Fixes #48024

  • Changes comply with the maintainer guide.
  • SHA512s are updated for each updated download.
  • The "supports" clause reflects platforms that may be fixed by this new version.

@jobor jobor force-pushed the fix-48024 branch 2 times, most recently from 302a636 to 3d613db Compare January 5, 2026 17:50
Comment on lines 109 to 122
if(NOT VCPKG_TARGET_IS_WINDOWS)
# Pass the location of timezone data. This is necessary, because
# fix-configure.patch sets cross_compiling=yes to avoid conftest issues.
set(TZDATA_PATH "/usr/share/zoneinfo")
if(EXISTS "${TZDATA_PATH}")
list(APPEND BUILD_OPTS --with-system-tzdata=${TZDATA_PATH})
endif()
endif()
Copy link
Member

Choose a reason for hiding this comment

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

Having hardcoded paths in a portfile feels incorrect, perhaps this should be set by a triplet variable or the build modified so this is not necessary.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I've changed the patch such that the path is overridable with a triplet variable.

@vicroms vicroms marked this pull request as draft January 7, 2026 08:30
Configure with --with-system-tzdata on non-Windows systems if
/usr/share/zoneinfo exists. The tzdata location can be overridden by the
triplet variable VCPKG_SYSTEM_TZDATA_PATH.

The port forces configure to think that it's crosscompiling, and that
requires a zic executable or already available tzdata.
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.

[libpq] build error on x64-linux

2 participants