bison: tidy up PKGBUILD

This commit is contained in:
Ray Donnelly
2014-08-05 20:51:59 +01:00
parent c3b2eb64cb
commit b4e873a8ee

View File

@@ -10,7 +10,7 @@ arch=('any')
license=('GPL3')
url="http://www.gnu.org/software/bison/bison.html"
depends=("${MINGW_PACKAGE_PREFIX}-m4")
options=('debug' '!strip')
# options=('debug' '!strip')
source=(http://ftp.gnu.org/gnu/bison/${_realname}-${pkgver}.tar.xz
0001-use-gnu_printf.patch
0002-add-relocation-support.patch
@@ -39,32 +39,25 @@ build() {
--build=${MINGW_CHOST} \
--host=${MINGW_CHOST} \
--target=${MINGW_CHOST}
make V=1
make
}
# Need to investigate all the testsuite failures.
#
# ERROR: 413 tests were run,
# 79 failed unexpectedly.
# 24 tests were skipped
#
# I checked two and they seemed to
# be down to IO problems in MSYS2.
check() {
cd ${srcdir}/${_realname}-${pkgver}
rm -f tests/testsuite
make tests/testsuite
make check
# cd ${srcdir}/${_realname}-${pkgver}
# rm -f tests/testsuite
# make tests/testsuite
# make check
}
package() {
cd ${srcdir}/${_realname}-${pkgver}
make DESTDIR=${pkgdir} install
}
# BISON_PKGDATADIR=$PWD/data PATH=/mingw64/bin:"$PATH" ./src/bison.exe -o y.tab.c -d -v -Werror -Wall -Wno-yacc --report=all -o examples/calc++/calc++-parser.cc examples/calc++/calc++-parser.yy
# .. falls down in m4 somewhere, write error .. probably read end got closed?
# ./doc/bison.texi: fatal error: invalid @ in skeleton: @
# C:/msys64/mingw64/bin/m4.exe: write error: Invalid argument
# At the time it's in scan-skel.c somewhere, but that's generated by flex, so the line numbers don't work
# need to replace all #line with //#line in scan-skel.c
# PATH=/mingw64/bin:"$PATH" x86_64-w64-mingw32-gcc -std=gnu99 -I. -Ilib -I. -I./lib -D_FORTIFY_SOURCE=2 -D__USE_MINGW_ANSI_STDIO=1 -I/mingw64/include -march=x86-64 -mtune=generic -O2 -pipe -ggdb -Og -ggdb -Og -MT src/bison-scan-skel-c.o -MD -MP -MF src/.deps/bison-scan-skel-c.Tpo -c -o src/bison-scan-skel-c.o src/scan-skel-c.c
# PATH=/mingw64/bin:"$PATH" x86_64-w64-mingw32-gcc -std=gnu99 -I. -Ilib -I. -I./lib -D_FORTIFY_SOURCE=2 -D__USE_MINGW_ANSI_STDIO=1 -I/mingw64/include -march=x86-64 -mtune=generic -O2 -pipe -ggdb -Og -ggdb -Og -MT src/bison-scan-skel-c.o -MD -MP -MF src/.deps/bison-scan-code-c.Tpo -c -o src/bison-scan-code-c.o src/scan-code-c.c
# PATH=/mingw64/bin:"$PATH" make src/bison.exe
# PATH=/mingw64/bin:"$PATH" x86_64-w64-mingw32-gcc -std=gnu99 -I. -Ilib -I. -I./lib -D_FORTIFY_SOURCE=2 -D__USE_MINGW_ANSI_STDIO=1 -I/mingw64/include -march=x86-64 -mtune=generic -O2 -pipe -ggdb -Og -ggdb -Og -MT lib/spawn-pipe.o -MD -MP -MF $depbase.Tpo -c -o lib/spawn-pipe.o lib/spawn-pipe.c
# PATH=/mingw64/bin:"$PATH" x86_64-w64-mingw32-gcc -std=gnu99 -I. -Ilib -I. -I./lib -D_FORTIFY_SOURCE=2 -D__USE_MINGW_ANSI_STDIO=1 -I/mingw64/include -march=x86-64 -mtune=generic -O2 -pipe -ggdb -Og -ggdb -Og -MT src/bison-main.o -MD -MP -MF src/.deps/bison-main.Tpo -c -o src/bison-main.o src/main.c
# PATH=/mingw64/bin:"$PATH" x86_64-w64-mingw32-gcc -std=gnu99 -I. -Ilib -I. -I./lib -D_FORTIFY_SOURCE=2 -D__USE_MINGW_ANSI_STDIO=1 -I/mingw64/include -march=x86-64 -mtune=generic -O2 -pipe -ggdb -Og -ggdb -Og -MT src/bison-location.o -MD -MP -MF src/.deps/bison-location.Tpo -c -o src/bison-location.o src/location.c
# PATH=/mingw64/bin:"$PATH" make