Bug List: (This bug is not in your last search results)   Show last search results      Search page      Enter new bug
Bug#: 208631
Alias:
Product:
Component:
Status: RESOLVED
Resolution: FIXED
Assigned To: Java team <java@gentoo.org>
Hardware:
OS:
Version:
Priority:
Severity:
Reporter: Markus Rothe <corsair@gentoo.org>
Add CC:
CC:
Remove selected CCs
URL:
Summary:
Status Whiteboard:
Keywords:

Filename Description Type Creator Created Size Actions
no_libhpi.so_check.patch removes check for libhpi.so existense patch Alex V. Fansky 2008-02-11 23:50 0000 549 bytes Details | Diff
qtjava-3.5.8.ebuild ebuild for the patched qtjava text/plain Alex V. Fansky 2008-02-11 23:52 0000 1.43 KB Details
no_libhpi.so_check.patch updated patch patch Alex V. Fansky 2008-02-17 19:15 0000 1.07 KB Details | Diff
qtjava-3.5.8.ebuild updated ebuild for the patched qtjava text/plain Alex V. Fansky 2008-02-17 19:16 0000 1.43 KB Details
Create a New Attachment (proposed patch, testcase, etc.) View All

Bug 208631 depends on: Show dependency tree
Bug 208631 blocks:
Votes: 0    Show votes for this bug    Vote for this bug

Additional Comments: (this is where you put emerge --info)


Not eligible to see or edit group visibility for this bug.






View Bug Activity   |   Format For Printing   |   XML   |   Clone This Bug


Description:   Opened: 2008-02-02 20:26 0000
This is PowerPC64. If kde-base/qtjava-3.5.8 is being compiled with
ibm-jdk-bin-1.5 being installed it fails like this:

$ emerge qtjava
[...]
./configure [...] --with-java=/opt/ibm-jdk-bin-1.5.0.6 [...]
[...]
checking for Java... configure: error: libhpi.so not found under . Use
--without-java.


This happens because libhpi.so is not being included in 1.5.

libhpi.so is included in 1.4, so I change configure to use
--with-java=/opt/ibm-jdk-bin-1.4.2.9/ and it works.

I've already selected 1.4 as the system VM. configure still gets the path to
1.5 and not 1.4.

If I add JAVA_PKG_WANT_{SOURCE,TARGET}="1.4" to the ebuild it still does *NOT*
work, but I really don't know if that is supposed to fix it ;-)

Any suggestions?

------- Comment #1 From Markus Rothe 2008-02-02 20:28:17 0000 -------
# java-config -L
The following VMs are available for generation-2:
*)      IBM JDK 1.4.2.9 [ibm-jdk-bin-1.4]
2)      IBM JDK 1.5.0.6 [ibm-jdk-bin-1.5]

# emerge --info
Portage 2.1.3.19 (default-linux/ppc/ppc64/2007.0/64bit-userland/desktop/power3,
gcc-4.1.2, glibc-2.6.1-r0, 2.6.23.9 ppc64)
=================================================================
System uname: 2.6.23.9 ppc64 POWER3 (630+)
Timestamp of tree: Wed, 30 Jan 2008 17:00:01 +0000
app-shells/bash:     3.2_p17-r1
dev-java/java-config: 1.3.7, 2.1.3
dev-lang/python:     2.4.4-r6
dev-python/pycrypto: 2.0.1-r6
sys-apps/baselayout: 2.0.0_rc6-r1
sys-apps/sandbox:    1.2.18.1-r2
sys-devel/autoconf:  2.13, 2.61-r1
sys-devel/automake:  1.5, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10
sys-devel/binutils:  2.18-r1
sys-devel/gcc-config: 1.4.0-r4
sys-devel/libtool:   1.5.24
virtual/os-headers:  2.6.23-r3
ACCEPT_KEYWORDS="ppc64"
CBUILD="powerpc64-unknown-linux-gnu"
CFLAGS="-O2 -pipe"
CHOST="powerpc64-unknown-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/fonts/fonts.conf
/etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/terminfo
/etc/texmf/web2c /etc/udev/rules.d"
CXXFLAGS="-O2 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig distlocks metadata-transfer sandbox sfperms strict
unmerge-orphans userfetch"
GENTOO_MIRRORS="http://192.168.0.2/ http://gentoo.virginmedia.com/"
LANG="en_US.UTF-8"
LC_ALL="en_US.UTF-8"
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.gentoo.org/gentoo-portage"
USE="X a52 aac acl alsa archive arts berkdb bitmap-fonts bzip2 cairo captury
cdr cli cracklib crypt cups curl dbus dri dts dvd dvdr eds emboss encode esd
exif fam firefox flac fortran gdbm gif glib glitz gnome gnutls gpgme gpm
gstreamer gtk hal ibm iconv imap imlib inotify ipv6 isdnlog jack jpeg jpeg2k
kde latex ldap libnotify mad mdnsresponder-compat midi mikmod mp2 mp3 mp4 mpeg
mudflap mysql ncurses nls nptl nptlonly ogg openal openexr opengl openmp oss
pam pcre pdf perl png ppc64 pppd python qt3 qt3support qt4 quicktime readline
reflection science sdl session sidebar smime smtp spell spl sqlite ssl svg tcpd
tetex theora tiff truetype truetype-fonts type1-fonts unicode vnc vorbis x264
xcb xcomposite xine xml xorg xscreensaver xv xvid zip zlib"
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" 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" USERLAND="GNU" VIDEO_CARDS="dummy fbdev mach64 mga nv r128 radeon vega"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LDFLAGS, LINGUAS,
MAKEOPTS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS,
PORTDIR_OVERLAY

------- Comment #2 From Vlastimil Babka (Caster) 2008-02-02 20:42:16 0000 -------
(In reply to comment #0)
> This happens because libhpi.so is not being included in 1.5.
> 
> libhpi.so is included in 1.4, so I change configure to use
> --with-java=/opt/ibm-jdk-bin-1.4.2.9/ and it works.

Well, on x86 even 1.4 doesn't have libhpi.so. I would say it's wrong that it
checks specifically for this internal library to detect a VM path...

> I've already selected 1.4 as the system VM. configure still gets the path to
> 1.5 and not 1.4.

System VM isn't build VM. See "Preferred VM" section in
http://www.gentoo.org/doc/en/java.xml
For a quick workaround, you can use JAVA_PKG_FORCE_VM=ibm-jdk-bin-1.4 emerge
qtjava

------- Comment #3 From Alex V. Fansky 2008-02-11 23:50:54 0000 -------
Created an attachment (id=143256) [details]
removes check for libhpi.so existense

this patch removes check for libhpi.so existense from autoconf

------- Comment #4 From Alex V. Fansky 2008-02-11 23:52:37 0000 -------
Created an attachment (id=143257) [details]
ebuild for the patched qtjava

ebuild for the patched qtjava

------- Comment #5 From Brent Baude 2008-02-15 02:00:50 0000 -------
I tried the ebuild with the patch and it still failed, like so:

checking for Java... configure: error: libhpi.so not found under . Use
--without-java.

!!! Please attach the following file when seeking support:
!!! /var/tmp/portage/kde-base/qtjava-3.5.8/work/qtjava-3.5.8/config.log
 * 

Patch appeared to apply cleanly:

>>> Unpacking parts of kdebindings-3.5.8.tar.bz2 to /var/tmp/portage/kde-base/qtjava-3.5.8/work
 * Applying no-gtk-glib-check.diff ...                                    [ ok
]
 * Applying qtjava-3.5-javacflags.patch ...                               [ ok
]
 * Applying no_libhpi.so_check.patch ...                                  [ ok
]
>>> Source unpacked.
>>> Compiling source in /var/tmp/portage/kde-base/qtjava-3.5.8/work/qtjava-3.5.8 ...

------- Comment #6 From Vlastimil Babka (Caster) 2008-02-15 15:46:10 0000 -------
Shouldn't it need to run eautosomething after applying the patch?

------- Comment #7 From Alex V. Fansky 2008-02-17 19:15:00 0000 -------
Created an attachment (id=143806) [details]
updated patch

------- Comment #8 From Alex V. Fansky 2008-02-17 19:16:43 0000 -------
Created an attachment (id=143807) [details]
updated ebuild for the patched qtjava

------- Comment #9 From Brent Baude 2008-02-19 02:38:03 0000 -------
I can *confirm* that latest patch and ebuild fixed the problem.  If you want to
commit this to the tree, I can double check one more time. Else, close as you
see fit.

------- Comment #10 From Vlastimil Babka (Caster) 2008-02-19 17:02:53 0000 -------
Confirmed here and fixed in cvs. Thanks.

Tried to notify upstream on bug in $URL.

Bug List: (This bug is not in your last search results)   Show last search results      Search page      Enter new bug