From dd3731c86a13334125715e44880491042526227c Mon Sep 17 00:00:00 2001 From: Sean McGinnis Date: Tue, 28 Jul 2020 08:51:41 -0500 Subject: [PATCH] Install bindep packages when installing lib from src Most libs maintain their own system packages in a local bindep.txt file. We don't currently use those when installing packages from source, which can result in broken package installs. This adds a flag to always attempt to install bindep packages if the bindep.txt file exists. If a file cannot be found, it will just emit a warning and carry on. Change-Id: Ia0570f837b8af1c3fee0a314b026a4a7ed27e6a9 Signed-off-by: Sean McGinnis --- functions-common | 3 ++- lib/libraries | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/functions-common b/functions-common index 6595c3de53..d99ad9212f 100644 --- a/functions-common +++ b/functions-common @@ -1412,7 +1412,8 @@ function install_bindep { local pkgs if [[ ! -f $file ]]; then - die $LINENO "Can not find bindep file: $file" + warn $LINENO "Can not find bindep file: $file" + return fi # converting here makes it much easier to work with passing diff --git a/lib/libraries b/lib/libraries index b4f3c31d5e..c7aa8151ae 100644 --- a/lib/libraries +++ b/lib/libraries @@ -72,7 +72,7 @@ function _install_lib_from_source { local name=$1 if use_library_from_git "$name"; then git_clone_by_name "$name" - setup_dev_lib "$name" + setup_dev_lib -bindep "$name" fi }