Skip to content

Commit d02fbb9

Browse files
committed
detect-environment: Added some log messages
If we disable -x to decrease the verbosity of the build scripts. Then these log messages will come in handy. Ticket: ENT-12600 Signed-off-by: Lars Erik Wik <lars.erik.wik@northern.tech>
1 parent 2e67550 commit d02fbb9

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

build-scripts/detect-environment

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -106,6 +106,7 @@ detect_os()
106106
;;
107107
esac
108108

109+
echo "Detected OS $OS $OS_VERSION"
109110
export OS OS_VERSION
110111
}
111112

@@ -269,6 +270,8 @@ detect_packaging()
269270
PACKAGING=$DEP_PACKAGING;;
270271
esac
271272

273+
echo "Detected dependency packaging $DEP_PACKAGING"
274+
echo "Detected packaging $PACKAGING"
272275
export DEP_PACKAGING PACKAGING
273276
}
274277

@@ -328,6 +331,7 @@ detect_arch()
328331
;;
329332
esac
330333

334+
echo "Detected architecture $ARCH"
331335
export ARCH
332336
}
333337

@@ -343,6 +347,7 @@ detect_tools()
343347
if $MAKE -v | grep GNU
344348
then
345349
export MAKE
350+
echo "Detected make path $MAKE"
346351
else
347352
echo "Error: GNU Make not found"
348353
exit 42
@@ -354,10 +359,12 @@ detect_tools()
354359
# systems. We use it to kill processes that can mess with the build process.
355360
FUSER=$(func_whereis fuser)
356361
export FUSER
362+
echo "Detected fuser path $FUSER"
357363

358364
# We use it to submit patches to the dependencies.
359365
PATCH=$(func_whereis gpatch patch)
360366
export PATCH
367+
echo "Detected patch path $PATCH"
361368
}
362369

363370
# This function appends the -j/--jobs option to the MAKEFLAGS environment

0 commit comments

Comments
 (0)