If upgrading an older build config, where newly added e.g.
decoders aren't present, to a newer git version where fate tests
exist that have dependencies declared on this codec, all make
invocations error out with "No such config: CONFIG_NEW_DECODER".
This is an intended feature to make sure that fate test
dependencies actually refer to existing config items.

In cases where upgrading an old build (and reconfiguring with
"make config"), this is an inconvenience. With this patch in
place, the caller can ignore these missing dependencies
by setting ALLOW_MISSING_CONFIG=1 during that call.
---
 tests/Makefile |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/tests/Makefile b/tests/Makefile
index 939490b..7525243 100644
--- a/tests/Makefile
+++ b/tests/Makefile
@@ -20,7 +20,7 @@ tests/data/vsynth2.yuv: tests/rotozoom$(HOSTEXESUF) | 
tests/data
 
 tests/data/asynth% tests/data/vsynth%.yuv tests/vsynth%/00.pgm: TAG = GEN
 
-CHKCFG  = $(if $($(1))$(!$(1)),$($(1)), $(error No such config: $(1)))
+CHKCFG  = $(if $($(1))$(!$(1)),$($(1)), $(if $(ALLOW_MISSING_CONFIG), , 
$(error No such config: $(1))))
 
 ALLYES  = $(strip $(call XYES, $(1)))
 XYES    = $(if $(strip $(1)),                                           \
-- 
1.7.9.4

_______________________________________________
libav-devel mailing list
[email protected]
https://lists.libav.org/mailman/listinfo/libav-devel

Reply via email to