Script 'mail_helper' called by obssrc Hello community, here is the log from the commit of package byaccj for openSUSE:Factory checked in at 2021-02-11 12:46:32 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/byaccj (Old) and /work/SRC/openSUSE:Factory/.byaccj.new.28504 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "byaccj" Thu Feb 11 12:46:32 2021 rev:15 rq:869105 version:1.15 Changes: -------- --- /work/SRC/openSUSE:Factory/byaccj/byaccj.changes 2014-01-13 12:00:30.000000000 +0100 +++ /work/SRC/openSUSE:Factory/.byaccj.new.28504/byaccj.changes 2021-02-11 12:47:39.149512035 +0100 @@ -1,0 +2,14 @@ +Wed Feb 3 18:57:06 UTC 2021 - Pedro Monreal <pmonr...@suse.com> + +- Update to 1.15 + * Fix: stack corruption when generating a java parser + * Fix: Targets with empty right-hand side problematic in Java mode + +------------------------------------------------------------------- +Wed Feb 3 18:19:13 UTC 2021 - Pedro Monreal <pmonr...@suse.com> + +- Update the spec file + * Simplify the docs installation + * Remove mac and arch specifics + +------------------------------------------------------------------- Old: ---- byaccj1.14_src.tar.gz New: ---- byaccj1.15_src.tar.gz ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ byaccj.spec ++++++ --- /var/tmp/diff_new_pack.yjoqae/_old 2021-02-11 12:47:39.693512827 +0100 +++ /var/tmp/diff_new_pack.yjoqae/_new 2021-02-11 12:47:39.697512833 +0100 @@ -1,7 +1,7 @@ # # spec file for package byaccj # -# Copyright (c) 2014 SUSE LINUX Products GmbH, Nuernberg, Germany. +# Copyright (c) 2021 SUSE LLC # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -12,21 +12,19 @@ # license that conforms to the Open Source Definition (Version 1.9) # published by the Open Source Initiative. -# Please submit bugfixes or comments via http://bugs.opensuse.org/ +# Please submit bugfixes or comments via https://bugs.opensuse.org/ # +%define jpp_release 3 +Name: byaccj +Version: 1.15 +Release: 0 Summary: Parser Generator with Java Extension License: SUSE-Public-Domain Group: Development/Libraries/Java - -Name: byaccj -Version: 1.14 -Release: 0 -%define jpp_release 3 -Url: http://byaccj.sourceforge.net/ -Source0: http://downloads.sourceforge.net/%{name}/%{name}%{version}_src.tar.gz -BuildRoot: %{_tmppath}/%{name}-%{version}-build +URL: http://byaccj.sourceforge.net/ +Source0: https://downloads.sourceforge.net/%{name}/%{name}%{version}_src.tar.gz Requires: man-pages %description @@ -40,30 +38,26 @@ will cause BYACC to generate Java source code, instead. So there finally is a YACC for Java now! - - %prep -%setup -q -n %{name}%{version}_src +%setup -q -n %{name}%{version} + +chmod -c -x src/* docs/* +sed -i -e 's|-arch i386 -isysroot /Developer/SDKs/MacOSX10.4u.sdk -mmacosx-version-min=10.4|$(LDFLAGS)|g' src/Makefile %build pushd src -make linux CFLAGS="$RPM_OPT_FLAGS" +%make_build yacc CFLAGS="%{optflags}" LDFLAGS="$RPM_LD_FLAGS" popd + +#Fix wrong-file-end-of-line-encoding sed -i 's/\r//g' docs/tf.y %install -# manual -install -d -m 755 %{buildroot}%{_mandir}/man1 -mv docs/yacc.cat %{buildroot}%{_mandir}/man1 -# jars -mkdir -p %{buildroot}%{_bindir} -cp -p src/yacc.linux \ - %{buildroot}%{_bindir}/%{name} +install -d -m 755 %{buildroot}%{_bindir} +install -p -m 755 src/yacc %{buildroot}%{_bindir}/%{name} %files -%defattr(0644,root,root,0755) -%doc docs/* src/readme src/README -%{_mandir}/man1/yacc.cat* -%attr(755, root, root) %{_bindir}/%{name} +%doc docs/* src/README +%{_bindir}/%{name} %changelog ++++++ byaccj1.14_src.tar.gz -> byaccj1.15_src.tar.gz ++++++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/byaccj1.14_src/packme.sh new/byaccj1.15/packme.sh --- old/byaccj1.14_src/packme.sh 2006-12-20 20:09:55.000000000 +0100 +++ new/byaccj1.15/packme.sh 2008-11-22 12:18:44.000000000 +0100 @@ -1,5 +1,5 @@ #!/bin/sh -VER=byaccj1.14 +VER=byaccj1.15 /bin/rm -rf ${VER} mkdir ${VER} mkdir ${VER}/src Binary files old/byaccj1.14_src/src/._output.c and new/byaccj1.15/src/._output.c differ Binary files old/byaccj1.14_src/src/._skeleton.c and new/byaccj1.15/src/._skeleton.c differ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/byaccj1.14_src/src/Makefile new/byaccj1.15/src/Makefile --- old/byaccj1.14_src/src/Makefile 2006-12-20 20:09:56.000000000 +0100 +++ new/byaccj1.15/src/Makefile 2008-11-24 09:41:02.000000000 +0100 @@ -5,11 +5,11 @@ ################################################# CC = gcc -CFLAGS = -O -LDFLAGS = -static +CFLAGS = -O -arch i386 -isysroot /Developer/SDKs/MacOSX10.4u.sdk -mmacosx-version-min=10.4 +LDFLAGS = -static -arch ppc -isysroot /Developer/SDKs/MacOSX10.4u.sdk TAR = tar GZIP = gzip -VERS = byaccj1.14 +VERS = byaccj1.15 JAVA = /usr/java ZIP = zip @@ -75,7 +75,7 @@ $(CC) -c $(CFLAGS) $(INC) $< -o $@ yacc: $(OBJ) - $(CC) -o yacc $(OBJ) + $(CC) -o yacc -arch i386 -isysroot /Developer/SDKs/MacOSX10.4u.sdk -mmacosx-version-min=10.4 $(OBJ) @echo "done" clean: diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/byaccj1.14_src/src/Makefile.bcc new/byaccj1.15/src/Makefile.bcc --- old/byaccj1.14_src/src/Makefile.bcc 2006-12-20 20:09:56.000000000 +0100 +++ new/byaccj1.15/src/Makefile.bcc 2008-11-22 12:19:17.000000000 +0100 @@ -8,7 +8,7 @@ CFLAGS = -O -WC -w-8004 -w-8057 TAR = /bin/tar GZIP = /usr/sbin/gzip -VERS = byaccj1.14 +VERS = byaccj1.15 OBJ = closure.obj \ error.obj \ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/byaccj1.14_src/src/new_features new/byaccj1.15/src/new_features --- old/byaccj1.14_src/src/new_features 2006-12-20 20:34:27.000000000 +0100 +++ new/byaccj1.15/src/new_features 2008-11-22 12:23:28.000000000 +0100 @@ -1,4 +1,10 @@ -New features in version 1.14 +New features in version 1.15: +----------------------------- +Bug #1638577 (stack corruption when generating a java parser) fixed +Bug #1630851 (Targets with empty right-hand side problematic in Java mode) fixed + +New features in version 1.14: +----------------------------- generics can be now used in semantic type Bug #1598776 ('-Jnodebug' option is broken) fixed diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/byaccj1.14_src/src/output.c new/byaccj1.15/src/output.c --- old/byaccj1.14_src/src/output.c 2006-12-20 20:09:56.000000000 +0100 +++ new/byaccj1.15/src/output.c 2008-11-14 10:17:12.000000000 +0100 @@ -1206,6 +1206,10 @@ fprintf(code_file,"{\n"); fprintf(code_file," return valstk[valptr-relative];\n"); fprintf(code_file,"}\n"); + fprintf(code_file,"final %s dup_yyval(%s val)\n",jsemantic_type,jsemantic_type); + fprintf(code_file,"{\n"); + fprintf(code_file," return val;\n"); + fprintf(code_file,"}\n"); fprintf(code_file,"//#### end semantic value section ####\n"); } @@ -1348,6 +1352,15 @@ fprintf(code_file," return new %s();\n",jvalclass); fprintf(code_file," return valstk[ptr];\n"); fprintf(code_file,"}\n"); + fprintf(code_file,"final %s dup_yyval(%s val)\n",jvalclass,jvalclass); + fprintf(code_file,"{\n"); + fprintf(code_file," %s dup = new %s();\n",jvalclass,jvalclass); + fprintf(code_file," dup.ival = val.ival;\n"); + fprintf(code_file," dup.dval = val.dval;\n"); + fprintf(code_file," dup.sval = val.sval;\n"); + fprintf(code_file," dup.obj = val.obj;\n"); + fprintf(code_file," return dup;\n"); + fprintf(code_file,"}\n"); fprintf(code_file,"//#### end semantic value section ####\n"); } } diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/byaccj1.14_src/src/readme new/byaccj1.15/src/readme --- old/byaccj1.14_src/src/readme 2002-03-07 17:21:13.000000000 +0100 +++ new/byaccj1.15/src/readme 1970-01-01 01:00:00.000000000 +0100 @@ -1,23 +0,0 @@ - Berkeley Yacc is an LALR(1) parser generator. Berkeley Yacc has been made -as compatible as possible with AT&T Yacc. Berkeley Yacc can accept any input -specification that conforms to the AT&T Yacc documentation. Specifications -that take advantage of undocumented features of AT&T Yacc will probably be -rejected. - - Berkeley Yacc is distributed with no warranty whatever. The code is certain -to contain errors. Neither the author nor any contributor takes responsibility -for any consequences of its use. - - Berkeley Yacc is in the public domain. The data structures and algorithms -used in Berkeley Yacc are all either taken from documents available to the -general public or are inventions of the author. Anyone may freely distribute -source or binary forms of Berkeley Yacc whether unchanged or modified. -Distributers may charge whatever fees they can obtain for Berkeley Yacc. -Programs generated by Berkeley Yacc may be distributed freely. - - Please report bugs to - - corb...@berkeley.edu - -Include a small example if possible. Please include the banner string from -skeleton.c with the bug report. Do not expect rapid responses. diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/byaccj1.14_src/src/skeleton.c new/byaccj1.15/src/skeleton.c --- old/byaccj1.14_src/src/skeleton.c 2006-12-20 20:09:56.000000000 +0100 +++ new/byaccj1.15/src/skeleton.c 2008-11-22 12:20:10.000000000 +0100 @@ -25,7 +25,7 @@ char *jbanner[] = { - "//### This file created by BYACC 1.8(/Java extension 1.14)", + "//### This file created by BYACC 1.8(/Java extension 1.15)", "//### Java capabilities added 7 Jan 97, Bob Jamison", "//### Updated : 27 Nov 97 -- Bob Jamison, Joe Nieten", "//### 01 Jan 98 -- Bob Jamison -- fixed generic semantic constructor", @@ -478,6 +478,7 @@ " debug(\"state \"+yystate+\", reducing \"+yym+\" by rule \"+yyn+\" (\"+yyrule[yyn]+\")\");", " if (yym>0) //if count of rhs not 'nil'", " yyval = val_peek(yym-1); //get current semantic value", + " yyval = dup_yyval(yyval); //duplicate yyval if ParserVal is used as semantic value", " switch(yyn)", " {", "//########## USER-SUPPLIED ACTIONS ##########", @@ -639,6 +640,7 @@ " //debug(\"state \"+yystate+\", reducing \"+yym+\" by rule \"+yyn+\" (\"+yyrule[yyn]+\")\");", " if (yym>0) //if count of rhs not 'nil'", " yyval = val_peek(yym-1); //get current semantic value", + " yyval = dup_yyval(yyval); //duplicate yyval if ParserVal is used as semantic value", " switch(yyn)", " {", "//########## USER-SUPPLIED ACTIONS ##########",