mirror of
https://github.com/fosslinux/live-bootstrap.git
synced 2026-03-02 01:18:08 +01:00
Add bison 3.7.6
This commit is contained in:
parent
00808ed08a
commit
1b784cdf04
7 changed files with 194 additions and 0 deletions
103
steps/bison-3.7.6/import-gnulib.sh
Executable file
103
steps/bison-3.7.6/import-gnulib.sh
Executable file
|
|
@ -0,0 +1,103 @@
|
|||
#!/bin/bash
|
||||
|
||||
# SPDX-FileCopyrightText: 2021 Samuel Tyler <samuel@samuelt.me>
|
||||
#
|
||||
# SPDX-License-Identifier: GPL-3.0-or-later
|
||||
|
||||
../gnulib-839ed05/gnulib-tool --import --local-dir=gl \
|
||||
--lib=libbison \
|
||||
--source-base=lib \
|
||||
--m4-base=m4 \
|
||||
--po-base=gnulib-po \
|
||||
--doc-base=doc \
|
||||
--tests-base=tests \
|
||||
--aux-dir=build-aux \
|
||||
--makefile-name=gnulib.mk \
|
||||
--conditional-dependencies \
|
||||
--no-libtool \
|
||||
--macro-prefix=gl \
|
||||
--po-domain=bison \
|
||||
argmatch \
|
||||
array-list \
|
||||
assert \
|
||||
assure \
|
||||
attribute \
|
||||
bitsetv \
|
||||
c-strcase \
|
||||
calloc-posix \
|
||||
close \
|
||||
closeout \
|
||||
config-h \
|
||||
configmake \
|
||||
dirname \
|
||||
error \
|
||||
extensions \
|
||||
fdl \
|
||||
fopen-safer \
|
||||
fprintf-posix \
|
||||
fstrcmp \
|
||||
getopt-gnu \
|
||||
gettext-h \
|
||||
git-version-gen \
|
||||
gitlog-to-changelog \
|
||||
gpl-3.0 \
|
||||
intprops \
|
||||
inttypes \
|
||||
isnan \
|
||||
javacomp-script \
|
||||
javaexec-script \
|
||||
ldexpl \
|
||||
libtextstyle-optional \
|
||||
linked-list \
|
||||
malloc-gnu \
|
||||
mbfile \
|
||||
mbswidth \
|
||||
non-recursive-gnulib-prefix-hack \
|
||||
obstack \
|
||||
obstack-printf \
|
||||
perror \
|
||||
printf-posix \
|
||||
progname \
|
||||
quote \
|
||||
quotearg \
|
||||
rbtreehash-list \
|
||||
readline \
|
||||
readme-release \
|
||||
realloc-posix \
|
||||
relocatable-prog \
|
||||
relocatable-script \
|
||||
rename \
|
||||
snprintf-posix \
|
||||
spawn-pipe \
|
||||
sprintf-posix \
|
||||
stdbool \
|
||||
stpcpy \
|
||||
stpncpy \
|
||||
strdup-posix \
|
||||
strerror \
|
||||
strverscmp \
|
||||
sys_ioctl \
|
||||
termios \
|
||||
timevar \
|
||||
unicodeio \
|
||||
unistd \
|
||||
unistd-safer \
|
||||
unlink \
|
||||
unlocked-io \
|
||||
unsetenv \
|
||||
update-copyright \
|
||||
verify \
|
||||
vsnprintf-posix \
|
||||
vsprintf-posix \
|
||||
warnings \
|
||||
winsz-ioctl \
|
||||
winsz-termios \
|
||||
xalloc \
|
||||
xalloc-die \
|
||||
xconcat-filename \
|
||||
xhash \
|
||||
xlist \
|
||||
xmemdup0 \
|
||||
xstrndup
|
||||
|
||||
build-aux/prefix-gnulib-mk --lib-name=libbison lib/gnulib.mk
|
||||
44
steps/bison-3.7.6/pass1.sh
Executable file
44
steps/bison-3.7.6/pass1.sh
Executable file
|
|
@ -0,0 +1,44 @@
|
|||
# SPDX-FileCopyrightText: 2021-22 Samuel Tyler <samuel@samuelt.me>
|
||||
# SPDX-FileCopyrightText: 2022 Andrius Štikonas <andrius@stikonas.eu>
|
||||
#
|
||||
# SPDX-License-Identifier: GPL-3.0-or-later
|
||||
|
||||
src_prepare() {
|
||||
default
|
||||
|
||||
# Remove pre-generated flex/bison files
|
||||
rm src/parse-gram.c src/parse-gram.h
|
||||
rm src/scan-code.c
|
||||
rm src/scan-gram.c
|
||||
rm src/scan-skel.c
|
||||
|
||||
# Remove pregenerated info files
|
||||
rm doc/bison.info*
|
||||
|
||||
# Remove gettext files
|
||||
rm runtime-po/*.gmo
|
||||
|
||||
../../import-gnulib.sh
|
||||
|
||||
# pregenerated gperf files
|
||||
for f in lib/iconv_open-*.h; do
|
||||
rm "$f"
|
||||
touch "$f"
|
||||
done
|
||||
|
||||
AUTOPOINT=true AUTOMAKE=automake-1.15 ACLOCAL=aclocal-1.15 autoreconf-2.69 -fi
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
./configure --prefix="${PREFIX}" \
|
||||
--libdir="${LIBDIR}" \
|
||||
--disable-nls
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
make -j1 MAKEINFO=true
|
||||
}
|
||||
|
||||
src_install() {
|
||||
make MAKEINFO=true DESTDIR="${DESTDIR}" install
|
||||
}
|
||||
18
steps/bison-3.7.6/patches/our-bison.patch
Normal file
18
steps/bison-3.7.6/patches/our-bison.patch
Normal file
|
|
@ -0,0 +1,18 @@
|
|||
SPDX-FileCopyrightText: 2021 Samuel Tyler <samuel@samuelt.me>
|
||||
|
||||
SPDX-License-Identifier: GPL-3.0-or-later
|
||||
|
||||
Why do they insist on using themselves to bootstrap themselves? It doesn't
|
||||
exist...
|
||||
|
||||
--- bison-3.7.6/Makefile.am 2021-04-15 21:29:36.596205032 +1000
|
||||
+++ bison-3.7.6/Makefile.am 2021-04-15 21:30:00.367365897 +1000
|
||||
@@ -39,7 +39,7 @@
|
||||
## Running the bison from this tarball. To generate our own parser,
|
||||
## but also to run the tests. Of course, you ought to keep a sane
|
||||
## version of Bison nearby...
|
||||
-BISON = $(top_builddir)/tests/bison
|
||||
+BISON = /usr/bin/bison
|
||||
BISON_IN = $(top_srcdir)/tests/bison.in
|
||||
YACC = $(BISON) -o y.tab.c
|
||||
AM_YFLAGS_WITH_LINES = --defines -Werror -Wall --report=all
|
||||
25
steps/bison-3.7.6/patches/po-files.patch
Normal file
25
steps/bison-3.7.6/patches/po-files.patch
Normal file
|
|
@ -0,0 +1,25 @@
|
|||
SPDX-FileCopyrightText: 2025 Samuel Tyler <samuel@samuelt.me>
|
||||
|
||||
SPDX-License-Identifier: GPL-3.0-or-later
|
||||
|
||||
Can't fetch PO files, no network access.
|
||||
|
||||
--- gnulib-839ed05/gnulib-tool 2025-12-15 21:17:35.808587084 +1100
|
||||
+++ gnulib-839ed05/gnulib-tool 2025-12-15 21:17:55.399588744 +1100
|
||||
@@ -5598,16 +5598,6 @@
|
||||
fi
|
||||
func_append added_files "$pobase/POTFILES.in$nl"
|
||||
fi
|
||||
- # Fetch PO files.
|
||||
- TP_URL="https://translationproject.org/latest/"
|
||||
- if $doit; then
|
||||
- echo "Fetching gnulib PO files from $TP_URL"
|
||||
- (cd "$destdir"/$pobase \
|
||||
- && wget --no-verbose --mirror --level=1 -nd -A.po -P . "${TP_URL}gnulib/"
|
||||
- )
|
||||
- else
|
||||
- echo "Fetch gnulib PO files from $TP_URL"
|
||||
- fi
|
||||
# Create po/LINGUAS.
|
||||
if $doit; then
|
||||
func_dest_tmpfilename $pobase/LINGUAS
|
||||
2
steps/bison-3.7.6/sources
Normal file
2
steps/bison-3.7.6/sources
Normal file
|
|
@ -0,0 +1,2 @@
|
|||
f http://mirrors.kernel.org/gnu/bison/bison-3.7.6.tar.xz 67d68ce1e22192050525643fc0a7a22297576682bef6a5c51446903f5aeef3cf
|
||||
g https://https.git.savannah.gnu.org/git/gnulib.git~839ed05 _ bc96b5966e4651580ef69fee4a2dfed5ae3d3ab8af04bbe6f10dcd2dd010398e gnulib-839ed05.tar.gz
|
||||
Loading…
Add table
Add a link
Reference in a new issue