install.sh: Disable timed building for now. Bash 5.2 is broken https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1018727

This commit is contained in:
Tk-Glitch
2022-10-11 15:36:30 +02:00
parent 0eda0819ed
commit de0a0d301e

View File

@@ -211,14 +211,14 @@ if [ "$1" = "install" ]; then
_kernel_subver="${_sub}" _kernel_subver="${_sub}"
fi fi
_timed_build() { #_timed_build() {
_runtime=$( time ( schedtool -B -n 1 -e ionice -n 1 "$@" 2>&1 ) 3>&1 1>&2 2>&3 ) || _runtime=$( time ( "$@" 2>&1 ) 3>&1 1>&2 2>&3 ) #_runtime=$( time ( schedtool -B -n 1 -e ionice -n 1 "$@" 2>&1 ) 3>&1 1>&2 2>&3 ) || _runtime=$( time ( "$@" 2>&1 ) 3>&1 1>&2 2>&3 ) - Bash 5.2 is broken https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1018727
} #}
if [[ "$_distro" =~ ^(Ubuntu|Debian)$ ]]; then if [[ "$_distro" =~ ^(Ubuntu|Debian)$ ]]; then
msg2 "Building kernel DEB packages" msg2 "Building kernel DEB packages"
_timed_build make ${llvm_opt} -j ${_thread_num} deb-pkg LOCALVERSION=-${_kernel_flavor} make ${llvm_opt} -j ${_thread_num} deb-pkg LOCALVERSION=-${_kernel_flavor}
msg2 "Building successfully finished!" msg2 "Building successfully finished!"
# Create DEBS folder if it doesn't exist # Create DEBS folder if it doesn't exist
@@ -262,7 +262,7 @@ if [ "$1" = "install" ]; then
fi fi
msg2 "Building kernel RPM packages" msg2 "Building kernel RPM packages"
RPMOPTS="--define '_topdir ${_fedora_work_dir}'" _timed_build make ${llvm_opt} -j ${_thread_num} rpm-pkg EXTRAVERSION="${_extra_ver_str}" RPMOPTS="--define '_topdir ${_fedora_work_dir}'" make ${llvm_opt} -j ${_thread_num} rpm-pkg EXTRAVERSION="${_extra_ver_str}"
msg2 "Building successfully finished!" msg2 "Building successfully finished!"
# Create RPMS folder if it doesn't exist # Create RPMS folder if it doesn't exist
@@ -308,7 +308,7 @@ if [ "$1" = "install" ]; then
fi fi
msg2 "Building kernel" msg2 "Building kernel"
_timed_build make ${llvm_opt} -j ${_thread_num} make ${llvm_opt} -j ${_thread_num}
msg2 "Build successful" msg2 "Build successful"
if [ "$_STRIP" = "true" ]; then if [ "$_STRIP" = "true" ]; then