<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "http://bugs.gentoo.org/bugzilla.dtd">

<bugzilla version="2.22.7"
          urlbase="http://bugs.gentoo.org/"
          maintainer="bugzilla@gentoo.org"
>

    <bug>
          <bug_id>67905</bug_id>
          
          <creation_ts>2004-10-17 10:16 0000</creation_ts>
          <short_desc>scilab-3.0 does not finish emerge with USE=&quot;-tcltk&quot; + broken dependencies</short_desc>
          <delta_ts>2005-03-02 09:24:32 0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>Gentoo Linux</product>
          <component>Ebuilds</component>
          <version>unspecified</version>
          <rep_platform>x86</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          
          <priority>P2</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          
          <everconfirmed>1</everconfirmed>
          <reporter>xanderhsia@comcast.net</reporter>
          <assigned_to>sci@gentoo.org</assigned_to>
          <cc>greg_g@gentoo.org</cc>

      

      
          <long_desc isprivate="0">
            <who>xanderhsia@comcast.net</who>
            <bug_when>2004-10-17 10:16:11 0000</bug_when>
            <thetext>USE=&quot;-tcltk&quot; emerge scilab results in scilab being executed and prompting for input during the compilation 
-------------- Snippet--------------
Type &quot;make tests&quot; in examples directory
  to test link and addinter features
make[1]: Leaving directory `/var/tmp/portage/scilab-3.0/work/scilab-3.0/examples&apos;
making all in tests...
make[1]: Entering directory `/var/tmp/portage/scilab-3.0/work/scilab-3.0/tests&apos;
Type &quot;make tests&quot; in tests directory
  to test the  distribution
 SEE THE README FILE (IMPORTANT)
make[1]: Leaving directory `/var/tmp/portage/scilab-3.0/work/scilab-3.0/tests&apos;
making man in man...
make[1]: Entering directory `/var/tmp/portage/scilab-3.0/work/scilab-3.0/man&apos;
make[2]: Entering directory `/var/tmp/portage/scilab-3.0/work/scilab-3.0/man/eng&apos;
Creating html help files
/var/tmp/portage/scilab-3.0/work/scilab-3.0/bin/scilab -l eng  \
-nwni -e &quot;xmltohtml([],[],&apos;html-rev.xsl&apos;);quit&quot;
        -------------------------------------------
                         Scilab-3.0

                  Copyright (c) 1989-2004
              Consortium Scilab (INRIA, ENPC)
        -------------------------------------------


Startup execution:
  loading initial environment
if with_tk()&amp; ~with_gtk()
                          !--error    44
first argument is incorrect
at line     119 of exec file called by :
exec(&apos;SCI/scilab.star&apos;,-1);;quit


--&gt;quit
Creating whatis.htm in programming
Creating whatis.htm in graphics
----------- End Snippet ------------

I manually typed in quit at the prompt to make it continue. It would do a few more operations and would end up presenting me with a prompt again. After a few of these I killed the emerge.

Reproducible: Always
Steps to Reproduce:
1. USE=&quot;-tcltk&quot; emerge scilab
2.
3.

Actual Results:  
During compilation continuously get input prompts

Expected Results:  
Install without user intervention


emerge info:
Portage 2.0.51_rc9 (default-x86-2004.0, gcc-3.4.2, glibc-2.3.4.20041006-r0,
2.6.8-gentoo-r8 i686)
=================================================================
System uname: 2.6.8-gentoo-r8 i686 AMD Athlon(tm) processor
Gentoo Base System version 1.5.3
distcc 2.18 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632) [disabled]
ccache version 2.3 [enabled]
Autoconf: sys-devel/autoconf-2.59-r5
Automake: sys-devel/automake-1.8.5-r1
Binutils: sys-devel/binutils-2.15.92.0.2-r1
Headers:  sys-kernel/linux26-headers-2.6.8.1-r1
Libtools: sys-devel/libtool-1.5.2-r5
ACCEPT_KEYWORDS=&quot;x86 ~x86&quot;
AUTOCLEAN=&quot;yes&quot;
CFLAGS=&quot;-march=athlon -O3&quot;
CHOST=&quot;i686-pc-linux-gnu&quot;
COMPILER=&quot;&quot;
CONFIG_PROTECT=&quot;/etc /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config
/usr/kde/3.2/share/config /usr/kde/3.3/env /usr/kde/3.3/share/config
/usr/kde/3.3/shutdown /usr/kde/3/share/config /usr/lib/mozilla/defaults/pref
/usr/share/config /usr/share/texmf/dvipdfm/config/
/usr/share/texmf/dvips/config/ /usr/share/texmf/tex/generic/config/
/usr/share/texmf/tex/platex/config/ /usr/share/texmf/xdvi/ /var/qmail/control&quot;
CONFIG_PROTECT_MASK=&quot;/etc/gconf /etc/terminfo /etc/env.d&quot;
CXXFLAGS=&quot;-march=athlon -O3&quot;
DISTDIR=&quot;/usr/portage/distfiles&quot;
FEATURES=&quot;autoaddcvs ccache distlocks sandbox&quot;
GENTOO_MIRRORS=&quot;ftp:///ftp-stud.fht-esslingen.de/pub/Mirrors/gentoo/
http://mirror.tucdemonic.org/gentoo/ http://mirror.datapipe.net/gentoo
http://open-systems.ufl.edu/mirrors/gentoo http://mirror.datapipe.net/gentoo&quot;
MAKEOPTS=&quot;-j2&quot;
PKGDIR=&quot;/usr/portage/packages&quot;
PORTAGE_TMPDIR=&quot;/var/tmp&quot;
PORTDIR=&quot;/usr/portage&quot;
PORTDIR_OVERLAY=&quot;/usr/local/portage&quot;
SYNC=&quot;rsync://rsync.gentoo.org/gentoo-portage&quot;
USE=&quot;3dnow 3dnowex X acl acpi acpi4linux aim alsa apm atlas avi berkdb
bitmap-fonts blas bonobo cairo cddb cdparanoia cdr cdrom chroot clisp crypt
cscope cups dio directfb divx4linux djbfft dnd dts dv dvd dvdr dvdread eds
encode erandom evms2 evo exif f77 faac faad fam fastcgi fbcon ffmpeg fftw flac
foomaticdb freetype ftp gb gd gdbm gif gimp gimpprint ginac gnome gnomedb
gnuplot gphoto2 gpm gsl gstreamer gtk gtk2 gtkhtml guile hal hbci hdf5 icq
ieee1394 imagemagick imap imlib ipv6 irda jabber jack jack-tmpfs java javascript
jikes joystick jpeg kde lcms libwww lirc lufsusermount mad maildir matroska mcal
mikmod mime mmap mmx mmx2 motif mozilla mozsvg mp3 mpeg mpeg4 mpi mplayer mysql
ncurses nls nptl nvidia odbc ofx oggvorbis openal opengl opie oss pam pcre pda
pdf pdflib perl pic plotutils png posix postgres ppds python qt quicktime quotes
readline rtc samba scanner sdl slang sndfile snortsam spamassassin spell sse ssl
stroke svg svga tcpd tetex theora tiff transcode truetype usb v4l v4l2 vnc wmf
x86 xfs xine xinerama xml xml2 xmms xosd xprint xrandr xsl xv xvid xvmc zlib&quot;</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>greg_g@gentoo.org</who>
            <bug_when>2004-11-04 10:22:32 0000</bug_when>
            <thetext>Created an attachment (id=43294)
scilab-initialization.patch

Could you try the attached patch? It seems to work here.

While you&apos;re at it, could you clean up a bit the dependencies?
I did some tests: to compile against gtk-2, only gtk+-2, libgtkhtml-2
and libzvt are needed. glib-2 can be removed, and gnome-libs-1 should
probably be moved to the gtk-1 only case.
virtual/x11 is also redundant.

Moreover, here scilab does not compile with --without-tk if gtk is not 
installed. So, if someone has -tcltk -gtk, the ebuild should force a default
between them.

In the end, if the default is gtk, RDEPEND should look something like:
RDEPEND=&quot;sys-libs/ncurses
	atlas? ( dev-libs/atlas )
	gtk? (
		media-libs/jpeg
		media-libs/libpng
		sys-libs/zlib
		gtk2? ( =x11-libs/gtk+-2*
			=gnome-extra/libgtkhtml-2*
			x11-libs/libzvt
			=gnome-extra/libgtkhtml-2*
		)
		!gtk2? ( =x11-libs/gtk+-1.2*
			 &gt;=gnome-base/gnome-libs-1.4.2
		)
	)
	!gtk? ( &gt;=dev-lang/tk-8.4
		&gt;=dev-lang/tcl-8.4 )
	Xaw3d? ( x11-libs/Xaw3d )&quot;
(or the other way around if tk is default, or maybe print an error and die
in the -gtk -tcltk case?)

grepping through the sources, it seems that libxslt is not needed
(sablotron is used to convert xml to html) so it can be removed from DEPEND.
</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>greg_g@gentoo.org</who>
            <bug_when>2005-01-26 10:56:15 0000</bug_when>
            <thetext>sci team: can I commit a revision with the cleanup suggested above?
</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>greg_g@gentoo.org</who>
            <bug_when>2005-03-02 09:24:32 0000</bug_when>
            <thetext>Committed as scilab-3.0-r1.</thetext>
          </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="1"
              isprivate="0"
          >
            <attachid>43294</attachid>
            <date>2004-11-04 10:22 0000</date>
            <desc>scilab-initialization.patch</desc>
            <filename>scilab-initialization.patch</filename>
            <type>text/plain</type>
            <data encoding="base64">ZGlmZiAtdXIgc2NpbGFiLTMuMC5vcmlnL3NjaWxhYi5zdGFyIHNjaWxhYi0zLjAvc2NpbGFiLnN0
YXIKLS0tIHNjaWxhYi0zLjAub3JpZy9zY2lsYWIuc3RhcgkyMDA0LTExLTA0IDE4OjE5OjM2LjAw
MDAwMDAwMCArMDEwMAorKysgc2NpbGFiLTMuMC9zY2lsYWIuc3RhcgkyMDA0LTExLTA0IDE4OjIx
OjAxLjAwMDAwMDAwMCArMDEwMApAQCAtMTE4LDcgKzExOCw3IEBACiAKIC8vIFNldCB0aGUgcHJl
ZmVycmVkIGJyb3dzZXIgID09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09
PQogZ2xvYmFsICVicm93c2VoZWxwCi1pZiB3aXRoX3RrKCkmIH53aXRoX2d0aygpCitpZiB3aXRo
X3RrKCkKICAgJWJyb3dzZWhlbHA9IlNjaWxhYiBCcm93c2VyIjsKIGVsc2VpZiB3aXRoX2d0aygp
CiAgICVicm93c2VoZWxwPSJoZWxwIHdpZGdldCI7Cg==
</data>        

          </attachment>
    </bug>

</bugzilla>