Add /private/var/mail to darwin_native sandbox #3
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This makes the configure phase of pkgsrc's
mail/neomutt
work because it has an Autotools configure check for "where new mail is stored" which roughly does the following:Since
/var/mail
nor any of the other paths exist in the sandbox, the configure script fails like this:This change is really just a change to make the sandbox more like outside the sandbox so that a particular pkgsrc package will build. In this case, the package is
mail/neomutt
. I don't know if any other pkgsrc package would benefit.Another approach would be to change pkgsrc's
mail/neomutt/Makefile
to invoke the configure script with--with-mailpath=/var/mail
for Darwin. But it seems like a tough sell to get that committed because it seems like a bad idea to be making changes to pkgsrc packages to make them build successfully in a particular sandbox. Ideally the sandbox should enable packages to build just like outside the sandbox.Depending on how realistic
/var/mail
should be in the sandbox, it could instead be returned by the_darwin_native_bindfs_mounts
function, but since other things in/var
were being faked (i.e., just being created in the sandbox and not using a null-mount), the change just adds it in thedarwin_native_create
function with the other faked things.