[MacPorts] #19131: ruby: build fails upgrading from 1.8.7-p72_2 -> 1.8.7-p72_3
#19131: ruby: build fails upgrading from 1.8.7-p72_2 -> 1.8.7-p72_3 ---------------------------------+------------------------------------------ Reporter: devans@… | Owner: kimuraw@… Type: defect | Status: new Priority: Normal | Milestone: Port Bugs Component: ports | Version: 1.8.0 Keywords: | Port: ruby ---------------------------------+------------------------------------------ 10.4.11 ppc XCode 2.5 {{{ 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' ... ar rcu libruby-static.a array.o bignum.o class.o compar.o dir.o dln.o enum.o enumerator.o error.o eval.o file.o gc.o hash.o inits.o io.o marshal.o math.o numeric.o object.o pack.o parse.o process.o prec.o random.o range.o re.o regex.o ruby.o signal.o sprintf.o st.o string.o struct.o time.o util.o variable.o version.o alloca.o dmyext.o /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 }}} -- Ticket URL: <http://trac.macports.org/ticket/19131> MacPorts <http://www.macports.org/> Ports system for Mac OS
#19131: ruby: build fails upgrading from 1.8.7-p72_2 -> 1.8.7-p72_3 ---------------------------------+------------------------------------------ Reporter: devans@… | Owner: kimuraw@… Type: defect | Status: assigned Priority: Normal | Milestone: Port Bugs Component: ports | Version: 1.8.0 Keywords: | Port: ruby ---------------------------------+------------------------------------------ Changes (by kimuraw@…): * status: new => assigned Comment: I cannot reproduce this problem on my Mac (10.4.11 ppc + Xcode 2.5).[[BR]] Please try "port clean ruby" && "port build ruby". I tested: {{{ % port version Version: 1.710 % uname -r 8.11.0 % port info ruby ruby @1.8.7-p72, Revision 3 (lang, ruby) : }}} -- Ticket URL: <http://trac.macports.org/ticket/19131#comment:1> MacPorts <http://www.macports.org/> Ports system for Mac OS
#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
#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 kimuraw@…): That error means ruby(miniruby) do not allow "-I" option under egid != gid. see ruby.c {{{ static void forbid_setid(s) const char *s; { if (euid != uid) rb_raise(rb_eSecurityError, "no %s allowed while running setuid", s); if (egid != gid) rb_raise(rb_eSecurityError, "no %s allowed while running setgid", s); if (rb_safe_level() > 0) rb_raise(rb_eSecurityError, "no %s allowed in tainted mode", s); } }}} macports trunk has dropPrivileges and elevateToRoot mechanism. I think this tiket maybe for macports base componet, not ruby ports... -- Ticket URL: <http://trac.macports.org/ticket/19131#comment:3> MacPorts <http://www.macports.org/> Ports system for Mac OS
#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 kimuraw@…): I reproduced this problem on ppc 10.4.11 and macports trunk r49611.[[BR]] but I cannot the problem on ppc 10.5.3 and i386 10.5.6. I posted macports-dev about the detail of this problem. http://lists.macosforge.org/pipermail/macports-dev/2009-April/008261.html -- Ticket URL: <http://trac.macports.org/ticket/19131#comment:4> MacPorts <http://www.macports.org/> Ports system for Mac OS
#19131: when using MacPorts trunk (1.8.0) ruby fails to build upgrading from 1.8.7-p72_2 -> 1.8.7-p72_3 ---------------------------------+------------------------------------------ Reporter: devans@… | Owner: kimuraw@… Type: defect | Status: assigned Priority: Normal | Milestone: MacPorts 1.8.0 Component: base | Version: 1.8.0 Keywords: ruby | Port: ---------------------------------+------------------------------------------ Changes (by devans@…): * keywords: => ruby * component: ports => base * port: ruby => * milestone: => MacPorts 1.8.0 Comment: Modified summary and component to reflect that this is really a trunk base issue -- Ticket URL: <http://trac.macports.org/ticket/19131#comment:7> MacPorts <http://www.macports.org/> Ports system for Mac OS
#19131: ruby fails to build with MacPorts trunk (1.8.0) on 10.4 ---------------------------------+------------------------------------------ Reporter: devans@… | Owner: kimuraw@… Type: defect | Status: assigned Priority: Normal | Milestone: MacPorts 1.8.0 Component: base | Version: 1.8.0 Keywords: ruby | Port: ---------------------------------+------------------------------------------ Comment(by pguyot@…): The problem is not related to upgrading ruby (as it also occurs when installing lang/ruby or lang/ruby186). However, it is related to 10.4 and trunk. -- Ticket URL: <http://trac.macports.org/ticket/19131#comment:8> MacPorts <http://www.macports.org/> Ports system for Mac OS
#19131: ruby fails to build with MacPorts trunk (1.8.0) on 10.4 ----------------------------------+----------------------------------------- Reporter: devans@… | Owner: kimuraw@… Type: defect | Status: closed Priority: Normal | Milestone: MacPorts 1.8.0 Component: base | Version: 1.8.0 Resolution: fixed | Keywords: ruby Port: | ----------------------------------+----------------------------------------- Changes (by pguyot@…): * status: assigned => closed * resolution: => fixed Comment: The culprit is a call to getgrnam(2) with $macportsuser as the parameter (which typically is "root"). This function takes a group name, not a user name. Under 10.5, however, there is a group called "root", and therefore it works. A fix was committed in r51522. -- Ticket URL: <http://trac.macports.org/ticket/19131#comment:9> MacPorts <http://www.macports.org/> Ports system for Mac OS
#19131: ruby fails to build with MacPorts trunk (1.8.0) on 10.4 ----------------------------------+----------------------------------------- Reporter: devans@… | Owner: kimuraw@… Type: defect | Status: closed Priority: Normal | Milestone: MacPorts 1.8.0 Component: base | Version: 1.8.0 Resolution: fixed | Keywords: ruby Port: | ----------------------------------+----------------------------------------- Comment(by likenikeshoes@…): {{{ #!html This works ok for me.. but It probably needs feedback. <a href="http://www.tagnice.com"><font color="#000000">N Air Yeezy Shoes</font></a> }}} -- Ticket URL: <http://trac.macports.org/ticket/19131#comment:10> MacPorts <http://www.macports.org/> Ports system for Mac OS
#19131: ruby fails to build with MacPorts trunk (1.8.0) on 10.4 ----------------------------------+----------------------------------------- Reporter: devans@… | Owner: kimuraw@… Type: defect | Status: closed Priority: Normal | Milestone: MacPorts 1.8.0 Component: base | Version: 1.8.0 Resolution: fixed | Keywords: ruby Port: | ----------------------------------+----------------------------------------- Comment(by likenikeshoes@…): {{{ #!html This works ok for me.. but It probably needs feedback. <a href="http://www.tagnice.com"><font color="#000000">Air Yeezy Shoes</font></a> }}} -- Ticket URL: <http://trac.macports.org/ticket/19131#comment:11> MacPorts <http://www.macports.org/> Ports system for Mac OS
participants (1)
-
MacPorts