Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 285516 - sys-libs/db-4.8.24 fails to build w/ USE=java
Summary: sys-libs/db-4.8.24 fails to build w/ USE=java
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: All All
: High normal (vote)
Assignee: Caleb Tennis (RETIRED)
URL:
Whiteboard:
Keywords:
: 285533 285645 (view as bug list)
Depends on:
Blocks:
 
Reported: 2009-09-19 05:49 UTC by Ryan Hill (RETIRED)
Modified: 2009-09-20 19:14 UTC (History)
28 users (show)

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


Attachments
emerge --info (emerge-info.txt,3.79 KB, text/plain)
2009-09-19 08:06 UTC, hind
Details
Fix for this annoying java error. (db-4.8.24-java.diff,509 bytes, patch)
2009-09-19 21:31 UTC, Sebastian Lüttich
Details | Diff
the ebuild-diff (db-4.8.24.ebuild.diff,250 bytes, patch)
2009-09-19 21:33 UTC, Sebastian Lüttich
Details | Diff
corrected patch (db-4.8.24.ebuild.patch,458 bytes, patch)
2009-09-20 00:25 UTC, Sebastian Lüttich
Details | Diff
corrected patch to put in $FILESDIR (db-4.8.24-java.patch,502 bytes, patch)
2009-09-20 00:26 UTC, Sebastian Lüttich
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Ryan Hill (RETIRED) gentoo-dev 2009-09-19 05:49:18 UTC
[ebuild  NS   ]  sys-libs/db-4.8.24 [4.7.25_p4] USE="java -doc -nocxx -tcl (-test)" 22,364 kB

./libtool --mode=compile x86_64-unknown-linux-gnu-gcc -c -I. -I/var/tmp/portage/sys-libs/db-4.8.24/work/db-4.8.24/build_unix/../dist/..  -D_GNU_SOURCE -D_REENTRANT -I/opt/sun-jdk-1.6.0.16/include -I/opt/sun-jdk-1.6.0.16/include/linux -O2 -g -march=core2 -msse4.1 -fomit-frame-pointer -pipe -ftree-vectorize -fdirectives-only  /var/tmp/portage/sys-libs/db-4.8.24/work/db-4.8.24/build_unix/../dist/../common/util_sig.c    
libtool: compile:  x86_64-unknown-linux-gnu-gcc -c -I. -I/var/tmp/portage/sys-libs/db-4.8.24/work/db-4.8.24/build_unix/../dist/.. -D_GNU_SOURCE -D_REENTRANT -I/opt/sun-jdk-1.6.0.16/include -I/opt/sun-jdk-1.6.0.16/include/linux -O2 -g -march=core2 -msse4.1 -fomit-frame-pointer -pipe -ftree-vectorize -fdirectives-only /var/tmp/portage/sys-libs/db-4.8.24/work/db-4.8.24/build_unix/../dist/../common/util_sig.c  -fPIC -DPIC -o .libs/util_sig.o                                                                                                                       
libtool: compile:  x86_64-unknown-linux-gnu-gcc -c -I. -I/var/tmp/portage/sys-libs/db-4.8.24/work/db-4.8.24/build_unix/../dist/.. -D_GNU_SOURCE -D_REENTRANT -I/opt/sun-jdk-1.6.0.16/include -I/opt/sun-jdk-1.6.0.16/include/linux -O2 -g -march=core2 -msse4.1 -fomit-frame-pointer -pipe -ftree-vectorize -fdirectives-only /var/tmp/portage/sys-libs/db-4.8.24/work/db-4.8.24/build_unix/../dist/../db_archive/db_archive.c -o db_archive.o >/dev/null 2>&1                                                                                                                  
java.io.FileNotFoundException: ../var/tmp/portage/sys-libs/db-4.8.24/work/db-4.8.24/build_unix/../dist/../java/jarManifestEntries (No such file or directory)                                                                                                                           
        at java.io.FileInputStream.open(Native Method)                                                                                      
        at java.io.FileInputStream.<init>(FileInputStream.java:106)                                                                         
        at java.io.FileInputStream.<init>(FileInputStream.java:66)                                                                          
        at sun.tools.jar.Main.run(Main.java:131)                                                                                            
        at sun.tools.jar.Main.main(Main.java:1022)                                                                                          
libtool: compile:  x86_64-unknown-linux-gnu-gcc -c -I. -I/var/tmp/portage/sys-libs/db-4.8.24/work/db-4.8.24/build_unix/../dist/.. -D_GNU_SOURCE -D_REENTRANT -I/opt/sun-jdk-1.6.0.16/include -I/opt/sun-jdk-1.6.0.16/include/linux -O2 -g -march=core2 -msse4.1 -fomit-frame-pointer -pipe -ftree-vectorize -fdirectives-only /var/tmp/portage/sys-libs/db-4.8.24/work/db-4.8.24/build_unix/../dist/../common/util_sig.c -o util_sig.o >/dev/null 2>&1                                                                                                                          
make: *** [db-4.8.jar] Error 1                                                                                                              
make: *** Waiting for unfinished jobs....                                                                                                   
 *                                                                                                                                          
 * ERROR: sys-libs/db-4.8.24 failed.                                                                                                        
 * Call stack:                                                                                                                              
 *               ebuild.sh, line   49:  Called src_compile                                                                                  
 *             environment, line 5002:  Called die                                                                                          
 * The specific snippet of code:                                                                                                            
 *       emake || die "make failed"                                                                                                         
 *  The die message:                                                                                                                        
 *   make failed

GENTOO_VM=sun-jdk-1.6  CLASSPATH="" JAVA_HOME="/opt/sun-jdk-1.6.0.16"                                                                       
JAVACFLAGS="-source 1.5 -target 1.5" COMPILER=""
Comment 1 Ryan Hill (RETIRED) gentoo-dev 2009-09-19 05:50:29 UTC
Portage 2.2_rc40 (default/linux/amd64/10.0/developer, gcc-4.4.1, glibc-2.10.1-r0, 2.6.31-gentoo x86_64)
=================================================================                                      
System uname: Linux-2.6.31-gentoo-x86_64-Intel-R-_Core-TM-2_Duo_CPU_T9300_@_2.50GHz-with-gentoo-2.0.1  
Timestamp of tree: Sat, 19 Sep 2009 04:00:01 +0000                                                     
ccache version 2.4 [enabled]                                                                           
app-shells/bash:     4.0_p33                                                                           
dev-java/java-config: 2.1.9-r1                                                                         
dev-lang/python:     2.6.2-r1, 3.1.1                                                                   
dev-util/ccache:     2.4-r8                                                                            
dev-util/cmake:      2.6.4-r2                                                                          
sys-apps/baselayout: 2.0.1                                                                             
sys-apps/openrc:     0.4.3-r3                                                                          
sys-apps/sandbox:    2.1                                                                               
sys-devel/autoconf:  2.13, 2.63-r1                                                                     
sys-devel/automake:  1.7.9-r1, 1.9.6-r2, 1.10.2, 1.11                                                  
sys-devel/binutils:  2.20.51.0.1                                                                       
sys-devel/gcc-config: 1.4.1                                                                            
sys-devel/libtool:   2.2.6a                                                                            
virtual/os-headers:  2.6.30-r1                                                                         
ACCEPT_KEYWORDS="amd64 ~amd64"                                                                         
CBUILD="x86_64-unknown-linux-gnu"                                                                      
CFLAGS="-O2 -g -march=core2 -msse4.1 -fomit-frame-pointer -pipe -ftree-vectorize -fdirectives-only"    
CHOST="x86_64-unknown-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/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/udev/rules.d"                                                                                     
CXXFLAGS="-O2 -g -march=core2 -msse4.1 -fomit-frame-pointer -pipe -ftree-vectorize -fdirectives-only"                                       
DISTDIR="/usr/portage/distfiles"                                                                                                            
FEATURES="assume-digests ccache collision-protect cvs distlocks fixpackages multilib-strict parallel-fetch preserve-libs protect-owned sandbox sfperms sign splitdebug strict test test-fail-continue unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync"             
GENTOO_MIRRORS="http://gentoo.mirrors.tera-byte.com/ http://distfiles.gentoo.org/"                                                          
LANG="en_CA.utf8"                                                                                                                           
LC_ALL="C"                                                                                                                                  
LDFLAGS="-Wl,--as-needed -Wl,--hash-style=gnu"                                                                                              
LINGUAS="en en_US"                                                                                                                          
MAKEOPTS="-j3"                                                                                                                              
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="/home/dirtyepic/svn/gcc-porting /home/dirtyepic/svn/toolchain /home/dirtyepic/svn/dirtyepic /home/dirtyepic/overlay"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
Comment 2 Ryan Hill (RETIRED) gentoo-dev 2009-09-19 05:59:24 UTC
sorry, cut off the relevant part:

env CLASSPATH="./classes" /opt/sun-jdk-1.6.0.16/bin/java -classpath ./classes \                                                             
            com.sleepycat.persist.model.ClassEnhancer ./classes                                                                             
Enhanced: 8 files                                                                                                                           
cd ./classes && \                                                                                                                           
             jar cfm ../db-4.8.jar ..//var/tmp/portage/sys-libs/db-4.8.24/work/db-4.8.24/build_unix/../dist/../java/jarManifestEntries ./com/sleepycat                                                                                                                                  
java.io.FileNotFoundException: ../var/tmp/portage/sys-libs/db-4.8.24/work/db-4.8.24/build_unix/../dist/../java/jarManifestEntries (No such file or directory)                                                                                                                           
        at java.io.FileInputStream.open(Native Method)                                                                                      
        at java.io.FileInputStream.<init>(FileInputStream.java:106)                                                                         
        at java.io.FileInputStream.<init>(FileInputStream.java:66)                                                                          
        at sun.tools.jar.Main.run(Main.java:131)                                                                                            
        at sun.tools.jar.Main.main(Main.java:1022)                                                                                          
make: *** [db-4.8.jar] Error 1  
Comment 3 hind 2009-09-19 08:06:10 UTC
Created attachment 204574 [details]
emerge --info
Comment 4 hind 2009-09-19 08:07:29 UTC
(In reply to comment #3)
> Created an attachment (id=204574) [edit]
> emerge --info
> 

I can confirm this bug with the exact same error.
Comment 5 Lebedev Roman 2009-09-19 09:40:55 UTC
I confirm:

cd ./classes && \                                                                                                                                            
             jar cfm ../db-4.8.jar ..//var/tmp/portage/sys-libs/db-4.8.24/work/db-4.8.24/build_unix/../dist/../java/jarManifestEntries ./com/sleepycat       
libtool: compile:  x86_64-pc-linux-gnu-gcc -c -I. -I/var/tmp/portage/sys-libs/db-4.8.24/work/db-4.8.24/build_unix/../dist/.. -march=native -O3 -mmmx -msse -msse2 -msse3 -m3dnow -ftree-vectorize -mfpmath=sse -pipe -D_GNU_SOURCE -D_REENTRANT -I/opt/sun-jdk-1.6.0.16/include -I/opt/sun-jdk-1.6.0.16/include/linux -march=native -O3 -mmmx -msse -msse2 -msse3 -m3dnow -ftree-vectorize -mfpmath=sse -pipe /var/tmp/portage/sys-libs/db-4.8.24/work/db-4.8.24/build_unix/../dist/../qam/qam_autop.c -o qam_autop.o >/dev/null 2>&1                                                                                                               
java.io.FileNotFoundException: ../var/tmp/portage/sys-libs/db-4.8.24/work/db-4.8.24/build_unix/../dist/../java/jarManifestEntries (No such file or directory)
        at java.io.FileInputStream.open(Native Method)                                                                                                       
        at java.io.FileInputStream.<init>(FileInputStream.java:106)                                                                                          
        at java.io.FileInputStream.<init>(FileInputStream.java:66)                                                                                           
        at sun.tools.jar.Main.run(Main.java:131)                                                                                                             
        at sun.tools.jar.Main.main(Main.java:1022)                                                                                                           
make: *** [db-4.8.jar] Error 1                                                                                                                               
make: *** Waiting for unfinished jobs....                                                                                                                    
libtool: compile:  x86_64-pc-linux-gnu-gcc -c -I. -I/var/tmp/portage/sys-libs/db-4.8.24/work/db-4.8.24/build_unix/../dist/.. -march=native -O3 -mmmx -msse -msse2 -msse3 -m3dnow -ftree-vectorize -mfpmath=sse -pipe -D_GNU_SOURCE -D_REENTRANT -I/opt/sun-jdk-1.6.0.16/include -I/opt/sun-jdk-1.6.0.16/include/linux -march=native -O3 -mmmx -msse -msse2 -msse3 -m3dnow -ftree-vectorize -mfpmath=sse -pipe /var/tmp/portage/sys-libs/db-4.8.24/work/db-4.8.24/build_unix/../dist/../txn/txn_autop.c -o txn_autop.o >/dev/null 2>&1
Comment 6 Oliver Maurhart 2009-09-19 09:41:55 UTC
Count me in.
Comment 7 Alexander Koryushkin 2009-09-19 11:06:22 UTC
I confirm.
Comment 8 Rahul Jain 2009-09-19 11:27:36 UTC
Me Too.
Comment 9 Diego Elio Pettenò (RETIRED) gentoo-dev 2009-09-19 12:20:30 UTC
*** Bug 285533 has been marked as a duplicate of this bug. ***
Comment 10 barrie backhurst 2009-09-19 13:35:18 UTC
Also confirming
Comment 11 Christian Schwinn 2009-09-19 13:47:39 UTC
Same here.
Comment 12 Xavier Miller (RETIRED) gentoo-dev 2009-09-19 16:24:14 UTC
me too.

emerge --info
Portage 2.2_rc40 (default/linux/x86/10.0, gcc-4.4.1, glibc-2.10.1-r0, 2.6.31-gentoo i686)
=================================================================
System uname: Linux-2.6.31-gentoo-i686-AMD_Athlon-tm-64_X2_Dual_Core_Processor_4400+-with-gentoo-2.0.1
Timestamp of tree: Sat, 19 Sep 2009 16:00:01 +0000
ccache version 2.4 [enabled]
app-shells/bash:     4.0_p33
dev-java/java-config: 2.1.9-r1
dev-lang/python:     2.6.2-r1
dev-util/ccache:     2.4-r8
sys-apps/baselayout: 2.0.1
sys-apps/openrc:     0.4.3-r3
sys-apps/sandbox:    2.1
sys-devel/autoconf:  2.13, 2.63-r1
sys-devel/automake:  1.10.2, 1.11
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.30-r1
ACCEPT_KEYWORDS="x86 ~x86"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2 -pipe -fomit-frame-pointer -march=native -mtune=native"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /var/lib/hsqldb"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/php/apache2-php5/ext-active/ /etc/php/cgi-php5/ext-active/ /etc/php/cli-php5/ext-active/ /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="-O2 -pipe -fomit-frame-pointer -march=native -mtune=native"
DISTDIR="/usr/portage/distfiles"
EMERGE_DEFAULT_OPTS="--with-bdeps y"
FEATURES="assume-digests candy ccache distlocks fixpackages parallel-fetch preserve-libs protect-owned sandbox sfperms strict unmerge-logs unmerge-orphans userfetch"
GENTOO_MIRRORS="ftp://ftp.belnet.be/mirror/rsync.gentoo.org/gentoo/"
LANG="fr_BE.UTF-8"
LC_ALL="fr_BE.UTF-8"
LDFLAGS="-Wl,-O1"
LINGUAS="fr fr_BE fr_BE.UTF-8 nl nl_BE nl_BE.UTF-8"
MAKEOPTS="-j3"
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/overlays /usr/portage/local/layman/pro-audio"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="3dnow 3dnowext X acl acpi alsa apache apache2 branding bzip2 cairo cdda cddb cdio cleartype cli consolekit contrib cpufreq cracklib crypt cups dbus dirac directfb dri dssi dvd dvdr encode exif expensive_math fat fbcon fbcondecor ffmpeg flac gd gif glitz gpm gtk gui gzip-el hal iconv id3tag isdnlog jack jack-tmpfs jackmidi java java6 jfs jpeg ladspa libnotify matroska mmmxext mmx mp3 mp3rtp mpeg mudflap ncurses nls nptl nptlonly ntfs nvidia ogg opengl openmp osc osc_opcodes pam pcre pdf perl php png portaudio ppds pppd python readline reflection rle samba schroedinger sdl session slang sound spl sqlite sqlite3 sse sse2 sse3 ssl startup-notification stk_opcodes subversion svg sysfs tcl tcpd theora thunar tiff truetype twolame unicode vorbis vst win32codecs wmf x264 x86 xfce xft xml xorg xscreensaver zlib" ALSA_CARDS="ice1712 hda-intel usb-audio virmidi" 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="fr fr_BE fr_BE.UTF-8 nl nl_BE nl_BE.UTF-8" USERLAND="GNU" VIDEO_CARDS="nvidia"
Unset:  CPPFLAGS, CTARGET, FFLAGS, INSTALL_MASK, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 13 Omar Saleem 2009-09-19 17:51:27 UTC
I can confirm. Also, it's an especially annoying bug because everything else I install apparently has a dependency on this version of db.
Comment 14 movrev 2009-09-19 18:32:07 UTC
I'm having the exact same errors. I compiled it successfully with USE="-java" but not when the java use flag is set.
Comment 15 Arfrever Frehtes Taifersar Arahesis (RETIRED) gentoo-dev 2009-09-19 18:38:21 UTC
This bug had been confirmed before it was filed.
Everybody please stop reconfirming it and give sys-libs/db maintainers time to work on the fix.
Comment 16 Sebastian Lüttich 2009-09-19 21:30:22 UTC
(In reply to comment #15)
> This bug had been confirmed before it was filed.
> Everybody please stop reconfirming it and give sys-libs/db maintainers time to
> work on the fix.

Hm.  It came to my mind that actually testing an ebuild before committing could be a marvellous idea.

I did a quick'n'dirty hack.  Files will follow.


regards, Sebastian
Comment 17 Sebastian Lüttich 2009-09-19 21:31:30 UTC
Created attachment 204646 [details, diff]
Fix for this annoying java error.

Put this file in $FILESDIR
Comment 18 Sebastian Lüttich 2009-09-19 21:33:47 UTC
Created attachment 204647 [details, diff]
the ebuild-diff

cd to your local sys-libs/db
patch < $file
ebuild db-4.8.24.ebuild manifest
go on
Comment 19 movrev 2009-09-19 21:44:09 UTC
Great fix. Thanks.
Comment 20 Omar Saleem 2009-09-19 22:04:14 UTC
Ah thank you, that worked :)
Comment 21 Sebastian Lüttich 2009-09-19 22:47:59 UTC
Please mind bug #285522 for apr-util

http://bugs.gentoo.org/show_bug.cgi?id=285522
Comment 22 Robin Johnson archtester Gentoo Infrastructure gentoo-dev Security 2009-09-19 23:49:14 UTC
Fixed in CVS.

selu:
Please don't patch the Makefile if it's generated. Always patch the real source file.
Comment 23 Boney McCracker 2009-09-20 00:09:07 UTC
Thank you.

When will this hit the portage tree, and will it be -r1?
Comment 24 Robin Johnson archtester Gentoo Infrastructure gentoo-dev Security 2009-09-20 00:22:05 UTC
brendlerjg:
1. always 5-45 mins after commits.
2. No, it's a build fix only, ergo it should not have a revbump.
Comment 25 Sebastian Lüttich 2009-09-20 00:23:41 UTC
(In reply to comment #22)

> selu:
> Please don't patch the Makefile if it's generated. Always patch the real source
> file.

You're perfectly right, it's awful coding style.  Despite the corrected CVS, here are the files for the formal Makefile.in way.

Comment 26 Sebastian Lüttich 2009-09-20 00:25:19 UTC
Created attachment 204650 [details, diff]
corrected patch
Comment 27 Sebastian Lüttich 2009-09-20 00:26:17 UTC
Created attachment 204652 [details, diff]
corrected patch to put in $FILESDIR
Comment 28 Robin Johnson archtester Gentoo Infrastructure gentoo-dev Security 2009-09-20 00:46:33 UTC
selu: did you entirely miss that I fixed in the tree already, with my own patch to Makefile.in?
Comment 29 Sebastian Lüttich 2009-09-20 00:57:38 UTC
(In reply to comment #28)
> selu: did you entirely miss that I fixed in the tree already, with my own patch
> to Makefile.in?

Partially.  I wanted a clean battlefield.  I would bite me in the ass, if there's a evil looking white-bearded guy on judgement day complaining about the Makefile-patch incident anno 2009.

Always wear clean underwear and be prepared!

Comment 30 Oschtan 2009-09-20 08:30:41 UTC
*** Bug 285645 has been marked as a duplicate of this bug. ***
Comment 31 Xavier Miller (RETIRED) gentoo-dev 2009-09-20 16:46:15 UTC
portage version is OK for me !