[MacPorts] #19131: ruby: build fails upgrading from 1.8.7-p72_2 -> 1.8.7-p72_3 when using MacPorts trunk (1.8.0) (was: ruby: build fails upgrading from 1.8.7-p72_2 -> 1.8.7-p72_3)

MacPorts noreply at macports.org
Tue Apr 7 13:44:29 PDT 2009


#19131: ruby: build fails upgrading from 1.8.7-p72_2 -> 1.8.7-p72_3 when using
MacPorts trunk (1.8.0)
---------------------------------+------------------------------------------
 Reporter:  devans@…             |       Owner:  kimuraw@…           
     Type:  defect               |      Status:  assigned            
 Priority:  Normal               |   Milestone:  Port Bugs           
Component:  ports                |     Version:  1.8.0               
 Keywords:                       |        Port:  ruby                
---------------------------------+------------------------------------------

Comment(by devans@…):

 I thought that perhaps there was some issue with group ids on my system
 and have been looking at that but that hasn't
 panned out.

 Note that I am using the trunk version of MacPorts
 {{{
 % port version
 Version: 1.8.0
 % uname -r
 8.11.0
 }}}

 the debug output says
 {{{
 DEBUG: changing euid/egid - current euid: 0 - current egid: -1
 DEBUG: egid changed to: -1
 DEBUG: euid changed to: 0
 --->  Building ruby
 DEBUG: Executing org.macports.build (ruby)
 DEBUG: Environment: MACOSX_DEPLOYMENT_TARGET='10.4'
 DEBUG: Assembled command: 'cd
 "/opt/local/var/macports/build/_opt_macports_trunk_dports_lang_ruby/work/ruby-1.8.7-p72"
 && make all'
 /usr/bin/gcc-4.0 -O2  -fno-common -pipe -fno-common    -DRUBY_EXPORT  -I.
 -I. -I/opt/local/include -D_XOPEN_SOURCE -D_DARWIN_C_SOURCE   -c array.c
 /usr/bin/gcc-4.0 -O2  -fno-common -pipe -fno-common    -DRUBY_EXPORT  -I.
 -I. -I/opt/local/include -D_XOPEN_SOURCE -D_DARWIN_C_SOURCE   -c bignum.c

 ...


 /usr/bin/gcc-4.0 -O2  -fno-common -pipe -fno-common    -DRUBY_EXPORT  -I.
 -I. -I/opt/local/include -D_XOPEN_SOURCE -D_DARWIN_C_SOURCE   -c main.c
 /usr/bin/gcc-4.0 -O2  -fno-common -pipe -fno-common    -DRUBY_EXPORT  -I.
 -I. -I/opt/local/include -D_XOPEN_SOURCE -D_DARWIN_C_SOURCE   -c dmydln.c
 /usr/bin/gcc-4.0  -O2  -fno-common -pipe -fno-common    -DRUBY_EXPORT  -L.
 -L/opt/local/lib  main.o dmydln.o libruby-static.a -lpthread -ldl -lobjc
 -o miniruby
 ./miniruby: no -I allowed while running setgid (SecurityError)
 make: *** [.rbconfig.time] Error 1
 }}}

 so it looks like MacPorts 1.8.0 IS running setgid and miniruby thinks that
 is a security error.

 Reverting to MacPorts 1.710, there is no setgid activity in MacPorts and
 the build completes without error.

 Changing summary to reflect these findings.

-- 
Ticket URL: <http://trac.macports.org/ticket/19131#comment:2>
MacPorts <http://www.macports.org/>
Ports system for Mac OS


More information about the macports-tickets mailing list