forked from kiss-community/repo
opendoas: Fix build with bison 3.8
https://lists.gnu.org/archive/html/bug-bison/2021-09/msg00006.html
This commit is contained in:
parent
cb26a93803
commit
e613c6ccec
@ -1,5 +1,7 @@
|
|||||||
#!/bin/sh -e
|
#!/bin/sh -e
|
||||||
|
|
||||||
|
patch -p1 < bison-3.8.patch
|
||||||
|
|
||||||
BINOWN="$(id -u)" \
|
BINOWN="$(id -u)" \
|
||||||
BINGRP="$(id -g)" \
|
BINGRP="$(id -g)" \
|
||||||
./configure \
|
./configure \
|
||||||
|
@ -1,2 +1,3 @@
|
|||||||
c9070ae745d0f1bbe68ef0783a3958cd011b409959f65fd100e6b42b8ad6b162
|
c9070ae745d0f1bbe68ef0783a3958cd011b409959f65fd100e6b42b8ad6b162
|
||||||
846a251c646e61329086eda6abde26329f5a358d5eeab1a0f075db36e5997687
|
846a251c646e61329086eda6abde26329f5a358d5eeab1a0f075db36e5997687
|
||||||
|
28e74db164d001820ed295573f14610b76282ed15fee5fb819058949419ea860
|
||||||
|
13
extra/opendoas/patches/bison-3.8.patch
Normal file
13
extra/opendoas/patches/bison-3.8.patch
Normal file
@ -0,0 +1,13 @@
|
|||||||
|
diff --git a/parse.y b/parse.y
|
||||||
|
index 388c2a5..65fda3d 100644
|
||||||
|
--- a/parse.y
|
||||||
|
+++ b/parse.y
|
||||||
|
@@ -57,6 +57,8 @@ static size_t maxrules;
|
||||||
|
|
||||||
|
int parse_errors = 0;
|
||||||
|
|
||||||
|
+#define yyerror yyerror
|
||||||
|
+#define yylex yylex
|
||||||
|
static void yyerror(const char *, ...);
|
||||||
|
static int yylex(void);
|
||||||
|
|
@ -1,2 +1,3 @@
|
|||||||
https://github.com/Duncaen/OpenDoas/archive/vVERSION.tar.gz
|
https://github.com/Duncaen/OpenDoas/archive/vVERSION.tar.gz
|
||||||
files/doas.conf
|
files/doas.conf
|
||||||
|
patches/bison-3.8.patch
|
||||||
|
@ -1 +1 @@
|
|||||||
6.8.1 1
|
6.8.1 2
|
||||||
|
Loading…
Reference in New Issue
Block a user