Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 115370 - jdbc3-jaybird-2.0.1 (new ebuild)
Summary: jdbc3-jaybird-2.0.1 (new ebuild)
Status: RESOLVED DUPLICATE of bug 115897
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High enhancement (vote)
Assignee: Java team
URL:
Whiteboard:
Keywords: EBUILD
Depends on:
Blocks:
 
Reported: 2005-12-12 19:24 UTC by William L. Thomson Jr. (RETIRED)
Modified: 2005-12-17 18:29 UTC (History)
0 users

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


Attachments
jdbc3-jaybird-2.0.1.ebuild (jdbc3-jaybird-2.0.1.ebuild,1.61 KB, application/octet-stream)
2005-12-15 16:05 UTC, William L. Thomson Jr. (RETIRED)
Details
jdbc3-jaybird-2.0.1.ebuild (jdbc3-jaybird-2.0.1.ebuild,1.58 KB, application/octet-stream)
2005-12-15 23:48 UTC, William L. Thomson Jr. (RETIRED)
Details
jdbc3-jaybird-2.0.1.ebuild (jdbc3-jaybird-2.0.1.ebuild,2.04 KB, text/plain)
2005-12-16 12:36 UTC, William L. Thomson Jr. (RETIRED)
Details

Note You need to log in before you can comment on or make changes to this bug.
Description William L. Thomson Jr. (RETIRED) gentoo-dev 2005-12-12 19:24:18 UTC
# Copyright 1999-2005 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header:
/var/cvsroot/gentoo-x86/dev-java/jdbc3-firebird/jdbc3-jaybird-2.0.1.ebuild,v 1.4
2005/07/18 15:42:36 axxo Exp $

inherit java-pkg

At="JayBird-${PV}JDK_1.4"
DESCRIPTION="JDBC3 driver for Firebird SQL server"
HOMEPAGE="http://jaybirdwiki.firebirdsql.org"
SRC_URI="mirror://sourceforge/firebird/${At}.zip"
LICENSE="LGPL-2"
SLOT="0"
KEYWORDS="x86 ppc ~sparc amd64"
IUSE="doc"
DEPEND="app-arch/unzip"
RDEPEND=">=virtual/jre-1.4"
S=${WORKDIR}

src_install() {
        java-pkg_dojar *.jar
        java-pkg_doso libjaybird2.so
        java-pkg_newso libjaybird2.so

        use doc && java-pkg_dohtml -r docs/
        dodoc ChangeLog release_notes.html release_notes.pdf
}



Reproducible: Always
Steps to Reproduce:
Comment 1 William L. Thomson Jr. (RETIRED) gentoo-dev 2005-12-15 12:21:20 UTC
I have tested both installation and quality of installed jars. Everything
installs as expected. I tested the driver with existing apps that have been
using older versions of the driver for years. I also tested with some newer
apps, and one in development. I have also tested with apps running in Tomcat on
my development server.
Comment 2 William L. Thomson Jr. (RETIRED) gentoo-dev 2005-12-15 16:05:57 UTC
Created attachment 74842 [details]
jdbc3-jaybird-2.0.1.ebuild

New ebuild that compiles from source. ebuild compiles and installs. I tested
the resulting binary jar file and the JDBC driver works fine.
Comment 3 Karl Trygve Kalleberg (RETIRED) gentoo-dev 2005-12-15 22:18:13 UTC
Thanks a lot for your contribution!

You may not be aware of it, but we are rather strict about wanting to compile
all Java code from source. At times, we decide to make exceptions to this rule,
especially when it becomes infeasible and the package is well-warranted. In this
cases, you will see packages named dev-java/foo-bin.

Compilation of native code however, is a strict requirement for any package to
be included an maintained by the Java herd. There are several reasons for this.
Foremost is the fact that Gentoo is primarily a sourced-based distributions.
Second is the issue that the GNU/Linux environment is mostly source-compatible
but not necessarily binary compatible, and far too many subtle ways. The GCC/G++
ABI changes come mind.

Is there any chance you could revise your ebuild to build the .jar files from
the Java source and the .so files from their native C/C++ source code?
Comment 4 William L. Thomson Jr. (RETIRED) gentoo-dev 2005-12-15 22:31:51 UTC
I can understand the compile from sources. In that case existing binaries, not
named -bin should be masked or removed. I do not think it's good to have old
outdate binaries in portage, but up to you all.

The last comment I made just before yours was to an ebuild that does compile the
Java stuff by default. Being this is a JDBC 3 driver the .so files do not belong
to it. That is part of the JDBC 2 JNI requirements and implementation. I am
working on an ebuild for a JDBC 2 version of JayBird that will build the .so.
However I do not use it, I am just doing it to help out and keep it current.

So far I have not been able to directly make the native stuff. Once I get that
down I will add it to the ebuild so it builds the jar and the necessary .so
file. Not sure if a different .jar file will have to be specified or restricted
to a particular jvm. I think the JDBC 2 stuff only wants to build under a 1.3 jdk.
Comment 5 Karl Trygve Kalleberg (RETIRED) gentoo-dev 2005-12-15 23:19:58 UTC
I agree. Existing non-bin packages should indeed either be renamed or dropped.
If they work and are rather current, renaming them would be the best option. In
this case, we can hopefully replace it seamlessly with a from-source ebuild if
you get this stuff working. 
Comment 6 William L. Thomson Jr. (RETIRED) gentoo-dev 2005-12-15 23:48:21 UTC
Created attachment 74861 [details]
jdbc3-jaybird-2.0.1.ebuild

removed line that removed a zip file that does not get copied over to the
working directory while compiling. Not a functional issue, just anal one.
Comment 7 William L. Thomson Jr. (RETIRED) gentoo-dev 2005-12-16 12:36:45 UTC
Created attachment 74893 [details]
jdbc3-jaybird-2.0.1.ebuild

Added dependenies. Added support for test use flag and feature. Tested all use flags except jikes. Tested resulting binary. Should be final ebuild, unless I missed something and/or a bug is found.
Comment 8 Petteri Räty (RETIRED) gentoo-dev 2005-12-16 14:19:43 UTC
https://svn.gentooexperimental.org/svn/java/gentoo-java-experimental/dev-java/jdbc3-jaybird
Added this to the experimental overlay.
Still has at least the following problem:
use source:
zip error: Nothing to do! (/var/tmp/portage/jdbc3-jaybird-2.0.1/temp/jdbc3-jaybird-src.zip)
/var/tmp/portage/jdbc3-jaybird-2.0.1/work/client-java/src/jdk1_5/org
Comment 9 William L. Thomson Jr. (RETIRED) gentoo-dev 2005-12-17 13:55:15 UTC
Just found out this is really a JDBC type 4 driver. The package name needs to be changed to jdbc4-jaybird.
Comment 10 William L. Thomson Jr. (RETIRED) gentoo-dev 2005-12-17 18:29:38 UTC

*** This bug has been marked as a duplicate of 115897 ***