debian/ 0000755 0000000 0000000 00000000000 12156110747 007172 5 ustar debian/patches/ 0000755 0000000 0000000 00000000000 12156071570 010621 5 ustar debian/patches/javacc5.diff 0000644 0000000 0000000 00000006011 12156071570 012765 0 ustar Patch from upstream - https://issues.apache.org/jira/secure/attachment/12473505/javacc5.diff
--- a/java/tools/org/apache/derby/impl/tools/ij/ij.jj
+++ b/java/tools/org/apache/derby/impl/tools/ij/ij.jj
@@ -28,6 +28,7 @@
UNICODE_INPUT = true;
IGNORE_CASE = true;
CACHE_TOKENS = true;
+ JDK_VERSION = "1.4";
}
PARSER_BEGIN(ij)
--- a/java/tools/org/apache/derby/impl/tools/ij/mtGrammar.jj
+++ b/java/tools/org/apache/derby/impl/tools/ij/mtGrammar.jj
@@ -27,6 +27,7 @@
IGNORE_CASE = true;
CACHE_TOKENS = true;
LOOKAHEAD = 1;
+ JDK_VERSION = "1.4";
}
PARSER_BEGIN(mtGrammar)
--- /dev/null
+++ b/java/engine/org/apache/derby/impl/sql/compile/TokenBase.java
@@ -0,0 +1,35 @@
+/*
+
+Derby - Class org.apache.derby.impl.sql.compile.Token
+
+Licensed to the Apache Software Foundation (ASF) under one or more
+contributor license agreements. See the NOTICE file distributed with
+this work for additional information regarding copyright ownership.
+The ASF licenses this file to you under the Apache License, Version 2.0
+(the "License"); you may not use this file except in compliance with
+the License. You may obtain a copy of the License at
+
+http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing, software
+distributed under the License is distributed on an "AS IS" BASIS,
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+See the License for the specific language governing permissions and
+limitations under the License.
+
+*/
+
+package org.apache.derby.impl.sql.compile;
+
+/**
+ * Base class for the Token class generated by JavaCC.
+ */
+abstract class TokenBase {
+ /**
+ * beginOffset and endOffset are useful for siphoning substrings out of
+ * the Statement so that we can recompile the substrings at upgrade time.
+ * For instance, VIEW definitions and the Restrictions on Published Tables
+ * need to be recompiled at upgrade time.
+ */
+ int beginOffset, endOffset;
+}
--- a/java/engine/org/apache/derby/impl/sql/compile/sqlgrammar.jj
+++ b/java/engine/org/apache/derby/impl/sql/compile/sqlgrammar.jj
@@ -11,6 +11,8 @@
COMMON_TOKEN_ACTION = true;
CACHE_TOKENS = true;
UNICODE_INPUT = true;
+ JDK_VERSION = "1.4";
+ TOKEN_EXTENDS = "org.apache.derby.impl.sql.compile.TokenBase";
}
PARSER_BEGIN(SQLParser)
--- a/java/engine/org/apache/derby/impl/sql/build.xml
+++ b/java/engine/org/apache/derby/impl/sql/build.xml
@@ -57,11 +57,10 @@
Token.java
TokenMgrError.java
- 3 of those files are checked into the codeline:
+ 2 of those files are checked into the codeline:
CharStream.java
ParseException.java
- Token.java
We don't want generated code to clash with the checked-in versions. So
we delete the conflicting classes here.
@@ -70,7 +69,6 @@
-
debian/patches/work_with_newer_javacc 0000644 0000000 0000000 00000000706 12156071570 015273 0 ustar --- a/java/engine/org/apache/derby/impl/sql/compile/Token.java
+++ b/java/engine/org/apache/derby/impl/sql/compile/Token.java
@@ -98,7 +98,7 @@
* to the following switch statement. Then you can cast matchedToken
* variable to the appropriate type and use it in your lexical actions.
*/
- public static final Token newToken(int ofKind)
+ public static final Token newToken(int ofKind, String curTokenImage)
{
switch(ofKind)
{
debian/patches/series 0000644 0000000 0000000 00000000037 12156071570 012036 0 ustar stop_ant_fetching
javacc5.diff
debian/patches/stop_ant_fetching 0000644 0000000 0000000 00000001041 12156071570 014236 0 ustar Description: Prevents Ant from downloading external jars
Forwarded: not-needed
--- a/build.xml
+++ b/build.xml
@@ -215,7 +215,7 @@
-
+
debian/source/ 0000755 0000000 0000000 00000000000 12156071570 010472 5 ustar debian/source/format 0000644 0000000 0000000 00000000014 12156071570 011700 0 ustar 3.0 (quilt)
debian/wrappers/ 0000755 0000000 0000000 00000000000 12156110564 011032 5 ustar debian/wrappers/ij 0000644 0000000 0000000 00000000447 12156110564 011364 0 ustar #!/bin/sh
# Include the wrappers utility script
. /usr/lib/java-wrappers/java-wrappers.sh
find_java_runtime
JAVA_CLASSPATH=/usr/share/java/derbyclient.jar:/usr/share/java/derbytools.jar:/usr/share/java/derbynet.jar:/usr/share/java/servlet-api-3.0.jar
run_java org.apache.derby.tools.ij "$@"
debian/wrappers/PlanExporter 0000644 0000000 0000000 00000000461 12156110564 013401 0 ustar #!/bin/sh
# Include the wrappers utility script
. /usr/lib/java-wrappers/java-wrappers.sh
find_java_runtime
JAVA_CLASSPATH=/usr/share/java/derbyclient.jar:/usr/share/java/derbytools.jar:/usr/share/java/derbynet.jar:/usr/share/java/servlet-api-3.0.jar
run_java org.apache.derby.tools.PlanExporter "$@"
debian/wrappers/SignatureChecker 0000644 0000000 0000000 00000000465 12156110564 014210 0 ustar #!/bin/sh
# Include the wrappers utility script
. /usr/lib/java-wrappers/java-wrappers.sh
find_java_runtime
JAVA_CLASSPATH=/usr/share/java/derbyclient.jar:/usr/share/java/derbytools.jar:/usr/share/java/derbynet.jar:/usr/share/java/servlet-api-3.0.jar
run_java org.apache.derby.tools.SignatureChecker "$@"
debian/wrappers/dblook 0000644 0000000 0000000 00000000453 12156110564 012231 0 ustar #!/bin/sh
# Include the wrappers utility script
. /usr/lib/java-wrappers/java-wrappers.sh
find_java_runtime
JAVA_CLASSPATH=/usr/share/java/derbyclient.jar:/usr/share/java/derbytools.jar:/usr/share/java/derbynet.jar:/usr/share/java/servlet-api-3.0.jar
run_java org.apache.derby.tools.dblook "$@"
debian/wrappers/sysinfo 0000644 0000000 0000000 00000000353 12156110564 012450 0 ustar #!/bin/sh
# Include the wrappers utility script
. /usr/lib/java-wrappers/java-wrappers.sh
find_java_runtime
JAVA_CLASSPATH=/usr/share/java/derbyclient.jar:/usr/share/java/derbytools.jar
run_java org.apache.derby.tools.sysinfo "$@"
debian/wrappers/NetworkServerControl 0000644 0000000 0000000 00000000513 12156110564 015135 0 ustar #!/bin/sh
# Include the wrappers utility script
. /usr/lib/java-wrappers/java-wrappers.sh
find_java_runtime
JAVA_CLASSPATH=/usr/share/java/derbyclient.jar:/usr/share/java/derbytools.jar:/usr/share/java/derbynet.jar:/usr/share/java/servlet-api-3.0.jar
run_java org.apache.derby.drda.NetworkServerControl -noSecurityManager "$@"
debian/compat 0000644 0000000 0000000 00000000002 12156071570 010370 0 ustar 9
debian/derby-doc.doc-base 0000644 0000000 0000000 00000000327 12156071570 012443 0 ustar Document: derby-doc
Title: Apache Derby API documentation and examples
Author: Apache Derby developers
Section: Programming
Format: HTML
Index: /usr/share/doc/derby-doc/index.html
Files: /usr/share/doc/derby-doc/*
debian/changelog 0000644 0000000 0000000 00000000447 12156073622 011051 0 ustar derby (10.10.1.1-1) unstable; urgency=low
* Initial release (Closes: #617425)
Package developed with the help of Tim Booth ,
Zied Abid and Emmanuel Bourg
-- Emmanuel Bourg Wed, 12 Jun 2013 15:26:34 +0200
debian/libderbyclient-java.poms 0000644 0000000 0000000 00000000176 12156071570 014010 0 ustar maven2/client/pom.xml --no-parent --java-lib --artifact=jars/insane/derbyclient.jar --dest-jar=usr/share/java/derbyclient.jar
debian/libderby-java.poms 0000644 0000000 0000000 00000002771 12156071570 012614 0 ustar maven2/engine/pom.xml --no-parent --java-lib --artifact=jars/insane/derby.jar --dest-jar=usr/share/java/derby.jar
maven2/net/pom.xml --no-parent --java-lib --artifact=jars/insane/derbynet.jar --dest-jar=usr/share/java/derbynet.jar
maven2/derbyLocale_cs/pom.xml --no-parent --java-lib --artifact=jars/insane/derbyLocale_cs.jar
maven2/derbyLocale_de_DE/pom.xml --no-parent --java-lib --artifact=jars/insane/derbyLocale_de_DE.jar
maven2/derbyLocale_es/pom.xml --no-parent --java-lib --artifact=jars/insane/derbyLocale_es.jar
maven2/derbyLocale_fr/pom.xml --no-parent --java-lib --artifact=jars/insane/derbyLocale_fr.jar
maven2/derbyLocale_hu/pom.xml --no-parent --java-lib --artifact=jars/insane/derbyLocale_hu.jar
maven2/derbyLocale_it/pom.xml --no-parent --java-lib --artifact=jars/insane/derbyLocale_it.jar
maven2/derbyLocale_ja_JP/pom.xml --no-parent --java-lib --artifact=jars/insane/derbyLocale_ja_JP.jar
maven2/derbyLocale_ko_KR/pom.xml --no-parent --java-lib --artifact=jars/insane/derbyLocale_ko_KR.jar
maven2/derbyLocale_pl/pom.xml --no-parent --java-lib --artifact=jars/insane/derbyLocale_pl.jar
maven2/derbyLocale_pt_BR/pom.xml --no-parent --java-lib --artifact=jars/insane/derbyLocale_pt_BR.jar
maven2/derbyLocale_ru/pom.xml --no-parent --java-lib --artifact=jars/insane/derbyLocale_ru.jar
maven2/derbyLocale_zh_CN/pom.xml --no-parent --java-lib --artifact=jars/insane/derbyLocale_zh_CN.jar
maven2/derbyLocale_zh_TW/pom.xml --no-parent --java-lib --artifact=jars/insane/derbyLocale_zh_TW.jar
debian/rules 0000755 0000000 0000000 00000004531 12156071570 010255 0 ustar #!/usr/bin/make -f
# DH_VERBOSE := 1
# Try to convince ant not to connect to the network
export ANT_OPTS=-Dhttp.proxyHost=127.0.0.1 -Dhttp.proxyPort=8888 -Duser.home=`pwd`/debian
pkg := $(shell dpkg-parsechangelog | sed -n 's/^Source: //p')
version=$(shell dpkg-parsechangelog -ldebian/changelog | grep Version: | cut -f2 -d' ' | sed 's/[-+].*//' )
%:
dh $@
override_dh_auto_clean:
mh_clean
ant clobber
# Totally remove jars and javadoc directory
rm -rf jars javadoc tools/java/*
# Other bits
rm -f *.log
cd java/demo/toursdb/ ; rm -rf *generated* ToursDB_schema.sql loadTables.sql
rm -f java/engine/org/apache/derby/impl/sql/compile/Token.java
override_dh_auto_build:
#Put .jar files in place
cat /usr/share/java/oro.jar > tools/java/jakarta-oro-2.0.8.jar
cat /usr/share/java/javacc.jar > tools/java/javacc.jar
cat /usr/share/java/junit.jar > tools/java/junit.jar
ant buildsource buildjars binscripts javadoc
override_dh_installdocs:
rm -Rf javadoc/testing
dh_installdocs
override_dh_test:
env CLASSPATH=`echo jars/insane/*.jar | tr ' ' ':'` \
java org.apache.derby.tools.sysinfo
ant all
override_dh_compress:
# Disable the compression of the individual files in the documentation package
dh_compress -pderby-doc -X .java -X .xml -X .txt -X .sql
dh_compress -Nderby-doc
override_dh_auto_install:
mh_install -plibderbyclient-java -e$(version)
mh_install -plibderby-java -e$(version)
dh_installchangelogs -plibderby-java RELEASE-NOTES.html
mh_install -pderby-tools -e$(version)
mkdir -p debian/derby-tools/usr/share/derby
install -m 755 debian/wrappers/ij debian/derby-tools/usr/share/derby
install -m 755 debian/wrappers/dblook debian/derby-tools/usr/share/derby
install -m 755 debian/wrappers/sysinfo debian/derby-tools/usr/share/derby
install -m 755 debian/wrappers/NetworkServerControl debian/derby-tools/usr/share/derby
install -m 755 debian/wrappers/PlanExporter debian/derby-tools/usr/share/derby
install -m 755 debian/wrappers/SignatureChecker debian/derby-tools/usr/share/derby
dh_link -pderby-tools usr/share/derby/ij usr/bin/ij
dh_link -pderby-tools usr/share/derby/dblook usr/bin/dblook
dh_link -pderby-tools usr/share/derby/NetworkServerControl usr/bin/derbyctl
get-orig-source:
uscan --force-download --download-version $(version)
debian/README.source 0000644 0000000 0000000 00000000523 12156071570 011351 0 ustar Apache Derby for Debian
-----------------------
Documentation is in the download but needs DITA to compile it
http://prdownloads.sourceforge.net/dita-ot/DITA-OT1.1.2.1_bin-ASL.zip?download
and apparently it has to be this specific version and no other.
I could package this, or I could shove it into the tarball, but neither is
much fun.
debian/orig-tar.sh 0000755 0000000 0000000 00000000664 12156071570 011263 0 ustar #!/bin/sh -e
# called by uscan with '--upstream-version'
VERSION=$2
TAR=../derby_$VERSION.orig.tar.gz
DIR=db-derby-$VERSION-src
tar -zxf $3
rm $3
GZIP=--best tar -c -z -f $TAR \
--exclude '*.bat' \
--exclude 'tools/java/*' \
$DIR
rm -rf $DIR
rm -rf db-derby-$VERSION-doc-src
# move to directory 'tarballs'
if [ -r .svn/deb-layout ]; then
. .svn/deb-layout
mv $TAR $origDir && echo "moved $TAR to $origDir"
fi
debian/derby-doc.docs 0000644 0000000 0000000 00000000132 12156071570 011710 0 ustar javadoc
java/demo
published_api_overview.html
releaseSummary.xml
README
NOTICE
index.html
debian/derby-doc.lintian-overrides 0000644 0000000 0000000 00000000166 12156071570 014425 0 ustar # Ignore duplicate files in the generated Javadoc
derby-doc binary: duplicate-files usr/share/doc/derby-doc/javadoc/*
debian/watch 0000644 0000000 0000000 00000000175 12156071570 010226 0 ustar version=3
http://archive.apache.org/dist/db/derby/db-derby-([\d\.]+)/db-derby-([\d\.]+)-src.tar.gz debian debian/orig-tar.sh
debian/libderby-java.lintian-overrides 0000644 0000000 0000000 00000000211 12156071570 015257 0 ustar # The localisation jars contain only .properties files and no classes
libderby-java binary: codeless-jar usr/share/java/derbyLocale*.jar
debian/copyright 0000644 0000000 0000000 00000003361 12156071570 011130 0 ustar Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
Upstream-Name: Apache Derby
Source: http://db.apache.org/derby/
Files: *
Copyright: 2004-2012, The Apache Software Foundation
1997-2004, International Business Machines Corporation
License: Apache-2.0
On Debian systems you can find the complete text of the
Apache-2.0 license in '/usr/share/common-licenses/Apache-2.0'
Files: debian/*
Copyright: 2013, Emmanuel Bourg
2012-2013, Tim Booth
License: BSD-2-clause
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:
.
1. Redistributions of source code must retain the above copyright notice, this
list of conditions and the following disclaimer.
2. Redistributions in binary form must reproduce the above copyright notice,
this list of conditions and the following disclaimer in the documentation
and/or other materials provided with the distribution.
.
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR
ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
debian/ant.properties 0000644 0000000 0000000 00000000262 12156071570 012072 0 ustar # This file should be read by ant because home is set to the debian dir.
sane=false
deprecation=off
junit=/usr/share/java/junit.jar
servlet24=/usr/share/java/servlet-api-3.0.jar
debian/control 0000644 0000000 0000000 00000007476 12156071730 010611 0 ustar Source: derby
Section: java
Priority: optional
Maintainer: Debian Java Maintainers
Uploaders: Tim Booth , Emmanuel Bourg
Build-Depends: debhelper (>= 9), default-jdk, javacc (>= 5.0-5), junit,
liboro-java, ant (>= 1.7), maven-repo-helper, libservlet3.0-java
Standards-Version: 3.9.4
Vcs-Svn: svn://anonscm.debian.org/pkg-java/trunk/derby
Vcs-Browser: http://anonscm.debian.org/viewvc/pkg-java/trunk/derby
Homepage: http://db.apache.org/derby/
Package: libderbyclient-java
Architecture: all
Depends: ${misc:Depends}
Suggests: derby-tools, derby-doc
Description: Apache Derby Client JDBC Driver
The Derby network client provides network connectivity to the Derby Network
Server. It is distributed as an additional jar file, derbyclient.jar, with an
entirely independent code base from the embedded driver.
.
The Derby network client is a type 4, JDBC compliant Driver, which attempts
to match the Derby Embedded JDBC driver as much as possible.
.
The Derby Network Server is provided by the derby-core package.
Package: libderby-java
Architecture: all
Depends: ${misc:Depends}
Recommends: libservlet3.0-java
Suggests: derby-doc
Description: Apache Derby Database Engine and Embedded JDBC Driver
Apache Derby is an open source relational database implemented entirely
in Java.
* Derby has a small footprint -- about 2.6 megabytes for the base engine and
embedded JDBC driver.
* Derby is based on the Java, JDBC, and SQL standards.
* Derby provides an embedded JDBC driver that lets you embed Derby in any
Java-based solution.
* Derby also supports the more familiar client/server mode with the Derby
Network Client JDBC driver and Derby Network Server.
* Derby is easy to install, deploy, and use.
.
This package includes the database server, the embedded JDBC driver and
localisations.
Package: derby-tools
Architecture: all
Depends: ${misc:Depends}, libderby-java, libderbyclient-java, java-wrappers, default-jre | java6-runtime-headless
Description: Apache Derby Tools
The Derby tools and utilities are a set of routines supplied with Derby
that are typically used to create, inspect, and update a Derby database.
.
These tools and utilities include:
* NetworkServerControl, provides the ability to start a Network Server or
connect to a running Network Server to shutdown, configure or retrieve
diagnostic information.
* ij, the Derby's interactive JDBC scripting tool. It is a simple utility
for running scripts against a Derby database. You can also use it
interactively to run ad hoc queries. ij provides several commands for ease
in accessing a variety of JDBC features.
ij can be used in an embedded or a client/server environment.
* sysinfo, provides information about your version of Derby and your
environment.
* dblook, the Derby's Data Definition Language (DDL) Generation Utility,
more informally called a schema dump tool. It is a simple utility that
dumps the DDL of a user-specified database to either a console or a file.
The generated DDL can then be used for such things as recreating all or
parts of a database, viewing a subset of a database's objects (for example,
those which pertain to specific tables and schemas), or documenting
a database's schema.
* SignatureChecker, a tool that identifies any SQL functions and procedures
in a database that do not follow the SQL Standard argument matching rules.
* PlanExporter, a tool to export query plan data for further analysis.
Package: derby-doc
Architecture: all
Section: doc
Depends: ${misc:Depends}
Description: Apache Derby API documentation and examples
Apache Derby is an open source relational database implemented entirely
in Java.
.
This package contains a Javadoc documenting the API and demo software
for Apache Derby.
debian/derby-tools.poms 0000644 0000000 0000000 00000000173 12156071570 012336 0 ustar maven2/tools/pom.xml --no-parent --java-lib --artifact=jars/insane/derbytools.jar --dest-jar=usr/share/java/derbytools.jar