execWithResult("{$pkgconf} --version", false); if ($ret !== 0) { return CheckResult::fail('pkg-config is not functional', 'install-pkg-config'); } return CheckResult::ok(trim($output[0])); } #[FixItem('install-pkg-config')] public function fix(): bool { ApplicationContext::set('elephant', true); $installer = new PackageInstaller(['dl-binary-only' => true]); $installer->addInstallPackage('pkg-config'); $installer->run(false, true); return true; } }