Project

General

Profile

Bug #3175

Ruby's rbconfig.rb needs improving

Added by Alasdair Lumsden about 7 years ago. Updated over 6 years ago.

Status:
Closed
Priority:
Low
Assignee:
Category:
OI-Userland
Target version:
-
Start date:
2012-09-11
Due date:
% Done:

100%

Estimated time:
Difficulty:
Medium
Tags:

Description

Current issues:

1. It contains build system private information, eg:

CONFIG["configure_args"] = " '--prefix=/usr/ruby/1.8' '--enable-dtrace' '--enable-shared' '--enable-install-doc' '--disable-option-checking' '--with-openssl' '--with-tk-dir=/usr' '--with-curses-dir=/usr' 'CC=/opt/SUNWspro/bin/cc' 'CFLAGS=-xO4 -xbuiltin=%all -xinline=%auto -xprefetch=auto -xdepend -xtarget=generic -I/home/jt/OI-151A-STABLE/151A-PRESTABLE6/newbuilds/sfw/proto/root_i386/usr/include' 'LDFLAGS=-L/home/jt/OI-151A-STABLE/151A-PRESTABLE6/newbuilds/sfw/proto/root_i386/usr/lib -M /home/jt/OI-151A-STABLE/151A-PRESTABLE6/newbuilds/sfw/usr/src/cmd/mapfile_noexstk -R/usr/sfw/lib' 'CPPFLAGS=-DTEXT_DOMAIN=\\\"\\\"  -I/home/jt/OI-151A-STABLE/151A-PRESTABLE6/newbuilds/sfw/proto/root_i386/usr/include  -I/home/jt/OI-151A-STABLE/151A-PRESTABLE6/newbuilds/sfw/proto/root_i386/usr/sfw/include  -I/home/jt/OI-151A-STABLE/151A-PRESTABLE6/newbuilds/sfw/proto/root_i386/usr/include    -I/home/jt/OI-151A-STABLE/151A-PRESTABLE6/newbuilds/sfw/proto/root_i386/usr/include'"

2. It contains compiler specific flags and chooses a compiler, eg:

CONFIG["LDFLAGS"] = "-L/usr/sfw/lib -R/usr/sfw/lib" 
CONFIG["CFLAGS"] = "-g -O3 -fPIC"
CONFIG["CC"] = "/usr/sfw/bin/gcc"

Some of this stuff may be fixed in the userland ruby but I thought i'd throw this out there for now so I don't forget.

History

#1

Updated by Alasdair Lumsden about 7 years ago

Oh and if you "gem update --system", pkg verify reports ruby's gem stuff as needing fixing.

I'm not sure if we care, a user might want to revert back to the system provided gem with pkg fix. But they also might not appreciate their new gem being nuked unexpectedly.

I wonder what other OS package managers do with gem stuff.

#2

Updated by Ken Mays over 6 years ago

  • Status changed from New to Closed
  • Assignee changed from Alasdair Lumsden to OI Userland
  • % Done changed from 0 to 100

Some issues fixed within new package for /hipster.
,5.11-0.151.1.8.1:20130709T142131Z

The compiler info is subjective....

Also available in: Atom PDF