Ruby's rbconfig.rb needs improving
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.
Updated by Alasdair Lumsden over 8 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.
Updated by Ken Mays almost 8 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.
The compiler info is subjective....