after 'emerge sqlite' tclsh fails to find Sqlite3 package using 'package require sqlite3' It seems that sqlite generates an appropriate file 'pkgIndex.tcl' and saves it in /usr/lib64/sqlite-3.6.22/pkgIndex.tcl BUT 'tclsh' looks for 'pkgIndex.tcl' files in its own directory here /usr/lib64/tcl8.5 and hence fails to find it. Copying the directory /usr/lib64/sqlite-3.6.22 into /usr/lib64/tcl8.5 solves the problem. A symbolic link doesn't fix it. Is this something the user needs to do or could 'emerge' alter the path where it installs the library and index file? Or am I missing something or doing something wrong? Reproducible: Always Steps to Reproduce: 1. emerge tcl 2. USE="tcl" emerge sqlite 3. fire up 'tclsh' and type 'package require sqlite3' Actual Results: % package require sqlite3 can't find package sqlite3 Expected Results: % package require sqlite3 3.6.22 % # emerge --info sqlite Portage 2.1.7.16 (default/linux/powerpc/ppc64/10.0/64bit-userland/desktop, gcc-4.3.4, glibc-2.10.1-r1, 2.6.31-gentoo-r10 ppc64) ================================================================= System Settings ================================================================= System uname: Linux-2.6.31-gentoo-r10-ppc64-PPC970FX,_altivec_supported-with-gentoo-1.12.13 Timestamp of tree: Wed, 10 Mar 2010 22:30:24 +0000 app-shells/bash: 4.0_p35 dev-lang/python: 2.6.4 dev-util/cmake: 2.6.4-r3 sys-apps/baselayout: 1.12.13 sys-apps/sandbox: 1.6-r2 sys-devel/autoconf: 2.13, 2.63-r1 sys-devel/automake: 1.6.3-r1, 1.9.6-r2, 1.10.3 sys-devel/binutils: 2.19.1-r1 sys-devel/gcc: 4.3.4 sys-devel/gcc-config: 1.4.1 sys-devel/libtool: 2.2.6b virtual/os-headers: 2.6.30-r1 ACCEPT_KEYWORDS="ppc64" ACCEPT_LICENSE="* -@EULA" CBUILD="powerpc64-unknown-linux-gnu" CFLAGS="-O2 -pipe -mcpu=970 -mtune=970 -maltivec -mabi=altivec" CHOST="powerpc64-unknown-linux-gnu" CONFIG_PROTECT="/etc /usr/share/X11/xkb" CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/udev/rules.d" CXXFLAGS="-O2 -pipe -mcpu=970 -mtune=970 -maltivec -mabi=altivec" DISTDIR="/usr/portage/distfiles" FEATURES="assume-digests distlocks fixpackages news parallel-fetch protect-owned sandbox sfperms strict unmerge-logs unmerge-orphans userfetch" GENTOO_MIRRORS="ftp://mirror.mcs.anl.gov/pub/gentoo/ http://distfiles.gentoo.org/ http://www.ibiblio.org/pub/Linux/distributions/gentoo/" LANG="en_US.utf8" LDFLAGS="-Wl,-O1" MAKEOPTS="-j3" PKGDIR="/usr/portage/packages" PORTAGE_CONFIGROOT="/" 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="/var/tmp" PORTDIR="/usr/portage" SYNC="rsync://rsync.gentoo.org/gentoo-portage" USE="X a52 aac acl altivec berkdb branding bzip2 cairo cdr cli consolekit cracklib crypt cxx dbus doc dri dts dvd dvdr eds emboss encode evo fam firefox flac gdbm gif gnome gpm gstreamer gtk hal ibm iconv ipv6 jpeg ldap libnotify mad mikmod mng modules mp3 mp4 mpeg mudflap ncurses nls nptl nptlonly ogg opengl openmp pam pcre pdf perl png ppc64 ppds pppd python qt3support quicktime readline reflection sdl session spell spl ssl startup-notification svg sysfs tcpd thunar tiff truetype unicode usb vorbis x264 xml xorg xulrunner xv xvid zlib" 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 authn_alias authn_anon 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 deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" ELIBC="glibc" INPUT_DEVICES="evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" RUBY_TARGETS="ruby18" USERLAND="GNU" VIDEO_CARDS="radeon" Unset: CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, LC_ALL, LINGUAS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, PORTDIR_OVERLAY ================================================================= Package Settings ================================================================= dev-db/sqlite-3.6.22-r2 was built with the following: USE="doc fts3 readline tcl threadsafe -debug -extensions -icu -secure-delete -soundex -test"
Works fine for me, both sqlite-3.7.7.1 and sqlite-3.7.10 with dev-lang/tcl-8.5.9. sqlite still puts its tcl files in ${EPREFIX}/usr/$(get_libdir)/${P}, but somehow tclsh is finding those files on my system. $ tclsh % package require sqlite3 3.7.7.1 $ tclsh % package require sqlite3 3.7.10
(In reply to comment #1) > Works fine for me, both sqlite-3.7.7.1 and sqlite-3.7.10 with > dev-lang/tcl-8.5.9. > > sqlite still puts its tcl files in ${EPREFIX}/usr/$(get_libdir)/${P}, but > somehow tclsh is finding those files on my system. > > $ tclsh > % package require sqlite3 > 3.7.7.1 $ tclsh % package require sqlite3 3.7.7.1 % It works for me too, with tcl-8.5.9 and sqlite-3.7.7.1 on ppc64 and amd64. I did not check *how* tcl finds the sqlite files but this bug does appear to have been fixed. My thanks to whomever... Stephen Lewis
Closing then, thanks for testing.