Protect some variable paths
Fixes https://github.com/Frogging-Family/linux-tkg/issues/620
This commit is contained in:
6
PKGBUILD
6
PKGBUILD
@@ -68,7 +68,7 @@ fi
|
|||||||
optdepends=('schedtool')
|
optdepends=('schedtool')
|
||||||
options=('!strip' 'docs')
|
options=('!strip' 'docs')
|
||||||
|
|
||||||
for f in $_where/linux-tkg-config/$_basekernel/* $_where/linux-tkg-patches/$_basekernel/*; do
|
for f in "$_where"/linux-tkg-config/"$_basekernel"/* "$_where"/linux-tkg-patches/"$_basekernel"/*; do
|
||||||
source+=( "$f" )
|
source+=( "$f" )
|
||||||
sha256sums+=( "SKIP" )
|
sha256sums+=( "SKIP" )
|
||||||
done
|
done
|
||||||
@@ -95,9 +95,9 @@ build() {
|
|||||||
|
|
||||||
# Use custom compiler paths if defined
|
# Use custom compiler paths if defined
|
||||||
if [ "$_compiler_name" = "-llvm" ] && [ -n "${CUSTOM_LLVM_PATH}" ]; then
|
if [ "$_compiler_name" = "-llvm" ] && [ -n "${CUSTOM_LLVM_PATH}" ]; then
|
||||||
PATH=${CUSTOM_LLVM_PATH}/bin:${CUSTOM_LLVM_PATH}/lib:${CUSTOM_LLVM_PATH}/include:${PATH}
|
PATH="${CUSTOM_LLVM_PATH}/bin:${CUSTOM_LLVM_PATH}/lib:${CUSTOM_LLVM_PATH}/include:${PATH}"
|
||||||
elif [ -n "${CUSTOM_GCC_PATH}" ]; then
|
elif [ -n "${CUSTOM_GCC_PATH}" ]; then
|
||||||
PATH=${CUSTOM_GCC_PATH}/bin:${CUSTOM_GCC_PATH}/lib:${CUSTOM_GCC_PATH}/include:${PATH}
|
PATH="${CUSTOM_GCC_PATH}/bin:${CUSTOM_GCC_PATH}/lib:${CUSTOM_GCC_PATH}/include:${PATH}"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [ "$_force_all_threads" = "true" ]; then
|
if [ "$_force_all_threads" = "true" ]; then
|
||||||
|
Reference in New Issue
Block a user