conan-io / conan-center-index

Recipes for the ConanCenter repository
https://conan.io/center
MIT License
921 stars 1.67k forks source link

[package] glu/system: Wrong package installed when using zypper #4885

Open adrianjrg opened 3 years ago

adrianjrg commented 3 years ago

Package and Environment Details (include every applicable attribute)

Conan profile (output of conan profile show default or conan profile show <profile> if custom profile is in use)

Configuration for profile default:

[settings]
os=Linux
os_build=Linux
arch=x86_64
arch_build=x86_64
compiler=gcc
compiler.version=10
compiler.libcxx=libstdc++11
build_type=Release
[options]
[build_requires]
[env]

Steps to reproduce (Include if Applicable)

Logs (Include/Attach if Applicable)

Click to expand log ``` package Mesa-libGLU-devel is not installed ERROR: The following packages need to be installed: Mesa-libGLU-devel glu/system: ERROR: while executing system_requirements(): Aborted due to CONAN_SYSREQUIRES_MODE=verify. Some system packages need to be installed ERROR: Error in system requirements ```

I believe the package needed is called glu-devel, which shows up when searching zypper for the Mesa-libGLU-devel capability.

$ zypper search Mesa-libGLU-devel
Loading repository data...
Reading installed packages...
No matching items found.

$ zypper search --provides Mesa-libGLU-devel
Loading repository data...
Reading installed packages...

S  | Name            | Summary                           | Type
---+-----------------+-----------------------------------+--------
i+ | glu-devel       | Development files for the GLU API | package
   | glu-devel-32bit | Development files for the GLU API | package

Editing the line below in my cache to use glu-devel fixes the issue for me.

https://github.com/conan-io/conan-center-index/blob/608918cd5bbaa350e923b34d0da51ed423a16219/recipes/glu/all/conanfile.py#L27

Croydon commented 3 years ago

Did it change with some release or was this always the case?

ericLemanissier commented 3 years ago

AFAIK there is no mistake in the package name: https://github.com/bincrafters/system-packages-checks/runs/2110477169?check_suite_focus=true#step:6:289 Did you try to set environment variable CONAN_SYSREQUIRES_MODE=enabled ?

adrianjrg commented 3 years ago

That solves the issue, thanks!