[MacPorts] #53045: ruby23 fails to build on 10.9.5 (:info:build error: unable to open output file '/dev/fd/8': '')

MacPorts noreply at macports.org
Wed Dec 14 16:16:43 CET 2016

#53045: ruby23 fails to build on 10.9.5 (:info:build error: unable to open output
file '/dev/fd/8': '')
  Reporter:  RJVB    |      Owner:  kimuraw
      Type:  defect  |     Status:  assigned
  Priority:  Normal  |  Milestone:
 Component:  ports   |    Version:
Resolution:          |   Keywords:
      Port:  ruby23  |

Comment (by RJVB):

 Replying to [comment:6 kimuraw]:

 > `sudo port` commands work under user "macports" privileges by default.
 > That is strange dtrace requires "root" suid in this problem.

 No, my analysis was wrong:

 - running `sudo make` inside `${worksrcpath}` (and with the environment
 set as port would set it) works fine, whether dtrace is SUID or not
 - running `port build ruby23` works fine when dtrace is NOT suid root.

 The problem has to do with write permissions on a special file which I
 *think* is an inter-process pipe where the "stdin part" is created by a
 privileged application (dtrace running SUID root) and a non privileged
 process. I've never seen this before, but without knowing who owns
 /dev/fd/8 (file descriptor 8) I cannot say more.

 @kimuraw: do you have a possibility to compare the generated probes.h file
 with mine, preferably also when using other Mac OS versions? It it's
 identical everywhere (= it depends only on the probes.d input file) then
 it isn't necessary to generate it anew each time.

Ticket URL: <https://trac.macports.org/ticket/53045#comment:7>
MacPorts <https://www.macports.org/>
Ports system for macOS

More information about the macports-tickets mailing list