diff --git a/byaccj-gcc14.patch b/byaccj-gcc14.patch new file mode 100644 index 0000000..abf9fde --- /dev/null +++ b/byaccj-gcc14.patch @@ -0,0 +1,10 @@ +--- byaccj1.15/src/main.c 2024-03-19 19:33:36.131296013 +0100 ++++ byaccj1.15/src/main.c 2024-03-19 19:34:09.998023153 +0100 +@@ -1,6 +1,7 @@ + #include + #include + #include ++#include + + #ifndef __WIN32__ /*rwj -- make portable*/ + #include diff --git a/byaccj.changes b/byaccj.changes index 7907d1f..5580e7d 100644 --- a/byaccj.changes +++ b/byaccj.changes @@ -1,3 +1,10 @@ +------------------------------------------------------------------- +Tue Mar 19 18:59:53 UTC 2024 - Fridrich Strba + +- Added patch: + * byaccj-gcc14.patch + + add missing include to fix build with gcc 14 (bsc#1221696) + ------------------------------------------------------------------- Tue Jul 27 13:20:50 UTC 2021 - Fridrich Strba diff --git a/byaccj.spec b/byaccj.spec index b7eaf30..a4d0efd 100644 --- a/byaccj.spec +++ b/byaccj.spec @@ -1,7 +1,7 @@ # # spec file for package byaccj # -# Copyright (c) 2021 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 @@ -26,6 +26,7 @@ License: SUSE-Public-Domain Group: Development/Libraries/Java URL: http://byaccj.sourceforge.net/ Source0: https://downloads.sourceforge.net/%{name}/%{name}%{version}_src.tar.gz +Patch0: byaccj-gcc14.patch Requires: man-pages %description @@ -41,6 +42,7 @@ finally is a YACC for Java now! %prep %setup -q -n %{name}%{version} +%patch -P 0 -p1 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