Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 189388 - Testing request for dev-java/java-gnome-4.0.3
Summary: Testing request for dev-java/java-gnome-4.0.3
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Java (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Java team
URL: http://www.gentoo.org/proj/en/java/ge...
Whiteboard:
Keywords: KEYWORDREQ
Depends on:
Blocks:
 
Reported: 2007-08-18 17:35 UTC by Petteri Räty (RETIRED)
Modified: 2007-10-06 20:59 UTC (History)
2 users (show)

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


Attachments
compile-with-all-jdks log junit failure (compile-with-all-jdks-junit.log,5.53 KB, text/plain)
2007-08-23 15:52 UTC, Tiago Cunha (RETIRED)
Details
compile-with-all-jdks log failure (compile-with-all-jdks-err.log,7.27 KB, text/plain)
2007-08-23 15:55 UTC, Tiago Cunha (RETIRED)
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Petteri Räty (RETIRED) gentoo-dev 2007-08-18 17:35:15 UTC
A redesign/write of the whole java-gnome concept so dropped keywords. Just one package now :)
Please add back your keywords.
Comment 1 Tiago Cunha (RETIRED) gentoo-dev 2007-08-23 15:52:06 UTC
Created attachment 128966 [details]
compile-with-all-jdks log junit failure

It should (R)DEPEND on dev-java/junit.

Portage 2.1.2.12 (default-linux/amd64/2007.0/desktop, gcc-4.1.2, glibc-2.5-r4, 2.6.22-gentoo-r2 x86_64)
=================================================================
System uname: 2.6.22-gentoo-r2 x86_64 Intel(R) Pentium(R) D CPU 3.00GHz
Gentoo Base System release 1.12.9
Timestamp of tree: Thu, 23 Aug 2007 12:50:01 +0000
ccache version 2.4 [enabled]
dev-java/java-config: 1.3.7, 2.0.33-r1
dev-lang/python:     2.4.4-r4
dev-python/pycrypto: 2.0.1-r6
dev-util/ccache:     2.4-r7
sys-apps/sandbox:    1.2.17
sys-devel/autoconf:  2.13, 2.61
sys-devel/automake:  1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10
sys-devel/binutils:  2.17
sys-devel/gcc-config: 1.3.16
sys-devel/libtool:   1.5.24
virtual/os-headers:  2.6.21
ACCEPT_KEYWORDS="amd64"
AUTOCLEAN="yes"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -march=nocona -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/X11/xkb /usr/share/config"
CONFIG_PROTECT_MASK="/etc/env.d /etc/env.d/java/ /etc/gconf /etc/init.d /etc/pam.d /etc/revdep-rebuild /etc/terminfo /etc/udev/rules.d"
CXXFLAGS="-O2 -march=nocona -pipe"
DISTDIR="/usr/portage/distfiles"
EMERGE_DEFAULT_OPTS="-k"
FEATURES="ccache collision-protect distlocks metadata-transfer multilib-strict parallel-fetch sandbox sfperms strict test userfetch userpriv usersandbox"
GENTOO_MIRRORS="ftp://mirrors1.netvisao.pt/gentoo http://darkstar.ist.utl.pt/pub/gentoo http://distfiles.gentoo.org http://www.ibiblio.org/pub/Linux/distributions/gentoo"
MAKEOPTS="-j3"
PKGDIR="/usr/portage/packages"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --delete-after --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages --filter=H_**/files/digest-*"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage"
USE="X acl acpi alsa amd64 arts bash-completion bitmap-fonts branding cairo cdr cli cracklib crypt dbus dri dts dvd dvdr dvdread eds emboss encode evo fam firefox flac gdbm gif gpm hal iconv ipv6 isdnlog jpeg kde kdeenablefinal kdehiddenvisibility mad midi mikmod mmx mp3 mpeg mudflap musepack musicbrainz ncurses nptl nptlonly offensive ogg opengl openmp pam pcre pdf perl png postgres pppd python qt3 qt3support qt4 quicktime readline reflection sdl session spell spl sse sse2 ssl svg tcpd test tiff truetype truetype-fonts type1-fonts unicode vorbis xcomposite xinerama xml xorg xscreensaver xv zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mulaw multi null plug rate route share shm softvol" ELIBC="glibc" INPUT_DEVICES="keyboard mouse" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" USERLAND="GNU" VIDEO_CARDS="i810"
Unset:  CTARGET, INSTALL_MASK, LANG, LC_ALL, LDFLAGS, LINGUAS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, PORTDIR_OVERLAY
Comment 2 Tiago Cunha (RETIRED) gentoo-dev 2007-08-23 15:55:13 UTC
Created attachment 128967 [details]
compile-with-all-jdks log failure

With dev-java/junit-3.8.1-r3  USE="-doc -source" installed.
Comment 3 Petteri Räty (RETIRED) gentoo-dev 2007-08-23 16:44:34 UTC
(In reply to comment #2)
> Created an attachment (id=128967) [edit]
> compile-with-all-jdks log failure
> 
> With dev-java/junit-3.8.1-r3  USE="-doc -source" installed.
> 

Indeed it seems to need junit installed. Dep added and disabled unit tests because they need X11. Of course it would be best to remove the ./configure check when we are not using the jars at all.
Comment 4 Andrew Cowie 2007-08-23 22:18:26 UTC
(In reply to comment #3)
> Indeed it seems to need junit installed. 

It's a test driven development world, yo. The whole idea is that you're _supposed_ to run the test suite :) [Isn't that what the test phase of emerge is for these days?]

I can have someone look into adding a "notests" option or something if its important to you. Just file a bug on GNOME bugzilla if that's what you'd like.

AfC
Sydney
Comment 5 Andrew Cowie 2007-08-23 22:23:04 UTC
(In reply to comment #2)
> compile-with-all-jdks log failure

JUnit, however, has nothing to do with GCC not working properly. That's whacked. If you could go as far as it will with `ebuild ... compile`, then pop into ${S} and run

   V=1 make

it will probably be a bit more informative; likewise, its possible that configure is somehow not finding your GCC correctly (I would have thought this impossible, but then they came along with ccache pretending to be gcc. Nothing surprises me anymore). Have a cat of .config and it might tell you what's up.

AfC
Comment 6 Travis Hansen 2007-08-24 02:52:17 UTC
I'm running ~amd64 and successfully compiled and ran the Experiment example.  portage compiled with dev-java/sun-jdk-1.6.0.02 and I ran the apps with the same jvm.  Great work.
Comment 7 N. Dan Smith 2007-09-11 05:34:50 UTC
It builds with all USE flags on ppc but I cannot for the life of me harness the arcane powers of Java to make Experiment.class run (though I can compile it . . .)

Portage 2.1.2.12 (default-linux/ppc/ppc32/2007.0/G4, gcc-4.1.2, glibc-2.5-r2, 2.6.21-gentoo-r3 ppc)
=================================================================
System uname: 2.6.21-gentoo-r3 ppc 7447A, altivec supported
Gentoo Base System release 2.0.0_alpha3
Timestamp of tree: Tue, 11 Sep 2007 01:30:09 +0000
app-shells/bash:     3.2_p15-r1
dev-java/java-config: 1.3.7, 2.0.33-r1
dev-lang/python:     2.4.4-r4
dev-python/pycrypto: 2.0.1-r5
sys-apps/baselayout: 2.0.0_alpha3-r1
sys-apps/sandbox:    1.2.17
sys-devel/autoconf:  2.13, 2.61
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10
sys-devel/binutils:  2.17
sys-devel/gcc-config: 1.3.16
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.6.17-r2
ACCEPT_KEYWORDS="ppc"
CBUILD="powerpc-unknown-linux-gnu"
CFLAGS="-O2 -mcpu=G4 -mtune=G4 -maltivec -mabi=altivec -pipe"
CHOST="powerpc-unknown-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/X11/xkb"
CONFIG_PROTECT_MASK="/etc/env.d /etc/env.d/java/ /etc/gconf /etc/java-config/vms/ /etc/revdep-rebuild /etc/terminfo /etc/texmf/web2c"
CXXFLAGS="-O2 -mcpu=G4 -mtune=G4 -maltivec -mabi=altivec -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="collision-protect distlocks metadata-transfer sandbox sfperms strict test"
GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/linux/distributions/gentoo"
LINGUAS="en_US"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --delete-after --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages --filter=H_**/files/digest-*"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/portage/local/layman/sunrise /usr/portage/local/layman/gnustep"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="X aac acl alsa altivec berkdb bitmap-fonts branding cdr cli cracklib crypt cups dri dvd flac fortran gdbm gnome gpm gtk iconv ipv6 isdnlog midi mozbranding mudflap ncurses nls nptl nptlonly ogg opengl openmp pcre perl png ppc pppd python readline reflection session spell spl ssl tcpd test theora truetype-fonts type1-fonts unicode vorbis xorg zlib" ALSA_CARDS="aoa aoa-fabric-layout aoa-onyx aoa-soundbus aoa-soundbus-i2s aoa-tas aoa-toonie powermac usb-audio via82xx" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mulaw multi null plug rate route share shm softvol" ELIBC="glibc" INPUT_DEVICES="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="en_US" USERLAND="GNU" VIDEO_CARDS="radeon"
Unset:  CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, LDFLAGS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 8 Andrew Cowie 2007-09-11 07:23:13 UTC
(In reply to comment #7)
> I cannot for the life of me harness the
> arcane powers of Java to make Experiment.class run

There is a convenience target at

$ make test

if you're building from source (ie, in a source checkout / extracted tarball), but that's not what you want; a while back we whipped up instructions at 
http://java-gnome.sourceforge.net/4.0/get/gentoo.php ; with any luck,

$ java -classpath `java-config -l java-gnome-4.0`:/path/to/where/the/directory/you/built/the/demo/classes/
-Djava.library.path=`java-config -i java-gnome-4.0` Experiment

should work for you. (Yes, you can put . or a relative directory like tmp/ in the CLASSPATH)

{sigh}. This side of Java can be such a pain. Suggestions for streamlining that page or that command for Gentoo users are welcome.

AfC
Comment 9 William L. Thomson Jr. (RETIRED) gentoo-dev 2007-09-27 18:36:53 UTC
tested and keyworded ~amd64. Designer example wants simple.glade in /usr/share/doc/java-gnome-4.0.3/examples/tests/prototype/simple.glade and the Toggling example says
Debug.MEMORY_MANAGEMENT must be enabled to run this class

Otherwise Experiment and WorkerThread examples run fine. Here is how I compiled and ran them.
cd /usr/share/doc/java-gnome-4.0.3/examples
javac -cp /usr/share/java-gnome-4.0/lib/gtk-4.0.jar:./ Designer.java
...

Then to run
java -cp /usr/share/java-gnome-4.0/lib/gtk-4.0.jar:./ -Djava.library.path="/usr/lib/java-gnome-4.0/" Designer
...

Same for each, except Toggling which requires a debug var to be set. Haven't figured that one out, but didn't try to hard either :)

Comment 10 Petteri Räty (RETIRED) gentoo-dev 2007-09-27 20:11:35 UTC
Added instructions here for 4.0.4:
https://overlays.gentoo.org/svn/proj/java/testcases/dev-java/java-gnome/EXAMPLES
Comment 11 Andrew Cowie 2007-09-28 00:26:24 UTC
(In reply to comment #9)
> tests/prototype/

Are not meant as examples for wider consumption. That's what doc/examples/ are for.

AfC
Comment 12 Petteri Räty (RETIRED) gentoo-dev 2007-09-28 06:33:26 UTC
(In reply to comment #11)
> (In reply to comment #9)
> > tests/prototype/
> 
> Are not meant as examples for wider consumption. That's what doc/examples/ are
> for.
> 
> AfC
> 

Well installing them originates from bug 180353. If you think it's wrong to install those, please file a new bug.
Comment 13 Tobias Scherbaum (RETIRED) gentoo-dev 2007-10-06 20:59:27 UTC
re-added ~ppc