forked from pool/bison
Accepting request 201240 from home:AndreasSchwab:ff
- location-eof-check.patch: Fix broken EOF check OBS-URL: https://build.opensuse.org/request/show/201240 OBS-URL: https://build.opensuse.org/package/show/devel:tools:compiler/bison?expand=0&rev=32
This commit is contained in:
parent
cf2ae47823
commit
9a8cec91e2
@ -1,3 +1,8 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Fri Sep 27 20:13:38 UTC 2013 - schwab@linux-m68k.org
|
||||||
|
|
||||||
|
- location-eof-check.patch: Fix broken EOF check
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Sat Aug 3 02:24:50 UTC 2013 - crrodriguez@opensuse.org
|
Sat Aug 3 02:24:50 UTC 2013 - crrodriguez@opensuse.org
|
||||||
|
|
||||||
|
@ -33,6 +33,7 @@ Group: Development/Languages/C and C++
|
|||||||
Url: http://www.gnu.org/software/bison/bison.html
|
Url: http://www.gnu.org/software/bison/bison.html
|
||||||
Source: http://ftp.gnu.org/gnu/bison/bison-%{version}.tar.xz
|
Source: http://ftp.gnu.org/gnu/bison/bison-%{version}.tar.xz
|
||||||
Source2: baselibs.conf
|
Source2: baselibs.conf
|
||||||
|
Patch: location-eof-check.patch
|
||||||
Requires: m4
|
Requires: m4
|
||||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||||
|
|
||||||
@ -41,6 +42,7 @@ Bison is a parser generator similar to yacc(1).
|
|||||||
|
|
||||||
%prep
|
%prep
|
||||||
%setup -q
|
%setup -q
|
||||||
|
%patch -p1
|
||||||
|
|
||||||
%build
|
%build
|
||||||
%configure --disable-silent-rules --disable-rpath \
|
%configure --disable-silent-rules --disable-rpath \
|
||||||
|
13
location-eof-check.patch
Normal file
13
location-eof-check.patch
Normal file
@ -0,0 +1,13 @@
|
|||||||
|
Index: bison-3.0/src/location.c
|
||||||
|
===================================================================
|
||||||
|
--- bison-3.0.orig/src/location.c
|
||||||
|
+++ bison-3.0/src/location.c
|
||||||
|
@@ -188,7 +188,7 @@ location_caret (location loc, FILE *out)
|
||||||
|
/* Read the actual line. Don't update the offset, so that we keep a pointer
|
||||||
|
to the start of the line. */
|
||||||
|
{
|
||||||
|
- char c = getc (caret_info.source);
|
||||||
|
+ int c = getc (caret_info.source);
|
||||||
|
if (c != EOF)
|
||||||
|
{
|
||||||
|
/* Quote the file, indent by a single column. */
|
Loading…
Reference in New Issue
Block a user