From a15cf61ba6768453430eecd03d3b563cfce92903 Mon Sep 17 00:00:00 2001 From: Nobuyoshi Nakada Date: Fri, 8 Aug 2025 20:17:58 +0900 Subject: [PATCH] Revert "Check if the found pkg-config is usable actually" This reverts commit 79d8a3159f60d32396c8281fe438e86ab97e3daa. The second argument of `find_executable0` in mkmf is `path`, not arguments to the program like as `EnvUtil.find_executable`. --- test/mkmf/test_pkg_config.rb | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/test/mkmf/test_pkg_config.rb b/test/mkmf/test_pkg_config.rb index abeaf548f8..d0a2dc130a 100644 --- a/test/mkmf/test_pkg_config.rb +++ b/test/mkmf/test_pkg_config.rb @@ -3,9 +3,7 @@ require_relative 'base' require 'shellwords' class TestMkmfPkgConfig < TestMkmf - PKG_CONFIG = config_string("PKG_CONFIG") do |path| - find_executable0(path, "--version") {$?.success?} - end + PKG_CONFIG = config_string("PKG_CONFIG") {|path| find_executable0(path)} def setup super