Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 110004 - version bump: dev-java/jdbc3-oracle-10.1.0.4
Summary: version bump: dev-java/jdbc3-oracle-10.1.0.4
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High enhancement
Assignee: Java team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-10-21 03:04 UTC by Jan Schnackenberg
Modified: 2007-06-10 15:23 UTC (History)
2 users (show)

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


Attachments
Ebuild for Oracle-JDBC-Driver 10.1.0.4 (jdbc3-oracle-10.1.0.4.ebuild,2.11 KB, text/plain)
2005-10-21 03:06 UTC, Jan Schnackenberg
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Jan Schnackenberg 2005-10-21 03:04:53 UTC
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
Comment 1 Jan Schnackenberg 2005-10-21 03:06:04 UTC
Created attachment 71104 [details]
Ebuild for Oracle-JDBC-Driver 10.1.0.4
Comment 2 Joël 2007-04-12 07:00:50 UTC
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 ?
Comment 3 Vlastimil Babka (Caster) (RETIRED) gentoo-dev 2007-06-09 21:31:14 UTC
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
Comment 4 Joël 2007-06-10 15:07:14 UTC
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"
========================================================
Comment 5 Petteri Räty (RETIRED) gentoo-dev 2007-06-10 15:23:49 UTC
(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 ( )