From 8d57161613237d1388fa1e972630b9704e524c56 Mon Sep 17 00:00:00 2001 From: fosslinux Date: Mon, 24 May 2021 09:45:07 +1000 Subject: [PATCH] Add flex 2.5.33 --- SHA256SUMS.sources | 1 + parts.rst | 7 +++++++ sysa.py | 3 +++ sysa/flex-2.5.33/checksums | 1 + sysa/flex-2.5.33/flex-2.5.33.sh | 29 +++++++++++++++++++++++++++++ sysa/run2.sh | 2 ++ 6 files changed, 43 insertions(+) create mode 100644 sysa/flex-2.5.33/checksums create mode 100755 sysa/flex-2.5.33/flex-2.5.33.sh diff --git a/SHA256SUMS.sources b/SHA256SUMS.sources index b4e7822..c969760 100644 --- a/SHA256SUMS.sources +++ b/SHA256SUMS.sources @@ -63,3 +63,4 @@ c6c37e888b136ccefab903c51149f4b7bd659d69d4aea21245f61053a57aa60a tar-1.12.tar.g de23af78fca90ce32dff2dd45b3432b2334740bb9bb7b05bf60fdbfc396ceb9c tcc-0.9.27.tar.bz2 1b700d375e253e88bdf79caa244284a899b80f59fd64fdd3aaa6408b7bd715ae untar.c 166c48d2842519bc4f96333bff9e265f8cdda44d38e40594ef3f9bbb52890490 xz-5.0.5.tar.bz2 +c40385e142989c91989413f3c5a31282b2ffdca16b69cd3ecfde537b8a474921 flex-2.5.33.tar.gz diff --git a/parts.rst b/parts.rst index 2c9b804..85386ee 100644 --- a/parts.rst +++ b/parts.rst @@ -631,3 +631,10 @@ mpc 3.2.1 GNU MPC is a library for multiprecision complex arithmetic with exact rounding based on GNU MPFR. + +flex 2.5.33 +=========== + +An older version of flex is required for bison 2.3. We cannot use 2.5.11 that +was compiled much earlier, as it does not produce reproducible output when +building bison 2.3. diff --git a/sysa.py b/sysa.py index 4e51201..510a9a5 100755 --- a/sysa.py +++ b/sysa.py @@ -457,3 +457,6 @@ class SysA: # mpc 1.2.1 self.get_file("https://mirrors.kernel.org/gnu/mpc/mpc-1.2.1.tar.gz") + + # flex 2.5.33 + self.get_file("http://download.nust.na/pub2/openpkg1/sources/DST/flex/flex-2.5.33.tar.gz") diff --git a/sysa/flex-2.5.33/checksums b/sysa/flex-2.5.33/checksums new file mode 100644 index 0000000..d7f654e --- /dev/null +++ b/sysa/flex-2.5.33/checksums @@ -0,0 +1 @@ +8f497d6d82df2c6638654f43630559df83444d32f8e690109387d16db1d8d889 /after/bin/flex-2.5.33 diff --git a/sysa/flex-2.5.33/flex-2.5.33.sh b/sysa/flex-2.5.33/flex-2.5.33.sh new file mode 100755 index 0000000..6e8f970 --- /dev/null +++ b/sysa/flex-2.5.33/flex-2.5.33.sh @@ -0,0 +1,29 @@ +# SPDX-FileCopyrightText: 2021 fosslinux +# +# SPDX-License-Identifier: GPL-3.0-or-later + +src_prepare() { + default + + AUTOPOINT=true autoreconf -fi + + # Remove pregenerated files + rm parse.c parse.h scan.c + + # Remove pregenerated .info + rm doc/flex.info +} + +src_configure() { + ./configure \ + --prefix="${PREFIX}" \ + --program-suffix=-2.5.33 +} + +src_compile() { + make MAKEINFO=true +} + +src_install() { + make MAKEINFO=true DESTDIR="${DESTDIR}" install +} diff --git a/sysa/run2.sh b/sysa/run2.sh index 3a04131..4b2a434 100755 --- a/sysa/run2.sh +++ b/sysa/run2.sh @@ -34,6 +34,8 @@ build mpfr-4.1.0 build mpc-1.2.1 +build flex-2.5.33 + if [ "$FORCE_TIMESTAMPS" = True ] ; then echo 'Forcing all files timestamps to be 0 unix time.' canonicalise_all_files_timestamp