Hello community,

here is the log from the commit of package xpp2 for openSUSE:Factory checked in 
at 2017-09-13 22:26:35
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/xpp2 (Old)
 and      /work/SRC/openSUSE:Factory/.xpp2.new (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "xpp2"

Wed Sep 13 22:26:35 2017 rev:17 rq:523325 version:2.1.10

Changes:
--------
--- /work/SRC/openSUSE:Factory/xpp2/xpp2.changes        2014-07-21 
10:35:31.000000000 +0200
+++ /work/SRC/openSUSE:Factory/.xpp2.new/xpp2.changes   2017-09-13 
22:26:39.450672582 +0200
@@ -1,0 +2,11 @@
+Mon Sep 11 16:45:34 UTC 2017 - [email protected]
+
+- Modified patch:
+  * xpp2-build_xml.patch
+    + Specify java source and target level 1.6 in order to allow
+      building with jdk9
+  * xpp2-enum.patch
+    + Rename variables "enum" to "emun" in order to avoid clash
+      with a reserved word in java >= 1.5
+
+-------------------------------------------------------------------

New:
----
  xpp2-enum.patch

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ xpp2.spec ++++++
--- /var/tmp/diff_new_pack.kP7rtq/_old  2017-09-13 22:26:40.158572924 +0200
+++ /var/tmp/diff_new_pack.kP7rtq/_new  2017-09-13 22:26:40.162572362 +0200
@@ -1,7 +1,7 @@
 #
 # spec file for package xpp2
 #
-# Copyright (c) 2014 SUSE LINUX Products GmbH, Nuernberg, Germany.
+# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany.
 #
 # All modifications and additions to the file contributed by third parties
 # remain the property of their copyright owners, unless otherwise agreed
@@ -26,6 +26,7 @@
 Url:            http://www.extreme.indiana.edu/xgws/xsoap/xpp/
 Source0:        
http://www.extreme.indiana.edu/xgws/xsoap/xpp/download/PullParser2/PullParser2.1.10.tar.bz2
 Patch0:         xpp2-build_xml.patch
+Patch1:         xpp2-enum.patch
 BuildRequires:  ant >= 1.6
 BuildRequires:  ant-junit >= 1.6
 BuildRequires:  fdupes
@@ -74,6 +75,7 @@
 # remove all binary libs
 find . -name "*.jar" -exec rm -f {} \;
 %patch0 -b .sav
+%patch1 -p1
 
 %build
 export OPT_JAR_LIST="ant/ant-junit junit"

++++++ xpp2-build_xml.patch ++++++
--- /var/tmp/diff_new_pack.kP7rtq/_old  2017-09-13 22:26:40.186568983 +0200
+++ /var/tmp/diff_new_pack.kP7rtq/_new  2017-09-13 22:26:40.186568983 +0200
@@ -5,8 +5,8 @@
  
  
 -  <property name="target" value="1.1" />
-+  <property name="target" value="1.4" />
-+  <property name="source" value="1.4" />
++  <property name="target" value="1.6" />
++  <property name="source" value="1.6" />
    <!-- set global properties for this build -->
  
    <property name="name" value="XML Pull Parser"/>
@@ -185,7 +185,7 @@
      <javadoc packagenames="${apidoc_packages}"
               sourcepath="${src_intf}"
               destdir="${build_apidoc}"
-+             source="1.4"
++             source="1.6"
               author="true"
               version="true"
               use="true"
@@ -193,7 +193,7 @@
      <javadoc packagenames="${javadoc_packages}"
               
sourcepath="${src_intf}:${src_impl_factory}:${src_impl_small}:${src_impl_tag}:${src_impl_pp}:${src_impl_node}:${src_impl_format}:${src_x2impl}:${src_x2impl_factory}:${src_x2impl_pp}"
               destdir="${build_javadoc}"
-+             source="1.4"
++             source="1.6"
               author="true"
               version="true"
               use="true"

++++++ xpp2-enum.patch ++++++
--- PullParser2.1.10/src/java/impl/node/org/gjt/xpp/impl/node/Node.java 
2017-09-11 18:39:27.105544537 +0200
+++ PullParser2.1.10/src/java/impl/node/org/gjt/xpp/impl/node/Node.java 
2017-09-11 18:41:06.771360115 +0200
@@ -273,9 +273,9 @@
         oneChild = null;
 
         if(children != null && children.size() > 0) {
-            Enumeration enum = children.elements();
-            while (enum.hasMoreElements()) {
-                Object child = enum.nextElement();
+            Enumeration emun = children.elements();
+            while (emun.hasMoreElements()) {
+                Object child = emun.nextElement();
                 if(child instanceof XmlNode) {
                     ((XmlNode)child).setParentNode(null);
                 }
@@ -373,11 +373,11 @@
         if(declaredNs != null) {
             System.arraycopy(declaredNs, 0, uris, off, len);
         }
-        //    Enumeration enum = prefix2Ns.keys();
+        //    Enumeration emun = prefix2Ns.keys();
         //    int i = off;
-        //    while (enum.hasMoreElements() && i < off + len)
+        //    while (emun.hasMoreElements() && i < off + len)
         //    {
-        //        uris[i++] = (String) prefix2Ns.get( enum.nextElement() );
+        //        uris[i++] = (String) prefix2Ns.get( emun.nextElement() );
         //    }
     }
 
@@ -512,10 +512,10 @@
                 buf.append(declaredNs[i]);
                 buf.append("'");
             }
-            //        Enumeration enum = prefix2Ns.keys();
-            //        while (enum.hasMoreElements())
+            //        Enumeration emun = prefix2Ns.keys();
+            //        while (emun.hasMoreElements())
             //        {
-            //              Object key = enum.nextElement();
+            //              Object key = emun.nextElement();
             //              buf.append("xmlns:");
             //              buf.append(key);
             //              buf.append("='");
--- PullParser2.1.10/src/java/tests/node/NodeTest.java  2017-09-11 
18:39:27.109544537 +0200
+++ PullParser2.1.10/src/java/tests/node/NodeTest.java  2017-09-11 
18:43:53.211362957 +0200
@@ -386,20 +386,20 @@
         assertEquals("", t1.getDefaultNamespaceUri());
 
         // check enumeration stuff...
-        Enumeration enum = t1.children();
+        Enumeration emun = t1.children();
         assertEquals(0, t1.getChildrenCountSoFar());
         //child1, child2...
-        assertTrue(enum.hasMoreElements());
-        child1 = (XmlPullNode) enum.nextElement();
+        assertTrue(emun.hasMoreElements());
+        child1 = (XmlPullNode) emun.nextElement();
         assertEquals("child1", child1.getLocalName());
-        assertNotNull(enum.nextElement());
-        child3 = (XmlPullNode) enum.nextElement();
+        assertNotNull(emun.nextElement());
+        child3 = (XmlPullNode) emun.nextElement();
         assertEquals("child3", child3.getLocalName());
-        assertNotNull(enum.nextElement());
+        assertNotNull(emun.nextElement());
         assertEquals(4, t1.getChildrenCountSoFar());
-        assertEquals(true, enum.hasMoreElements());
-        assertNotNull(enum.nextElement());
-        assertEquals(false, enum.hasMoreElements());
+        assertEquals(true, emun.hasMoreElements());
+        assertNotNull(emun.nextElement());
+        assertEquals(false, emun.hasMoreElements());
 
         XmlPullNode t2 = (XmlPullNode) node.getChildAt(1);
         assertEquals("t2", t2.getLocalName());

Reply via email to