Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 19508 Details for
Bug 26368
sys-libs/db requires jar
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
Updated ebuild to build properly when a JRE is selected as the user's current Java VM. (db-4.0.14-r2)
db-4.0.14-r2.ebuild (text/plain), 3.10 KB, created by
Lyle Hanson
on 2003-10-19 20:19:57 UTC
(
hide
)
Description:
Updated ebuild to build properly when a JRE is selected as the user's current Java VM. (db-4.0.14-r2)
Filename:
MIME Type:
Creator:
Lyle Hanson
Created:
2003-10-19 20:19:57 UTC
Size:
3.10 KB
patch
obsolete
># Copyright 1999-2003 Gentoo Technologies, Inc. ># Distributed under the terms of the GNU General Public License v2 ># $Header: /home/cvsroot/gentoo-x86/sys-libs/db/db-4.0.14-r2.ebuild,v 1.1 2003/08/21 11:08:36 robbat2 Exp $ > >IUSE="tcltk java doc" > >inherit eutils >inherit db > >S="${WORKDIR}/${P}/build_unix" >DESCRIPTION="Berkeley DB" >SRC_URI="http://www.sleepycat.com/update/snapshot/${P}.tar.gz" >HOMEPAGE="http://www.sleepycat.com" >SLOT="4" >LICENSE="DB" >KEYWORDS="~x86" > >DEPEND="tcltk? ( dev-lang/tcl ) > java? ( virtual/jdk )" > >src_unpack() { > unpack ${A} > > # Get db to link libdb* to correct dependencies ... for example if we use > # NPTL or NGPT, db detects usable mutexes, and should link against > # libpthread, but does not do so ... > # <azarah@gentoo.org> (23 Feb 2003) > cd ${WORKDIR}/${P}; epatch ${FILESDIR}/${P}-fix-dep-link.patch >} > >function vm_exists() { > ( unset JAVA_HOME; PATH="$PATH:`dirname $1`"; . $1 ; > if [ -d "$JAVA_HOME" ]; then > echo true > else > echo false > fi; ) >} > >function jdk_exists() { > ( unset JDK_HOME; PATH="$PATH:`dirname $1`"; . $1 ; > if [ -d "$JDK_HOME" ]; then > echo true > else > echo false > fi; ) >} > >function get_jdk_path() { > ( for i in `find /etc/env.d/java/ -name "20*-*"` ; do > if [ "`vm_exists $i`" == "true" ] && [ "`jdk_exists $i`" ]; then > unset JDK_HOME; PATH="$PATH:`dirname $i`"; . $i ; > if [ -d "$JDK_HOME" ]; then > echo $JDK_HOME > fi > fi > done > echo "" > ) >} > >src_compile() { > > local myconf= > > use java \ > && myconf="${myconf} --enable-java" \ > || myconf="${myconf} --disable-java" > > use tcltk \ > && myconf="${myconf} --enable-tcl --with-tcl=/usr/lib" \ > || myconf="${myconf} --disable-tcl" > > if use java; then > # Assumes that $JAVAC is also the path to 'jar', etc. > if [ -n "${JAVAC}" ]; then > export PATH=`dirname ${JAVAC}`:${PATH} > export JAVAC=`basename ${JAVAC}` > else > einfo "No JDK path could be found. Maybe your currently selected Java VM is a JRE?" > einfo "Trying to determine a path to a JDK..." > PATH_TO_JDK=`get_jdk_path` > if [ -n "$PATH_TO_JDK" ]; then > export PATH=$PATH_TO_JDK/bin:${PATH} > einfo "Using $PATH_TO_JDK/bin." > else > einfo "No JDK path could be found. Please try switching your Java VM to a JDK" > einfo " while building this package." > einfo "See the java-config program for details." > einfo "Alternately, you could re-emerge this package without Java support:" > einfo " export USE=\"-java\"" > einfo " emerge -u db" > die "Building with Java support failed" > fi > fi > fi > > ../dist/configure \ > --prefix=/usr \ > --mandir=/usr/share/man \ > --infodir=/usr/share/info \ > --datadir=/usr/share \ > --sysconfdir=/etc \ > --localstatedir=/var/lib \ > --enable-compat185 \ > --enable-cxx \ > --with-uniquename \ > ${myconf} || die > ># disable posix mutexes as they are not available in linuxthreads from ># the standard profile and they should be autodetected if available ># ># --enable-posixmutexes \ > > emake || make || die >} > >src_install () { > > einstall || die > > db_src_install_usrbinslot > > db_src_install_headerslot > > db_src_install_doc > > db_src_install_usrlibcleanup >} > >pkg_postinst () { > db_fix_so >} > >pkg_postrm () { > db_fix_so >}
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 26368
: 19508 |
19509
|
19510