Hi This is the ebuild for the jdbc3 Oracle-Driver version 10.1.0.4 (works also for Oracle-Server 10.1.0.3). It's based on the file dev-java/jdbc3-oracle-9.2.0.5.ebuild. Modified for the changed file-extensions (zip/jar). Jan
Created attachment 71104 [details] Ebuild for Oracle-JDBC-Driver 10.1.0.4
I wasted some time before I noticed that portage's 9.2.0.5 version (which I assumed was the latest release) doesn't work at all with Oracle 10g server ! It's only after reading forum posts that I knew the upgrade was necessary, and I was very surprised that the 10g connector still wasn't in portage. What about putting this into portage ? please ?
Just added new package dev-java/jdbc-oracle-bin that will replace jdbc{2,3}-oracle. Has three slots (9.2, 10.1 and 10.2) to correspond with Oracle servers. What you asked for is now jdbc-oracle-bin-10.1.0.5
There is a bug in this ebuild, please add parenthesis after the "use XX &&" statements, otherwise it dies when USE flags are disabled: ======================================================== --- /usr/portage/dev-java/jdbc-oracle-bin/jdbc-oracle-bin-10.2.0.3.ebuild 2007-06-09 23:23:59.000000000 +0200 +++ jdbc-oracle-bin-10.2.0.3.ebuild 2007-06-10 16:55:55.000000000 +0200 @@ -97,8 +97,8 @@ src_unpack() { determine_files cp "${DISTDIR}/${file_main_used}" ${PN}.jar || die - use nls && cp "${DISTDIR}/${file_nls}" ${file_nls_orig} || die - use ons && cp "${DISTDIR}/${file_ons}" ${file_ons_orig} || die + use nls && ( cp "${DISTDIR}/${file_nls}" ${file_nls_orig} || die ) + use ons && ( cp "${DISTDIR}/${file_ons}" ${file_ons_orig} || die ) if use doc; then mkdir "${S}/javadoc" && cd "${S}/javadoc" ========================================================
(In reply to comment #4) > There is a bug in this ebuild, please add parenthesis after the "use XX &&" > statements, otherwise it dies when USE flags are disabled: Please open new bugs instead of commenting in closed ones. > > ======================================================== > --- /usr/portage/dev-java/jdbc-oracle-bin/jdbc-oracle-bin-10.2.0.3.ebuild > 2007-06-09 23:23:59.000000000 +0200 > +++ jdbc-oracle-bin-10.2.0.3.ebuild 2007-06-10 16:55:55.000000000 +0200 > @@ -97,8 +97,8 @@ > src_unpack() { > determine_files > cp "${DISTDIR}/${file_main_used}" ${PN}.jar || die > - use nls && cp "${DISTDIR}/${file_nls}" ${file_nls_orig} || die > - use ons && cp "${DISTDIR}/${file_ons}" ${file_ons_orig} || die > + use nls && ( cp "${DISTDIR}/${file_nls}" ${file_nls_orig} || die ) > + use ons && ( cp "${DISTDIR}/${file_ons}" ${file_ons_orig} || die ) > > if use doc; then > mkdir "${S}/javadoc" && cd "${S}/javadoc" > ======================================================== > Index: jdbc-oracle-bin-10.2.0.3.ebuild =================================================================== RCS file: /var/cvsroot/gentoo-x86/dev-java/jdbc-oracle-bin/jdbc-oracle-bin-10.2.0.3.ebuild,v retrieving revision 1.1 diff -u -r1.1 jdbc-oracle-bin-10.2.0.3.ebuild --- jdbc-oracle-bin-10.2.0.3.ebuild 9 Jun 2007 21:23:59 -0000 1.1 +++ jdbc-oracle-bin-10.2.0.3.ebuild 10 Jun 2007 15:22:54 -0000 @@ -97,8 +97,14 @@ src_unpack() { determine_files cp "${DISTDIR}/${file_main_used}" ${PN}.jar || die - use nls && cp "${DISTDIR}/${file_nls}" ${file_nls_orig} || die - use ons && cp "${DISTDIR}/${file_ons}" ${file_ons_orig} || die + + if use nls; then + cp "${DISTDIR}/${file_nls}" ${file_nls_orig} || die + fi + + if use ons; then + cp "${DISTDIR}/${file_ons}" ${file_ons_orig} || die + fi if use doc; then mkdir "${S}/javadoc" && cd "${S}/javadoc" Exit status: 256 Not the right way to do it was die doesn't work in a sub shell created by ( )