Skip to content

Commit eb0edfd

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 191f2ed commit eb0edfd

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

build-scripts/detect-environment

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
#!/bin/sh
12
# -*- mode:sh -*-
23

34
#
@@ -106,6 +107,7 @@ detect_os()
106107
;;
107108
esac
108109

110+
echo "Detected OS $OS $OS_VERSION"
109111
export OS OS_VERSION
110112
}
111113

@@ -269,6 +271,8 @@ detect_packaging()
269271
PACKAGING=$DEP_PACKAGING;;
270272
esac
271273

274+
echo "Detected dependency packaging $DEP_PACKAGING"
275+
echo "Detected packaging $PACKAGING"
272276
export DEP_PACKAGING PACKAGING
273277
}
274278

@@ -328,6 +332,7 @@ detect_arch()
328332
;;
329333
esac
330334

335+
echo "Detected architecture $ARCH"
331336
export ARCH
332337
}
333338

@@ -343,6 +348,7 @@ detect_tools()
343348
if $MAKE -v | grep GNU
344349
then
345350
export MAKE
351+
echo "Detected make path $MAKE"
346352
else
347353
echo "Error: GNU Make not found"
348354
exit 42
@@ -352,10 +358,12 @@ detect_tools()
352358
# systems. We use it to kill processes that can mess with the build process.
353359
FUSER=$(func_whereis fuser)
354360
export FUSER
361+
echo "Detected fuser path $FUSER"
355362

356363
# We use it to submit patches to the dependencies.
357364
PATCH=$(func_whereis gpatch patch)
358365
export PATCH
366+
echo "Detected patch path $FUSER"
359367
}
360368

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

0 commit comments

Comments
 (0)