Browse code

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 <sean.mcginnis@gmail.com>

Sean McGinnis authored on 2020/07/28 22:51:41
Showing 2 changed files
... ...
@@ -1412,7 +1412,8 @@ function install_bindep {
1412 1412
     local pkgs
1413 1413
 
1414 1414
     if [[ ! -f $file ]]; then
1415
-        die $LINENO "Can not find bindep file: $file"
1415
+        warn $LINENO "Can not find bindep file: $file"
1416
+        return
1416 1417
     fi
1417 1418
 
1418 1419
     # converting here makes it much easier to work with passing
... ...
@@ -72,7 +72,7 @@ function _install_lib_from_source {
72 72
     local name=$1
73 73
     if use_library_from_git "$name"; then
74 74
         git_clone_by_name "$name"
75
-        setup_dev_lib "$name"
75
+        setup_dev_lib -bindep "$name"
76 76
     fi
77 77
 }
78 78