Skip to content

[vcpkg_setup_pkgconfig_path] Add new functions to set or restore pkgconfig related environment variables#23429

Merged
BillyONeal merged 22 commits intomicrosoft:masterfrom
JackBoosY:dev/jack/22812
May 10, 2022
Merged

[vcpkg_setup_pkgconfig_path] Add new functions to set or restore pkgconfig related environment variables#23429
BillyONeal merged 22 commits intomicrosoft:masterfrom
JackBoosY:dev/jack/22812

Conversation

@JackBoosY
Copy link
Copy Markdown
Contributor

ENV{PKG_CONFIG_PATH} shouldn't be added again.

Fixes #22812.

@JackBoosY JackBoosY added info:internal category:tool-update The issue is with build tool or build script, which requires update or should be executed correctly labels Mar 8, 2022
@JackBoosY
Copy link
Copy Markdown
Contributor Author

@jcc10 Can you please test this PR?

Thanks.

@dg0yt
Copy link
Copy Markdown
Contributor

dg0yt commented Mar 8, 2022

I think we need to decide whether we want to prepend or to append. The current behaviour is to append, but normally vcpkg packages should be preferred over system packages AFAIU.

@Neumann-A
Copy link
Copy Markdown
Contributor

set(ENV{PKG_CONFIG_PATH} "${pkgconfig_installed_dir}${VCPKG_HOST_PATH_SEPARATOR}${pkgconfig_installed_share_dir}${VCPKG_HOST_PATH_SEPARATOR}$ENV{PKG_CONFIG_PATH}")

PREPEND it should be.

@Neumann-A
Copy link
Copy Markdown
Contributor

but really. The pkgconfig setup should be turned into its own function to make it consistent everywhere.

@JackBoosY
Copy link
Copy Markdown
Contributor Author

JackBoosY commented Mar 8, 2022

but really. The pkgconfig setup should be turned into its own function to make it consistent everywhere.

Agreed.

EDIT: also, ENV{PKG_CONFIG} should be backup.

@JackBoosY JackBoosY closed this Mar 8, 2022
@JackBoosY JackBoosY reopened this Mar 8, 2022
@JackBoosY JackBoosY changed the title [vcpkg_configure_meson] Fix append host path [vcpkg_setup_pkgconfig_path] Add new functions to set or restore pkgconfig related environment variables Mar 8, 2022
@JackBoosY
Copy link
Copy Markdown
Contributor Author

JackBoosY commented Mar 10, 2022

ncurses: mismatched debug and release lib count. Related: #23476. Fixing in #23478.

python2 / python3: Missing installation of bz2 dynamic library in debug mode. bz2.so with python2 and _bz2.cpython-310-x86_64-linux-gnu.so with python3. Can't repro.

libgnutls:

In procedure dynamic-link: file: "/mnt/vcpkg-ci/buildtrees/libgnutls/x64-linux-dbg/guile/src/guile-gnutls-v-2", message: "file not found"

Same issue in the upstream: https://www.mail-archive.com/gnutls-help@lists.gnutls.org/msg01418.html
Fixing in #23478.

@JackBoosY JackBoosY added the depends:different-pr This PR or Issue depends on a PR which has been filed label Mar 11, 2022
@JackBoosY
Copy link
Copy Markdown
Contributor Author

Depends on #23478.

Copy link
Copy Markdown
Contributor

@strega-nil strega-nil left a comment

Choose a reason for hiding this comment

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

Bringing it up in the meeting

@strega-nil-ms
Copy link
Copy Markdown
Contributor

This should be done with a private z_ name, so that we can change it in the future.

Copy link
Copy Markdown
Contributor

@strega-nil-ms strega-nil-ms left a comment

Choose a reason for hiding this comment

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

(make it internal)

@strega-nil-ms strega-nil-ms added requires:author-response and removed info:needs-maintainer-attention Lets the current 'on rotation' vcpkg maintainer know they need to look at this. requires:discussion labels Apr 14, 2022
@BillyONeal BillyONeal dismissed strega-nil-ms’s stale review April 28, 2022 00:44

strega-nil signed off.

Copy link
Copy Markdown
Member

@BillyONeal BillyONeal left a comment

Choose a reason for hiding this comment

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

I'm "request changes" over what look like extra/missing remaining calls trying to backup/restore PKG_CONFIG_PATH with vcpkg_restore_env_variables. (The documentation changes are nitpicks)

@BillyONeal
Copy link
Copy Markdown
Member

The x86-windows failures don't look related to this so I'm going to azp run this again as soon as the other platforms finish building...

@BillyONeal
Copy link
Copy Markdown
Member

/azp run

1 similar comment
@BillyONeal
Copy link
Copy Markdown
Member

/azp run

@azure-pipelines
Copy link
Copy Markdown

Azure Pipelines successfully started running 1 pipeline(s).

@BillyONeal BillyONeal merged commit 0d7603c into microsoft:master May 10, 2022
@BillyONeal
Copy link
Copy Markdown
Member

Thanks!

@JackBoosY JackBoosY deleted the dev/jack/22812 branch May 10, 2022 00:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

category:tool-update The issue is with build tool or build script, which requires update or should be executed correctly

Projects

None yet

9 participants