|Summary:||Run path_helper in OSX postinstall script to make Mono commands available in same shell session|
|Product:||[Mono] Runtime||Reporter:||Alexander Köplinger [MSFT] <alkpli>|
|Component:||packaging||Assignee:||Alexis Christoforides <lexas>|
|Severity:||normal||CC:||akhileshk, kumpera, luis.aguilera, mono-bugs+mono, mono-bugs+runtime|
|Target Milestone:||4.8.0 (C9)|
|Tags:||Is this bug a regression?:||Yes|
|Last known good build:||4.4.0|
Description Alexander Köplinger [MSFT] 2016-07-07 23:06:57 UTC
We discussed this yesterday on Slack, but I since found out that we'll not only hit this on Travis but in the product builds that do Mono autoprovisioning too, so I thought it's better to have it tracked. >[20:47] >so I found a pretty interesting "regression" with the mono 4.4.1 osx package due to https://github.com/xamarin/bockbuild/commit/4bf7d2ee28d5fd1c6c9c4cb0231f0cef8a8ac859 > >[20:48] >the issue is that adding stuff to /etc/paths.d doesn't cause the current PATH to be updated. since we are installing Mono on >travis by fetching the .pkg and installing it in the same shell session, the commands weren't found > >[20:49] >this wasn't an issue before when the symlinks were installed to /usr/local/bin, since that is in the path by default > >[20:49] >the fix I applied was to run `eval $(/usr/libexec/path_helper -s)` to refresh the PATH, which worked
Comment 1 Luis Aguilera 2016-09-12 20:14:42 UTC
since C8 is now closed, and is shipping this week, I will move this but to the C8SR1 milestone. We'll continue working on the issue seeking it's resolution as soon as possible.
Comment 2 Alexis Christoforides 2016-09-23 19:40:08 UTC
The attempted fix does not work (running the command from inside the package's post-install script). A proper fix seems to have to involve updating shell startup scripts, which has to be done carefully and may not have a simple solution. I will likely take care of the bash and zsh possibilities, but please feel free to suggest any other methods you may have or shells that are affected.
Comment 3 Alexis Christoforides 2016-12-19 15:24:28 UTC
Fixed in mono/bockbuild master and xamarin/bockbuild mono-4.8.0-branch (for bash and zsh)