mirror of
https://github.com/fosslinux/live-bootstrap.git
synced 2026-03-02 01:18:08 +01:00
Update coreutils to 9.4
This commit is contained in:
parent
241f5431b0
commit
c750c6f002
10 changed files with 361 additions and 361 deletions
56
steps/coreutils-9.4/pass1.sh
Executable file
56
steps/coreutils-9.4/pass1.sh
Executable file
|
|
@ -0,0 +1,56 @@
|
|||
# SPDX-FileCopyrightText: 2021 Melg Eight <public.melg8@gmail.com>
|
||||
# SPDX-FileCopyrightText: 2022 Andrius Štikonas <andrius@stikonas.eu>
|
||||
# SPDX-FileCopyrightText: 2023 fosslinux <fosslinux@aussies.space>
|
||||
#
|
||||
# SPDX-License-Identifier: GPL-3.0-or-later
|
||||
|
||||
regenerate_files() {
|
||||
build-aux/gen-lists-of-programs.sh --autoconf > m4/cu-progs.m4
|
||||
build-aux/gen-lists-of-programs.sh --automake > src/cu-progs.mk
|
||||
build-aux/gen-single-binary.sh src/local.mk > src/single-binary.mk
|
||||
touch ChangeLog
|
||||
cp ../gnulib-bb5bb43/build-aux/po/Makefile.in.in po/Makefile.in.in
|
||||
|
||||
# Remove pregenerated gnulib files
|
||||
pushd ../gnulib-bb5bb43
|
||||
rm lib/uniwidth/width*.h
|
||||
rm lib/unictype/ctype*.h
|
||||
rm lib/unicase/tolower.h
|
||||
popd
|
||||
|
||||
. ../../import-gnulib.sh
|
||||
|
||||
VERSION=$(basename "${BASH_SOURCE[0]}" .sh | sed 's/coreutils-//')
|
||||
echo "$VERSION" > .tarball-version
|
||||
|
||||
# We don't have autopoint from gettext yet.
|
||||
AUTOPOINT=true AUTOMAKE=automake-1.15 ACLOCAL=aclocal-1.15 autoreconf-2.69 -fi
|
||||
}
|
||||
|
||||
src_prepare() {
|
||||
default
|
||||
regenerate_files
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
# FORCE_UNSAFE_CONFIGURE disables "you should not run configure as root"
|
||||
# error from configuration system of coreutils.
|
||||
# gl_cv_func_getcwd_path_max is set to improve reproducibility.
|
||||
# In some environments, the configure script would set it to
|
||||
# "no, but it is partly working", and in others it would set it
|
||||
# to "yes", producing different build outputs.
|
||||
# Also, tell coreutils we don't have perl, which disables help2man
|
||||
FORCE_UNSAFE_CONFIGURE=1 ./configure CFLAGS="-static" \
|
||||
--prefix="${PREFIX}" \
|
||||
--build=i386-unknown-linux-musl \
|
||||
gl_cv_func_getcwd_path_max="no, but it is partly working" \
|
||||
gl_cv_prog_perl="no"
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
make "${MAKEJOBS}" PREFIX="${PREFIX}" MAKEINFO="true" GPERF="true"
|
||||
}
|
||||
|
||||
src_install() {
|
||||
make install PREFIX="${PREFIX}" MAKEINFO="true" DESTDIR="${DESTDIR}"
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue