Are macports builds prevented from accessing /dev/random ?

Daniel J. Luke dluke at
Tue Jun 13 21:05:49 UTC 2017

On Jun 13, 2017, at 4:57 PM, Christopher Jones <jonesc at> wrote:
> :info:build open('/dev/random'): Operation not permitted
> Now, this works outside. So I suspect the build is in some way prevent the build process from accessing this. Is this possible ? If so, more to the point, is there a way I can get this to work… ?

I suspect the sandbox doesn't include access to /dev/random (Macports started using sandbox-exec with version 2.2.0)

As a temporary workaround (or to test this theory) you can add "sandbox_enable no" to your macports.conf
Daniel J. Luke

More information about the macports-dev mailing list