Skip to content

Commit b2be1bc

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 8946823 commit b2be1bc

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
@@ -352,10 +357,12 @@ detect_tools()
352357
# systems. We use it to kill processes that can mess with the build process.
353358
FUSER=$(func_whereis fuser)
354359
export FUSER
360+
echo "Detected fuser path $FUSER"
355361

356362
# We use it to submit patches to the dependencies.
357363
PATCH=$(func_whereis gpatch patch)
358364
export PATCH
365+
echo "Detected patch path $PATCH"
359366
}
360367

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

0 commit comments

Comments
 (0)