From 9c93af3b7fe849f0d2662b1757d9a437e16f03de Mon Sep 17 00:00:00 2001 From: Jay Wang Date: Tue, 11 Mar 2025 10:49:43 +0000 Subject: build: remove the duplicate `make install-dep` in `make pkg-verify` In Makefile, when a target has multiple prerequisites, the order of execution of prerequisites is not guaranteed. So we might encounter the following `apt-get` lock issue when executing `make pkg-verify` due to the duplicate execution of `make install-dep` command. Reading package lists... E: Could not get lock /var/lib/apt/lists/lock. It is held by process 21872 (apt-get) E: Unable to lock directory /var/lib/apt/lists/ make[1]: *** [Makefile:404: install-dep] Error 100 make[1]: Leaving directory '/builds/software/ias/networking/vpp' make: *** [Makefile:373: /builds/software/ias/networking/vpp/build-root/.deps.ok] Error 2 Type: fix Change-Id: I057cebf5e31c0f3eef42f7ad07c7759a2d8e7f73 Signed-off-by: Jay Wang --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 6bd4ab611fa..1806b8824ae 100644 --- a/Makefile +++ b/Makefile @@ -932,7 +932,7 @@ docs: @$(MAKE) -C $(WS_ROOT)/docs docs .PHONY: pkg-verify -pkg-verify: install-dep $(BR)/.deps.ok install-ext-deps +pkg-verify: $(BR)/.deps.ok install-ext-deps $(call banner,"Building for PLATFORM=vpp") @$(MAKE) CC=$(CC) -C build-root PLATFORM=vpp TAG=vpp wipe-all install-packages $(call banner,"Building sample-plugin") -- cgit