Open faizalatcirclecvi opened 1 month ago
You shouldn't assume in your recipe that pkg-config (nor autotools) is installed with msys2
. You can add pkgconf
recipe in build requirements of your recipe.
You shouldn't assume in your recipe that pkg-config (nor autotools) is installed with
msys2
. You can addpkgconf
recipe in build requirements of your recipe.
Yes, that makes sense. How does pkgconf
build requirement add pkg-config
to the msys2
environment since it is a separate package?
Update: Using pkgconf
as a build requirement solves the problem and makes sense as the recommended approach. This issue can be closed. Thanks for the hint.
Description
pkg-config binary is missing from the latest revision of the package. Any recipe that is depends on msys2/cci.latest for build requirements fails to build if the autotools configure relies on pkg-config binary for dependent libraries.
Current workaround is to add additional step in the consumer recipe to re-install
base-devel
package so that the missing pkg-config is installed.This looks like an msys2 issue.
Package and Environment Details
Conan profile
[settings] arch=x86_64 build_type=Release compiler=msvc compiler.cppstd=17 compiler.runtime=dynamic compiler.runtime_type=Release compiler.version=192 os=Windows
Steps to reproduce
Step 1: Install latest msys2 package
Step 2: Open msys2 session by navigating to package path
Step 3: In msys2 session:
Logs
Click to expand log
``` faizal.haji@CIRCLE-FaizalDT MSYS /bin $ pkg-config -bash: pkg-config: command not found faizal.haji@CIRCLE-FaizalDT MSYS /bin $ pacman -S base-devel --noconfirm warning: base-devel-2022.12-2 is up to date -- reinstalling resolving dependencies... looking for conflicting packages... Packages (2) pkgconf-1.9.4-1 base-devel-2022.12-2 Total Installed Size: 0.29 MiB :: Proceed with installation? [Y/n] (2/2) checking keys in keyring [###################################################] 100% (2/2) checking package integrity [###################################################] 100% (2/2) loading package files [###################################################] 100% (2/2) checking for file conflicts [###################################################] 100% (2/2) checking available disk space [###################################################] 100% :: Processing package changes... (1/2) installing pkgconf [###################################################] 100% (2/2) reinstalling base-devel [###################################################] 100% faizal.haji@CIRCLE-FaizalDT MSYS /bin $ pkg-config --version 1.9.4 ```