SHA256
1
0
forked from pool/bison

Accepting request 448458 from home:marxin:branches:devel:tools:compiler

gcc7-fix.patch: Add forward declaration to compile with GCC7.

OBS-URL: https://build.opensuse.org/request/show/448458
OBS-URL: https://build.opensuse.org/package/show/devel:tools:compiler/bison?expand=0&rev=48
This commit is contained in:
Martin Pluskal 2017-01-02 09:30:23 +00:00 committed by Git OBS Bridge
parent 8c05842eb8
commit 6916ff5c53
3 changed files with 22 additions and 1 deletions

View File

@ -1,3 +1,8 @@
-------------------------------------------------------------------
Fri Dec 16 09:45:23 UTC 2016 - mliska@suse.cz
- gcc7-fix.patch: Add forward declaration to compile with GCC7.
-------------------------------------------------------------------
Wed Dec 14 11:04:29 UTC 2016 - tchvatal@suse.com

View File

@ -1,7 +1,7 @@
#
# spec file for package bison
#
# Copyright (c) 2016 SUSE LINUX GmbH, Nuernberg, Germany.
# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@ -27,6 +27,8 @@ Source0: http://ftp.gnu.org/gnu/%{name}/%{name}-%{version}.tar.xz
Source1: http://ftp.gnu.org/gnu/%{name}/%{name}-%{version}.tar.xz.sig
Source2: %{name}.keyring
Source3: baselibs.conf
Patch1: gcc7-fix.patch
BuildRequires: autoconf
BuildRequires: flex
BuildRequires: gcc-c++
BuildRequires: xz
@ -43,6 +45,7 @@ Bison is a parser generator similar to yacc(1).
%prep
%setup -q
%patch1
%build
%configure --disable-silent-rules \

13
gcc7-fix.patch Normal file
View File

@ -0,0 +1,13 @@
--- /home/marxin/Programming/bison-3.0.4/tests/c++.at 2015-01-20 20:39:51.000000000 +0100
+++ tests/c++.at 2016-12-14 10:58:00.046437207 +0100
@@ -197,6 +197,10 @@
#include <list>
#include <string>
typedef std::list<std::string> strings_type;
+namespace std
+{
+ std::ostream& operator<<(std::ostream& o, const strings_type& s);
+}
}
%code // code for the .cc file