Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 85074 - dev-java/bsf-2.3.0-r2 fails emerge
Summary: dev-java/bsf-2.3.0-r2 fails emerge
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Library (show other bugs)
Hardware: AMD64 Linux
: High normal (vote)
Assignee: Java team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-03-13 05:37 UTC by Simone Piunno
Modified: 2005-03-23 18:31 UTC (History)
0 users

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Simone Piunno 2005-03-13 05:37:04 UTC
it complains about a deprecated API and then fails compilation

Reproducible: Always
Steps to Reproduce:
1. emerge bsf-rhino
2.
3.

Actual Results:  
compile:
    [javac] Compiling 23 source files to
/var/tmp/portage/bsf-2.3.0-r2/work/bsf-2.3.0/src/bsf/build/classes
    [javac]
/var/tmp/portage/bsf-2.3.0-r2/work/bsf-2.3.0/src/bsf/src/org/apache/bsf/engines/javascript/JsContextStub.java:201:
cannot resolve symbol
    [javac] symbol  : method getThisObj ()
    [javac] location: class org.mozilla.javascript.NativeCall
    [javac]                 obj = call.getThisObj();
    [javac]                           ^
    [javac] Note: Some input files use or override a deprecated API.
    [javac] Note: Recompile with -deprecation for details.
    [javac] 1 error

BUILD FAILED


Portage 2.0.51.19 (default-linux/amd64/2004.3, gcc-3.4.3,
glibc-2.3.4.20050125-r0, 2.6.10-gentoo-r7 x86_64)
=================================================================
System uname: 2.6.10-gentoo-r7 x86_64 AMD Athlon(tm) 64 Processor 3200+
Gentoo Base System version 1.6.10
Python:              dev-lang/python-2.3.5 [2.3.5 (#1, Feb 18 2005, 14:42:07)]
ccache version 2.3 [enabled]
dev-lang/python:     2.3.5
sys-devel/autoconf:  2.59-r6, 2.13
sys-devel/automake:  1.7.9-r1, 1.8.5-r3, 1.5, 1.4_p6, 1.6.3, 1.9.5
sys-devel/binutils:  2.15.92.0.2-r5
sys-devel/libtool:   1.5.10-r5
virtual/os-headers:  2.6.8.1-r3
ACCEPT_KEYWORDS="amd64 ~amd64"
AUTOCLEAN="yes"
CFLAGS="-O2 -pipe -march=k8 -funit-at-a-time -frename-registers -fweb"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3.4/env
/usr/kde/3.4/share/config /usr/kde/3.4/shutdown /usr/kde/3/share/config
/usr/lib/X11/xkb /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/bind /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-O2 -pipe -march=k8 -funit-at-a-time -frename-registers -fweb"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs autoconfig candy ccache distlocks parallel-fetch sandbox"
GENTOO_MIRRORS="ftp://ftp-stud.fht-esslingen.de/pub/Mirrors/gentoo/
ftp://mirrors.sec.informatik.tu-darmstadt.de/gentoo/
http://ftp.uni-erlangen.de/pub/mirrors/gentoo"
LANG="it_IT.UTF-8"
LC_ALL="it_IT.UTF-8"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="amd64 X a52 aalib acl acpi adns alsa apache2 app-crypt/gnupg:idea
app-crypt/gpgme:smime arts artswrappersuid audiofile avi bash-completion berkdb
bidi bigger-fonts bitmap-fonts bootsplash caps cdda cddb cdio cdparanoia cdr
cluster crypt cups curl dba dev-dotnet/mono:nptl dev-util/eric:idl directfb
divx4linux doc dts dv dvd dvdr dvdread encode esd faad fam fbcon ffmpeg flac
font-server fortran fpx freetype gd gdbm gdm gif gimpprint gnutls gphoto2 gpm
graphviz gstreamer gtk gtk2 guile hal httpd icq imagemagick imap imlib innodb
ipv6 ithreads jabber jack java jbig jp2 jpeg jpeg2k junit kde
kde-base/kdeadmin:foreign-package kde-base/kdeadmin:foreign-sysvinit
kde-base/kdemultimedia:cdparanoia ladcca lcms ldap libcaca libwww live lzo lzw
lzw-tiff mad maildir makecheck media-sound/museseq:fluidsynth mikmod motif
mozilla mp3 mpeg multilib mysql ncurses net-misc/openssh:X509
net-misc/openssh:chroot net-misc/openssh:sftplogging net-misc/openssh:skey
net-www/apache:threads net-www/mozilla-firefox:xprint net-www/mozilla:mozp3p
net-www/mozilla:mozsvg network nls nptl nsl nvidia ogg oggvorbis openexr opengl
oss pam pcre pdflib perl png python qt readline rrdtool rtc samba sasl sdl slang
speex spell ssl stream svg sys-devel/libperl:threads tcltk tcpd tetex tga theora
threads tiff truetype truetype-fonts type1-fonts unicode usb userlocales utf8
vcd vim-with-x vorbis wmf xine xml xml2 xmms xpm xprint xrandr xv xvid xvmc zeo
zlib linguas_en linguas_it"
Unset:  ASFLAGS, CBUILD, CTARGET, LDFLAGS
Comment 1 Jan Brinkmann (RETIRED) gentoo-dev 2005-03-13 06:18:25 UTC
that was already fixed, please do 'emerge sync' and try again. feel free to reopen if you still experiencing such problems.
Comment 2 Simone Piunno 2005-03-20 02:31:33 UTC
emerge sync doesn't help, the problem is still there.
Comment 3 Jan Brinkmann (RETIRED) gentoo-dev 2005-03-20 06:07:07 UTC
that was the bug where it was fixed, if you still have this problem then you've got an old ebuild in an local overlay or something. the bug itself is fixed.

*** This bug has been marked as a duplicate of 75578 ***
Comment 4 Simone Piunno 2005-03-20 06:58:15 UTC
I'm afraid I have to insist, there's no such overlay.
The bug is still there.

roentgen ~ # equery which bsf
/usr/portage/dev-java/bsf/bsf-2.3.0-r2.ebuild
roentgen ~ # ls -l /usr/portage/dev-java/bsf/bsf-2.3.0-r2.ebuild
-rw-r--r--  1 root root 1615 29 gen 22:36 /usr/portage/dev-java/bsf/bsf-2.3.0-r2.ebuild
roentgen ~ # md5sum /usr/portage/dev-java/bsf/bsf-2.3.0-r2.ebuild
6a78704b99e7f4dd7f6aed70d827c0e2  /usr/portage/dev-java/bsf/bsf-2.3.0-r2.ebuild
roentgen ~ # grep OVERLAY /etc/make.conf
PORTDIR_OVERLAY=/usr/local/portage
roentgen ~ # find /usr/local/portage|grep bsf
roentgen ~ # ls /usr/local/portage/dev-java/bsf/
ls: /usr/local/portage/dev-java/bsf/: No such file or directory
roentgen ~ # equery which rhino
/usr/portage/dev-java/rhino/rhino-1.6.1-r1.ebuild
roentgen ~ # grep SLOT /usr/portage/dev-java/rhino/rhino-1.6.1-r1.ebuild
SLOT="1.6"
roentgen ~ # grep SLOT /usr/portage/dev-java/rhino/rhino-1.5*
SLOT="1.5"
roentgen ~ # grep rhino /usr/portage/dev-java/bsf/bsf-2.3.0-r2.ebuild
SRC_URI="http://cvs.apache.org/dist/jakarta/bsf/v2.3.0rc1/src/bsf-src-2.3.0.tar.gz mirror://gentoo/bsf-rhino-1.5.patch.bz2"
IUSE="doc jython rhino jikes"
        rhino? ( =dev-java/rhino-1.5* )
        epatch ${WORKDIR}/bsf-rhino-1.5.patch
        if use rhino; then
                java-pkg_jar-from rhino-1.5 || die "Missing rhino"
        use rhino && cp="${cp}:$(java-config -p rhino-1.5)"

Comment 5 Jan Brinkmann (RETIRED) gentoo-dev 2005-03-20 07:13:54 UTC
in this case, re-emerge rhino-1.5, afterwards everything should be fine
Comment 6 Thomas Matthijs (RETIRED) gentoo-dev 2005-03-20 07:15:54 UTC
did it actualy update rhino?
what is the output of 
equery list -i rhino

try emerge -uvD bsf


Comment 7 Simone Piunno 2005-03-20 08:38:02 UTC
roentgen ~ # equery list -i rhino
[ Searching for package 'rhino' in all categories among: ]
 * installed packages
[I--] [  ] dev-java/rhino-1.5.5-r1 (1.5)
[I--] [M ] dev-java/rhino-1.6.1 (1.6)

I don't have the rhino use flag, so it doesn't depend on it:

roentgen ~ # emerge -uvDp bsf

These are the packages that I would merge, in order:

Calculating dependencies            ...done!
[ebuild  NS   ] dev-java/servletapi-2.4-r1  +doc -jikes 0 kB
[ebuild     U ] dev-java/bsh-2.0_beta2 [2.0_beta1-r1] +doc -gnome -jikes +junit +kde +readline 1,049 kB
[ebuild  N    ] dev-java/bsf-2.3.0-r2  +doc -jikes -jython -rhino 0 kB

Anyway, I've re-emerged rhino, both 1.5 and 1.6, and then launched emerge -uvD bsh.  It fails while installing bsh:

roentgen ~ # emerge -uvD bsf
Calculating dependencies                        ...done!
>>> emerge (1 of 2) dev-java/bsh-2.0_beta2 to /
>>> md5 src_uri ;-) bsh-2.0b2-src.jar
>>> md5 src_uri ;-) beanshell-icon.png
>>> Unpacking source...
 * Applying bsh2-build.patch ...                                          [ ok ]
 * Applying bsh2-readline.patch ...                                       [ ok ]
>>> Source unpacked.
Could not find package bsf-2.3
Buildfile: build.xml

builddir:

compile:
    [javac] Compiling 148 source files to /var/tmp/portage/bsh-2.0_beta2/work/Be
anShell/classes
    [javac] /var/tmp/portage/bsh-2.0_beta2/work/BeanShell/bsf/src/TestBshBSF.jav
a:2: package org.apache.bsf does not exist
    [javac] import org.apache.bsf.*;
    [javac] ^
    [javac] /var/tmp/portage/bsh-2.0_beta2/work/BeanShell/bsf/src/TestBshBSF.jav
a:8: cannot resolve symbol
    [javac] symbol  : class BSFException
    [javac] location: class TestBshBSF
    [javac]             throws BSFException
    [javac]                        ^
    [javac] /var/tmp/portage/bsh-2.0_beta2/work/BeanShell/bsf/src/bsh/util/BeanS
hellBSFEngine.java:12: package org.apache.bsf does not exist
    [javac] import org.apache.bsf.*;
    [javac] ^
    [javac] /var/tmp/portage/bsh-2.0_beta2/work/BeanShell/bsf/src/bsh/util/BeanS
hellBSFEngine.java:13: package org.apache.bsf.util does not exist
...
tons of these errors
...
    [javac] /var/tmp/portage/bsh-2.0_beta2/work/BeanShell/bsf/src/bsh/util/BeanS                                                          hellBSFEngine.java:256: cannot resolve symbol
    [javac] symbol  : class BSFException
    [javac] location: class bsh.util.BeanShellBSFEngine
    [javac]                     throw new BSFException("bsh internal error: "+e.                                                          toString());
    [javac]                                   ^
    [javac] 38 errors
    [javac] 9 warnings

BUILD FAILED
/var/tmp/portage/bsh-2.0_beta2/work/BeanShell/build.xml:132: Compile failed; see                                                           the compiler error output for details.


How come bsh is a dependency of bsf and fails because bsf is not there???
Isn't it a circular dependency problem?
Comment 8 Jan Brinkmann (RETIRED) gentoo-dev 2005-03-20 10:49:39 UTC
another circular dependency. please try:

emerge -uvD bsf 
Comment 9 Simone Piunno 2005-03-20 12:24:31 UTC
OK, this time it worked.  Thank you!

Nonetheless, I think there's something wrong here.  Portage is supposed to work out dependencies automatically, I shouldn't have to figure them out by trial and error.
Comment 10 Gian-Carlo Pascutto 2005-03-22 00:18:22 UTC
Same bug here.

a manual

emerge rhino
emerge bsf

Fixed things.
Comment 11 Jan Brinkmann (RETIRED) gentoo-dev 2005-03-23 18:31:25 UTC
marking as fixed wrt comment #9, thanks for your report.