Skip to content
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

Explain about SystemPackageTool and sudo #1127

Merged
merged 6 commits into from Mar 20, 2019
Merged
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
6 changes: 6 additions & 0 deletions reference/conanfile/methods.rst
Expand Up @@ -573,6 +573,12 @@ Methods:
The use of ``sudo`` in the internals of the ``install()`` and ``update()`` methods is controlled by the ``CONAN_SYSREQUIRES_SUDO``
environment variable, so if the users don't need sudo permissions, it is easy to opt-in/out.

When ``CONAN_SYSREQUIRES_SUDO`` is not defined, Conan will mimic if it is possible to use ``sudo`` based on:
uilianries marked this conversation as resolved.
Show resolved Hide resolved

- Is ``sudo`` available in ``PATH``
uilianries marked this conversation as resolved.
Show resolved Hide resolved
- The platform name should be ``posix``
- UID (user id) should be ``0``
uilianries marked this conversation as resolved.
Show resolved Hide resolved

Conan will keep track of the execution of this method, so that it is not invoked again and again at every Conan command. The execution is
done per package, since some packages of the same library might have different system dependencies. If you are sure that all your binary
packages have the same system requirements, just add the following line to your method:
Expand Down