Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 420499 - app-i18n/prime: prime utils are failing to find libraries
Summary: app-i18n/prime: prime utils are failing to find libraries
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: AMD64 Linux
: Normal normal (vote)
Assignee: CJK Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-06-10 15:14 UTC by Binary Runner
Modified: 2012-06-21 22:01 UTC (History)
1 user (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Binary Runner 2012-06-10 15:14:13 UTC
When I run prime-index, I does not find progressbar not its own basidict: 
WARNING:
  The required Ruby library 'progressbar' is not found.
ERROR:
  The required Ruby library 'progressbar' is not found.
  You might need to install a progressbar package.
    <http://www.namazu.org/~satoru/ruby-progressbar/>
  Sorry for your inconvenience.
ERROR:
  The required Ruby library 'prime/makedict/basicdict' is not found.
  Sorry for your inconvenience.
/usr/lib64/ruby/site_ruby/1.8/prime/taiyaki.rb:88:in `require': LoadError (LoadError)
	from /usr/bin/prime-dict-index:17


Reproducible: Always

Steps to Reproduce:
1.install prime
2.run prime-dict-index 





emerge --info:
Portage 2.1.10.49 (default/linux/amd64/10.0/developer, gcc-4.4.5, glibc-2.14.1-r3, 3.2.12-gentoo x86_64)
=================================================================
System uname: Linux-3.2.12-gentoo-x86_64-AMD_Athlon-tm-_64_X2_Dual_Core_Processor_5000+-with-gentoo-2.1
Timestamp of tree: Fri, 08 Jun 2012 23:45:01 +0000
app-shells/bash:          4.2_p20
dev-java/java-config:     2.1.11-r3
dev-lang/python:          2.7.2-r3, 3.1.4-r3, 3.2.3
dev-util/cmake:           2.8.4-r1
dev-util/pkgconfig:       0.26
sys-apps/baselayout:      2.1-r1
sys-apps/openrc:          0.9.4
sys-apps/sandbox:         2.5
sys-devel/autoconf:       2.13::<unknown repository>, 2.68
sys-devel/automake:       1.4_p6::<unknown repository>, 1.5::<unknown repository>, 1.6.3::<unknown repository>, 1.7.9-r1::<unknown repository>, 1.8.5-r3::<unknown repository>, 1.9.6-r2::<unknown repository>, 1.10.2::<unknown repository>, 1.11.1
sys-devel/binutils:       2.21.1-r1
sys-devel/gcc:            4.4.5, 4.5.3-r2
sys-devel/gcc-config:     1.4.1-r1
sys-devel/libtool:        2.4.2
sys-devel/make:           3.82-r1
sys-kernel/linux-headers: 3.1 (virtual/os-headers)
sys-libs/glibc:           2.14.1-r3
Repositories: gentoo desktop-effects java-overlay proaudio enlightenment x-portage
ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="* -@EULA dlj-1.1 sun-bcla-java-vm skype-eula PUEL RTCW-ETEULA Q3AEULA QUAKE4 LOKI-EULA googleearth AdobeFlash-10.3 Oracle-BCLA-JavaSE oracle-java-documentation-7 google-talkplugin"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=athlon64 -mtune=athlon64 -O2 -pipe -mno-tls-direct-seg-refs -msse3"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /opt/openjms/config /usr/lib64/tomoyo/conf /usr/share/config /usr/share/gnupg/qualified.txt /usr/share/maven-bin-3.0/conf /usr/share/openvpn/easy-rsa /var/lib/hsqldb"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/dconf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /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=athlon64 -mtune=athlon64 -O2 -pipe -mno-tls-direct-seg-refs -msse3"
DISTDIR="/usr/portage/distfiles"
EMERGE_DEFAULT_OPTS="--autounmask=n"
FEATURES="assume-digests binpkg-logs candy collision-protect distlocks ebuild-locks fixlafiles multilib-strict news nostrip parallel-fetch protect-owned sandbox sfperms sign splitdebug strict test-fail-continue unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox xattr"
FFLAGS=""
GENTOO_MIRRORS="http://gentoo.supp.name/ http://gentoo.wheel.sk/ ftp://gentoo.mirror.web4u.cz/ http://gentoo.mirror.web4u.cz/ ftp://gd.tuwien.ac.at/opsys/linux/gentoo/"
LANG="en_GB.UTF-8"
LC_ALL="en_GB.UTF-8"
LDFLAGS="-Wl,--hash-style=gnu -Wl,-O1 -Wl,--as-needed"
LINGUAS="en en_GB ja ru de"
MAKEOPTS="-j3"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
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"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/var/lib/layman/desktop-effects /var/lib/layman/java-overlay /var/lib/layman/pro-audio /var/lib/layman/enlightenment /opt/portage"
SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage"
USE="3dnowext X a52 aac accessibility acl acpi alsa amd64 berkdb bluetooth branding bzip2 cairo caps cdda cdr cjk cli consolekit cracklib crypt cxx dbus dedicated dri dts dvd dvdr emboss encode exif fam firefox flac fortran gdbm gif gnome-keyring gpm gtk hvm iconv ipv6 jack jikes jpeg lame lcms ldap libnotify mad mikmod mmx mmxext mng modules mp3 mp4 mpeg mudflap multilib musepack ncurses networkmanager nls nptl ogg opengl openmp pam pango pch pcre pdf pic plasma png policykit portaudio ppds pppd pulseaudio qt3support qt4 readline rtc sdl semantic-desktop session snmp spell sse sse2 ssl startup-notification svg tcpd tiff truetype udev udisks unicode upower usb vdpau vorbis wavpack wxwidgets x264 xcb xinerama xml xorg xulrunner xv xvid zlib" ALSA_CARDS="intel8x0 virmidi" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="actions alias auth_basic auth_digest authn_anon authn_dbd authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache dav dav_fs dav_lock dbd deflate dir disk_cache env expires ext_filter file_cache filter headers ident imagemap include info log_config logio mem_cache mime mime_magic negotiation proxy proxy_ajp proxy_balancer proxy_connect proxy_http rewrite setenvif so speling status unique_id userdir usertrack vhost_alias" CALLIGRA_FEATURES="kexi words flow plan sheets stage tables krita karbon braindump" CAMERAS="ptp2" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf superstar2 timing tsip tripmate tnt ubx" INPUT_DEVICES="evdev keyboard mouse" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LINGUAS="en en_GB ja ru de" PHP_TARGETS="php5-3" PYTHON_TARGETS="python3_2 python2_7" RUBY_TARGETS="ruby18 ruby19" USERLAND="GNU" VIDEO_CARDS="nvidia nv vesa v4l vga" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account"
Unset:  CPPFLAGS, CTARGET, INSTALL_MASK, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, USE_PYTHON
Comment 1 Michael Weber (RETIRED) gentoo-dev 2012-06-11 10:21:01 UTC
Please provide the installed version by commenting `emerge -pv app-i18n/prime`.
Comment 2 Binary Runner 2012-06-11 10:40:03 UTC
[ebuild   R   ~] app-i18n/prime-1.0.0.1-r1  USE="-test" RUBY_TARGETS="ruby18 -ree18" 0 kB

The same behavior applies to app-i18n/prime-1.0.0.1 .
Comment 3 Naohiro Aota gentoo-dev 2012-06-20 06:39:12 UTC
Changing "Kernel::require" to "require" solved the problem here. but, is this right fix? ruby team, could you comment on what is difference between these two and if this is correct fix or not?

--- taiyaki.rb.orig     2012-06-20 15:36:14.459679760 +0900
+++ taiyaki.rb  2012-06-20 15:36:26.179679629 +0900
@@ -12,7 +12,7 @@
 require 'jcode'
 
 begin
-  Kernel::require('progressbar')
+  require('progressbar')
 rescue LoadError
   $stderr.puts "WARNING:"
   $stderr.puts("  The required Ruby library 'progressbar' is not found.")
Comment 4 Hans de Graaff gentoo-dev Security 2012-06-20 07:10:53 UTC
(In reply to comment #3)
> Changing "Kernel::require" to "require" solved the problem here. but, is
> this right fix? ruby team, could you comment on what is difference between
> these two and if this is correct fix or not?

I have not checked in detail, but I assume that require gets patched by rubygems to include the rubygems search path, while Kernel::require only looks at the RUBYLIB paths. The fix looks sane to me.
Comment 5 Naohiro Aota gentoo-dev 2012-06-21 17:59:26 UTC
(In reply to comment #4)
> (In reply to comment #3)
> > Changing "Kernel::require" to "require" solved the problem here. but, is
> > this right fix? ruby team, could you comment on what is difference between
> > these two and if this is correct fix or not?
> 
> I have not checked in detail, but I assume that require gets patched by
> rubygems to include the rubygems search path, while Kernel::require only
> looks at the RUBYLIB paths. The fix looks sane to me.

Thank you for your comment! I've added the patch to the tree.
Comment 6 Binary Runner 2012-06-21 22:01:47 UTC
Thanks for the fix.