build: filter out own packages on package version check
authorFelix Fietkau <nbd@nbd.name>
Mon, 15 Feb 2021 20:09:49 +0000 (21:09 +0100)
committerFelix Fietkau <nbd@nbd.name>
Mon, 15 Feb 2021 20:10:48 +0000 (21:10 +0100)
This was accidentally dropped in 27a4a71c2408
("metadata: handle ABI version rebuild tracking for transient dependencies")

Signed-off-by: Felix Fietkau <nbd@nbd.name>
include/package.mk

index d38d52908ef3075ea2f5727e6817b2aabb7696d5..db0a869dab62b9b914a069796d1d8dc69091e77e 100644 (file)
@@ -58,7 +58,7 @@ include $(INCLUDE_DIR)/quilt.mk
 
 find_library_dependencies = \
        $(wildcard $(patsubst %,$(STAGING_DIR)/pkginfo/%.version, \
-               $(sort $(foreach dep4, \
+               $(filter-out $(BUILD_PACKAGES), $(sort $(foreach dep4, \
                        $(sort $(foreach dep3, \
                                $(sort $(foreach dep2, \
                                        $(sort $(foreach dep1, \
@@ -73,7 +73,7 @@ find_library_dependencies = \
                                $(Package/$(dep3)/depends) $(dep3) \
                        )), \
                        $(Package/$(dep4)/depends) $(dep4) \
-               )) \
+               ))) \
        ))