/hg/icedtea6-hg: 4 new changesets

andrew at icedtea.classpath.org andrew at icedtea.classpath.org
Wed Jul 31 10:05:33 PDT 2013


changeset b83b6ac3b4a1 in /hg/icedtea6-hg
details: http://icedtea.classpath.org/hg/icedtea6-hg?cmd=changeset;node=b83b6ac3b4a1
author: Andrew John Hughes <ahughes at redhat.com>
date: Wed Jul 31 16:35:55 2013 +0100

	Remove 2013/04/16 errata patches, now upstream.

	2013-07-31  Andrew John Hughes  <gnu.andrew at redhat.com>

		* patches/ecj/jcp-importsources.patch,
		* patches/openjdk/5102804-memory_leak.patch,
		* patches/openjdk/6501644-icu_sync.patch,
		* patches/openjdk/6669869-queries_per_appcontext.patch,
		* patches/openjdk/6886358-layout_update.patch,
		* patches/openjdk/6963811-deadlock_fix.patch,
		* patches/openjdk/7017324-kerning_crash.patch,
		* patches/openjdk/7064279-fixup.patch,
		* patches/openjdk/7064279-resource_release.patch,
		* patches/openjdk/7133220-factory_finder_parser_transform_useBSClassLoader.patch,
		* patches/security/20130416/6657673-factory_finder.patch,
		* patches/security/20130416/6657673-fixup.patch,
		* patches/security/20130416/6657673.patch,
		* patches/security/20130416/7200507.patch,
		* patches/security/20130416/8000724.patch,
		* patches/security/20130416/8001031.patch,
		* patches/security/20130416/8001040.patch,
		* patches/security/20130416/8001322.patch,
		* patches/security/20130416/8001329.patch,
		* patches/security/20130416/8003335.patch,
		* patches/security/20130416/8003445.patch,
		* patches/security/20130416/8003543.patch,
		* patches/security/20130416/8004261.patch,
		* patches/security/20130416/8004336.patch,
		* patches/security/20130416/8004986.patch,
		* patches/security/20130416/8005432.patch,
		* patches/security/20130416/8005943.patch,
		* patches/security/20130416/8006309.patch,
		* patches/security/20130416/8006435.patch,
		* patches/security/20130416/8006790.patch,
		* patches/security/20130416/8006795.patch,
		* patches/security/20130416/8007406.patch,
		* patches/security/20130416/8007617.patch,
		* patches/security/20130416/8007667.patch,
		* patches/security/20130416/8007918.patch,
		* patches/security/20130416/8009063.patch,
		* patches/security/20130416/8009305.patch,
		* patches/security/20130416/8009699.patch,
		* patches/security/20130416/8009814.patch,
		* patches/security/20130416/8009857.patch:
		Remove unused patches.
		* Makefile.am:
		(SECURITY_PATCHES): Remove upstreamed security
		patches.


changeset f9036c0f3155 in /hg/icedtea6-hg
details: http://icedtea.classpath.org/hg/icedtea6-hg?cmd=changeset;node=f9036c0f3155
author: Andrew John Hughes <gnu.andrew at redhat.com>
date: Mon Jul 22 23:59:29 2013 +0100

	PR718: Backport LCMS2 support from IcedTea7

	2013-07-22  Andrew John Hughes  <gnu.andrew at redhat.com>

		PR718: Backport LCMS2 support from IcedTea7
		* Makefile.am:
		(LCMS_PATCHES): Populate based on which version
		of LCMS is being built.
		(ICEDTEA_PATCHES): Add LCMS_PATCHES.  Remove
		lcms.patch and patches/jtreg-ReadWriteProfileTest.patch,
		the latter being 6733501 in disguise.
		* NEWS: Mention PR718.
		* acinclude.m4:
		(IT_ENABLE_LCMS2): New macro to enable or disable
		the use of LCMS 2 (enabled by default).
		* configure.ac: Invoke IT_ENABLE_LCMS2.
		* patches/libraries.patch: Adjust due to JPEG changes
		in 7002766.
		* patches/openjdk/6733501-icedtea_lcms_test.patch:
		Identical to ReadWriteProfileTest.patch with addition
		of upstream changeset information.
		* patches/openjdk/7002766-parfait-jpeg.patch:
		JPEG segment of 7002766 applied on all builds.
		* patches/openjdk/lcms2/6523398-writing_tags.patch,
		* patches/openjdk/lcms2/6988213-windows_build_failure.patch,
		* patches/openjdk/lcms2/7002766-parfait.patch,
		* patches/openjdk/lcms2/7042594-tck_failure.patch,
		* patches/openjdk/lcms2/7053526-lcms_2.4.patch,
		* patches/openjdk/lcms2/8007925-improve_cmsstagealloclabv2tov4curves.patch,
		* patches/openjdk/lcms2/8007927-improve_cmsallocprofilesequencedescription.patch,
		* patches/openjdk/lcms2/8007929-improve_curvesalloc.patch,
		* patches/openjdk/lcms2/8009654-cmsnamed_stability.patch,
		* patches/openjdk/lcms2/system_lcms2.patch:
		Add backports from OpenJDK 7 to provide LCMS 2 support.
		* patches/jtreg-ReadWriteProfileTest.patch:
		This is 6733501 above.


changeset df51aa5a4270 in /hg/icedtea6-hg
details: http://icedtea.classpath.org/hg/icedtea6-hg?cmd=changeset;node=df51aa5a4270
author: Andrew John Hughes <gnu.andrew at redhat.com>
date: Tue Jul 23 00:18:28 2013 +0100

	Don't overwrite the hs23 ARM port with the one in-tree.

	2013-07-22  Andrew John Hughes  <gnu.andrew at redhat.com>

		* Makefile.am:
		(ports): Only copy over arm_port directory
		contents if using the upstream HotSpot 20.
		(clean-ports): Likewise for cleanup.


changeset 73409100db47 in /hg/icedtea6-hg
details: http://icedtea.classpath.org/hg/icedtea6-hg?cmd=changeset;node=73409100db47
author: Andrew John Hughes <ahughes at redhat.com>
date: Wed Jul 31 18:04:46 2013 +0100

	Merge


diffstat:

 ChangeLog                                                                      |     89 +
 Makefile.am                                                                    |     62 +-
 NEWS                                                                           |      1 +
 acinclude.m4                                                                   |     17 +
 configure.ac                                                                   |      2 +
 patches/ecj/jcp-importsources.patch                                            |     10 -
 patches/jtreg-ReadWriteProfileTest.patch                                       |    124 -
 patches/libraries.patch                                                        |     63 +-
 patches/openjdk/5102804-memory_leak.patch                                      |    429 -
 patches/openjdk/6501644-icu_sync.patch                                         |   8066 -
 patches/openjdk/6669869-queries_per_appcontext.patch                           |    355 -
 patches/openjdk/6733501-icedtea_lcms_test.patch                                |    133 +
 patches/openjdk/6886358-layout_update.patch                                    |  13847 --
 patches/openjdk/6963811-deadlock_fix.patch                                     |     42 -
 patches/openjdk/7002766-parfait-jpeg.patch                                     |     42 +
 patches/openjdk/7017324-kerning_crash.patch                                    |    101 -
 patches/openjdk/7064279-fixup.patch                                            |     71 -
 patches/openjdk/7064279-resource_release.patch                                 |    436 -
 patches/openjdk/7133220-factory_finder_parser_transform_useBSClassLoader.patch |    298 -
 patches/openjdk/lcms2/6523398-writing_tags.patch                               |  51207 ++++++++++
 patches/openjdk/lcms2/6988213-windows_build_failure.patch                      |     25 +
 patches/openjdk/lcms2/7002766-parfait.patch                                    |     20 +
 patches/openjdk/lcms2/7042594-tck_failure.patch                                |    375 +
 patches/openjdk/lcms2/7053526-lcms_2.4.patch                                   |  10111 +
 patches/openjdk/lcms2/8007925-improve_cmsstagealloclabv2tov4curves.patch       |     30 +
 patches/openjdk/lcms2/8007927-improve_cmsallocprofilesequencedescription.patch |     23 +
 patches/openjdk/lcms2/8007929-improve_curvesalloc.patch                        |     28 +
 patches/openjdk/lcms2/8009654-cmsnamed_stability.patch                         |     38 +
 patches/openjdk/lcms2/system_lcms2.patch                                       |     93 +
 patches/security/20130416/6657673-factory_finder.patch                         |     54 -
 patches/security/20130416/6657673-fixup.patch                                  |    229 -
 patches/security/20130416/6657673.patch                                        |   9494 -
 patches/security/20130416/7200507.patch                                        |    230 -
 patches/security/20130416/8000724.patch                                        |   1368 -
 patches/security/20130416/8001031.patch                                        |   5457 -
 patches/security/20130416/8001040.patch                                        |    113 -
 patches/security/20130416/8001322.patch                                        |     61 -
 patches/security/20130416/8001329.patch                                        |     32 -
 patches/security/20130416/8003335.patch                                        |     63 -
 patches/security/20130416/8003445.patch                                        |     77 -
 patches/security/20130416/8003543.patch                                        |    236 -
 patches/security/20130416/8004261.patch                                        |    142 -
 patches/security/20130416/8004336.patch                                        |     29 -
 patches/security/20130416/8004986.patch                                        |    374 -
 patches/security/20130416/8005432.patch                                        |    518 -
 patches/security/20130416/8005943.patch                                        |    202 -
 patches/security/20130416/8006309.patch                                        |     22 -
 patches/security/20130416/8006435.patch                                        |     76 -
 patches/security/20130416/8006790.patch                                        |    166 -
 patches/security/20130416/8006795.patch                                        |     35 -
 patches/security/20130416/8007406.patch                                        |     31 -
 patches/security/20130416/8007617.patch                                        |    376 -
 patches/security/20130416/8007667.patch                                        |    579 -
 patches/security/20130416/8007918.patch                                        |    357 -
 patches/security/20130416/8009063.patch                                        |     67 -
 patches/security/20130416/8009305.patch                                        |     68 -
 patches/security/20130416/8009699.patch                                        |     25 -
 patches/security/20130416/8009814.patch                                        |     27 -
 patches/security/20130416/8009857.patch                                        |     66 -
 59 files changed, 62291 insertions(+), 44421 deletions(-)

diffs (truncated from 107184 to 500 lines):

diff -r 455071a8e0ec -r 73409100db47 ChangeLog
--- a/ChangeLog	Mon Jul 22 17:04:11 2013 +0100
+++ b/ChangeLog	Wed Jul 31 18:04:46 2013 +0100
@@ -1,3 +1,92 @@
+2013-07-31  Andrew John Hughes  <gnu.andrew at redhat.com>
+
+	* patches/ecj/jcp-importsources.patch,
+	* patches/openjdk/5102804-memory_leak.patch,
+	* patches/openjdk/6501644-icu_sync.patch,
+	* patches/openjdk/6669869-queries_per_appcontext.patch,
+	* patches/openjdk/6886358-layout_update.patch,
+	* patches/openjdk/6963811-deadlock_fix.patch,
+	* patches/openjdk/7017324-kerning_crash.patch,
+	* patches/openjdk/7064279-fixup.patch,
+	* patches/openjdk/7064279-resource_release.patch,
+	* patches/openjdk/7133220-factory_finder_parser_transform_useBSClassLoader.patch,
+	* patches/security/20130416/6657673-factory_finder.patch,
+	* patches/security/20130416/6657673-fixup.patch,
+	* patches/security/20130416/6657673.patch,
+	* patches/security/20130416/7200507.patch,
+	* patches/security/20130416/8000724.patch,
+	* patches/security/20130416/8001031.patch,
+	* patches/security/20130416/8001040.patch,
+	* patches/security/20130416/8001322.patch,
+	* patches/security/20130416/8001329.patch,
+	* patches/security/20130416/8003335.patch,
+	* patches/security/20130416/8003445.patch,
+	* patches/security/20130416/8003543.patch,
+	* patches/security/20130416/8004261.patch,
+	* patches/security/20130416/8004336.patch,
+	* patches/security/20130416/8004986.patch,
+	* patches/security/20130416/8005432.patch,
+	* patches/security/20130416/8005943.patch,
+	* patches/security/20130416/8006309.patch,
+	* patches/security/20130416/8006435.patch,
+	* patches/security/20130416/8006790.patch,
+	* patches/security/20130416/8006795.patch,
+	* patches/security/20130416/8007406.patch,
+	* patches/security/20130416/8007617.patch,
+	* patches/security/20130416/8007667.patch,
+	* patches/security/20130416/8007918.patch,
+	* patches/security/20130416/8009063.patch,
+	* patches/security/20130416/8009305.patch,
+	* patches/security/20130416/8009699.patch,
+	* patches/security/20130416/8009814.patch,
+	* patches/security/20130416/8009857.patch:
+	Remove unused patches.
+	* Makefile.am:
+	(SECURITY_PATCHES): Remove upstreamed security
+	patches.
+
+2013-07-22  Andrew John Hughes  <gnu.andrew at redhat.com>
+
+	* Makefile.am:
+	(ports): Only copy over arm_port directory
+	contents if using the upstream HotSpot 20.
+	(clean-ports): Likewise for cleanup.
+
+2013-07-22  Andrew John Hughes  <gnu.andrew at redhat.com>
+
+	PR718: Backport LCMS2 support from IcedTea7
+	* Makefile.am:
+	(LCMS_PATCHES): Populate based on which version
+	of LCMS is being built.
+	(ICEDTEA_PATCHES): Add LCMS_PATCHES.  Remove
+	lcms.patch and patches/jtreg-ReadWriteProfileTest.patch,
+	the latter being 6733501 in disguise.
+	* NEWS: Mention PR718.
+	* acinclude.m4:
+	(IT_ENABLE_LCMS2): New macro to enable or disable
+	the use of LCMS 2 (enabled by default).
+	* configure.ac: Invoke IT_ENABLE_LCMS2.
+	* patches/libraries.patch: Adjust due to JPEG changes
+	in 7002766.
+	* patches/openjdk/6733501-icedtea_lcms_test.patch:
+	Identical to ReadWriteProfileTest.patch with addition
+	of upstream changeset information.
+	* patches/openjdk/7002766-parfait-jpeg.patch:
+	JPEG segment of 7002766 applied on all builds.
+	* patches/openjdk/lcms2/6523398-writing_tags.patch,
+	* patches/openjdk/lcms2/6988213-windows_build_failure.patch,
+	* patches/openjdk/lcms2/7002766-parfait.patch,
+	* patches/openjdk/lcms2/7042594-tck_failure.patch,
+	* patches/openjdk/lcms2/7053526-lcms_2.4.patch,
+	* patches/openjdk/lcms2/8007925-improve_cmsstagealloclabv2tov4curves.patch,
+	* patches/openjdk/lcms2/8007927-improve_cmsallocprofilesequencedescription.patch,
+	* patches/openjdk/lcms2/8007929-improve_curvesalloc.patch,
+	* patches/openjdk/lcms2/8009654-cmsnamed_stability.patch,
+	* patches/openjdk/lcms2/system_lcms2.patch:
+	Add backports from OpenJDK 7 to provide LCMS 2 support.
+	* patches/jtreg-ReadWriteProfileTest.patch:
+	This is 6733501 above.
+
 2013-07-18  Andrew John Hughes  <gnu.andrew at redhat.com>
 
 	* patches/hotspot/hs23/arm-hsdis.patch:
diff -r 455071a8e0ec -r 73409100db47 Makefile.am
--- a/Makefile.am	Mon Jul 22 17:04:11 2013 +0100
+++ b/Makefile.am	Wed Jul 31 18:04:46 2013 +0100
@@ -282,42 +282,6 @@
 
 SECURITY_PATCHES = \
 	patches/security/20120830/7182135-impossible_to_use_some_editors_directly.patch \
-	patches/security/20130416/8009063.patch \
-	patches/security/20130416/6657673.patch \
-	patches/security/20130416/6657673-fixup.patch \
-	patches/openjdk/7133220-factory_finder_parser_transform_useBSClassLoader.patch \
-	patches/security/20130416/6657673-factory_finder.patch \
-	patches/openjdk/6669869-queries_per_appcontext.patch \
-	patches/openjdk/5102804-memory_leak.patch \
-	patches/openjdk/6963811-deadlock_fix.patch \
-	patches/openjdk/7064279-resource_release.patch \
-	patches/openjdk/7064279-fixup.patch \
-	patches/security/20130416/7200507.patch \
-	patches/security/20130416/8000724.patch \
-	patches/security/20130416/8004986.patch \
-	patches/openjdk/6501644-icu_sync.patch \
-	patches/openjdk/6886358-layout_update.patch \
-	patches/security/20130416/8001031.patch \
-	patches/openjdk/7017324-kerning_crash.patch \
-	patches/security/20130416/8001040.patch \
-	patches/security/20130416/8001322.patch \
-	patches/security/20130416/8001329.patch \
-	patches/security/20130416/8003335.patch \
-	patches/security/20130416/8003445.patch \
-	patches/security/20130416/8003543.patch \
-	patches/security/20130416/8004261.patch \
-	patches/security/20130416/8005432.patch \
-	patches/security/20130416/8005943.patch \
-	patches/security/20130416/8006435.patch \
-	patches/security/20130416/8006790.patch \
-	patches/security/20130416/8006795.patch \
-	patches/security/20130416/8007406.patch \
-	patches/security/20130416/8007617.patch \
-	patches/security/20130416/8007667.patch \
-	patches/security/20130416/8007918.patch \
-	patches/security/20130416/8009305.patch \
-	patches/security/20130416/8009814.patch \
-	patches/security/20130416/8009857.patch \
 	patches/openjdk/7195301-no_instanceof_node.patch \
 	patches/openjdk/6469266-xmlsec_1.4.2.patch \
 	patches/security/20130618/6741606-apache_santuario.patch \
@@ -405,9 +369,29 @@
 SPECIAL_SECURITY_PATCH_1 = patches/security/20120214/7112642.patch
 SPECIAL_SECURITY_PATCH_2 = patches/security/20130618/8009071-improve_shape_handling.patch
 
+if ENABLE_LCMS2
+LCMS_PATCHES = \
+	patches/openjdk/lcms2/6523398-writing_tags.patch \
+	patches/openjdk/lcms2/6988213-windows_build_failure.patch \
+	patches/openjdk/lcms2/system_lcms2.patch \
+	patches/openjdk/lcms2/7053526-lcms_2.4.patch \
+	patches/openjdk/lcms2/8007929-improve_curvesalloc.patch \
+	patches/openjdk/lcms2/8007925-improve_cmsstagealloclabv2tov4curves.patch \
+	patches/openjdk/lcms2/8009654-cmsnamed_stability.patch \
+	patches/openjdk/lcms2/7002766-parfait.patch \
+	patches/openjdk/lcms2/7042594-tck_failure.patch \
+	patches/openjdk/lcms2/8007927-improve_cmsallocprofilesequencedescription.patch
+else
+LCMS_PATCHES = \
+	patches/lcms.patch
+endif
+
 ICEDTEA_PATCHES = \
 	$(DROP_PATCHES) \
 	$(SECURITY_PATCHES) \
+	patches/openjdk/6733501-icedtea_lcms_test.patch \
+	$(LCMS_PATCHES) \
+	patches/openjdk/7002766-parfait-jpeg.patch \
 	patches/openjdk/4993545-nativeinlightfixer.patch \
 	patches/openjdk/6637796-set_bounds.patch \
 	patches/openjdk/6607660-treelock.patch \
@@ -437,7 +421,6 @@
 	patches/gcc-suffix.patch \
 	patches/libraries.patch \
 	$(SPECIAL_SECURITY_PATCH_2) \
-	patches/lcms.patch \
 	patches/uname.patch \
 	patches/freetypeversion.patch \
 	patches/nomotif-6706121.patch \
@@ -532,7 +515,6 @@
 	patches/jtreg-FileMap.patch \
 	patches/jtreg-ChannelsWrite.patch \
 	patches/jtreg-bug7036148-test.patch \
-	patches/jtreg-ReadWriteProfileTest.patch \
 	patches/openjdk/6818312-com.sun.awt.SecurityWarning.getSize.patch \
 	patches/jtreg-MappedByteBuffer-Basic.patch \
 	patches/openjdk/7008106-WindowOpacity.patch \
@@ -1321,21 +1303,25 @@
 
 # Copy ports sources into tree
 stamps/ports.stamp: stamps/replace-hotspot.stamp
+if !WITH_ALT_HSBUILD
 	for target in $(abs_top_srcdir)/arm_port/hotspot/tools \
 		      $(abs_top_srcdir)/arm_port/hotspot/src/*cpu/* ; do \
 	  link=$$(dirname $$target | sed 's/^.*arm_port/openjdk/'); \
 	  cp -rv $(SRC_DIR_LINK) $$target $$link; \
 	  chmod -R ug+rwX $$link; \
 	done
+endif
 	mkdir -p stamps
 	touch stamps/ports.stamp
 
 clean-ports:
+if !WITH_ALT_HSBUILD
 	for target in $(abs_top_srcdir)/arm_port/hotspot/tools \
 		      $(abs_top_srcdir)/arm_port/hotspot/src/*cpu/* ; do \
 	  link=$$(dirname $$target | sed 's/^.*arm_port/openjdk/'); \
 	  rm -rf $$link; \
 	done
+endif
 	rm -f stamps/ports.stamp
 
 stamps/generated.stamp: stamps/ports.stamp
diff -r 455071a8e0ec -r 73409100db47 NEWS
--- a/NEWS	Mon Jul 22 17:04:11 2013 +0100
+++ b/NEWS	Wed Jul 31 18:04:46 2013 +0100
@@ -16,6 +16,7 @@
 * New features
   - PR1317: Provide an option to build with a more up-to-date HotSpot
   - PR1458: Make use of bootstrap tools & -Xbootclasspath patches optional
+  - PR718: Backport LCMS2 support from IcedTea7
 * Backports
   - S8009641: OpenJDK 6 build broken via 8007675 fix
   - OJ4: Backport the new version of copyMemory from OpenJDK 7 to allow Snappy to build
diff -r 455071a8e0ec -r 73409100db47 acinclude.m4
--- a/acinclude.m4	Mon Jul 22 17:04:11 2013 +0100
+++ b/acinclude.m4	Wed Jul 31 18:04:46 2013 +0100
@@ -2054,3 +2054,20 @@
   AM_CONDITIONAL(USING_CACAO, test "x${USING_CACAO}" = "xyes")
   AC_PROVIDE([$0])dnl
 ])
+
+AC_DEFUN_ONCE([IT_ENABLE_LCMS2],
+[
+  AC_MSG_CHECKING([whether to enable the use of LCMS2])
+  AC_ARG_ENABLE([lcms2],
+	      [AS_HELP_STRING(--enable-lcms2,use LCMS 2 backport from OpenJDK 7 [[default=yes]])],
+  [
+    ENABLE_LCMS2="${enableval}"
+  ],
+  [
+    ENABLE_LCMS2=yes
+  ])
+
+  AC_MSG_RESULT(${ENABLE_LCMS2})
+  AM_CONDITIONAL(ENABLE_LCMS2, test x"${ENABLE_LCMS2}" = "xyes")
+  AC_SUBST(ENABLE_LCMS2)
+])
diff -r 455071a8e0ec -r 73409100db47 configure.ac
--- a/configure.ac	Mon Jul 22 17:04:11 2013 +0100
+++ b/configure.ac	Wed Jul 31 18:04:46 2013 +0100
@@ -289,6 +289,8 @@
 IT_WITH_PAX
 AC_CONFIG_FILES([pax-mark-vm], [chmod +x pax-mark-vm])
 
+IT_ENABLE_LCMS2
+
 dnl pkgconfig cannot be used to find these headers and libraries.
 AC_CHECK_HEADERS([cups/cups.h cups/ppd.h],[]
 	,[AC_MSG_ERROR("CUPS headers were not found -
diff -r 455071a8e0ec -r 73409100db47 patches/ecj/jcp-importsources.patch
--- a/patches/ecj/jcp-importsources.patch	Mon Jul 22 17:04:11 2013 +0100
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,10 +0,0 @@
---- openjdk-ecj/jdk/make/org/jcp/Makefile.orig	2013-07-10 10:02:13.715336690 +0100
-+++ openjdk-ecj/jdk/make/org/jcp/Makefile	2013-07-10 10:02:55.359996584 +0100
-@@ -31,6 +31,7 @@
- PACKAGE = org.jcp
- PRODUCT = jcp
- include $(BUILDDIR)/common/Defs.gmk
-+SOURCEPATH = $(IMPORTSRCDIR)$(CLASSPATH_SEPARATOR)$(VPATH0.java)
- 
- #
- # Files to compile
diff -r 455071a8e0ec -r 73409100db47 patches/jtreg-ReadWriteProfileTest.patch
--- a/patches/jtreg-ReadWriteProfileTest.patch	Mon Jul 22 17:04:11 2013 +0100
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,124 +0,0 @@
-diff -r 9318628e8eee -r 467e4f25965c test/sun/java2d/cmm/ProfileOp/ReadWriteProfileTest.java
---- /dev/null	Thu Jan 01 00:00:00 1970 +0000
-+++ openjdk/jdk/test/sun/java2d/cmm/ProfileOp/ReadWriteProfileTest.java	Fri Mar 20 20:05:22 2009 +0300
-@@ -0,0 +1,120 @@
-+/*
-+ * Copyright 2007-2008 Sun Microsystems, Inc.  All Rights Reserved.
-+ * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
-+ *
-+ * This code is free software; you can redistribute it and/or modify it
-+ * under the terms of the GNU General Public License version 2 only, as
-+ * published by the Free Software Foundation.
-+ *
-+ * This code is distributed in the hope that it will be useful, but WITHOUT
-+ * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
-+ * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
-+ * version 2 for more details (a copy is included in the LICENSE file that
-+ * accompanied this code).
-+ *
-+ * You should have received a copy of the GNU General Public License version
-+ * 2 along with this work; if not, write to the Free Software Foundation,
-+ * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
-+ *
-+ * Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa Clara,
-+ * CA 95054 USA or visit www.sun.com if you need additional information or
-+ * have any questions.
-+ */
-+
-+/**
-+ * @test
-+ * @bug 6476665 6523403 6733501
-+ * @summary Verifies reading and writing profiles and tags of the standard color
-+ * spaces
-+ * @run main ReadWriteProfileTest
-+ */
-+import java.awt.color.ColorSpace;
-+import java.awt.color.ICC_Profile;
-+import java.util.*;
-+import java.nio.*;
-+import java.util.Hashtable;
-+
-+public class ReadWriteProfileTest implements Runnable {
-+    /* Location of the tag sig counter in 4-byte words */
-+    final static int TAG_COUNT_OFFSET = 32;
-+
-+    /* Location of the tag sig table in 4-byte words */
-+    final static int TAG_ELEM_OFFSET = 33;
-+
-+    static byte[][] profiles;
-+    static int [][] tagSigs;
-+    static Hashtable<Integer,byte[]> [] tags;
-+
-+    static int [] cspaces = {ColorSpace.CS_sRGB, ColorSpace.CS_PYCC,
-+                             ColorSpace.CS_LINEAR_RGB, ColorSpace.CS_CIEXYZ,
-+                             ColorSpace.CS_GRAY};
-+
-+    static String [] csNames = {"sRGB", "PYCC", "LINEAR_RGB", "CIEXYZ", "GRAY"};
-+
-+    static void getProfileTags(byte [] data, Hashtable tags) {
-+        ByteBuffer byteBuf = ByteBuffer.wrap(data);
-+        IntBuffer intBuf = byteBuf.asIntBuffer();
-+        int tagCount = intBuf.get(TAG_COUNT_OFFSET);
-+        intBuf.position(TAG_ELEM_OFFSET);
-+        for (int i = 0; i < tagCount; i++) {
-+            int tagSig = intBuf.get();
-+            int tagDataOff = intBuf.get();
-+            int tagSize = intBuf.get();
-+
-+            byte [] tagData = new byte[tagSize];
-+            byteBuf.position(tagDataOff);
-+            byteBuf.get(tagData);
-+            tags.put(tagSig, tagData);
-+        }
-+    }
-+
-+    static {
-+        profiles = new byte[cspaces.length][];
-+        tags = new Hashtable[cspaces.length];
-+
-+        for (int i = 0; i < cspaces.length; i++) {
-+            ICC_Profile pf = ICC_Profile.getInstance(cspaces[i]);
-+            profiles[i] = pf.getData();
-+            tags[i] = new Hashtable();
-+            getProfileTags(profiles[i], tags[i]);
-+        }
-+    }
-+
-+    public void run() {
-+        for (int i = 0; i < cspaces.length; i++) {
-+            ICC_Profile pf = ICC_Profile.getInstance(cspaces[i]);
-+            byte [] data = pf.getData();
-+            pf = ICC_Profile.getInstance(data);
-+            if (!Arrays.equals(data, profiles[i])) {
-+                System.err.println("Incorrect result of getData() " + "with " +
-+                                   csNames[i] + " profile");
-+                throw new RuntimeException("Incorrect result of getData()");
-+            }
-+
-+            for (int tagSig : tags[i].keySet()) {
-+                byte [] tagData = pf.getData(tagSig);
-+                byte [] empty = new byte[tagData.length];
-+                pf.setData(tagSig, empty);
-+                pf.setData(tagSig, tagData);
-+
-+                byte [] tagData1 = pf.getData(tagSig);
-+
-+                if (!Arrays.equals(tagData1, tags[i].get(tagSig)))
-+                {
-+                    System.err.println("Incorrect result of getData(int) with" +
-+                                       " tag " +
-+                                       Integer.toHexString(tagSig) +
-+                                       " of " + csNames[i] + " profile");
-+
-+                    throw new RuntimeException("Incorrect result of " +
-+                                               "getData(int)");
-+                }
-+            }
-+        }
-+    }
-+
-+    public static void main(String [] args) {
-+        ReadWriteProfileTest test = new ReadWriteProfileTest();
-+        test.run();
-+    }
-+}
diff -r 455071a8e0ec -r 73409100db47 patches/libraries.patch
--- a/patches/libraries.patch	Mon Jul 22 17:04:11 2013 +0100
+++ b/patches/libraries.patch	Wed Jul 31 18:04:46 2013 +0100
@@ -1,6 +1,6 @@
 diff -Nru openjdk.orig/jdk/make/com/sun/java/pack/Makefile openjdk/jdk/make/com/sun/java/pack/Makefile
 --- openjdk.orig/jdk/make/com/sun/java/pack/Makefile	2012-10-26 19:25:40.000000000 +0100
-+++ openjdk/jdk/make/com/sun/java/pack/Makefile	2013-04-23 19:45:24.512100652 +0100
++++ openjdk/jdk/make/com/sun/java/pack/Makefile	2013-07-22 19:51:20.762208023 +0100
 @@ -64,23 +64,21 @@
    ZIPOBJDIR = $(OUTPUTDIR)/tmp/sun/java.util.zip/zip/$(OBJDIRNAME)
  
@@ -55,7 +55,7 @@
  endif #PLATFORM
 diff -Nru openjdk.orig/jdk/make/common/Program.gmk openjdk/jdk/make/common/Program.gmk
 --- openjdk.orig/jdk/make/common/Program.gmk	2012-10-26 19:25:40.000000000 +0100
-+++ openjdk/jdk/make/common/Program.gmk	2013-04-23 19:45:24.528100909 +0100
++++ openjdk/jdk/make/common/Program.gmk	2013-07-22 19:51:20.774208212 +0100
 @@ -85,7 +85,7 @@
  	endif
      endif
@@ -75,7 +75,7 @@
  VERSION_DEFINES += -DFULL_VERSION='"$(FULL_VERSION)"'
 diff -Nru openjdk.orig/jdk/make/java/jli/Makefile openjdk/jdk/make/java/jli/Makefile
 --- openjdk.orig/jdk/make/java/jli/Makefile	2012-10-26 19:25:40.000000000 +0100
-+++ openjdk/jdk/make/java/jli/Makefile	2013-04-23 19:45:24.528100909 +0100
++++ openjdk/jdk/make/java/jli/Makefile	2013-07-22 19:51:20.774208212 +0100
 @@ -44,8 +44,6 @@
  
  include $(BUILDDIR)/common/Defs.gmk
@@ -127,7 +127,7 @@
  
 diff -Nru openjdk.orig/jdk/make/java/zip/FILES_c.gmk openjdk/jdk/make/java/zip/FILES_c.gmk
 --- openjdk.orig/jdk/make/java/zip/FILES_c.gmk	2012-10-26 19:25:41.000000000 +0100
-+++ openjdk/jdk/make/java/zip/FILES_c.gmk	2013-04-23 19:45:24.528100909 +0100
++++ openjdk/jdk/make/java/zip/FILES_c.gmk	2013-07-22 19:51:20.774208212 +0100
 @@ -30,15 +30,4 @@
  	Inflater.c \
  	ZipFile.c \
@@ -146,7 +146,7 @@
  	zip_util.c
 diff -Nru openjdk.orig/jdk/make/java/zip/Makefile openjdk/jdk/make/java/zip/Makefile
 --- openjdk.orig/jdk/make/java/zip/Makefile	2012-10-26 19:25:41.000000000 +0100
-+++ openjdk/jdk/make/java/zip/Makefile	2013-04-23 19:45:24.528100909 +0100
++++ openjdk/jdk/make/java/zip/Makefile	2013-07-22 19:51:20.774208212 +0100
 @@ -30,8 +30,6 @@
  PRODUCT = sun
  include $(BUILDDIR)/common/Defs.gmk
@@ -176,7 +176,7 @@
 +OTHER_LDLIBS = $(JVMLIB) -lz
 diff -Nru openjdk.orig/jdk/make/sun/jpeg/FILES_c.gmk openjdk/jdk/make/sun/jpeg/FILES_c.gmk
 --- openjdk.orig/jdk/make/sun/jpeg/FILES_c.gmk	2012-10-26 19:25:41.000000000 +0100
-+++ openjdk/jdk/make/sun/jpeg/FILES_c.gmk	2013-04-23 19:45:24.532100974 +0100
++++ openjdk/jdk/make/sun/jpeg/FILES_c.gmk	2013-07-22 19:51:20.774208212 +0100
 @@ -25,51 +25,7 @@
  
  FILES_c = \
@@ -232,7 +232,7 @@
  FILES_c += \
 diff -Nru openjdk.orig/jdk/make/sun/jpeg/Makefile openjdk/jdk/make/sun/jpeg/Makefile
 --- openjdk.orig/jdk/make/sun/jpeg/Makefile	2012-10-26 19:25:41.000000000 +0100
-+++ openjdk/jdk/make/sun/jpeg/Makefile	2013-04-23 19:45:24.532100974 +0100
++++ openjdk/jdk/make/sun/jpeg/Makefile	2013-07-22 19:51:20.774208212 +0100
 @@ -68,6 +68,8 @@
  include $(BUILDDIR)/common/Mapfile-vers.gmk
  include $(BUILDDIR)/common/Library.gmk
@@ -244,7 +244,7 @@
  #
 diff -Nru openjdk.orig/jdk/make/sun/splashscreen/FILES_c.gmk openjdk/jdk/make/sun/splashscreen/FILES_c.gmk
 --- openjdk.orig/jdk/make/sun/splashscreen/FILES_c.gmk	2012-10-26 19:25:42.000000000 +0100
-+++ openjdk/jdk/make/sun/splashscreen/FILES_c.gmk	2013-04-23 19:45:24.532100974 +0100
++++ openjdk/jdk/make/sun/splashscreen/FILES_c.gmk	2013-07-22 19:51:20.774208212 +0100
 @@ -30,81 +30,5 @@
  	splashscreen_impl.c \
  	splashscreen_jpeg.c \
@@ -330,7 +330,7 @@
  
 diff -Nru openjdk.orig/jdk/make/sun/splashscreen/Makefile openjdk/jdk/make/sun/splashscreen/Makefile
 --- openjdk.orig/jdk/make/sun/splashscreen/Makefile	2012-10-26 19:25:42.000000000 +0100
-+++ openjdk/jdk/make/sun/splashscreen/Makefile	2013-04-23 19:45:24.532100974 +0100
++++ openjdk/jdk/make/sun/splashscreen/Makefile	2013-07-22 19:51:20.774208212 +0100
 @@ -59,12 +59,12 @@
  # C Flags
  #
@@ -362,8 +362,8 @@
  ifeq ($(PLATFORM), linux)
    ifeq ($(ARCH_DATA_MODEL), 64)
 diff -Nru openjdk.orig/jdk/src/share/native/com/sun/java/util/jar/pack/defines.h openjdk/jdk/src/share/native/com/sun/java/util/jar/pack/defines.h
---- openjdk.orig/jdk/src/share/native/com/sun/java/util/jar/pack/defines.h	2013-04-23 18:50:35.139719857 +0100
-+++ openjdk/jdk/src/share/native/com/sun/java/util/jar/pack/defines.h	2013-04-23 19:46:32.885201759 +0100
+--- openjdk.orig/jdk/src/share/native/com/sun/java/util/jar/pack/defines.h	2013-07-22 19:49:54.900852754 +0100
++++ openjdk/jdk/src/share/native/com/sun/java/util/jar/pack/defines.h	2013-07-22 19:51:20.774208212 +0100
 @@ -89,11 +89,7 @@
  // bytes and byte arrays
  
@@ -378,7 +378,7 @@
  typedef DWORDLONG 	julong;
 diff -Nru openjdk.orig/jdk/src/share/native/java/util/zip/Adler32.c openjdk/jdk/src/share/native/java/util/zip/Adler32.c



More information about the distro-pkg-dev mailing list