[pkg-java] r16776 - in trunk/xmlgraphics-commons/debian: . patches
Mathieu Malaterre
malat at alioth.debian.org
Wed May 29 12:35:27 UTC 2013
Author: malat
Date: 2013-05-29 12:35:26 +0000 (Wed, 29 May 2013)
New Revision: 16776
Added:
trunk/xmlgraphics-commons/debian/patches/disable-iccprofile-test.patch
Modified:
trunk/xmlgraphics-commons/debian/changelog
trunk/xmlgraphics-commons/debian/patches/series
trunk/xmlgraphics-commons/debian/rules
Log:
Prepare 1.5-3 upload
Modified: trunk/xmlgraphics-commons/debian/changelog
===================================================================
--- trunk/xmlgraphics-commons/debian/changelog 2013-05-29 09:42:46 UTC (rev 16775)
+++ trunk/xmlgraphics-commons/debian/changelog 2013-05-29 12:35:26 UTC (rev 16776)
@@ -1,3 +1,11 @@
+xmlgraphics-commons (1.5-3) unstable; urgency=low
+
+ * Fix lintian error (doc-base-file-references-missing-file)
+ * Enable testsuite + disable test which is incompat with openjdk-7.
+ Thanks to James Page. Closes: #708616
+
+ -- Mathieu Malaterre <malat at debian.org> Wed, 29 May 2013 14:34:25 +0200
+
xmlgraphics-commons (1.5-2) unstable; urgency=low
* Upload to sid
Added: trunk/xmlgraphics-commons/debian/patches/disable-iccprofile-test.patch
===================================================================
--- trunk/xmlgraphics-commons/debian/patches/disable-iccprofile-test.patch (rev 0)
+++ trunk/xmlgraphics-commons/debian/patches/disable-iccprofile-test.patch 2013-05-29 12:35:26 UTC (rev 16776)
@@ -0,0 +1,36 @@
+Description: This test fails with openjdk-7 (and oracle java 7).
+ Skip for the time being until upstream resolve - see Bug.
+Author: James Page <james.page at ubuntu.com>
+Bug: https://issues.apache.org/bugzilla/show_bug.cgi?id=53328
+
+--- a/test/java/org/apache/xmlgraphics/image/loader/ImageLoaderTestCase.java
++++ b/test/java/org/apache/xmlgraphics/image/loader/ImageLoaderTestCase.java
+@@ -162,28 +162,6 @@ public class ImageLoaderTestCase extends
+ sessionContext.checkAllStreamsClosed();
+ }
+
+- public void testICCProfiles() throws Exception {
+- MyImageSessionContext sessionContext = createImageSessionContext();
+- List/* <ICC_Profile> */profiles = new ArrayList();
+-
+- runReaders(profiles, sessionContext, "iccTest.png", "image/png",
+- ImageFlavor.RAW_PNG);
+- runReaders(profiles, sessionContext, "iccTest.jpg", "image/jpeg",
+- ImageFlavor.RAW_JPEG);
+-
+- ICC_Profile first = (ICC_Profile) profiles.get(0);
+- byte[] firstData = first.getData();
+- for (int i = 1; i < profiles.size(); i++) {
+- ICC_Profile icc = (ICC_Profile) profiles.get(i);
+- byte[] data = icc.getData();
+- assertEquals("Embedded ICC Profiles are not the same size!",
+- firstData.length, data.length);
+- for (int j = 0; j < firstData.length; j++) {
+- assertEquals("Embedded ICC Profiles differ at index " + j,
+- firstData[j], data[j]);
+- }
+- }
+- }
+
+ private void runReaders(List profiles, ImageSessionContext isc, String uri,
+ String mime, ImageFlavor rawFlavor) throws Exception {
Modified: trunk/xmlgraphics-commons/debian/patches/series
===================================================================
--- trunk/xmlgraphics-commons/debian/patches/series 2013-05-29 09:42:46 UTC (rev 16775)
+++ trunk/xmlgraphics-commons/debian/patches/series 2013-05-29 12:35:26 UTC (rev 16776)
@@ -1,2 +1,3 @@
#xml-top-level.patch
#xml-rdf-resource.patch
+disable-iccprofile-test.patch
Modified: trunk/xmlgraphics-commons/debian/rules
===================================================================
--- trunk/xmlgraphics-commons/debian/rules 2013-05-29 09:42:46 UTC (rev 16775)
+++ trunk/xmlgraphics-commons/debian/rules 2013-05-29 12:35:26 UTC (rev 16776)
@@ -11,11 +11,15 @@
# all target, builds package and run test
override_dh_auto_build:
- #dh_auto_build -- -noinput -Dpwd=none all maven-artifacts
- dh_auto_build -- -noinput -Dpwd=none package maven-artifacts
+ # Link in required deps for testing
+ ln -sf /usr/share/java/commons-io.jar lib/
+ ln -sf /usr/share/java/commons-logging.jar lib/
+ dh_auto_build -- -noinput -Dpwd=none all maven-artifacts
-# remove tests for now until issue with DISPLAY is solved
-#override_dh_auto_test:
+override_dh_auto_clean:
+ # Drop any linked in deps for testing
+ rm -f lib/*.jar
+ dh_auto_clean
override_dh_install:
#mh_installpoms -plib$(PACKAGE)-java
More information about the pkg-java-commits
mailing list