-
Notifications
You must be signed in to change notification settings - Fork 992
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[bug] EndeavourOS not among list of distros listed for pacman support #11970
Comments
imo, it feels a bit cumbersome to have to list out distros, couldn't it use The check could be something like: import shutil
# ...
@property
def with_pacman(self):
if self.is_linux:
return shutil.which('pacman') != None
# ... This will then take care of any flavor of Arch in the future, only requirement is shutil is only available in python 3.3+, if there is a need for compatibility with all of python3, you could add a custom which command as found here |
Hi @cchulo There is a difference in a tool being installed in the system, and users really wanting to run that tool. It is not impossible to have a pacman executable in your Linux system that is the pacman videogame (for other distros), for example. Also Conan will try in general not having to guess. So what it has is defined a common default mapping of OS-system package managers. If you want to add EndeavourOS to that list, pull requests are welcome! Note that we are talking about the new tooling in https://docs.conan.io/en/latest/reference/conanfile/tools/system/package_manager.html, not the legacy ones you are referring above, that will not be changed now that we are already in 2.0-beta. Also in the meantime, it is simple to define that you want to run pacman, if you check that doc, you can see that the |
@memsharded ah that is a good point, I had not considered that Your proposed solution should work, I will try it. I will create a pull request anyway to include this string addition. |
Yeah, we have learned from experience, some distros containing more than one system package manager, and then everything was a mess, distros with matching applications that were no system package managers... the only way was to allow users to explicitly define the tool they want (besides a hardcoded default for most common distros) |
@memsharded thank you very much for the guidance, running my installation script worked with these additional options:
|
#11971) * Added endeavouros to the list of pacman distros * reverted previous change and instead added 'endeavouros' to package_manager.py
Closed by #11971, will be in 1.53. Thanks very much for the fix! |
Environment Details (include every applicable attribute)
Steps to reproduce (Include if Applicable)
In a python interpreter
>>> from conans import tools >>> tools.os_info.with_pacman False >>>tools.os_info.is_linux True >>> tools.os_info.linux_distro 'endeavouros'
We need to add
endeavouros
to this lineLogs (Executed commands with output) (Include/Attach if Applicable)
As a result of the above, OpenGL recipe doesn't know how to install itself, xorg/system also fails to install some dependencies as well
The text was updated successfully, but these errors were encountered: