Description
tman
2012-07-04 17:44:13 UTC
Created attachment 317155 [details]
/var/tmp/portage/www-client/elinks-0.12_pre5-r2/temp/build.log
Created attachment 317157 [details]
/var/log/portage/www-client:elinks-0.12_pre5-r2:20120704-194003.log
This package is not currently maintained by anyone. I'll look into this issue just for curiosity's sake, but in the mean time please disable the 'ruby' use flag for www-client/elinks via /etc/portage/package.use in order to get elinks to emerge. Could you please report which version(s) of ruby and rubygems you have installed, as well as which version of ruby is currently eselected ? # equery list ruby # eselect ruby list Never mind, was able to reproduce and fix: + 04 Jul 2012; Ian Stakenvicius <axs@gentoo.org> elinks-0.12_pre5-r2.ebuild, + +files/elinks-0.12_pre5-ruby-config.patch: + fixed configure check for ruby-1.9 and above, bug 424789 + * Searching for ruby ... [IP-] [ ] dev-lang/ruby-1.8.7_p358:1.8 [IP-] [ ] dev-lang/ruby-1.9.3_p194-r1:1.9 # eselect ruby list Available Ruby profiles: [1] ruby18 (with Rubygems) [2] ruby19 (with Rubygems) * do you really fixed it and bump it in portage'? i have synced and got this error: checking for TRE in pkg-config... no, but let's try defaults 316 checking for TRE header and library... no 317 checking for Ruby... yes 318 checking for ruby... /usr/bin/ruby 319 checking Ruby version... too old; need Ruby version 1.6.0 or later 320 configure: error: Ruby not found 321 322 !!! Please attach the following file when seeking support: 323 !!! /var/tmp/portage/www-client/elinks-0.12_pre5-r2/work/elinks-0.12pre5/config.log 324 ^[[31;01m*^[[0m ERROR: www-client/elinks-0.12_pre5-r2 failed (configure phase): 325 ^[[31;01m*^[[0m econf failed 326 ^[[31;01m*^[[0m 327 ^[[31;01m*^[[0m Call stack: 328 ^[[31;01m*^[[0m ebuild.sh, line 85: Called src_configure 329 ^[[31;01m*^[[0m environment, line 3210: Called econf '--sysconfdir=/etc/elinks' '--enable-leds' '--enable-88-colors' '--enable-256-colors' '--enable-true-color' '--enable-html-highlight' '--with-gpm' '--with-zlib' '--with-bzlib' '--with-x' '--with-lua' '--without- |guile' '--with-perl' '--with-ruby' '--with-idn' '--with-spidermonkey' '--disable-bittorrent' '--enable-nls' '--enable-ipv6' '--enable-ftp' '--disable-gopher' '--disable-nntp' '--disable-finger' '--enable-smb' '--enable-mouse' '--enable-fastmem' '--with-openssl=/usr' 330 ^[[31;01m*^[[0m phase-helpers.sh, line 467: Called die 331 ^[[31;01m*^[[0m The specific snippet of code: attach updated full build.log please (In reply to comment #7) > attach updated full build.log please i have added the full build log. please checke the attachments here thanks But they are from the time when no patch was being applied (2012-07-14), this is the reason for me requesting a new one ;) Created attachment 319620 [details] /var/tmp/portage/www-client/elinks-0.12_pre5-r2/temp/build.log (In reply to comment #9) > But they are from the time when no patch was being applied (2012-07-14), > this is the reason for me requesting a new one ;) yes but it seem to be there is the same problem. here is a fresh reproduced build.elog: Created attachment 319622 [details]
/var/log/portage/www-client:elinks-0.12_pre5-r2:20120729-183325.log
Maybe providing config.log could clarify things a bit :/ Created attachment 319640 [details]
/var/tmp/portage/www-client/elinks-0.12_pre5-r2/temp/environment
Created attachment 319642 [details]
/var/tmp/portage/www-client/elinks-0.12_pre5-r2/work/elinks-0.12pre5/config.log
*** Bug 428442 has been marked as a duplicate of this bug. *** Ruby, do you know what is causing the different behavior explained at: https://bugs.gentoo.org/show_bug.cgi?id=428442#c3 ? oh(In reply to comment #16) > Ruby, do you know what is causing the different behavior explained at: > https://bugs.gentoo.org/show_bug.cgi?id=428442#c3 > ? oh you are right. i am sorry. it could be that is have make double posting because i forget if its already fixed or not. this bug report have been made since a while Given that the configure scripts mentions ruby 1.6.0 I'd say this has not been updated in quite some time... The error message indicates that VERSION is no longer defined. Just check only against RUBY_VERSION which is supported by all ruby versions in our tree. Created attachment 323438 [details, diff]
ruby 1.9 compatibility patch
This is a replacement for the elinks-0.12_pre5-ruby-config patch. I changed the name to elinks-0.12_pre5-ruby-1.9.patch as it's a bit more extensive than the old one.
It also needs some changes to the ebuild to make the m4 stuff work properly - see my elinks-0.12_pre4.ebuild-m4-ruby19.patch
Created attachment 323442 [details, diff]
Ebuild patch to apply my ruby 1.9 patch and expand m4
Ebuild patch to apply my elinks-0.12_pre5-ruby-1.9.patch and to update the acinclude.m4 file with the contents of config/m4/*.m4 (based on the autogen.sh script in the sources).
With these two patches elinks builds fine with USE="ruby" on my machine with either ruby18 or ruby19 eselected.
Created attachment 323444 [details, diff]
Fix typo in my previous ebuild patch
This is the same as my patch 323442 but fixes a typo in a comment I added to the ebuild. autoinclude.m4 should have read acinclude.m4.
+ 16 Sep 2012; Pacho Ramos <pacho@gentoo.org> + +files/elinks-0.12_pre5-ruby-1.9.patch, elinks-0.12_pre5-r2.ebuild: + Fix build against ruby, bug #424789 by tman and patch by Ian Abbott. + |