Skip to content

Commit f49dd24

Browse files
committed
detect-environment: Document the detect_tools function
Ticket: ENT-12600 Signed-off-by: Lars Erik Wik <lars.erik.wik@northern.tech>
1 parent f99a06e commit f49dd24

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

build-scripts/detect-environment

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -331,6 +331,9 @@ detect_arch()
331331
export ARCH
332332
}
333333

334+
# This function detects the path to various tools needed by the build system.
335+
# It's useful if the specified tool is not in PATH, or if the PATH resolution
336+
# picks up the wrong tool, or if e.g. gmake is preferred over make.
334337
detect_tools()
335338
{
336339
# We look for GNU Make because
@@ -345,9 +348,12 @@ detect_tools()
345348
exit 42
346349
fi
347350

351+
# fuser displays the PIDs of processes using specified files or file
352+
# systems. We use it to kill processes that can mess with the build process.
348353
FUSER=$(func_whereis fuser)
349354
export FUSER
350355

356+
# We use it to submit patches to the dependencies.
351357
PATCH=$(func_whereis gpatch patch)
352358
export PATCH
353359
}

0 commit comments

Comments
 (0)