From 63db848413560215681435b53dffe396568d135d Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?J=C3=BCrgen=20Buchm=C3=BCller?= <pullmoll@t-online.de>
Date: Tue, 16 Jan 2018 05:31:32 +0100
Subject: [PATCH] build_dependencies: print $build_style, if any

To make it more obvious what is going to happen next print the
build_style, if set, when emitting the "building ..." messages.
---
 common/xbps-src/shutils/build_dependencies.sh | 10 ++++++----
 1 file changed, 6 insertions(+), 4 deletions(-)

diff --git a/common/xbps-src/shutils/build_dependencies.sh b/common/xbps-src/shutils/build_dependencies.sh
index 464ec27d234..f8616ce9a0b 100644
--- a/common/xbps-src/shutils/build_dependencies.sh
+++ b/common/xbps-src/shutils/build_dependencies.sh
@@ -188,7 +188,7 @@ srcpkg_get_pkgver() {
 install_pkg_deps() {
     local pkg="$1" targetpkg="$2" target="$3" cross="$4" cross_prepare="$5"
     local rval _realpkg _vpkg _curpkg curpkgdepname pkgn iver
-    local i j found rundep repo
+    local i j found rundep repo style
 
     local -a host_binpkg_deps check_binpkg_deps binpkg_deps
     local -a host_missing_deps check_missing_deps missing_deps missing_rdeps
@@ -197,10 +197,12 @@ install_pkg_deps() {
 
     setup_pkg_depends
 
+    [ -n "$build_style" ] && style=" [$build_style]"
+
     if [ "$pkg" != "$targetpkg" ]; then
-        msg_normal "$pkgver: building (dependency of $targetpkg) ...\n"
+        msg_normal "$pkgver: building${style} (dependency of $targetpkg) ...\n"
     else
-        msg_normal "$pkgver: building ...\n"
+        msg_normal "$pkgver: building${style} ...\n"
     fi
 
     if [ -z "$build_depends" -a -z "$host_build_depends" -a -z "$host_check_depends" -a -z "$run_depends" ]; then
@@ -434,7 +436,7 @@ install_pkg_deps() {
     done
 
     if [ "$pkg" != "$targetpkg" ]; then
-        msg_normal "$pkg: building (dependency of $targetpkg) ...\n"
+        msg_normal "$pkg: building${style} (dependency of $targetpkg) ...\n"
     fi
 
     for i in ${host_binpkg_deps[@]}; do