- Added patch:

* byaccj-gcc14.patch
    + add missing include to fix build with gcc 14 (bsc#1221696)

OBS-URL: https://build.opensuse.org/package/show/Java:packages/byaccj?expand=0&rev=12
This commit is contained in:
Fridrich Strba 2024-03-19 19:01:21 +00:00 committed by Git OBS Bridge
parent b5796b2f8b
commit 491234fd3b
3 changed files with 20 additions and 1 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>

View File

@ -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