Open TrevorCash opened 1 day ago
After running
conan graph info . -c tools.system.package_manager:mode=report-installed --format=json
It looks like opengl package requires it:
{
"ref": "opengl/system#4df6fecde4084386beded3ed0e56e4ea",
"id": "8",
"recipe": "Cache",
"package_id": "da39a3ee5e6b4b0d3255bfef95601890afd80709",
"prev": "0ba8627bd47edc3a501e8f0eb9a79e5e",
"rrev": "4df6fecde4084386beded3ed0e56e4ea",
"rrev_timestamp": 1709801735.507,
"prev_timestamp": 1709802099.364,
"remote": null,
"binary_remote": null,
"build_id": null,
"binary": "Cache",
"invalid_build": false,
"info_invalid": null,
"name": "opengl",
"user": null,
"channel": null,
"url": "https://github.com/conan-io/conan-center-index",
"license": "MIT",
"author": null,
"description": "cross-platform virtual conan package for the OpenGL support",
"homepage": "https://www.opengl.org/",
"build_policy": null,
"upload_policy": null,
"revision_mode": "hash",
"provides": null,
"deprecated": null,
"win_bash": null,
"win_bash_run": null,
"default_options": null,
"options_description": null,
"version": "system",
"topics": [
"opengl",
"gl"
],
"package_type": "shared-library",
"languages": [],
"settings": {
"os": "Windows",
"arch": "x86_64",
"compiler": "msvc",
"compiler.cppstd": "14",
"compiler.runtime": "dynamic",
"compiler.runtime_type": "Release",
"compiler.version": "194",
"build_type": "Release"
},
"options": {},
"options_definitions": {},
"generators": [],
"python_requires": null,
"system_requires": {
"pacman": {
"install": [
"libglvnd"
],
"missing": [
"libglvnd"
]
}
},
"recipe_folder": "C:\\Users\\tcash\\.conan2\\p\\openge4e951d7f121d\\e",
"source_folder": null,
"build_folder": null,
"generators_folder": null,
"package_folder": null,
"cpp_info": {
"root": {
"includedirs": [
"include"
],
"srcdirs": null,
"libdirs": [
"lib"
],
"resdirs": null,
"bindirs": [
"bin"
],
"builddirs": null,
"frameworkdirs": null,
"system_libs": null,
"frameworks": null,
"libs": null,
"defines": null,
"cflags": null,
"cxxflags": null,
"sharedlinkflags": null,
"exelinkflags": null,
"objects": null,
"sysroot": null,
"requires": null,
"properties": null
}
},
"conf_info": {},
"label": "opengl/system",
"info": {},
"vendor": false,
"dependencies": {},
"context": "host",
"test": false
}
Thanks for your report @TrevorCash
The relevant line would be https://github.com/conan-io/conan/blob/71795621a800c25021f27ab1fe73c5eefadad04e/conan/tools/system/package_manager.py#L48
This implements that pacman
is the default package manager for msys2
environments. It is true that line https://github.com/conan-io/conan/blob/71795621a800c25021f27ab1fe73c5eefadad04e/conan/tools/system/package_manager.py#L40 is not that evident that it should use that conf, but the os.subsystem
setting.
While we have a look, you can use the conf tools.system.package_manager:tool
to explicitly define which system package manager you would use, if it is a Windows machine, maybe none or chocolatey could do the job
What is your question?
Hello All,
I get the following error when calling conan install on windows. something is specifying libglvnd as a system dependancy using pacman (but this is not an msys2 package). Is there a way of narrowing this down? Fixing it?
Thanks, -Trevor
Have you read the CONTRIBUTING guide?