Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 424789 - www-client/elinks-0.12_pre5-r2 died on configure when USE="ruby" - suitable ruby version not found
Summary: www-client/elinks-0.12_pre5-r2 died on configure when USE="ruby" - suitable r...
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: No maintainer - Look at if you want to take care of it
: 428442 (view as bug list)
Depends on:
Reported: 2012-07-04 17:44 UTC by tman
Modified: 2012-09-16 11:06 UTC (History)
1 user (show)

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

/var/tmp/portage/www-client/elinks-0.12_pre5-r2/temp/build.log (build.log,14.51 KB, text/plain)
2012-07-04 17:44 UTC, tman
/var/log/portage/www-client:elinks-0.12_pre5-r2:20120704-194003.log (www-client:elinks-0.12_pre5-r2:20120704-194003.log,14.51 KB, text/plain)
2012-07-04 17:45 UTC, tman
/var/tmp/portage/www-client/elinks-0.12_pre5-r2/temp/build.log (build.log,14.62 KB, text/plain)
2012-07-29 18:38 UTC, tman
/var/log/portage/www-client:elinks-0.12_pre5-r2:20120729-183325.log (www-client:elinks-0.12_pre5-r2:20120729-183325.log,14.62 KB, text/plain)
2012-07-29 18:38 UTC, tman
/var/tmp/portage/www-client/elinks-0.12_pre5-r2/temp/environment (environment,114.16 KB, text/plain)
2012-07-29 22:07 UTC, tman
/var/tmp/portage/www-client/elinks-0.12_pre5-r2/work/elinks-0.12pre5/config.log (config.log,155.71 KB, text/plain)
2012-07-29 22:16 UTC, tman
ruby 1.9 compatibility patch (elinks-0.12_pre5-ruby-1.9.patch,6.96 KB, patch)
2012-09-10 17:47 UTC, Ian Abbott
Details | Diff
Ebuild patch to apply my ruby 1.9 patch and expand m4 (elinks-0.12_pre5.ebuild-m4-ruby19.patch,616 bytes, patch)
2012-09-10 17:52 UTC, Ian Abbott
Details | Diff
Fix typo in my previous ebuild patch (elinks-0.12_pre5.ebuild-m4-ruby19.patch,614 bytes, patch)
2012-09-10 17:57 UTC, Ian Abbott
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description tman 2012-07-04 17:44:13 UTC
ERROR: configure                                                                                                                                                                                                                                                                     │
│ERROR: www-client/elinks-0.12_pre5-r2 failed (configure phase):                                                                                                                                                                                                                      │
│  econf failed                                                                                                                                                                                                                                                                       │
│                                                                                                                                                                                                                                                                                     │
│Call stack:                                                                                                                                                                                                                                                                          │
│, line   85:  Called src_configure                                                                                                                                                                                                                                 │
│       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'                                │
│, line  467:  Called die                                                                                                                                                                                                                                           │
│The specific snippet of code:                                                                                                                                                                                                                                                        │
│                        die "econf failed"                                                                 

Reproducible: Always

Portage 2.2.0_alpha115_p4 (default/linux/amd64/10.0/desktop, gcc-4.6.3, glibc-2.15-r2, 3.4.4-gentoo x86_64)
System uname: Linux-3.4.4-gentoo-x86_64-Intel-R-_Core-TM-2_Duo_CPU_P9700_@_2.80GHz-with-gentoo-2.1
Timestamp of tree: Wed, 04 Jul 2012 17:00:01 +0000
app-shells/bash:          4.2_p29
dev-java/java-config:     2.1.12
dev-lang/python:          2.7.3-r2, 3.2.3-r1
dev-util/cmake:           2.8.8-r3
dev-util/pkgconfig:       0.26
sys-apps/baselayout:      2.1-r1
sys-apps/openrc:          9999
sys-apps/sandbox:         2.6
sys-devel/autoconf:       2.13, 2.69
sys-devel/automake:       1.9.6-r3, 1.10.3, 1.11.5, 1.12.1
sys-devel/binutils:       2.22-r1
sys-devel/gcc:            4.6.3
sys-devel/gcc-config:     1.7.3
sys-devel/libtool:        2.4.2
sys-devel/make:           3.82-r3
sys-kernel/linux-headers: 3.4 (virtual/os-headers)
sys-libs/glibc:           2.15-r2
Repositories: gentoo mpd science scarabeus luman nikai emacs java-overlay Techwolf mgorny wirelay qt poly-c gnome wine-diablo3 gamerlay-stable lokal
ACCEPT_KEYWORDS="amd64 ~amd64"
CFLAGS="-march=core2 -O2 -pipe"
CONFIG_PROTECT="/etc /usr/share/config /usr/share/gnupg/qualified.txt /usr/share/openvpn/easy-rsa /var/lib/hsqldb"
CONFIG_PROTECT_MASK="${EPREFIX}/etc/gconf /etc/ca-certificates.conf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/php/apache2-php5.4/ext-active/ /etc/php/cgi-php5.4/ext-active/ /etc/php/cli-php5.4/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c"
CXXFLAGS="-march=core2 -O2 -pipe"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-logs config-protect-if-modified distlocks ebuild-locks fixlafiles news parallel-fetch parse-eapi-ebuild-head preserve-libs protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch xattr"
FFLAGS="-O2 -pipe"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
LINGUAS="de en vi"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
Comment 1 tman 2012-07-04 17:44:36 UTC
Created attachment 317155 [details]
Comment 2 tman 2012-07-04 17:45:25 UTC
Created attachment 317157 [details]
Comment 3 Ian Stakenvicius (RETIRED) gentoo-dev 2012-07-04 17:53:09 UTC
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.
Comment 4 Ian Stakenvicius (RETIRED) gentoo-dev 2012-07-04 18:00:26 UTC
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
Comment 5 Ian Stakenvicius (RETIRED) gentoo-dev 2012-07-04 18:45:49 UTC
Never mind, was able to reproduce and fix:

+  04 Jul 2012; Ian Stakenvicius <> 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
Comment 6 tman 2012-07-05 05:08:42 UTC
 * 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
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, 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, line  467:  Called die
331  ^[[31;01m*^[[0m The specific snippet of code:
Comment 7 Pacho Ramos gentoo-dev 2012-07-28 22:37:12 UTC
attach updated full build.log please
Comment 8 tman 2012-07-29 04:31:07 UTC
(In reply to comment #7)
> attach updated full build.log please

i have added the full build log. please checke the attachments here

Comment 9 Pacho Ramos gentoo-dev 2012-07-29 07:50:55 UTC
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 ;)
Comment 10 tman 2012-07-29 18:38:00 UTC
Created attachment 319620 [details]

(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:
Comment 11 tman 2012-07-29 18:38:13 UTC
Created attachment 319622 [details]
Comment 12 Pacho Ramos gentoo-dev 2012-07-29 21:50:55 UTC
Maybe providing config.log could clarify things a bit :/
Comment 13 tman 2012-07-29 22:07:55 UTC
Created attachment 319640 [details]
Comment 14 tman 2012-07-29 22:16:13 UTC
Created attachment 319642 [details]
Comment 15 Pacho Ramos gentoo-dev 2012-07-30 06:47:06 UTC
*** Bug 428442 has been marked as a duplicate of this bug. ***
Comment 16 Pacho Ramos gentoo-dev 2012-07-30 06:48:00 UTC
Ruby, do you know what is causing the different behavior explained at:
Comment 17 tman 2012-07-30 11:40:15 UTC
oh(In reply to comment #16)
> Ruby, do you know what is causing the different behavior explained at:
> ?

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
Comment 18 Hans de Graaff gentoo-dev Security 2012-07-30 13:43:35 UTC
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.
Comment 19 Ian Abbott 2012-09-10 17:47:37 UTC
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
Comment 20 Ian Abbott 2012-09-10 17:52:06 UTC
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 script in the sources).

With these two patches elinks builds fine with USE="ruby" on my machine with either ruby18 or ruby19 eselected.
Comment 21 Ian Abbott 2012-09-10 17:57:04 UTC
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.
Comment 22 Pacho Ramos gentoo-dev 2012-09-16 11:06:29 UTC
+  16 Sep 2012; Pacho Ramos <>
+  +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.