Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

bpo-45723: Add --with-pkg-config to configure (GH-29517)#29517

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged
tiran merged 2 commits intopython:mainfromtiran:bpo-45723-with-pkg-config
Nov 10, 2021

Conversation

tiran
Copy link
Member

@tirantiran commentedNov 10, 2021
edited by bedevere-bot
Loading

Let users require or ignore pkg-config.--with-pkg-config makes
pkg-config mandatory.--without-pkg-config disables use of
pkg-config. Disabling is also useful to check how configure behaves
without pkg-config installed.

Signed-off-by: Christian Heimeschristian@python.org

https://bugs.python.org/issue45723

Let users require or ignore pkg-config. ``--with-pkg-config`` makespkg-config mandatory. ``--without-pkg-config`` disables use ofpkg-config. Disabling is also useful to check how configure behaveswithout pkg-config installed.Signed-off-by: Christian Heimes <christian@python.org>
@tirantiranforce-pushed thebpo-45723-with-pkg-config branch fromd0e72b7 tof1bd071CompareNovember 10, 2021 15:32
@tirantiran marked this pull request as ready for reviewNovember 10, 2021 15:33
Copy link
Contributor

@erlend-aaslanderlend-aasland left a comment

Choose a reason for hiding this comment

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

Looks good. I think a note inBuild Changes inWhat's New would be nice.

Comment on lines +167 to +172
if test -z "$PKG_CONFIG"; then
dnl invalidate stale config.cache values
AS_UNSET([PKG_CONFIG])
AS_UNSET([ac_cv_path_ac_pt_PKG_CONFIG])
AS_UNSET([ac_cv_prog_ac_ct_PKG_CONFIG])
fi
Copy link
Contributor

Choose a reason for hiding this comment

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

UnsettingPKG_CONFIG and friends ifPKG_CONFIG is not set? Is there a missing! in the test? Is this check needed at all; the config.cache guard is pretty strict.

Copy link
MemberAuthor

Choose a reason for hiding this comment

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

It's un-declaring the variables when it's empty. This solves a corner case when going from./configure -C --without-pkg-config to./configure -C --with-pkg-config=yes.

Copy link
MemberAuthor

Choose a reason for hiding this comment

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

Maybe you are able to find a better way...

Copy link
Contributor

Choose a reason for hiding this comment

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

I see. No, this is fine. I can't think of a better way.

@erlend-aasland
Copy link
Contributor

Is it worth it listing the packages we actually usepkg-config to detect?

Co-authored-by: Erlend Egeberg Aasland <erlend.aasland@innova.no>
@tiran
Copy link
MemberAuthor

Is it worth it listing the packages we actually usepkg-config to detect?

The pkg-config m4 macro will do that for us.

erlend-aasland reacted with rocket emoji

@tirantiran changed the titlebpo-45723: Add --with-pkg-config to configurebpo-45723: Add --with-pkg-config to configure (GH-29517)Nov 10, 2021
@tirantiran merged commitfc9b622 intopython:mainNov 10, 2021
@tirantiran deleted the bpo-45723-with-pkg-config branchNovember 10, 2021 22:02
remykarem pushed a commit to remykarem/cpython that referenced this pull requestDec 7, 2021
Co-authored-by: Erlend Egeberg Aasland <erlend.aasland@innova.no>
remykarem pushed a commit to remykarem/cpython that referenced this pull requestJan 30, 2022
Co-authored-by: Erlend Egeberg Aasland <erlend.aasland@innova.no>
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Reviewers

@erlend-aaslanderlend-aaslanderlend-aasland approved these changes

Assignees
No one assigned
Labels
None yet
Projects
None yet
Milestone
No milestone
Development

Successfully merging this pull request may close these issues.

4 participants
@tiran@erlend-aasland@the-knights-who-say-ni@bedevere-bot

[8]ページ先頭

©2009-2025 Movatter.jp