Skip to content
Snippets Groups Projects
This project is mirrored from https://github.com/Homebrew/brew.git. Pull mirroring failed .
Repository mirroring has been paused due to too many failed attempts. It can be resumed by a project maintainer or owner.
Last successful update .
  1. Jul 12, 2018
  2. Jul 11, 2018
  3. Jul 10, 2018
  4. Jul 09, 2018
  5. Jul 07, 2018
  6. Jul 06, 2018
    • Claudia's avatar
      Fix PKG installer environment · 3dbb735f
      Claudia authored
      This commit solves an issue where the environment handed to
      `/usr/sbin/installer` is not the same as the environment used by the
      graphical PKG installer.
      
      This is evident in some post-install scripts, e. g. the
      `component-10.pkg/Scripts/postinstall` script in the `dymo-label`
      cask. The code says:
      
      ```
      USER_ID=`id -u ${USER}`
      
      launchctl bootstrap gui/$USER_ID /Library/LaunchAgents/com.dymo.dls.webservice.plist
      ```
      
      The graphical installer will export e. g. `USER=alice`, and
      everything works as intended.
      
      However, `brew cask install` does not override `sudo`’s default,
      which is `USER=ROOT`. This violates the assumptions in the script.
      
      This commit fixes the issue by configuring `sudo` to override the
      following environment variables with the proper user name:
      
      - `LOGNAME`
      - `USER`
      - `USERNAME`
      Unverified
      3dbb735f
    • Mike McQuaid's avatar
      Merge pull request #4429 from MikeMcQuaid/linkage-optional-deps · 4840b688
      Mike McQuaid authored
      linkage: fix output of optional dependencies.
      Unverified
      4840b688
Loading