Author: janpascal-guest Date: 2009-12-24 13:10:58 +0000 (Thu, 24 Dec 2009) New Revision: 11306
Added: trunk/lucene2/debian/patches/05_add-osgi-metadata-in-manifests.dpatch Modified: trunk/lucene2/debian/changelog trunk/lucene2/debian/patches/00list Log: Working on patch set set OSGi metadata in the MANIFEST.MF files Modified: trunk/lucene2/debian/changelog =================================================================== --- trunk/lucene2/debian/changelog 2009-12-23 15:31:21 UTC (rev 11305) +++ trunk/lucene2/debian/changelog 2009-12-24 13:10:58 UTC (rev 11306) @@ -1,7 +1,17 @@ +lucene2 (2.9.1+ds1-3~pre1) experimental; urgency=low + + * Mention in this changelog that CVE-2007-2383 has been fixed + (Closes: #558355; Fix CVE-2007-2383) + * First try at providing OSGi metadata in the Manifest for the + core and analysis packages (needed for building Eclipse). Still + need to set symbolicname and requirepackage for most jars. + + -- Jan-Pascal van Best <janpas...@vanbest.org> Thu, 24 Dec 2009 14:10:17 +0100 + lucene2 (2.9.1+ds1-2) unstable; urgency=low * Removed (unused) embedded Prototype javascript library - (Closes: #555225, #555226) + (Closes: #555225, #555226; Fix CVE-2007-2383) * Added README.source containing information about how to create the Debian source from the upstream source tarball Modified: trunk/lucene2/debian/patches/00list =================================================================== --- trunk/lucene2/debian/patches/00list 2009-12-23 15:31:21 UTC (rev 11305) +++ trunk/lucene2/debian/patches/00list 2009-12-24 13:10:58 UTC (rev 11306) @@ -1,4 +1,5 @@ 01_remove_all_jarfiles.dpatch +05_add-osgi-metadata-in-manifests.dpatch 10_fix-javacc-locations.dpatch 11_fix-javacc-generated-files.dpatch 20_fix-java-compiler-version.dpatch Added: trunk/lucene2/debian/patches/05_add-osgi-metadata-in-manifests.dpatch =================================================================== --- trunk/lucene2/debian/patches/05_add-osgi-metadata-in-manifests.dpatch (rev 0) +++ trunk/lucene2/debian/patches/05_add-osgi-metadata-in-manifests.dpatch 2009-12-24 13:10:58 UTC (rev 11306) @@ -0,0 +1,109 @@ +#! /bin/sh /usr/share/dpatch/dpatch-run +## 05_add-osgi-metadata-in-manifests.dpatch by Jan-Pascal van Best <janpas...@vanbest.org> +## +## All lines beginning with `## DP:' are a description of the patch. +## DP: No description. + +...@dpatch@ +diff -urNad lucene2~/build.xml lucene2/build.xml +--- lucene2~/build.xml 2009-12-24 13:55:47.000000000 +0100 ++++ lucene2/build.xml 2009-12-24 13:55:48.000000000 +0100 +@@ -21,6 +21,16 @@ + + <property name="junit.includes" value="**/Test*.java"/> + ++ <property name="OSGI.symbolicname" value="org.apache.lucene" /> ++ <pathconvert property="OSGi.exportpackage" pathsep=","> ++ <dirset dir="src/java" excludes="org org/apache"/> ++ <mapper> ++ <chainedmapper> ++ <packagemapper from="${basedir}/src/java/*" to="*"/> ++ </chainedmapper> ++ </mapper> ++ </pathconvert> ++ + <import file="common-build.xml"/> + + <property name="build.demo.template" value="src/demo/demo-build.template"/> +diff -urNad lucene2~/common-build.xml lucene2/common-build.xml +--- lucene2~/common-build.xml 2009-12-24 13:55:47.000000000 +0100 ++++ lucene2/common-build.xml 2009-12-24 13:56:02.000000000 +0100 +@@ -313,6 +313,28 @@ + value="${javac.source}"/> + <attribute name="X-Compile-Target-JDK" + value="${javac.target}"/> ++ <attribute name="Bundle-ManifestVersion" ++ value="2"/> ++ <attribute name="Bundle-SymbolicName" ++ value="${OSGi.symbolicname}"/> ++ <attribute name="Require-Bundle" ++ value="${OSGi.requirebundle}"/> ++ <attribute name="Bundle-Name" ++ value="@{title}"/> ++ <attribute name="Bundle-Version" ++ value="${version}"/><!-- ++ <attribute name="Bundle-Version" ++ value="1.9.1.v20080530-1600"/>--> ++ <attribute name="Bundle-RequiredExecutionEnvironment" ++ value="J2SE-1.5"/> ++ <attribute name="Bundle-Vendor" ++ value="The Apache Software Foundation"/> ++ <attribute name="Bundle-Localization" ++ value="plugin"/> ++ <!--<attribute name="Export-Package" ++ value="org.apache.lucene,org.apache.lucene.analysis,org.apache.lucene.analysis.standard,org.apache.lucene.analysis.tokenattributes,org.apache.lucene.document,org.apache.lucene.index,org.apache.lucene.messages,org.apache.lucene.queryParser,org.apache.lucene.search,org.apache.lucene.search.function,org.apache.lucene.search.payloads,org.apache.lucene.search.spans,org.apache.lucene.store,org.apache.lucene.util,org.apache.lucene.util.cache"/>--> ++ <attribute name="Export-Package" ++ value="${OSGi.exportpackage}"/> + </manifest> + </sequential> + </macrodef> +diff -urNad lucene2~/contrib/analyzers/common/build.xml lucene2/contrib/analyzers/common/build.xml +--- lucene2~/contrib/analyzers/common/build.xml 2009-12-24 13:55:47.000000000 +0100 ++++ lucene2/contrib/analyzers/common/build.xml 2009-12-24 13:55:48.000000000 +0100 +@@ -31,7 +31,24 @@ + <property name="maven.dist.dir" location="../../../dist/maven" /> + + <import file="../../contrib-build.xml"/> +- ++ ++ <property name="OSGi.symbolicname" value="org.apache.lucene.analysis" /> ++ <property name="OSGi.requirebundle" ++ value='org.apache.lucene;bundle-version="${version}";visibility:=reexport' /> ++ <!-- ++ <property name="OSGi.exportpackage" ++ value="org.apache.lucene.analysis.shingle,org.apache.lucene.analysis.fr,org.apache.lucene.analysis.payloads,org.apache.lucene.analysis.cn,org.apache.lucene.analysis.reverse,org.apache.lucene.analysis.ar,org.apache.lucene.analysis.query,org.apache.lucene.analysis.fa,org.apache.lucene.analysis.el,org.apache.lucene.analysis.nl,org.apache.lucene.analysis.de,org.apache.lucene.analysis.cjk,org.apache.lucene.analysis.compound,org.apache.lucene.analysis.compound.hyphenation,org.apache.lucene.analysis.ngram,org.apache.lucene.analysis.ru,org.apache.lucene.analysis.br,org.apache.lucene.analysis.position,org.apache.lucene.analysis.cz,org.apache.lucene.analysis.sinks,org.apache.lucene.analysis.th,org.apache.lucene.analysis.miscellaneous" /> ++--> ++ <pathconvert property="OSGi.exportpackage" pathsep=","> ++ <dirset dir="src/java" excludes="org org/apache org/apache/lucene org/apache/lucene/analysis"/> ++ <!-- <map from="src/java" to=""/> --> ++ <mapper> ++ <chainedmapper> ++ <packagemapper from="${basedir}/src/java/*" to="*"/> ++ </chainedmapper> ++ </mapper> ++ </pathconvert> ++ + <path id="test.classpath"> + <path refid="classpath"/> + <pathelement location="../../../build/classes/test/"/> +diff -urNad lucene2~/contrib/contrib-build.xml lucene2/contrib/contrib-build.xml +--- lucene2~/contrib/contrib-build.xml 2009-12-24 13:55:47.000000000 +0100 ++++ lucene2/contrib/contrib-build.xml 2009-12-24 13:55:48.000000000 +0100 +@@ -24,7 +24,16 @@ + <property name="build.dir" location="../../build/contrib/${ant.project.name}"/> + <property name="dist.dir" location="../../dist/contrib/${ant.project.name}"/> + <property name="maven.dist.dir" location="../../dist/maven"/> +- ++ ++ <pathconvert property="OSGi.exportpackage" pathsep=","> ++ <dirset dir="src/java" excludes="org org/apache org/apache/lucene"/> ++ <mapper> ++ <chainedmapper> ++ <packagemapper from="${basedir}/src/java/*" to="*"/> ++ </chainedmapper> ++ </mapper> ++ </pathconvert> ++ + <import file="../common-build.xml"/> + + <property name="lucene.jar" location="${common.dir}/build/lucene-core-${version}.jar"/> Property changes on: trunk/lucene2/debian/patches/05_add-osgi-metadata-in-manifests.dpatch ___________________________________________________________________ Added: svn:executable + * _______________________________________________ pkg-java-commits mailing list pkg-java-comm...@lists.alioth.debian.org http://lists.alioth.debian.org/mailman/listinfo/pkg-java-commits