Script 'mail_helper' called by obssrc Hello community, here is the log from the commit of package jlex for openSUSE:Factory checked in at 2024-02-23 16:40:26 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/jlex (Old) and /work/SRC/openSUSE:Factory/.jlex.new.1770 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "jlex" Fri Feb 23 16:40:26 2024 rev:21 rq:1148766 version:1.2.6 Changes: -------- --- /work/SRC/openSUSE:Factory/jlex/jlex.changes 2022-03-28 16:59:36.064891116 +0200 +++ /work/SRC/openSUSE:Factory/.jlex.new.1770/jlex.changes 2024-02-23 16:40:27.896756953 +0100 @@ -1,0 +2,8 @@ +Wed Feb 21 12:51:43 UTC 2024 - Fridrich Strba <fst...@suse.com> + +- Use %patch -P N instead of deprecated %patchN. +- Modified patch: + * jlex-1.2.6.static.patch + + rediff to changed Main.java + +------------------------------------------------------------------- ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ jlex.spec ++++++ --- /var/tmp/diff_new_pack.vRpqpg/_old 2024-02-23 16:40:28.732787259 +0100 +++ /var/tmp/diff_new_pack.vRpqpg/_new 2024-02-23 16:40:28.736787403 +0100 @@ -1,7 +1,7 @@ # # spec file for package jlex # -# Copyright (c) 2022 SUSE LLC +# Copyright (c) 2024 SUSE LLC # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -23,8 +23,8 @@ Summary: A Lexical Analyzer Generator for Java License: BSD-3-Clause Group: Development/Libraries/Java -URL: http://www.cs.princeton.edu/~appel/modern/java/JLex/ -Source0: http://www.cs.princeton.edu/~appel/modern/java/JLex/Archive/1.2.5/Main.java +URL: https://www.cs.princeton.edu/~appel/modern/java/JLex/ +Source0: https://www.cs.princeton.edu/~appel/modern/java/JLex/Archive/1.2.5/Main.java Source1: %{name}-%{version}.build.xml Patch0: %{name}-%{version}.static.patch BuildRequires: ant @@ -44,7 +44,9 @@ %prep %setup -q -c -T cp %{SOURCE0} . -%patch0 +%patch -P 0 +# assert is keyword since 1.4 +sed -i "s/assert/ASSERT/g" Main.java cp %{SOURCE1} build.xml %build ++++++ Main.java ++++++ ++++ 945 lines (skipped) ++++ between /work/SRC/openSUSE:Factory/jlex/Main.java ++++ and /work/SRC/openSUSE:Factory/.jlex.new.1770/Main.java ++++++ jlex-1.2.6.static.patch ++++++ --- /var/tmp/diff_new_pack.vRpqpg/_old 2024-02-23 16:40:28.796789579 +0100 +++ /var/tmp/diff_new_pack.vRpqpg/_new 2024-02-23 16:40:28.800789724 +0100 @@ -1,6 +1,6 @@ ---- Main.java.orig 2003-03-26 11:47:18.000000000 +0100 -+++ Main.java 2003-03-26 11:47:21.000000000 +0100 -@@ -1072,8 +1072,15 @@ +--- Main.java.orig 2000-09-06 16:09:47.000000000 +0200 ++++ Main.java 2024-02-21 16:03:00.139049849 +0100 +@@ -1068,8 +1068,15 @@ // Added 6/24/98 Raimondas Lencevicius // May be made more efficient by replacing String operations // Assumes correctly formed input String. Performs no error checking @@ -16,7 +16,7 @@ m_outstream.println("\t\tint colonIndex = -1;"); m_outstream.println("\t\tString lengthString;"); m_outstream.println("\t\tint sequenceLength = 0;"); -@@ -1216,13 +1223,23 @@ +@@ -1212,13 +1219,23 @@ int[] yy_cmap = new int[m_spec.m_ccls_map.length]; for (i = 0; i < m_spec.m_ccls_map.length; ++i) yy_cmap[i] = m_spec.m_col_map[m_spec.m_ccls_map[i]]; @@ -40,8 +40,8 @@ emit_table_as_string(new int[][] { m_spec.m_row_map }); m_outstream.println(")[0];"); m_outstream.println(); -@@ -1237,8 +1254,14 @@ - CUtility.ASSERT(dtrans.m_dtrans.length==m_spec.m_dtrans_ncols); +@@ -1233,8 +1250,14 @@ + CUtility.assert(dtrans.m_dtrans.length==m_spec.m_dtrans_ncols); yy_nxt[elem] = dtrans.m_dtrans; } + if (Main.staticFlag) { @@ -55,7 +55,7 @@ emit_table_as_string(yy_nxt); m_outstream.println(");"); m_outstream.println(); -@@ -3825,26 +3848,43 @@ +@@ -3821,18 +3844,35 @@ /*************************************************************** Function: main **************************************************************/ @@ -79,7 +79,6 @@ - { - System.out.println("Usage: JLex.Main <filename>"); - return; -- } + // Parse options starting with '-' + for (i = 0; i < arg.length && arg[i].charAt(0) == '-'; i++) { + if (arg[i].equals("-static")) { @@ -93,10 +92,10 @@ + // Enough arguments left ? + if (arg.length - i < 1) { + printUsage(); -+ } + } /* Note: For debuging, it may be helpful to remove the try/catch - block and permit the Exception to propagate to the top level. +@@ -3840,7 +3880,7 @@ This gives more information. */ try {