From de0a0d301e9e084f451dd6cf657ff4c0a5cb7992 Mon Sep 17 00:00:00 2001 From: Tk-Glitch Date: Tue, 11 Oct 2022 15:36:30 +0200 Subject: [PATCH] install.sh: Disable timed building for now. Bash 5.2 is broken https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1018727 --- install.sh | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/install.sh b/install.sh index 858c069..e281cfd 100755 --- a/install.sh +++ b/install.sh @@ -211,14 +211,14 @@ if [ "$1" = "install" ]; then _kernel_subver="${_sub}" fi - _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 ) - } + #_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 ) - Bash 5.2 is broken https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1018727 + #} if [[ "$_distro" =~ ^(Ubuntu|Debian)$ ]]; then 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!" # Create DEBS folder if it doesn't exist @@ -262,7 +262,7 @@ if [ "$1" = "install" ]; then fi 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!" # Create RPMS folder if it doesn't exist @@ -308,7 +308,7 @@ if [ "$1" = "install" ]; then fi msg2 "Building kernel" - _timed_build make ${llvm_opt} -j ${_thread_num} + make ${llvm_opt} -j ${_thread_num} msg2 "Build successful" if [ "$_STRIP" = "true" ]; then