Open darius-grauslys opened 2 years ago
If we are talking about ConanCenter recipes, then this would be a feature to add, this package manager should be added to the existing. It seems it would be a conf
that allows the Yum
implementation to use a different app name and replace it for this xbps
.
(if not for ConanCenter recipes, quick approach is to run any self.run("xbps-install ...)
commands)
Question:
How can I configure Conan to use my system's package manager correctly? (xbps-install from void linux https://voidlinux.org ) Specifically, how can I tell Conan to use a specific package naming convention such as yum, but invoke xbps-install?
Problem description:
I am looking to set up Conan on my system and everything seems to work except when Conan tries to download dependencies of packages.
Package gtk+-2.0 was not found in the pkg-config search path. Perhaps you should add the directory containing
gtk+-2.0.pc' to the PKG_CONFIG_PATH environment variable No package 'gtk+-2.0' foundI can do something like:
sudo xbps-install gtk+` and it will resolve that singular issue, only for the next dependency requiring manual intervention as well.Looking into it I would navigate to my .conan directory, to the specific caching of the package, and into the conanfile.py. Here I notice various package managers with explicit strings as install targets. (Like for, apt.install([ "libXYZ" ]) )
It looks like the install targets being used is here:
pkg = package_manager.Pkg(self)
Which makes sense since I don't have any of the other package managers Conan is looking for. However, if Conan used the install targets for yum on xbps-install, I think everything would be fine.