Blame SOURCES/0001-Various-build-fixes.patch

dd8f80
From 212c793fe0f4b9e352e2ae9949beb187e77abe68 Mon Sep 17 00:00:00 2001
dd8f80
From: =?UTF-8?q?Ville=20Skytt=C3=A4?= <ville.skytta@iki.fi>
dd8f80
Date: Mon, 9 Jun 2014 09:54:16 +0300
dd8f80
Subject: [PATCH 1/2] Various build fixes
dd8f80
dd8f80
---
dd8f80
 build.xml                | 19 ++++++++-----------
dd8f80
 build.xsl                | 28 ++++++++++++++++++----------
dd8f80
 mod/catalog/mod.xml      |  2 +-
dd8f80
 mod/datatype/mod.xml     |  1 +
dd8f80
 mod/jing/mod.xml         |  2 --
dd8f80
 mod/pattern/mod.xml      |  1 +
dd8f80
 mod/regex/mod.xml        |  2 +-
dd8f80
 mod/rng-jaxp/mod.xml     |  1 +
dd8f80
 mod/rng-validate/mod.xml |  2 +-
dd8f80
 mod/schematron/mod.xml   |  8 ++------
dd8f80
 mod/trang/mod.xml        |  3 +--
dd8f80
 mod/xerces/mod.xml       |  2 +-
dd8f80
 mod/xsd-datatype/mod.xml |  1 +
dd8f80
 13 files changed, 37 insertions(+), 35 deletions(-)
dd8f80
dd8f80
diff --git a/build.xml b/build.xml
dd8f80
index a2bc499..ee0f061 100644
dd8f80
--- a/build.xml
dd8f80
+++ b/build.xml
dd8f80
@@ -145,22 +145,19 @@
dd8f80
 
dd8f80
 <target name="javadoc" depends="init">
dd8f80
   <mkdir dir="${build.dir}/api"/>
dd8f80
-  <mkdir dir="${build.dir}/api/datatype"/>
dd8f80
   <mkdir dir="${build.dir}/api/jing"/>
dd8f80
   <mkdir dir="${build.dir}/api/regex"/>
dd8f80
-  
dd8f80
-    doctitle="RELAX NG Datatype API" windowtitle="RELAX NG Datatype API"
dd8f80
-    packagenames="org.relaxng.datatype,org.relaxng.datatype.helpers"/>
dd8f80
   
dd8f80
     packagenames="com.thaiopensource.datatype.xsd.regex,
dd8f80
 		  com.thaiopensource.datatype.xsd.regex.java,
dd8f80
-		  com.thaiopensource.datatype.xsd.regex.xerces2"/>
dd8f80
+		  com.thaiopensource.datatype.xsd.regex.xerces2">
dd8f80
+    <link href="/usr/share/javadoc/java"/>
dd8f80
+  </javadoc>
dd8f80
   
dd8f80
     doctitle="Jing API" windowtitle="Jing API"
dd8f80
     packagenames="${javadoc.packagenames}">
dd8f80
-    <link offline="true" href="../datatype" packagelistLoc="${build.dir}/api/datatype"/>
dd8f80
-    
dd8f80
-	  packagelistLoc="extapidoc/jdk/1.5"/>
dd8f80
+    <link href="/usr/share/javadoc/java"/>
dd8f80
+    <link href="/usr/share/javadoc/relaxngDatatype"/>
dd8f80
   </javadoc>
dd8f80
 </target>
dd8f80
 
dd8f80
@@ -170,7 +167,7 @@
dd8f80
            destdir="${build.dir}/doccheck"
dd8f80
            packagenames="${javadoc.packagenames}"
dd8f80
            doclet="com.sun.tools.doclets.doccheck.DocCheck"
dd8f80
-           docletpath="lib/doccheck.jar"/>
dd8f80
+           docletpath="${lib.dir}/doccheck.jar"/>
dd8f80
 </target>
dd8f80
 
dd8f80
 <target name="datatype-sample" depends="jar">
dd8f80
@@ -290,7 +287,7 @@
dd8f80
   
dd8f80
         fork="true"
dd8f80
         failonerror="yes"
dd8f80
-        classpath="${build.dir}/trang.jar">
dd8f80
+        classpath="${build.dir}/trang.jar:/usr/share/java/relaxngDatatype.jar">
dd8f80
     <arg value="dtdinst/dtdinst.rnc"/>
dd8f80
     <arg value="${build.dir}/dtdinst/dtdinst.rng"/>
dd8f80
   </java>
dd8f80
@@ -360,7 +357,7 @@
dd8f80
 	depends="version,googlecode.properties"
dd8f80
 	description="Upload files to Google Code. Run dist before this.">
dd8f80
   
dd8f80
-	   classpath="lib/ant-googlecode.jar" name="gcupload"/>
dd8f80
+	   classpath="${lib.dir}/ant-googlecode.jar" name="gcupload"/>
dd8f80
   
dd8f80
             password="${googlecode.password}" 
dd8f80
             projectname="jing-trang" 
dd8f80
diff --git a/build.xsl b/build.xsl
dd8f80
index d76508f..e084fca 100644
dd8f80
--- a/build.xsl
dd8f80
+++ b/build.xsl
dd8f80
@@ -10,12 +10,12 @@
dd8f80
   <project>
dd8f80
     <xmlproperty file="version.xml"/>
dd8f80
     <property name="build.dir" value="${{basedir}}/build"/>
dd8f80
-    <property name="javacc.dir" value="lib"/>
dd8f80
+    <property name="javacc.dir" value="${{lib.dir}}"/>
dd8f80
     <property name="ant.build.javac.source" value="1.5"/>
dd8f80
     <property name="ant.build.javac.target" value="1.5"/>
dd8f80
     <taskdef name="testng" classname="org.testng.TestNGAntTask">
dd8f80
       <classpath>
dd8f80
-	<pathelement location="lib/testng.jar"/>
dd8f80
+	<pathelement location="${{lib.dir}}/testng.jar"/>
dd8f80
       </classpath>
dd8f80
     </taskdef>
dd8f80
     <target name="dummy"/>
dd8f80
@@ -111,7 +111,7 @@
dd8f80
 	    <pathelement location="{$build}/mod/{@module}/classes/main"/>
dd8f80
 	  </xsl:for-each>
dd8f80
 	  <xsl:for-each select="depends[@lib]">
dd8f80
-	    <pathelement location="lib/{@lib}.jar"/>
dd8f80
+	    <pathelement location="${{lib.dir}}/{@lib}.jar"/>
dd8f80
 	  </xsl:for-each>
dd8f80
 	</classpath>
dd8f80
       </javac>
dd8f80
@@ -151,10 +151,10 @@
dd8f80
 	    <pathelement location="{$build}/mod/{@module}/classes/main"/>
dd8f80
 	  </xsl:for-each>
dd8f80
 	  <xsl:for-each select="depends[@lib]">
dd8f80
-	    <pathelement location="lib/{@lib}.jar"/>
dd8f80
+	    <pathelement location="${{lib.dir}}/{@lib}.jar"/>
dd8f80
 	  </xsl:for-each>
dd8f80
 	  <xsl:if test="test[@type='testng']">
dd8f80
-	    <pathelement location="lib/testng.jar"/>
dd8f80
+	    <pathelement location="${{lib.dir}}/testng.jar"/>
dd8f80
 	  </xsl:if>
dd8f80
 	</classpath>
dd8f80
       </javac>
dd8f80
@@ -298,13 +298,18 @@
dd8f80
       <classpath>
dd8f80
 	<pathelement location="{$build}/{$app}.jar"/>
dd8f80
 	<xsl:if test="@lib">
dd8f80
-	  <pathelement location="lib/{@lib}.jar"/>
dd8f80
+	  <pathelement location="${{lib.dir}}/{@lib}.jar"/>
dd8f80
 	  <xsl:if test="@lib='xalan'">
dd8f80
-	    <pathelement location="lib/serializer.jar"/>
dd8f80
+	    <pathelement location="${{lib.dir}}/xalan-j2-serializer.jar"/>
dd8f80
 	  </xsl:if>
dd8f80
 	</xsl:if>
dd8f80
+	
dd8f80
 	<xsl:if test="$app = 'jing'">
dd8f80
-	  <pathelement location="lib/xercesImpl.jar"/>
dd8f80
+	  <pathelement location="${{lib.dir}}/xerces-j2.jar"/>
dd8f80
+	  <pathelement location="${{lib.dir}}/relaxngDatatype.jar"/>
dd8f80
+	</xsl:if>
dd8f80
+	<xsl:if test="$app = 'trang'">
dd8f80
+	  <pathelement location="${{lib.dir}}/relaxngDatatype.jar"/>
dd8f80
 	</xsl:if>
dd8f80
       </classpath>
dd8f80
     </java>
dd8f80
@@ -373,7 +378,7 @@
dd8f80
 	  <pathelement location="mod/{@module}/src/main"/>
dd8f80
 	</xsl:for-each>
dd8f80
 	<xsl:for-each select="../depends[@lib]">
dd8f80
-	  <pathelement location="lib/{@lib}.jar"/>
dd8f80
+	  <pathelement location="${{lib.dir}}/{@lib}.jar"/>
dd8f80
 	</xsl:for-each>
dd8f80
       </classpath>
dd8f80
     </java>
dd8f80
@@ -402,8 +407,11 @@
dd8f80
 	  <pathelement location="mod/{@module}/src/main"/>
dd8f80
 	</xsl:for-each>
dd8f80
 	<xsl:for-each select="../depends[@lib]">
dd8f80
-	  <pathelement location="lib/{@lib}.jar"/>
dd8f80
+	  <pathelement location="${{lib.dir}}/{@lib}.jar"/>
dd8f80
 	</xsl:for-each>
dd8f80
+	
dd8f80
+	<pathelement location="${{lib.dir}}/bsh.jar"/>
dd8f80
+	<pathelement location="${{lib.dir}}/qdox.jar"/>
dd8f80
       </classpath>
dd8f80
     </testng>
dd8f80
   </target>
dd8f80
diff --git a/mod/catalog/mod.xml b/mod/catalog/mod.xml
dd8f80
index c8e2feb..5398646 100644
dd8f80
--- a/mod/catalog/mod.xml
dd8f80
+++ b/mod/catalog/mod.xml
dd8f80
@@ -3,5 +3,5 @@
dd8f80
   <test name="unit" type="testng"/>
dd8f80
   <depends module="util"/>
dd8f80
   <depends module="resolver"/>
dd8f80
-  <depends lib="resolver"/>
dd8f80
+  <depends lib="xml-commons-resolver"/>
dd8f80
 </module>
dd8f80
diff --git a/mod/datatype/mod.xml b/mod/datatype/mod.xml
dd8f80
index cd79499..cdb420a 100644
dd8f80
--- a/mod/datatype/mod.xml
dd8f80
+++ b/mod/datatype/mod.xml
dd8f80
@@ -1,4 +1,5 @@
dd8f80
 <module>
dd8f80
   <depends module="util"/>
dd8f80
+  <depends lib="relaxngDatatype"/>
dd8f80
   <compile/>
dd8f80
 </module>
dd8f80
diff --git a/mod/jing/mod.xml b/mod/jing/mod.xml
dd8f80
index 86583f8..8b2ec82 100644
dd8f80
--- a/mod/jing/mod.xml
dd8f80
+++ b/mod/jing/mod.xml
dd8f80
@@ -21,8 +21,6 @@
dd8f80
   <jar>
dd8f80
     <manifest>
dd8f80
       <attribute name="Main-Class" value="com/thaiopensource/relaxng/util/Driver"/>
dd8f80
-      
dd8f80
-		 value="xercesImpl.jar xml-apis.jar saxon.jar saxon9.jar xalan.jar isorelax.jar resolver.jar"/>
dd8f80
     </manifest>
dd8f80
     <service type="com.thaiopensource.datatype.xsd.regex.RegexEngine"/>
dd8f80
     <service type="org.relaxng.datatype.DatatypeLibraryFactory"/>
dd8f80
diff --git a/mod/pattern/mod.xml b/mod/pattern/mod.xml
dd8f80
index 777f484..875f1cb 100644
dd8f80
--- a/mod/pattern/mod.xml
dd8f80
+++ b/mod/pattern/mod.xml
dd8f80
@@ -3,6 +3,7 @@
dd8f80
   <depends module="resolver"/>
dd8f80
   <depends module="datatype"/>
dd8f80
   <depends module="rng-parse"/>
dd8f80
+  <depends lib="relaxngDatatype"/>
dd8f80
   <compile test="yes"/>
dd8f80
   <test name="unit" type="testng"/>
dd8f80
 </module>
dd8f80
diff --git a/mod/regex/mod.xml b/mod/regex/mod.xml
dd8f80
index 3d1f73f..b682d6d 100644
dd8f80
--- a/mod/regex/mod.xml
dd8f80
+++ b/mod/regex/mod.xml
dd8f80
@@ -1,6 +1,6 @@
dd8f80
 <module>
dd8f80
   <depends module="util"/>
dd8f80
-  <depends lib="xercesImpl"/>
dd8f80
+  <depends lib="xerces-j2"/>
dd8f80
   <compile test="yes"/>
dd8f80
   
dd8f80
 	class="com.thaiopensource.datatype.xsd.regex.test.TestDriver">
dd8f80
diff --git a/mod/rng-jaxp/mod.xml b/mod/rng-jaxp/mod.xml
dd8f80
index 10a8c6d..48c5d8c 100644
dd8f80
--- a/mod/rng-jaxp/mod.xml
dd8f80
+++ b/mod/rng-jaxp/mod.xml
dd8f80
@@ -7,6 +7,7 @@
dd8f80
   <depends module="rng-parse"/>
dd8f80
   <depends module="pattern"/>
dd8f80
   <depends module="jaxp"/>
dd8f80
+  <depends lib="relaxngDatatype"/>
dd8f80
   <compile test="yes"/>
dd8f80
   <test name="unit" type="testng"/>
dd8f80
 </module>
dd8f80
diff --git a/mod/rng-validate/mod.xml b/mod/rng-validate/mod.xml
dd8f80
index 109543b..b05b996 100644
dd8f80
--- a/mod/rng-validate/mod.xml
dd8f80
+++ b/mod/rng-validate/mod.xml
dd8f80
@@ -7,7 +7,7 @@
dd8f80
   <depends module="pattern"/>
dd8f80
   <depends module="validate"/>
dd8f80
   <depends lib="ant"/>
dd8f80
-  <depends lib="resolver"/>
dd8f80
+  <depends lib="xml-commons-resolver"/>
dd8f80
   <test name="spec" type="validate" schema="eg/testSuite.rng"/>
dd8f80
   <compile/>
dd8f80
   <version package="com/thaiopensource/relaxng/util"/>
dd8f80
diff --git a/mod/schematron/mod.xml b/mod/schematron/mod.xml
dd8f80
index 51d85cd..3786625 100644
dd8f80
--- a/mod/schematron/mod.xml
dd8f80
+++ b/mod/schematron/mod.xml
dd8f80
@@ -3,15 +3,11 @@
dd8f80
   <depends module="resolver"/>
dd8f80
   <depends module="validate"/>
dd8f80
   <depends module="rng-validate"/>
dd8f80
-  <depends lib="xalan"/>
dd8f80
+  <depends lib="xalan-j2"/>
dd8f80
   <depends lib="saxon"/>
dd8f80
-  <depends lib="saxon9"/>
dd8f80
-  
dd8f80
-	type="validate" schema="test/schematrontest.nrl"
dd8f80
-	lib="saxon"/>
dd8f80
   
dd8f80
 	type="validate" schema="test/schematrontest.nrl"
dd8f80
-	lib="saxon9"/>
dd8f80
+	lib="saxon"/>
dd8f80
   
dd8f80
 	type="validate" schema="test/schematrontest.nrl"
dd8f80
 	lib="xalan"/>
dd8f80
diff --git a/mod/trang/mod.xml b/mod/trang/mod.xml
dd8f80
index 69b5cc0..fa2d6d0 100644
dd8f80
--- a/mod/trang/mod.xml
dd8f80
+++ b/mod/trang/mod.xml
dd8f80
@@ -13,13 +13,12 @@
dd8f80
   <depends module="convert-to-xsd"/>
dd8f80
   <depends module="convert-from-dtd"/>
dd8f80
   <depends module="convert-to-dtd"/>
dd8f80
-  <depends lib="resolver"/>
dd8f80
+  <depends lib="xml-commons-resolver"/>
dd8f80
   <compile/>
dd8f80
   <version package="com/thaiopensource/relaxng/translate"/>
dd8f80
   <jar>
dd8f80
     <manifest>
dd8f80
       <attribute name="Main-Class" value="com/thaiopensource/relaxng/translate/Driver"/>
dd8f80
-      <attribute name="Class-Path" value="resolver.jar"/>
dd8f80
     </manifest>
dd8f80
     <service type="com.thaiopensource.datatype.xsd.regex.RegexEngine">
dd8f80
       <provider classname="com.thaiopensource.datatype.xsd.regex.xerces2.RegexEngineImpl"/>
dd8f80
diff --git a/mod/xerces/mod.xml b/mod/xerces/mod.xml
dd8f80
index b7dc603..56bc85f 100644
dd8f80
--- a/mod/xerces/mod.xml
dd8f80
+++ b/mod/xerces/mod.xml
dd8f80
@@ -1,7 +1,7 @@
dd8f80
 <module>
dd8f80
   <depends module="util"/>
dd8f80
   <depends module="validate"/>
dd8f80
-  <depends lib="xercesImpl"/>
dd8f80
+  <depends lib="xerces-j2"/>
dd8f80
   <compile/>
dd8f80
   <service type="com.thaiopensource.validate.SchemaReaderFactory">
dd8f80
     <provider classname="com.thaiopensource.validate.xerces.XsdSchemaReaderFactory"/>
dd8f80
diff --git a/mod/xsd-datatype/mod.xml b/mod/xsd-datatype/mod.xml
dd8f80
index f81eb3c..cc7645b 100644
dd8f80
--- a/mod/xsd-datatype/mod.xml
dd8f80
+++ b/mod/xsd-datatype/mod.xml
dd8f80
@@ -2,6 +2,7 @@
dd8f80
   <depends module="util"/>
dd8f80
   <depends module="datatype"/>
dd8f80
   <depends module="regex"/>
dd8f80
+  <depends lib="relaxngDatatype"/>
dd8f80
   <test name="xsd" type="validate" transform="xsdtest.xsl" schema="test/xsdtest.rnc"/>
dd8f80
   <test name="unit" type="testng"/>
dd8f80
   <compile test="yes"/>
dd8f80
-- 
dd8f80
1.9.3
dd8f80