makepkg: Replace our schedtool fallback mechanism by a package check
The fallback mechanism was always trying to use schedtool first, outputting an error if missing which could confuse users, before moving on to the non-schedtool path. This gets rid of the unneeded error. Fixes https://github.com/Frogging-Family/linux-tkg/issues/783
This commit is contained in:
		
							
								
								
									
										6
									
								
								PKGBUILD
									
									
									
									
									
								
							
							
						
						
									
										6
									
								
								PKGBUILD
									
									
									
									
									
								
							@@ -123,7 +123,11 @@ build() {
 | 
				
			|||||||
  CFLAGS+=" ${_compileropt}"
 | 
					  CFLAGS+=" ${_compileropt}"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
  # build!
 | 
					  # build!
 | 
				
			||||||
  _runtime=$( time ( schedtool -B -n 1 -e ionice -n 1 make ${_force_all_threads} ${llvm_opt} LOCALVERSION= bzImage modules 2>&1 ) 3>&1 1>&2 2>&3 ) || _runtime=$( time ( make ${_force_all_threads} ${llvm_opt} LOCALVERSION= bzImage modules 2>&1 ) 3>&1 1>&2 2>&3 )
 | 
					  if pacman -Qq schedtool &> /dev/null; then
 | 
				
			||||||
 | 
					    msg2 "Using schedtool"
 | 
				
			||||||
 | 
					    _schedtool="schedtool -B -n 1 -e ionice -n 1"
 | 
				
			||||||
 | 
					  fi
 | 
				
			||||||
 | 
					  _runtime=$( time ( $_schedtool make ${_force_all_threads} ${llvm_opt} LOCALVERSION= bzImage modules 2>&1 ) 3>&1 1>&2 2>&3 )
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
hackbase() {
 | 
					hackbase() {
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user