sonic-buildimage/platform/cavium
lguohan 7e282b89a2 [build]: wait for conflicts package to be uninstalled (#5039)
when parallel build is enabled, both docker-fpm-frr and docker-syncd-brcm
is built at the same time, docker-fpm-frr requires swss which requires to
install libsaivs-dev. docker-syncd-brcm requires syncd package which requires
to install libsaibcm-dev.

since libsaivs-dev and libsaibcm-dev install the sai header in the same
location, these two packages cannot be installed at the same time. Therefore,
we need to serialize the build between these two packages. Simply uninstall
the conflict package is not enough to solve this issue. The correct solution
is to have one package wait for another package to be uninstalled.

For example, if syncd is built first, then it will install libsaibcm-dev.
Meanwhile, if the swss build job starts and tries to install libsaivs-dev,
it will first try to query if libsaibcm-dev is installed or not. if it is
installed, then it will wait until libsaibcm-dev is uninstalled. After syncd
job is finished, it will uninstall libsaibcm-dev and swss build job will be
unblocked.

To solve this issue, _UNINSTALLS is introduced to uninstall a package that
is no longer needed and to allow blocked job to continue.

Signed-off-by: Guohan Lu <lguohan@gmail.com>
2021-01-20 23:06:13 -08:00
..
cavm_platform_modules Remove extra trailing newlines at EOF (#804) 2017-07-12 20:54:37 -07:00
cavm_sdk Added rules to build syncd and orchagent containers for Cavium target (#152) 2016-12-23 15:26:51 -08:00
docker-saiserver-cavm [docker-saiserver]: build docker-saiserver (#2244) 2018-11-14 01:15:31 -08:00
docker-syncd-cavm [Monit] Change the full process name of syncd in the monit config file. (#4033) 2020-01-23 19:39:54 +00:00
docker-syncd-cavm-rpc Remove sysctl setting which is not used anymore (#611) 2017-05-18 14:45:16 -07:00
cavm-platform-modules.mk Remove extra trailing newlines at EOF (#804) 2017-07-12 20:54:37 -07:00
cavm-sai.mk [cavm]Update sai revision and packet driver (#914) 2017-08-24 23:46:14 -07:00
cavm-xpnet.mk [cavm]Update sai revision and packet driver (#914) 2017-08-24 23:46:14 -07:00
docker-orchagent-cavm.mk 1) Build debug docker image for each docker (#3104) 2019-07-09 08:55:03 -07:00
docker-ptf-cavm.mk [docker-ptf-*]: Use buildimage infrastructure to build docker-ptf-* (#638) 2017-05-26 17:18:11 -07:00
docker-syncd-cavm-rpc.mk [build]: Fix docker-syncd-<platform>-rpc.mk (#3174) 2019-07-17 08:41:22 -07:00
docker-syncd-cavm.mk [Services] Allow monit system tool to monitor the critical processes status running in various SONiC containers. (#3940) 2020-01-11 01:27:34 +00:00
libsaithrift-dev.mk [image]: Upgrade SONiC stack to use SAI version to v1.2 (#1336) 2018-02-22 19:36:39 -08:00
one-image.mk Extend debug image build ability to all platforms. (#3134) (#4524) 2020-05-04 09:48:40 -07:00
platform.conf one image implementation (#215) 2017-01-29 11:33:33 -08:00
python-saithrift.mk [image]: Upgrade SONiC stack to use SAI version to v1.2 (#1336) 2018-02-22 19:36:39 -08:00
rules.mk [build]: wait for conflicts package to be uninstalled (#5039) 2021-01-20 23:06:13 -08:00