Skip to content

Conversation

@suhaibmujahid
Copy link
Contributor

Problem:

The current CMAKE_INSTALL_PREFIX value for the system build mode is /usr. However, inmacOS as an example, you cannot write to /usr without sudo permission.

Proposed solution:

Enable changing the value to /usr/local (or any other path). This change makes the script use the value of the environment variable SYSTEM_INSTALL_PREFIX to select the installation path. If the variable is not set, it fallback to the path /usr.

@lhchavez lhchavez merged commit 1111858 into libgit2:master Oct 1, 2020
github-actions bot pushed a commit that referenced this pull request Oct 1, 2020
#### Problem:
The current `CMAKE_INSTALL_PREFIX` value for the `system` build mode is `/usr`. However, in`macOS` as an example, you cannot write to `/usr` without `sudo` permission.

#### Proposed solution:
Enable changing the value to `/usr/local` (or any other path). This change makes the script use the value of the environment variable `SYSTEM_INSTALL_PREFIX` to select the installation path.  If the variable is not set, it fallback to the path `/usr`.

(cherry picked from commit 1111858)
github-actions bot pushed a commit that referenced this pull request Oct 1, 2020
#### Problem:
The current `CMAKE_INSTALL_PREFIX` value for the `system` build mode is `/usr`. However, in`macOS` as an example, you cannot write to `/usr` without `sudo` permission.

#### Proposed solution:
Enable changing the value to `/usr/local` (or any other path). This change makes the script use the value of the environment variable `SYSTEM_INSTALL_PREFIX` to select the installation path.  If the variable is not set, it fallback to the path `/usr`.

(cherry picked from commit 1111858)
@suhaibmujahid suhaibmujahid deleted the patch-2 branch October 1, 2020 00:28
lhchavez pushed a commit that referenced this pull request Oct 1, 2020
#### Problem:
The current `CMAKE_INSTALL_PREFIX` value for the `system` build mode is `/usr`. However, in`macOS` as an example, you cannot write to `/usr` without `sudo` permission.

#### Proposed solution:
Enable changing the value to `/usr/local` (or any other path). This change makes the script use the value of the environment variable `SYSTEM_INSTALL_PREFIX` to select the installation path.  If the variable is not set, it fallback to the path `/usr`.

(cherry picked from commit 1111858)

Co-authored-by: Suhaib Mujahid <suhaibmujahid@gmail.com>
lhchavez pushed a commit that referenced this pull request Oct 1, 2020
#### Problem:
The current `CMAKE_INSTALL_PREFIX` value for the `system` build mode is `/usr`. However, in`macOS` as an example, you cannot write to `/usr` without `sudo` permission.

#### Proposed solution:
Enable changing the value to `/usr/local` (or any other path). This change makes the script use the value of the environment variable `SYSTEM_INSTALL_PREFIX` to select the installation path.  If the variable is not set, it fallback to the path `/usr`.

(cherry picked from commit 1111858)

Co-authored-by: Suhaib Mujahid <suhaibmujahid@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants