Skip to content

OSX non-root user changes#45

Closed
shaun-rutherford wants to merge 35 commits intoOpenVoxProject:mainfrom
shaun-rutherford:main
Closed

OSX non-root user changes#45
shaun-rutherford wants to merge 35 commits intoOpenVoxProject:mainfrom
shaun-rutherford:main

Conversation

@shaun-rutherford
Copy link

Hi all!
Please do a squash merge as this took a lot of testing to get right.

The following changes vanagon so that you can do OSX builds without being the root user.
The user executing the build does need to have sudo rights, but that does not have to be root which is standard Unix style security best practice.

I've also added a check that if you already have homebrew installed on your machine, vanagon will skip trying to install homebrew (which generates an error and stops the build) and instead changes ownership of the directories I could find interfere with the build process.

shaun-rutherford-blizzard and others added 30 commits July 7, 2025 14:06
Check if homebrew already exists to skip the homebrew install and sudo commands to allow non-root execution
Attempting to force tls_1.3
Changed: lib/vanagon/utilities.rb
additional directory check for homebrew install
Setting check for homebrew to core directory
Sudo to mkdir for file-list-before-build and bill_of_materials
Setting bill_of_materials and file-list-before-build ownership to the current running user
setting chown to recursive on file-list-before-build
sudo chown root:root for the files after being compiled
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