Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 139376 - dev-lang/ruby-1.8.5_pre1: autoconf 2.60 creates incorrect rbconfig.rb
Summary: dev-lang/ruby-1.8.5_pre1: autoconf 2.60 creates incorrect rbconfig.rb
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High normal
Assignee: Gentoo Ruby Team
URL:
Whiteboard:
Keywords:
: 143629 (view as bug list)
Depends on:
Blocks: 137964
  Show dependency tree
 
Reported: 2006-07-05 16:28 UTC by ferret
Modified: 2006-11-29 11:24 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
fix the issue (mkconfig.rb.patch,471 bytes, patch)
2006-07-06 20:37 UTC, ferret
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description ferret 2006-07-05 16:28:46 UTC
When elinks-0.11.1 is emerged with ruby-1.8.5_pre1, the compile stops with the following in config.log:

configure:17437: checking for Ruby header files
configure:17442: result: /usr/lib/ruby/1.8/i686-linux
configure:17496: gcc -o conftest -I/usr/lib/ruby/1.8/i686-linux -g -O2 -Wall  -I
/usr/include/js  -I/usr/lib/ruby/1.8/i686-linux -Wl,-export-dynamic  -rdynamic c
onftest.c -Wl\,-R -Wl\,/usr/lib -L/usr/lib -L/usr/lib -lruby18 -ldl -lcrypt -lm 
 -llua -llualib -lm -L/usr/lib -ljs -ldl  -lgpm -lz -lbz2 -lidn -lexpat >&5
cc1: error: unrecognized command line option "-Wl\,-R"
cc1: error: unrecognized command line option "-Wl\,/usr/lib"
configure:17502: $? = 1

I tracked this down to the following file in ruby:

ferret@skunk ~ $ grep LIBRUBYARG /usr/lib/ruby/1.8/i686-linux/rbconfig.rb
  CONFIG["LIBRUBYARG"] = "$(LIBRUBYARG_SHARED)"
  CONFIG["LIBRUBYARG_STATIC"] = "-l$(RUBY_SO_NAME)-static"
  CONFIG["LIBRUBYARG_SHARED"] = "-Wl\\,-R -Wl\\,$(libdir) -L$(libdir) -L. -l$(RUBY_SO_NAME)"
ferret@skunk ~ $ 

Don't know anything much about ruby, so don't know how to fix this.
Comment 1 ferret 2006-07-06 13:34:43 UTC
Removed every \\ from in front of all the commas in rbconfig.rb, and that seemed to fix it.

Ruby package needs to not put them there!  Will wait to see if anyone else has this same problem; if not I'll close.
Comment 2 Caleb Tennis (RETIRED) gentoo-dev 2006-07-06 14:20:41 UTC
I agree, but none of my Ruby installations have them there, so I'm unsure how they would have gotten there on your system.
Comment 3 ferret 2006-07-06 20:37:37 UTC
Created attachment 91087 [details, diff]
fix the issue

I'm pretty confident it's an error in the way the mkconfig.rb script fiddles with config.status: it doesn't expect there to be any escaped commas in the var names.  Hopefully the patch should be clear to anyone who knows ruby.

Will continue to wait to see if it's just me that had this problem.
Comment 4 Diego Elio Pettenò (RETIRED) gentoo-dev 2006-07-06 20:50:07 UTC
I can reproduce on this box, seems like related to autoconf 2.60.

Caleb, which version of autoconf are you using right now?
Comment 5 Caleb Tennis (RETIRED) gentoo-dev 2006-07-07 03:57:20 UTC
< 2.60
Comment 6 Diego Elio Pettenò (RETIRED) gentoo-dev 2006-07-07 04:04:01 UTC
Gotta love how GNU can break stuff with updates, sigh.
Comment 7 Caleb Tennis (RETIRED) gentoo-dev 2006-07-07 04:38:25 UTC
I'll send a mail to ruby-core and see if they will merge the patch (Diego, are you okay with the fix?)
Comment 8 Diego Elio Pettenò (RETIRED) gentoo-dev 2006-07-07 05:04:20 UTC
I'm not sure about it just yet, i was going to look if cvs is fixed already, but hadn't had the space for a checkout yet.
Comment 9 Jakub Moc (RETIRED) gentoo-dev 2006-08-12 00:55:12 UTC
*** Bug 143629 has been marked as a duplicate of this bug. ***
Comment 10 Jakub Moc (RETIRED) gentoo-dev 2006-11-28 12:12:38 UTC
# grep LIBRUBYARG /usr/lib/ruby/1.8/i686-linux/rbconfig.rb
  CONFIG["LIBRUBYARG"] = "$(LIBRUBYARG_SHARED)"
  CONFIG["LIBRUBYARG_STATIC"] = "-l$(RUBY_SO_NAME)-static"
  CONFIG["LIBRUBYARG_SHARED"] = "-Wl,-R -Wl,$(libdir) -L$(libdir) -L. -l$(RUBY_SO_NAME)"

# qlist -CIev autoconf ruby
dev-lang/ruby-1.8.5-r3
sys-devel/autoconf-2.13
sys-devel/autoconf-2.61

Can't reproduce this any more, should be probably closed.
Comment 11 ferret 2006-11-29 11:24:13 UTC
mkconfig.rb was fixed in 1.8.5 by upstream

closing