Are macports builds prevented from accessing /dev/random ?

Christopher Jones jonesc at hep.phy.cam.ac.uk
Tue Jun 13 20:57:57 UTC 2017


Hi,

I have a slightly odd issue… I am working on an update to the ROOT6 port, to the newly released 6.10.00 release,

As part of the build process their build system runs the root C++ interpreter on some example scripts, which generate various output files. This running of the script has part of the build process seems to be failing due to it being unable to access /dev/random…

The build step is

:info:build cd /opt/local/var/macports/build/_Users_chris_Projects_MacPorts_ports_science_root6/root6/work/build/tutorials && DYLD_LIBRARY_PATH=/opt/local/var/macports/build/_Users_chris_Projects_MacPorts_ports_science_root6/root6/work/build/lib: ROOTIGNOREPREFIX=1 /opt/local/var/macports/build/_Users_chris_Projects_MacPorts_ports_science_root6/root6/work/build/bin/root.exe -l -q -b -n -x hsimple.C -e return

You don’t need to understand the details, just that root.exe is the main excitable and hsimple.C is a c++ source file that root interprets (using the cling interpreter built on top of the clang compiler).

This gives the error, when run inside a macports build

: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… ?

cheers Chris
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 1910 bytes
Desc: not available
URL: <http://lists.macports.org/pipermail/macports-dev/attachments/20170613/2cf32f4f/attachment.bin>


More information about the macports-dev mailing list