[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
Tue Dec 13 17:25:21 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):
Yes, this looks like a permissions problem calling dtrace. Rather than
making dtrace SUID root it would probably be cleaner to figure out how to
make MacPorts build it as root.
The big question here is why ruby needs to do this, and to what extent the
file generated with the command is host-specific. If it's not, the
cleanest thing would be to distribute if in `${filespath}` and copy it to
the appropriate location in the `post-configure`.
This is what you get running sudo make in ${worksrcpath}:
{{{
...
dtrace -o probes.h.tmp -h -C -I. -I.ext/include/x86_64-darwin13
-I./include -I. -s probes.d
. ./vm_opts.h
sed -e 's/RUBY_/RUBY_DTRACE_/g' -e 's/PROBES_H_TMP/RUBY_PROBES_H/' -e
's/(char \*/(const char */g' -e 's/, char \*/, const char */g'
probes.h.tmp > probes.h
rm -f probes.h.tmp
...
}}}
I'll see what probes.h contains and attach it if it seems redistributable.
--
Ticket URL: <https://trac.macports.org/ticket/53045#comment:3>
MacPorts <https://www.macports.org/>
Ports system for macOS
More information about the macports-tickets
mailing list