commit: 8d57161613237d1388fa1e972630b9704e524c56
parent 338c85c8b8c6f2d909d02ac198fc15fea1503e9c
Author: fosslinux <fosslinux@aussies.space>
Date: Mon, 24 May 2021 09:45:07 +1000
Add flex 2.5.33
Diffstat:
6 files changed, 43 insertions(+), 0 deletions(-)
diff --git 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
@@ -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
@@ -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
@@ -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
@@ -0,0 +1,29 @@
+# SPDX-FileCopyrightText: 2021 fosslinux <fosslinux@aussies.space>
+#
+# 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
@@ -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