byacc patch for building mesa

This commit is contained in:
Ella-0 2021-01-27 22:24:11 +00:00
parent 71e71c1978
commit 27cb7ab164
4 changed files with 124 additions and 4 deletions

View file

@ -1,4 +1,4 @@
pkgver=20200910
pkgver=20210109
pkgname=byacc
bad=""
ext="doc"
@ -6,6 +6,7 @@ ext="doc"
fetch() {
curl https://invisible-island.net/datafiles/release/byacc.tar.gz -o $pkgname-$pkgver.tar.gz
tar -xf $pkgname-$pkgver.tar.gz
cp ../reader-mesa.patch .
}
build() {
@ -14,6 +15,7 @@ build() {
--prefix=/usr \
--program-prefix=b \
--enable-btyacc
patch -p1 < ../reader-mesa.patch
make
}

View file

@ -0,0 +1,11 @@
--- a/reader.c
+++ b/reader.c
@@ -902,7 +902,7 @@
if (!lflag)
fprintf(text_file, line_format, lineno, input_file_name);
- puts_both("typedef union");
+ puts_both("typedef union YYSTYPE");
depth = 0;
loop: