Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 267661 - dev-libs/newt-0.52.10 has "automagic" dependency on dev-lang/tcl
Summary: dev-libs/newt-0.52.10 has "automagic" dependency on dev-lang/tcl
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Christian Zoffoli (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-04-27 15:44 UTC by Marijn Schouten (RETIRED)
Modified: 2009-08-09 07:22 UTC (History)
0 users

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


Attachments
newt-0.52.10/temp/build.log (build.log,9.39 KB, text/plain)
2009-04-28 09:03 UTC, Marijn Schouten (RETIRED)
Details
Trivial 1-line ebuild patch to fix the problem (newt-0.52.10.ebuild.patch,281 bytes, patch)
2009-06-20 17:42 UTC, Ian Abbott
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Marijn Schouten (RETIRED) gentoo-dev 2009-04-27 15:44:07 UTC
dev-libs/newt-0.52.10 failed to compile:

whiptcl.c: In function ‘Whiptcl_Init’:
whiptcl.c:304: warning: passing argument 3 of ‘Tcl_CreateCommand’ from incompatible pointer type
whiptcl.c:305: warning: passing argument 3 of ‘Tcl_CreateCommand’ from incompatible pointer type
x86_64-pc-linux-gnu-gcc -fPIC -c -march=core2 -O2 -pipe -ggdb -D_GNU_SOURCE -I/usr/include/slang   -o shared/dialogboxes.o dialogboxes.c
x86_64-pc-linux-gnu-gcc -shared -fPIC -o whiptcl.so shared/whiptcl.o shared/dialogboxes.o -L . -lnewt  -ltcl8.5 -lslang -lpopt -lm
/usr/lib/gcc/x86_64-pc-linux-gnu/4.3.3/../../../../x86_64-pc-linux-gnu/bin/ld: cannot find -ltcl8.5
collect2: ld returned 1 exit status

$ eix -I tcl
[U] dev-lang/tcl
     Available versions:  8.4.15 8.4.18 (~)8.4.19 (~)8.5.7 {debug threads}
     Installed versions:  8.4.19(14:58:13 26-10-08)(threads -debug)
     Homepage:            http://www.tcl.tk/
     Description:         Tool Command Language

It seems to need >=dev-lang/tcl-8.5*.
Comment 1 Sebastian Luther (few) 2009-04-27 16:37:14 UTC
Do you have the tcl use flag enabled for dev-libs/newt?
Comment 2 Marijn Schouten (RETIRED) gentoo-dev 2009-04-27 20:23:04 UTC
the tcl use flag is disabled and upgrading tcl first allowed me to install newt:

$ eix -I tcl
[I] dev-lang/tcl
     Available versions:  8.4.15 8.4.18 (~)8.4.19 (~)8.5.7 {debug threads}
     Installed versions:  8.5.7(17:47:39 27-04-09)(threads -debug)
     Homepage:            http://www.tcl.tk/
     Description:         Tool Command Language

$ eix -e newt
[I] dev-libs/newt
     Available versions:  0.52.2 (~)0.52.8 (~)0.52.10 {gpm nls tcl}
     Installed versions:  0.52.10(22:13:12 27-04-09)(gpm nls -tcl)
     Homepage:            https://fedorahosted.org/newt/
     Description:         Redhat's Newt windowing toolkit development files
Comment 3 Lars Wendler (Polynomial-C) (RETIRED) gentoo-dev 2009-04-27 21:57:40 UTC
I can't reproduce your problem so please post your "emerge --info" and attach the build.log file of the failed emerge to this bug.
Comment 4 Marijn Schouten (RETIRED) gentoo-dev 2009-04-28 09:02:04 UTC
Portage 2.1.6.11 (default/linux/amd64/2008.0/desktop, gcc-4.3.3, glibc-2.9_p20081201-r2, 2.6.26-gentoo-r1 x86_64)
=================================================================
System uname: Linux-2.6.26-gentoo-r1-x86_64-Intel-R-_Core-TM-2_CPU_6600_@_2.40GHz-with-gentoo-2.0.0
Timestamp of tree: Mon, 27 Apr 2009 11:00:16 +0000
app-shells/bash:     3.2_p48-r1
dev-lang/python:     2.6.2
dev-python/pycrypto: 2.0.1-r8
dev-util/cmake:      2.6.3-r1
sys-apps/baselayout: 2.0.0
sys-apps/openrc:     0.4.3-r2
sys-apps/sandbox:    1.9
sys-devel/autoconf:  2.13, 2.63-r1
sys-devel/automake:  1.5, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10.2
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.28-r1
ACCEPT_KEYWORDS="amd64 ~amd64"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=core2 -O2 -pipe -ggdb"
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"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /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 /etc/udev/rules.d"
CXXFLAGS="-march=core2 -O2 -pipe -ggdb"
DISTDIR="/usr/portage/distfiles"
FEATURES="collision-protect cvs distlocks fixpackages parallel-fetch protect-owned sandbox sfperms splitdebug strict unmerge-orphans userfetch"
GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/linux/distributions/gentoo"
LANG="en_US.UTF-8"
LDFLAGS="-Wl,-O1"
LINGUAS="en nl"
MAKEOPTS="-j2"
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/portage/local/layman/nouveau /home/marijn/git/gentoo-lisp-overlay /home/marijn/overlay"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="X Xaw3d a52 aac acl acpi alsa amd64 bash-completion berkdb bluetooth branding bzip2 cairo cdr cli cracklib crypt cups dbus dri dts dvd dvdr dvdread eds emacs emboss encode esd evo fam firefox flac fortran gdbm gif gmp gpm gstreamer gtk hal history iconv ipv6 isdnlog jpeg kde kpathsea ldap libnotify lm_sensors mad metric midi mikmod mmx mng mp3 mpeg mudflap multilib mysql ncurses nls nptl nptlonly nvidia offensive ogg opengl openmp pam pcre pdf perl png ppds pppd python qt3 qt3support qt4 quicktime readline reflection sasl sdl session smp speex spell spl sse sse2 ssl startup-notification svg sysfs tcpd theora threads tiff truetype unicode usb vorbis webkit xineramaxml xorg xpm xulrunner xv zlib" ALSA_CARDS="hda-intel" 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="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="en nl" USERLAND="GNU" VIDEO_CARDS="fbdev nouveau nv nvidia"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, LC_ALL, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 5 Marijn Schouten (RETIRED) gentoo-dev 2009-04-28 09:03:08 UTC
Created attachment 189681 [details]
newt-0.52.10/temp/build.log

I reproduced by downgrading tcl.
Comment 6 Lars Wendler (Polynomial-C) (RETIRED) gentoo-dev 2009-04-28 18:46:36 UTC
Seems like this package ignores the tcl USE flag...
Comment 7 Ian Abbott 2009-06-20 17:42:46 UTC
Created attachment 195293 [details, diff]
Trivial 1-line ebuild patch to fix the problem

The ebuild just needs a $(use_with tcl) in the econf options.
Comment 8 Federico Ferri (RETIRED) gentoo-dev 2009-08-09 07:22:33 UTC
fixed. thank you