Accepting request 1159649 from Java:packages
fix build with gcc 14 (bsc#1221696) OBS-URL: https://build.opensuse.org/request/show/1159649 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/byaccj?expand=0&rev=17
This commit is contained in:
commit
bfc57e6355
10
byaccj-gcc14.patch
Normal file
10
byaccj-gcc14.patch
Normal 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>
|
@ -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>
|
||||
|
||||
|
@ -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
|
||||
@ -17,15 +17,15 @@
|
||||
|
||||
|
||||
%{!?make_build:%global make_build make %{?_smp_mflags}}
|
||||
%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
|
||||
URL: http://byaccj.sourceforge.net/
|
||||
URL: https://byaccj.sourceforge.net/
|
||||
Source0: https://downloads.sourceforge.net/%{name}/%{name}%{version}_src.tar.gz
|
||||
Patch0: byaccj-gcc14.patch
|
||||
Requires: man-pages
|
||||
|
||||
%description
|
||||
@ -41,6 +41,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
|
||||
|
Loading…
Reference in New Issue
Block a user