Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 281357 - dev-db/sqlite-3.6.17 fails to build due to missing tclsh (with USE=-tcl)
Summary: dev-db/sqlite-3.6.17 fails to build due to missing tclsh (with USE=-tcl)
Status: RESOLVED DUPLICATE of bug 281294
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: AMD64 Linux
: High normal with 1 vote (vote)
Assignee: Arfrever Frehtes Taifersar Arahesis (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-08-13 17:24 UTC by Simeon Maryasin
Modified: 2009-08-19 10:24 UTC (History)
2 users (show)

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


Attachments
build.log (build.log,7.77 KB, text/plain)
2009-08-13 17:26 UTC, Simeon Maryasin
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Simeon Maryasin 2009-08-13 17:24:59 UTC
Problem happened while updating from dev-db/sqlite-3.6.16.
Part of build log:

>>> Compiling source in /var/tmp/portage/dev-db/sqlite-3.6.17/work/sqlite-3.6.17 ...
make -j5 TCLLIBDIR=/usr/lib64/sqlite-3.6.17 
cat ./src/sqlite.h.in | tclsh ./tool/mksqlite3h.tcl `cat ./VERSION` > sqlite3.h
x86_64-pc-linux-gnu-gcc  -O2 -march=native -mtune=native -pipe -o lemon ./tool/lemon.c
/bin/sh: tclsh: command not found
x86_64-pc-linux-gnu-gcc  -O2 -march=native -mtune=native -pipe -o mkkeywordhash -DSQLITE_OMIT_LOAD_EXTENSION=1 -DSQLITE_ENABLE_COLUMN_METADATA  ./tool/mkkeywordhash.c
make: *** [sqlite3.h] Error 127
make: *** Waiting for unfinished jobs....
./mkkeywordhash >keywordhash.h
cp ./src/lempar.c .
 * 
 * ERROR: dev-db/sqlite-3.6.17 failed.
 * Call stack:
 *               ebuild.sh, line   49:  Called src_compile
 *             environment, line 2836:  Called die
 * The specific snippet of code:
 *       emake TCLLIBDIR="/usr/$(get_libdir)/${P}" || die "emake failed"
 *  The die message:
 *   emake failed
 * 
 * If you need support, post the topmost build error, and the call stack if relevant.
 * A complete build log is located at '/var/tmp/portage/dev-db/sqlite-3.6.17/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/dev-db/sqlite-3.6.17/temp/environment'.
 * 


Reproducible: Always




Portage 2.1.6.13 (default/linux/amd64/2008.0/desktop, gcc-4.3.4, glibc-2.10.1-r0, 2.6.30-gentoo-r4 x86_64)
=================================================================
System uname: Linux-2.6.30-gentoo-r4-x86_64-Intel-R-_Core-TM-2_Quad_CPU_Q6600_@_2.40GHz-with-gentoo-2.0.1
Timestamp of tree: Thu, 13 Aug 2009 16:15:03 +0000
distcc 3.1 x86_64-pc-linux-gnu [disabled]
app-shells/bash:     4.0_p28
dev-java/java-config: 2.1.8-r1
dev-lang/python:     2.6.2-r1, 3.1
dev-util/cmake:      2.6.4-r2
sys-apps/baselayout: 2.0.1
sys-apps/openrc:     0.4.3-r3
sys-apps/sandbox:    2.0
sys-devel/autoconf:  2.13, 2.63-r1
sys-devel/automake:  1.5, 1.8.5-r3, 1.9.6-r2, 1.10.2, 1.11
sys-devel/binutils:  2.19.1-r1
sys-devel/gcc-config: 1.4.1
sys-devel/libtool:   2.2.6a
virtual/os-headers:  2.6.30-r1
ACCEPT_KEYWORDS="amd64 ~amd64"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -march=native -mtune=native -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/share/config /var/lib/hsqldb"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/php/apache2-php5/ext-active/ /etc/php/cgi-php5/ext-active/ /etc/php/cli-php5/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 /etc/udev/rules.d"
CXXFLAGS="-O2 -march=native -mtune=native -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="collision-protect distlocks fixpackages parallel-fetch protect-owned sandbox sfperms strict unmerge-orphans userfetch"
GENTOO_MIRRORS="ftp://ftp.corbina.net/pub/Linux/gentoo/ ftp://ftp.fi.debian.org/pub/gentoo/"
LANG="ru_RU.UTF-8"
LDFLAGS="-Wl,-O1"
LINGUAS="ru en"
MAKEOPTS="-j5"
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"
PORTDIR_OVERLAY="/usr/local/portage/layman/sunrise /usr/local/portage/layman/arcon /usr/local/portage/layman/pro-audio /usr/local/portage/layman/rion /usr/local/portage"
SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage"
USE="X a52 aac aalib acl acpi alsa amd64 apache2 aspell bash-completion berkdb bluetooth branding bzip2 cairo cdda cdparanoia cdr cjk cli consolekit cracklib crypt cups curl cvs dbus djvu dri dts dv dvd dvdr eds emboss encode esd evo exif fam fbcon ffmpeg firefox flac foomaticdb fortran ftp gcj gdbm gif gimp gpm gsm gstreamer gtk h323 hal iconv id3tag idn ieee1394 ipv6 isdnlog jabber jack java jingle jpeg jpeg2k ladspa lame lash libnotify libsamplerate lzo mad midi mikmod mmx modplug mono motif mp3 mp4 mpeg mplayer mudflap multilib mysql ncurses nls nptl nptlonly nsplugin offensive ogg opengl openmp pam pcre pdf perl php png ppds pppd python qt3 qt3support qt4 quicktime rar readline reflection scanner sdl session smp sndfile soundtouch sox speex spell spl sqlite sse sse2 ssl startup-notification svg sysfs tcpd theora tiff timidity truetype twolame unicode usb v4l v4l2 vamp vim-syntax vorbis wavpack webkit wmf x264 xcomposite xml xorg xscreensaver xulrunner xv xvid zip zlib zsh-completion" ALSA_CARDS="hda-intel 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" 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" CAMERAS="samsung canon" ELIBC="glibc" INPUT_DEVICES="keyboard mouse ps2mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="ru en" USERLAND="GNU" VIDEO_CARDS="vesa vga radeonhd radeon fglrx"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, LC_ALL, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 1 Simeon Maryasin 2009-08-13 17:26:00 UTC
Created attachment 201156 [details]
build.log

PS: maybe it is a duplicate of bug 223873, although everything was OK with sqlite-3.6.16 ...
Comment 2 Cesar Garcia 2009-08-14 01:43:32 UTC
The patch sqlite-3.6.17-fix_installation.patch forces the Makefile to use tclsh whenever tcl is installed or not. As a workaround i commented out the 
epatch "${FILESDIR}/${P}-fix_installation.patch" line to build sqlite.
Comment 3 Rafael Zalamena 2009-08-14 04:16:22 UTC
I can confirm this, dev-db/sqlite-3.6.17 wont compile without dev-lang/tcl installed.

sqlite should depend on dev-lang/tcl if using sqlite-3.6.17-fix_installation.patch.

Workaround:
# emerge -1 dev-lang/tcl
# emerge =dev-db/sqlite-3.6.17
Comment 4 Søren Færløv 2009-08-14 08:40:56 UTC
(In reply to comment #2)
> The patch sqlite-3.6.17-fix_installation.patch forces the Makefile to use tclsh
> whenever tcl is installed or not. As a workaround i commented out the 
> epatch "${FILESDIR}/${P}-fix_installation.patch" line to build sqlite.
> 

A better way to deal with this problem would be, instead of commenting the epatch line, to prepend it with "use tcl &&", like this:

use tcl && epatch "${FILESDIR}/${P}-fix_installation.patch"

This way portage only applies the patch when the tcl useflag is enabled.
Comment 5 Søren Færløv 2009-08-14 08:41:55 UTC
See #281357 for a possible fix/workaround.
Comment 6 Søren Færløv 2009-08-14 08:43:30 UTC
Terribly sorry for the noise, the above reply was meant for bug #281294.
Comment 7 Jonathan Heaney 2009-08-14 14:22:06 UTC
Ran into this during an @system upgrade on ~x86 after gcc-4.4.1 update, Søren's fix for the ebuild works perfectly here for sqlite -tcl.
Comment 8 Arfrever Frehtes Taifersar Arahesis (RETIRED) gentoo-dev 2009-08-14 15:52:11 UTC

*** This bug has been marked as a duplicate of bug 281294 ***
Comment 9 Gregg Casillo 2009-08-14 17:00:15 UTC
Can we get a legitimate patch for 3.6.17? Not everybody wants to rifle through bug reports here to get stuff to build. And FWIW, the fix is in comment #5 of bug #223873 though you need to edit that patch to match the version number here:

http://bugs.gentoo.org/show_bug.cgi?id=223873#c5
Comment 10 Steev Klimaszewski (RETIRED) gentoo-dev 2009-08-15 04:08:28 UTC
(In reply to comment #9)
> Can we get a legitimate patch for 3.6.17? Not everybody wants to rifle through
> bug reports here to get stuff to build. And FWIW, the fix is in comment #5 of
> bug #223873 though you need to edit that patch to match the version number
> here:
> 
> http://bugs.gentoo.org/show_bug.cgi?id=223873#c5
> 

Not quite true - the fix from comment #4 in this bug is proper - the workaround in that one does not fix it on either ppc or x86-fbsd - applying the patch only when tcl useflag is correct.
Comment 11 Hongjiu Zhang 2009-08-15 14:04:29 UTC
And even built with -tcl, sqlite still need dev-lang/tcl as RDEPEND?
Comment 12 Gregg Casillo 2009-08-17 20:38:59 UTC
(In reply to comment #10)
> (In reply to comment #9)
> > Can we get a legitimate patch for 3.6.17? Not everybody wants to rifle through
> > bug reports here to get stuff to build. And FWIW, the fix is in comment #5 of
> > bug #223873 though you need to edit that patch to match the version number
> > here:
> > 
> > http://bugs.gentoo.org/show_bug.cgi?id=223873#c5
> > 
> 
> Not quite true - the fix from comment #4 in this bug is proper - the workaround
> in that one does not fix it on either ppc or x86-fbsd - applying the patch only
> when tcl useflag is correct.
> 

You are correct, sir. The suggested fix in comment #4 of this bug report worked for me. Thanks!