[derby] 02/53: Importing package developed by Tim Booth <tbooth at ceh.ac.uk> svn://svn.debian.org/svn/debian-med/trunk/packages/apache-derby
Emmanuel Bourg
ebourg-guest at moszumanska.debian.org
Thu Nov 24 13:57:59 UTC 2016
This is an automated email from the git hooks/post-receive script.
ebourg-guest pushed a commit to branch master
in repository derby.
commit 758a79977fbea8d98060e3bbcfcc3d58f310150d
Author: Emmanuel Bourg <ebourg at apache.org>
Date: Thu Jun 6 17:01:32 2013 +0000
Importing package developed by Tim Booth <tbooth at ceh.ac.uk>
svn://svn.debian.org/svn/debian-med/trunk/packages/apache-derby
---
debian/README.source | 20 +++++++
debian/ant.properties | 4 ++
debian/apache-derby-client.install | 1 +
debian/apache-derby-common.docs | 6 +++
debian/apache-derby-core.install | 8 +++
debian/apache-derby-demo.docs | 1 +
debian/apache-derby-javadoc.docs | 1 +
debian/changelog | 24 +++++++++
debian/compat | 1 +
debian/control | 99 +++++++++++++++++++++++++++++++++++
debian/copyright | 11 ++++
debian/get-orig-source | 60 +++++++++++++++++++++
debian/patches/javacc5.diff | 93 ++++++++++++++++++++++++++++++++
debian/patches/series | 2 +
debian/patches/stop_ant_fetching | 11 ++++
debian/patches/work_with_newer_javacc | 11 ++++
debian/rules | 66 +++++++++++++++++++++++
debian/source/format | 1 +
debian/upstream | 12 +++++
debian/watch | 3 ++
20 files changed, 435 insertions(+)
diff --git a/debian/README.source b/debian/README.source
new file mode 100644
index 0000000..fe9fc7e
--- /dev/null
+++ b/debian/README.source
@@ -0,0 +1,20 @@
+# This packaging effort has been tried before and stalled.
+
+See:
+http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=617425
+
+Then see:
+https://issues.apache.org/jira/browse/DERBY-5125
+
+I need to patch up JavaCC, but after that we should be OK to
+proceed.
+
+Structure of packages based on:
+
+http://packages.ubuntu.com/source/quantal/sun-javadb
+
+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.
diff --git a/debian/ant.properties b/debian/ant.properties
new file mode 100644
index 0000000..496c37b
--- /dev/null
+++ b/debian/ant.properties
@@ -0,0 +1,4 @@
+# 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
diff --git a/debian/apache-derby-client.install b/debian/apache-derby-client.install
new file mode 100644
index 0000000..b66f5ae
--- /dev/null
+++ b/debian/apache-derby-client.install
@@ -0,0 +1 @@
+jars/*sane/derbyclient-*.jar /usr/share/apache-derby
diff --git a/debian/apache-derby-common.docs b/debian/apache-derby-common.docs
new file mode 100644
index 0000000..852075b
--- /dev/null
+++ b/debian/apache-derby-common.docs
@@ -0,0 +1,6 @@
+published_api_overview.html
+releaseSummary.xml
+README
+NOTICE
+RELEASE-NOTES.html
+index.html
diff --git a/debian/apache-derby-core.install b/debian/apache-derby-core.install
new file mode 100644
index 0000000..70a53f0
--- /dev/null
+++ b/debian/apache-derby-core.install
@@ -0,0 +1,8 @@
+bin/set*CP /usr/lib/apache-derby/bin
+generated/bin/* /usr/lib/apache-derby/bin
+jars/*sane/derby-*.jar /usr/share/apache-derby
+jars/*sane/derby.war /usr/share/apache-derby
+jars/*sane/derbyLocale*.jar /usr/share/apache-derby
+jars/*sane/derbynet.jar /usr/share/apache-derby
+jars/*sane/derbyrun.jar /usr/share/apache-derby
+jars/*sane/derbytools.jar /usr/share/apache-derby
diff --git a/debian/apache-derby-demo.docs b/debian/apache-derby-demo.docs
new file mode 100644
index 0000000..5155de5
--- /dev/null
+++ b/debian/apache-derby-demo.docs
@@ -0,0 +1 @@
+java/demo
diff --git a/debian/apache-derby-javadoc.docs b/debian/apache-derby-javadoc.docs
new file mode 100644
index 0000000..863d673
--- /dev/null
+++ b/debian/apache-derby-javadoc.docs
@@ -0,0 +1 @@
+javadoc
diff --git a/debian/changelog b/debian/changelog
new file mode 100644
index 0000000..71b7b6c
--- /dev/null
+++ b/debian/changelog
@@ -0,0 +1,24 @@
+apache-derby (10.10.1.1+repack-0ubuntu2) precise; urgency=low
+
+ * New upstream
+ * The docs are back, but I had to repack the tarball to
+ keep quilt happy, and I can't build the docs without
+ external stuff anyway.
+ * Ensure +repack doesn't end up in the .jar versions
+
+ -- Tim Booth <tbooth at ceh.ac.uk> Tue, 04 Jun 2013 17:06:57 +0100
+
+apache-derby (10.9.1.0-0ubuntu2) precise; urgency=low
+
+ * Fix find invocation in cleanup
+
+ -- Tim Booth <tbooth at ceh.ac.uk> Mon, 08 Apr 2013 18:24:56 +0100
+
+apache-derby (10.9.1.0-0ubuntu1) precise; urgency=low
+
+ * Initial release (Closes: 617425)
+ * Pull from SVN by tag
+ * Patch to work with newer javacc (needs patched javacc)
+ * (TODO - remember to clean out tarball before upload)
+
+ -- Tim Booth <tbooth at ceh.ac.uk> Fri, 05 Apr 2013 17:00:14 +0100
diff --git a/debian/compat b/debian/compat
new file mode 100644
index 0000000..ec63514
--- /dev/null
+++ b/debian/compat
@@ -0,0 +1 @@
+9
diff --git a/debian/control b/debian/control
new file mode 100644
index 0000000..0b60579
--- /dev/null
+++ b/debian/control
@@ -0,0 +1,99 @@
+Source: apache-derby
+Section: science
+Priority: optional
+Maintainer: Debian Med Packaging Team <debian-med-packaging at lists.alioth.debian.org>
+Uploaders: Tim Booth <tbooth at ceh.ac.uk>
+Build-Depends: debhelper (>= 9), default-jdk, javacc ( >= 5.0-5fix1 ) , junit, liboro-java, ant ( >= 1.7 )
+Standards-Version: 3.9.3
+Homepage: http://db.apache.org/derby/
+Vcs-Browser: http://svn.debian.org/wsvn/debian-med/trunk/packages/apache-derby/trunk/
+Vcs-Svn: svn://svn.debian.org/debian-med/trunk/packages/apache-derby/trunk/
+
+Package: apache-derby-client
+Architecture: all
+Section: libs
+Priority: optional
+Depends: ${misc:Depends}, apache-derby-common, default-jre | java6-runtime
+Description: Apache Derby client
+ Client for Apache Derby.
+ .
+ The client connects to a remote, local or embedded Apache Derby network server.
+ The server software comes with the apache-derby-core package.
+ .
+ This is a free version of the libraries provided by sun-javadb-client
+
+Package: apache-derby-common
+Architecture: all
+Depends: ${misc:Depends}
+Suggests: apache-derby-core, apache-derby-client, apache-derby-javadoc, apache-derby-demo
+Description: Embeddable relational database for Java, common files
+ 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 contains common information about Apache Derby. The file
+ index.html introduces the product and has references to further
+ documentation, some of which is in the packages,
+ apache-derby-javadoc and apache-derby-demo.
+ .
+ This is a free version of the libraries provided by sun-javadb-common
+
+Package: apache-derby-core
+Architecture: all
+Depends: ${shlibs:Depends}, ${misc:Depends}, apache-derby-common
+Suggests: apache-derby-client, apache-derby, apache-derby-javadoc, apache-derby-demo
+Description: Embeddable relational database for Java, core
+ 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 JDBC driver, utilities and
+ localisations.
+ .
+ This is a free version of the libraries provided by sun-javadb-core
+
+Package: apache-derby-demo
+Architecture: all
+Section: devel
+Priority: optional
+Depends: ${misc:Depends}, apache-derby-common, default-jre | java6-runtime
+Description: Apache Derby demo
+ Demo software for Apache Derby.
+ .
+ This package contains sample programs, database and templates.
+ .
+ This is a free version of the libraries provided by sun-javadb-demo
+
+#Package: apache-derby-doc
+#Architecture: all
+#Depends: ${shlibs:Depends}, ${misc:Depends}, apache-derby-common
+#Description: Embeddable relational database for Java, documentation
+# Documentation for Apache Derby.
+# .
+# This package contains user documentation in both HTML and PDF formats.
+# .
+# This is a free version of the libraries provided by sun-javadb-doc
+
+Package: apache-derby-javadoc
+Architecture: all
+Section: devel
+Priority: optional
+Depends: ${misc:Depends}, apache-derby-common
+Description: Apache Derby javadoc
+ javadoc for Apache Derby
+ .
+ This package documents the API for JDBC.
+ .
+ This is a free version of the library provided by sun-javadb-javadoc
diff --git a/debian/copyright b/debian/copyright
new file mode 100644
index 0000000..79e5f2b
--- /dev/null
+++ b/debian/copyright
@@ -0,0 +1,11 @@
+Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
+Upstream-Name: Apache Derby
+Source: http://db.apache.org/derby/derby_downloads.html
+
+Files: *
+Copyright: © The Derby Developers
+License: Apache License
+
+Files: debian/*
+Copyright: © 2012 Tim Booth
+License: Simplified BSD
diff --git a/debian/get-orig-source b/debian/get-orig-source
new file mode 100755
index 0000000..3fe0532
--- /dev/null
+++ b/debian/get-orig-source
@@ -0,0 +1,60 @@
+#!/bin/sh
+# if you need to repack for whatever reason you can
+# use this script via uscan or directly
+#
+# FIXME: currently the code is not conform to Debian Policy
+# http://www.debian.org/doc/debian-policy/ch-source.html
+# "get-orig-source (optional)"
+# This target may be invoked in any directory, ...
+# --> currently it is assumed the script is called in the
+# source directory featuring the debian/ dir
+
+COMPRESS=bz2
+
+set -e
+test -e debian/control
+NAME=`dpkg-parsechangelog | awk '/^Source/ { print $2 }'`
+
+SVN=http://svn.apache.org/repos/asf/db/derby/code/tags
+
+if ! echo $@ | grep -q upstream-version ; then
+ VERSION=`dpkg-parsechangelog | awk '/^Version:/ { print $2 }' | sed 's/\([0-9\.]\+\)-[0-9]\+$/\1/'`
+
+ VERSION=`svn ls $SVN | tail -n1 | sed 's/\/$//'`
+else
+ VERSION=`echo $@ | sed "s?^.*--upstream-version \([0-9.]\+\) .*${NAME}.*?\1?"`
+ if echo "$VERSION" | grep -q "upstream-version" ; then
+ echo "Unable to parse version number"
+ exit
+ fi
+fi
+
+if [ -e ../${NAME}-${VERSION}.orig.tar.$COMPRESS ] ; then
+ echo "The tarball already exists."
+ false
+fi
+
+TARDIR=${NAME}-${VERSION}
+mkdir -p ../tarballs
+cd ../tarballs
+# need to clean up the tarballs dir first because upstream tarball might
+# contain a directory with unpredictable name
+# rm -rf *
+
+# Get from svn
+svn co "$SVN"/"$VERSION"
+
+UPSTREAMTARDIR=`find . -mindepth 1 -maxdepth 1 -type d`
+if [ "${UPSTREAMTARDIR}" != "./${TARDIR}" ] ; then
+ echo mv "${UPSTREAMTARDIR}" "${TARDIR}"
+ mv "${UPSTREAMTARDIR}" "${TARDIR}"
+fi
+
+# Remove useless binaries and .svn
+#find "${TARDIR}" -name '.*' -exec rm -rf '{}' ';' -prune
+#find "${TARDIR}" -name '*.jar' -exec rm '{}' ';'
+
+GZIP="--best --no-name" tar --owner=root --group=root --mode=a+rX -caf "$NAME"_"$VERSION".orig.tar.${COMPRESS} "${TARDIR}"
+#rm -rf ${TARDIR}
+
+ln -s tarballs/"$NAME"_"$VERSION".orig.tar.${COMPRESS} ..
diff --git a/debian/patches/javacc5.diff b/debian/patches/javacc5.diff
new file mode 100644
index 0000000..d497cbb
--- /dev/null
+++ b/debian/patches/javacc5.diff
@@ -0,0 +1,93 @@
+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 @@
+ <fileset dir="${generated.src.dir}/${derby.dir}/impl/sql/compile">
+ <include name="CharStream.java"/>
+ <include name="ParseException.java"/>
+- <include name="Token.java"/>
+ </fileset>
+ </delete>
+
diff --git a/debian/patches/series b/debian/patches/series
new file mode 100644
index 0000000..c6e9c21
--- /dev/null
+++ b/debian/patches/series
@@ -0,0 +1,2 @@
+stop_ant_fetching
+javacc5.diff
diff --git a/debian/patches/stop_ant_fetching b/debian/patches/stop_ant_fetching
new file mode 100644
index 0000000..d089055
--- /dev/null
+++ b/debian/patches/stop_ant_fetching
@@ -0,0 +1,11 @@
+--- a/build.xml
++++ b/build.xml
+@@ -215,7 +215,7 @@
+ </target>
+
+ <target name="install_junit" depends="junit_check" unless="junit.exists" description="installs junit.jar into derby">
+- <get src="${junit.url}" dest="${basedir}/tools/java/junit.jar" verbose="true" ignoreerrors="true"/>
++ <fail message="Cannot fetch from network during package build"/>
+ </target>
+
+ <!-- ==================================================================== -->
diff --git a/debian/patches/work_with_newer_javacc b/debian/patches/work_with_newer_javacc
new file mode 100644
index 0000000..aaa78ce
--- /dev/null
+++ b/debian/patches/work_with_newer_javacc
@@ -0,0 +1,11 @@
+--- 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)
+ {
diff --git a/debian/rules b/debian/rules
new file mode 100755
index 0000000..b5e309b
--- /dev/null
+++ b/debian/rules
@@ -0,0 +1,66 @@
+#!/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:
+ ant clobber
+ # Totally remove jars and javadoc directory
+ rm -rf jars javadoc
+ # Remove any .jars or dot files
+ find -name debian -prune -or -name '.svn' -prune -execdir rm -rf '{}' ';'
+ find -name debian -prune -or -name '.git*' -prune -execdir rm -rf '{}' ';'
+ find -name debian -prune -or -name '*.jar' -execdir rm '{}' ';'
+ find -name debian -prune -or -name 'derby.log' -execdir rm '{}' ';'
+ # Other bits
+ rm -f *.log
+ cd java/demo/toursdb/ ; rm -rf *generated* ToursDB_schema.sql loadTables.sql
+
+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
+ #Remove file that breaks the build
+ rm -f java/engine/org/apache/derby/impl/sql/compile/Token.java
+ #And build
+ ant buildsource
+ ant buildjars
+ ant binscripts
+ #Rename jars with versions
+ for f in jars/*/derbyclient.jar jars/*/derby.jar ; do \
+ mv $$f `echo $$f | sed 's/\./-${version}./'` ; \
+ done
+ #And docs
+ ant javadoc
+
+override_dh_install:
+ dh_install -X.bat
+ chmod a+x debian/apache-derby-core/usr/lib/apache-derby/bin/*
+
+override_dh_test:
+ env CLASSPATH=`echo jars/insane/*.jar | tr ' ' ':'` \
+ java org.apache.derby.tools.sysinfo
+ ant all
+
+#Moved symlink stuff here so it works after version change
+override_dh_link:
+ dh_link -papache-derby-client /usr/share/apache-derby/derbyclient-$(version).jar /usr/share/java/derbyclient-$(version).jar
+ dh_link -papache-derby-client /usr/share/java/derbyclient-$(version).jar /usr/share/java/derbyclient.jar
+ #.
+ dh_link -papache-derby-core /usr/share/apache-derby/derby-$(version).jar /usr/share/apache-derby/derby-$(version).jar
+ dh_link -papache-derby-core /usr/share/apache-derby/derby-$(version).jar /usr/share/java/derby-$(version).jar
+ dh_link -papache-derby-core /usr/share/java/derby-$(version).jar /usr/share/java/derby.jar
+ #.
+ dh_link --verbose
+
+get-orig-source:
+ . debian/get-orig-source
diff --git a/debian/source/format b/debian/source/format
new file mode 100644
index 0000000..163aaf8
--- /dev/null
+++ b/debian/source/format
@@ -0,0 +1 @@
+3.0 (quilt)
diff --git a/debian/upstream b/debian/upstream
new file mode 100644
index 0000000..d8b5812
--- /dev/null
+++ b/debian/upstream
@@ -0,0 +1,12 @@
+Reference:
+ Author:
+ Title:
+ Journal:
+ Year:
+ Volume:
+ Number:
+ Pages:
+ DOI:
+ PMID:
+ URL:
+ eprint:
diff --git a/debian/watch b/debian/watch
new file mode 100644
index 0000000..8cf4a03
--- /dev/null
+++ b/debian/watch
@@ -0,0 +1,3 @@
+version=3
+
+http://www.mirrorservice.org/sites/ftp.apache.org//db/derby/db-derby-([0-9.]+)/db-derby-([0-9.]+)-src.tar.gz
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-java/derby.git
More information about the pkg-java-commits
mailing list