The GNU recode library is optional for enca. Also, portage system declare 'recode' use flag, but it is not used in enca ebuild's. app-i18n/enca-1.9-r1 always require by dependency app-text/recode. app-i18n/enca-1.9 not require this, but build with app-text/recode, if this library already installed in the user/live system. However, app-text/recode have a bugs to a certain degree when used with enca converter. IMHO, enca must be build with GNU recode library optional, only if turn ON use flag 'recode'. Sorry, but I'm Gentoo beginner user (not specialist) and bad speak English. ;-) Reproducible: Always Steps to Reproduce: 1. emerge -v1 =app-i18n/enca-1.9-r1 2. enca --list convertors 3. bzip2 -c -d /usr/share/man/man1/gpasswd.1.bz2 | enconv -L ru -x UTF-8 -VVVVVVVVVVV 4. emerge -v1 =app-i18n/enca-1.9 5. enca --list convertors 6. bzip2 -c -d /usr/share/man/man1/gpasswd.1.bz2 | enconv -L ru -x UTF-8 -VVVVVVVVVVV 7. emerge -C recode 8. enca --list convertors 9. bzip2 -c -d /usr/share/man/man1/gpasswd.1.bz2 | enconv -L ru -x UTF-8 -VVVVVVVVVVV 10. emerge -v1 =app-i18n/enca-1.9 11. enca --list convertors 12. bzip2 -c -d /usr/share/man/man1/gpasswd.1.bz2 | enconv -L ru -x UTF-8 -VVVVVVVVVVV Actual Results: 1. These are the packages that would be merged, in order: Calculating dependencies... done! [ebuild N ] app-text/recode-3.6-r2 USE="nls" 1,711 kB [ebuild U ] app-i18n/enca-1.9-r1 [1.9] USE="-doc%" 492 kB Total: 2 packages (1 upgrade, 1 new), Size of downloads: 2,203 kB ... build/install process skipped ... 2. built-in librecode iconv extern # Now librecode used by default (as first) converter in enca 3. Opening file `/usr/share/locale/locale.alias' in mode r stat()-ing `/usr/share/locale/locale.alias' (fd 3) for its size File `/usr/share/locale/locale.alias' size is 2586 Closing file `/usr/share/locale/locale.alias' Explicitely specified target charset: UTF-8 Adding convertor `built-in' Adding convertor `librecode' Initializing language ru Fake-opening stdin/stdout in mode r+b enconv: converting `STDIN': TeX..UTF-8 trying to convert `STDIN' using built-in trying to convert `STDIN' using librecode 4. These are the packages that would be merged, in order: Calculating dependencies... done! [ebuild UD] app-i18n/enca-1.9 [1.9-r1] USE="(-doc%)" 0 kB Total: 1 package (1 downgrade), Size of downloads: 0 kB ... build/install (version downgrade) process skipped ... 5. built-in librecode iconv extern # UNEXPECTED (BUG?): now librecode used by default (as first) converter in enca, but I'm not using 'recode' use flag. librecode saved from previous installation (in step 1). 6. Opening file `/usr/share/locale/locale.alias' in mode r stat()-ing `/usr/share/locale/locale.alias' (fd 3) for its size File `/usr/share/locale/locale.alias' size is 2586 Closing file `/usr/share/locale/locale.alias' Explicitely specified target charset: UTF-8 Adding convertor `built-in' Adding convertor `librecode' Initializing language ru Fake-opening stdin/stdout in mode r+b enconv: converting `STDIN': TeX..UTF-8 trying to convert `STDIN' using built-in trying to convert `STDIN' using librecode 7. emerge -C recode >>> These are the packages that would be unmerged: app-text/recode selected: 3.6-r2 protected: none omitted: none ... uninstall process skipped ... 8. enca: error while loading shared libraries: librecode.so.0: cannot open shared object file: No such file or directory 9. enconv: error while loading shared libraries: librecode.so.0: cannot open shared object file: No such file or directory 10. These are the packages that would be merged, in order: Calculating dependencies... done! [ebuild R ] app-i18n/enca-1.9 0 kB Total: 1 package (1 reinstall), Size of downloads: 0 kB ... rebuild/install process skipped ... 11. built-in iconv extern # Now librecode NOT USED! By default (as first) converter enca use iconv. 12. Opening file `/usr/share/locale/locale.alias' in mode r stat()-ing `/usr/share/locale/locale.alias' (fd 3) for its size File `/usr/share/locale/locale.alias' size is 2586 Closing file `/usr/share/locale/locale.alias' Explicitely specified target charset: UTF-8 Adding convertor `built-in' Adding convertor `iconv' Initializing language ru Fake-opening stdin/stdout in mode r+b enconv: converting `STDIN': TeX..UTF-8 trying to convert `STDIN' using built-in trying to convert `STDIN' using iconv enconv: no convertor is able/allowed to perform conversion TeX..UTF-8 on file `STDIN' ... normal TeX/UTF-8 formatted output (man gpasswd) skipped ... Expected Results: 1,2. app-i18n/enca-1.9-r1 must be installed with GNU recode library -- it's OK. 3. BUG: enca with librecode can't convert by pipe: STDOUT empty, in this step I need to see TeX/UTF-8 formatted output of /usr/share/man/man1/gpasswd (original English `man gpasswd` page). 4. app-i18n/enca-1.9 must be installed -- it's OK. 5. app-i18n/enca-1.9 ebuild (configure script) MUST(?) build enca without GNU recode library (BUG?). 6. Repeat BUG in step 3 7. Uninstall unneeded recode library -- it's OK. 8,9: BROKEN LINK (BUG): though librecode removed, enca continue use this, however app-i18n/enca-1.9 ebuild not have obvious dependency from text-app/recode. 10. app-i18n/enca-1.9 must be reinstalled -- it's OK. 11. It's VERY GOOD for me: at now librecode NOT USED! 12. It's VERY GOOD for me - it's expected result! # uname -a Linux pavilion 2.6.25-hardened-r13 #1 SMP PREEMPT Tue Jan 27 04:52:20 MSK 2009 x86_64 Intel(R) Pentium(R) 4 CPU 3.40GHz GenuineIntel GNU/Linux # emerge --info Portage 2.2_rc20 (hardened/linux/amd64/2008.0/desktop, gcc-3.4.6, glibc-2.6.1-r0, 2.6.25-hardened-r13 x86_64) ================================================================= System uname: Linux-2.6.25-hardened-r13-x86_64-Intel-R-_Pentium-R-_4_CPU_3.40GHz-with-glibc2.3.2 Timestamp of tree: Tue, 27 Jan 2009 19:45:01 +0000 ccache version 2.4 [enabled] app-shells/bash: 3.2_p39 dev-java/java-config: 1.3.7-r1, 2.1.6-r1 dev-lang/python: 2.5.2-r7 dev-util/ccache: 2.4-r7 dev-util/cmake: 2.4.6-r1 sys-apps/baselayout: 1.12.11.1 sys-apps/sandbox: 1.2.18.1-r2 sys-devel/autoconf: 2.13, 2.63 sys-devel/automake: 1.5, 1.7.9-r1, 1.9.6-r2, 1.10.2 sys-devel/binutils: 2.18-r3 sys-devel/gcc-config: 1.4.0-r4 sys-devel/libtool: 1.5.26 virtual/os-headers: 2.6.27-r2 ACCEPT_KEYWORDS="amd64" CBUILD="x86_64-pc-linux-gnu" CFLAGS="-O2 -march=nocona -fforce-addr -fomit-frame-pointer" CHOST="x86_64-pc-linux-gnu" CONFIG_PROTECT="/etc" CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/revdep-rebuild /etc/splash /etc/terminfo /etc/udev/rules.d" CXXFLAGS="-O2 -march=nocona -fforce-addr -fomit-frame-pointer" DISTDIR="/usr/portage/distfiles" FEATURES="ccache collision-protect distlocks fixpackages parallel-fetch preserve-libs protect-owned sandbox sfperms strict unmerge-orphans userfetch" GENTOO_MIRRORS="ftp://mirror.yandex.ru/gentoo-distfiles" LDFLAGS="-Wl,-O1" LINGUAS="ru en" MAKEOPTS="-j3" PKGDIR="/usr/portage/packages" PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages" PORTAGE_TMPDIR="/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="/usr/portage/local" SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage" USE="X a52 aac acl acpi afs aim alsa amd64 amr audiofile bash-completion berkdb bitmap-fonts bluetooth branding bzip2 cairo caps cario cddb cdparanoia cdr cli consolekit cracklib crypt css cups custom-optimization dbus djvu dmx dri dts dv dvd dvdr dvdread dvi emboss encode exif expat fam fbcondecor fbsplash ffmpeg firefox flac flash foomaticdb ftp gd gdbm gif glitz gnutls gphoto2 gpm gs gstreamer hal hardened iconv icq id3tag ieee1394 imagemagick imap imlib isdnlog jabber jack java jbig jpeg jpeg2k justify kde kdeenablefinal kdehiddenvisibility lame lcms libnotify lm_sensors logitech-mouse lzo mad maildir mailwrapper midi mikmod mime ming mmap mmx mng mp3 mpeg mplayer msn mudflap multilib musepack nas ncurses network nis nls nntp nptl nptlonly nsplugin ogg openexr opengl openmp oscar pam pcre pda pdf perl pic pie png ppds pppd python qt3 quicktime rdesktop readline reflection rle samba sasl scanner sdl session shorten slang sndfile snmp sockets speex spell spl sse sse2 sse3 ssl ssp startup-notification subversion svg svgz sysfs t1lib theora threads tidy tiff timidity truetype truetype-fonts type1-fonts unicode urandom usb userlocales v4l v4l2 vcd vorbis wavpack wifi wma wmf x264 xattr xcb xcomposite xface xine xml xmlrpc xorg xpm xscreensaver xsl xulrunner xv xvid yahoo yv12 zlib" ALSA_CARDS="intel8x0 intel8x0m" 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" ELIBC="glibc" INPUT_DEVICES="keyboard mouse evdev synaptics" KERNEL="linux" LINGUAS="ru en" USERLAND="GNU" VIDEO_CARDS="fglrx" Unset: CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, LANG, LC_ALL, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Created attachment 180569 [details] New (bump) ebuild to resolve above-listed problems My ebuild have small (cosmetics) difference from app-i18/enca-1.9-r1. This resolve above-listed problems with enca builds, but not resolve (probably) bugs in the GNU Recode library. Please, check on other architectures/systems.
Please link only to English language sources. :)
(In reply to comment #2) > Please link only to English language sources. :) Well, I will try! :)