mirror of
https://github.com/fosslinux/live-bootstrap.git
synced 2026-03-05 02:45:23 +01:00
fixes: https://github.com/fosslinux/live-bootstrap/issues/99 in my usecase (qemu, kernel 3.18.140) around 50% of all builds are failing with a wrong binary hash. the culprit is a varying generation of 'pipesize.h' during: ``` /bin/sh ./psize.sh > pipesize.h ``` normally generated 'pipesize.h' looks like: ``` /* * pipesize.h * * This file is automatically generated by psize.sh * Do not edit! */ #define PIPESIZE 65536 ``` in the error case the last line has 512 instead of 65536. With this change we use a fixed output of the large PIPESIZE.
32 lines
821 B
Bash
Executable file
32 lines
821 B
Bash
Executable file
# SPDX-FileCopyrightText: 2021 Paul Dersey <pdersey@gmail.com>
|
|
# SPDX-FileCopyrightText: 2021 Andrius Štikonas <andrius@stikonas.eu>
|
|
# SPDX-FileCopyrightText: 2021 Bastian Bittorf <bb@npl.de>
|
|
#
|
|
# SPDX-License-Identifier: GPL-3.0-or-later
|
|
|
|
src_prepare() {
|
|
# Remove bison generated files
|
|
rm y.tab.c y.tab.h
|
|
|
|
# Rebuild configure script
|
|
rm configure
|
|
autoconf-2.61
|
|
|
|
# avoid non-deterministic build:
|
|
printf '%s\n%s\n' \
|
|
'#!/bin/sh' \
|
|
'echo "#define PIPESIZE 65536"' >builtins/psize.sh
|
|
}
|
|
|
|
src_configure() {
|
|
./configure --prefix="${PREFIX}" \
|
|
--without-bash-malloc \
|
|
--disable-nls \
|
|
--build=i386-unknown-linux-gnu \
|
|
--enable-static-link
|
|
}
|
|
|
|
src_install() {
|
|
# Do not install prebuilt .mo translation catalogs
|
|
install bash "${DESTDIR}${PREFIX}/bin"
|
|
}
|