Skip to content

[libpq] Fix x64-linux build (#48024)#49238

Closed
jobor wants to merge 1 commit into
microsoft:masterfrom
jobor:fix-48024
Closed

[libpq] Fix x64-linux build (#48024)#49238
jobor wants to merge 1 commit into
microsoft:masterfrom
jobor:fix-48024

Conversation

@jobor

@jobor jobor commented Jan 5, 2026

Copy link
Copy Markdown
Contributor

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 +116
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
Copy Markdown
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
Copy Markdown
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