Skip to content

test cases: skip test_python_build_config_extensions with pkg-config installed#15797

Closed
mtelka wants to merge 1 commit intomesonbuild:masterfrom
mtelka:pkg-config
Closed

test cases: skip test_python_build_config_extensions with pkg-config installed#15797
mtelka wants to merge 1 commit intomesonbuild:masterfrom
mtelka:pkg-config

Conversation

@mtelka
Copy link
Copy Markdown
Contributor

@mtelka mtelka commented May 10, 2026

fixes #15796

@mtelka mtelka requested a review from jpakkane as a code owner May 10, 2026 18:41
with self.subTest(build_config_via_cross=build_config_via_cross, sys_root=sys_root):
# fd.o pkg-config does not handle sys_root correctly
if sys_root is not None and with_pkgconfig and shutil.which('pkgconf') is None:
if sys_root is not None and with_pkgconfig and shutil.which('pkg-config') is not None:
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.

This change is certainly as wrong as it is possible to be.

Why are you choosing to skip the test on all systems (because on systems where only pkgconf is installed, pkg-config is a compatibility symlink for pkgconf)?

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.

Fair question. Unfortunately, I do not have any system with pkgconf-only installed, so I'm not aware about existence of the pkg-config compatibility symlink. If that's the case then this change is obviously wrong.

@mtelka mtelka closed this May 11, 2026
@mtelka mtelka deleted the pkg-config branch May 11, 2026 05:45
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.

test_python_build_config_extensions fails with both pkgconf and pkg-config installed

2 participants