forked from pool/bison
Accepting request 448464 from devel:tools:compiler
1 OBS-URL: https://build.opensuse.org/request/show/448464 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/bison?expand=0&rev=36
This commit is contained in:
commit
75a0fa56e9
@ -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
|
Wed Dec 14 11:04:29 UTC 2016 - tchvatal@suse.com
|
||||||
|
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
#
|
#
|
||||||
# spec file for package bison
|
# 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
|
# 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
|
||||||
@ -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
|
Source1: http://ftp.gnu.org/gnu/%{name}/%{name}-%{version}.tar.xz.sig
|
||||||
Source2: %{name}.keyring
|
Source2: %{name}.keyring
|
||||||
Source3: baselibs.conf
|
Source3: baselibs.conf
|
||||||
|
Patch1: gcc7-fix.patch
|
||||||
|
BuildRequires: autoconf
|
||||||
BuildRequires: flex
|
BuildRequires: flex
|
||||||
BuildRequires: gcc-c++
|
BuildRequires: gcc-c++
|
||||||
BuildRequires: xz
|
BuildRequires: xz
|
||||||
@ -43,6 +45,7 @@ Bison is a parser generator similar to yacc(1).
|
|||||||
|
|
||||||
%prep
|
%prep
|
||||||
%setup -q
|
%setup -q
|
||||||
|
%patch1
|
||||||
|
|
||||||
%build
|
%build
|
||||||
%configure --disable-silent-rules \
|
%configure --disable-silent-rules \
|
||||||
|
13
gcc7-fix.patch
Normal file
13
gcc7-fix.patch
Normal 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
|
Loading…
Reference in New Issue
Block a user