Skip to content

Allow for set default environment variables on user side #76

Description

@bartoszkosiorek

It will be great to allow set the default environment variables on User side.

For example after installing client bootstrap and packages, it would be nice to be able to set defaul environment variables, with command:

source /usr/local/pkg/env.sh

The file will contain default variables, for example:

export PKGSRC_HOME=/usr/local/pkg

export CMAKE_C_COMPILER=${PKGSRC_HOME}/bin/clang
export CMAKE_CXX_COMPILER=${PKGSRC_HOME}/bin/clang++
export PYTHON=${PKGSRC_HOME}/bin/python2.7
export PYTHON3=${PKGSRC_HOME}/bin/python3.7
export JAVA_HOME=${PKGSRC_HOME}/java/adoptopenjdk11-bin

It would simplify the setup process.
Do you know how to implement that?

Activity

  1. krytarowski commented on Nov 17, 2020

    @krytarowski
    Member

    Set PATH, JAVA_HOME etc in your .profile and be done?

  2. bartoszkosiorek commented on Nov 17, 2020

    @bartoszkosiorek
    Author

    I would like to use it in CI. So it would be much easier to have only one file to include.
    With that solution everything would be set automatically and it will be connected with PkgSrc release.

    Also for developers it will be much easier to setup. They need to just inclue one file. After upgrade PkgSrc, the file (with eg. PATH, JAVA_HOME) could be also updated.

  3. krytarowski commented on Nov 17, 2020

    @krytarowski
    Member

    Unless I miss something, you need to write this file yourself.

  4. bartoszkosiorek commented on Nov 17, 2020

    @bartoszkosiorek
    Author

    Thanks. I will do that.

  5. added a commit that references this issue on Apr 2, 2021
    e217a0d
  6. added a commit that references this issue on May 17, 2021
  7. added a commit that references this issue on Jun 1, 2021
  8. 193 remaining items

  9. added a commit that references this issue on Jun 24, 2026
  10. added a commit that references this issue on Jul 30, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions