conan-io / conan-package-tools

Conan Package Tools. Helps with massive package creation and CI integration (Travis CI, Appveyor...)
MIT License
165 stars 70 forks source link

Support modern package_manager mode #607

Closed uilianries closed 1 year ago

uilianries commented 1 year ago

Description of Problem, Request, or Question

So far, CONAN_SYSREQUIRES_MODE is the environment variable which rules the legacy SystemPackageTool, however, with the migration of recipe and modernization of package manager support, the conan.tools.system.package_manager uses config to enable installing by default.

As current workaround, need to run script before to build on Docker to enable it, updating the global config file.

The feature consists updating it automatically, by adding a new cpt option, which will update both legacy and modern version. For instance:

CPT_SYSREQUIRES_MODE=[install, check, disable]
CONAN_SYSREQUIRES_SUDO=[true,false]
CONAN_SYSREQUIRES_TOOL=[apt-get, yum, dnf, brew, pacman, choco, zypper, pkg, pkgutil]

It follows those supported tools listed on modern system package

SSE4 commented 1 year ago

I would prefer some generic feature allowing to set arbitrary conf variables on command line. then, build tools.system.package_manager:mode on top of it.

uilianries commented 1 year ago

@SSE4 Yes, it sounds even better.