Sync from SUSE:SLFO:Main byaccj revision 8b1b151d5658103c379063879ea00a0d

This commit is contained in:
Adrian Schröter 2024-05-31 14:33:36 +02:00
parent 351930cb9e
commit 352d75ddaf
3 changed files with 21 additions and 3 deletions

10
byaccj-gcc14.patch Normal file
View File

@ -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 <stdio.h>
#include <stdlib.h>
#include <string.h>
+#include <sys/unistd.h>
#ifndef __WIN32__ /*rwj -- make portable*/
#include <signal.h>

View File

@ -1,3 +1,10 @@
-------------------------------------------------------------------
Tue Mar 19 18:59:53 UTC 2024 - Fridrich Strba <fstrba@suse.com>
- 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 <fstrba@suse.com> Tue Jul 27 13:20:50 UTC 2021 - Fridrich Strba <fstrba@suse.com>

View File

@ -1,7 +1,7 @@
# #
# spec file for package byaccj # 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 # All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed # remain the property of their copyright owners, unless otherwise agreed
@ -17,15 +17,15 @@
%{!?make_build:%global make_build make %{?_smp_mflags}} %{!?make_build:%global make_build make %{?_smp_mflags}}
%define jpp_release 3
Name: byaccj Name: byaccj
Version: 1.15 Version: 1.15
Release: 0 Release: 0
Summary: Parser Generator with Java Extension Summary: Parser Generator with Java Extension
License: SUSE-Public-Domain License: SUSE-Public-Domain
Group: Development/Libraries/Java Group: Development/Libraries/Java
URL: http://byaccj.sourceforge.net/ URL: https://byaccj.sourceforge.net/
Source0: https://downloads.sourceforge.net/%{name}/%{name}%{version}_src.tar.gz Source0: https://downloads.sourceforge.net/%{name}/%{name}%{version}_src.tar.gz
Patch0: byaccj-gcc14.patch
Requires: man-pages Requires: man-pages
%description %description
@ -41,6 +41,7 @@ finally is a YACC for Java now!
%prep %prep
%setup -q -n %{name}%{version} %setup -q -n %{name}%{version}
%patch -P 0 -p1
chmod -c -x src/* docs/* 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 sed -i -e 's|-arch i386 -isysroot /Developer/SDKs/MacOSX10.4u.sdk -mmacosx-version-min=10.4|$(LDFLAGS)|g' src/Makefile