From a2d58be61ad1fa3da9e1523b4d1bb9d626716d2e Mon Sep 17 00:00:00 2001 From: Karen Arutyunov Date: Fri, 20 Oct 2023 22:21:19 +0300 Subject: Fix collect_build_prerequisites() pre-reevaluation mode to always iterate through all the depends clauses --- tests/pkg-build.testscript | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-) (limited to 'tests/pkg-build.testscript') diff --git a/tests/pkg-build.testscript b/tests/pkg-build.testscript index e9ea9c2..d3f949d 100644 --- a/tests/pkg-build.testscript +++ b/tests/pkg-build.testscript @@ -284,6 +284,7 @@ # | |-- tuz-1.0.0.tar.gz -> toz {require {config.toz.extras=true}} # | |-- tux-1.0.0.tar.gz -> libbox {require {config.libbox.extras=true}}, # | | tix == 0.1.0 +# | |-- tvz-1.0.0.tar.gz -> toz == 0.2.0 {require {config.toz.extras=true}} # | |-- dex-1.0.0.tar.gz -> bar {require {config.bar.extras=true}}, # | | libfoo {require {config.libfoo.extras=true}} # | |-- dix-1.0.0.tar.gz -> libbar {require {config.libbar.extras=true}}, @@ -16062,6 +16063,8 @@ test.arguments += --sys-no-query # depends: toz == 0.1.0 (c) # depends: libbar(c) # + # tvz: depends: toz == 0.2.0 (c) + # # toz/0.1.0: # $* bax tiz --verbose 1 2>!; @@ -16521,6 +16524,18 @@ test.arguments += --sys-no-query toz configured 0.1.0 available 1.0.0 0.2.0 EOO + # While at it make sure that we won't be able to build tvz since it + # requires toz of the 0.2.0 version, which can't be satisfied. + # + $* tvz --verbose 1 2>>EOE != 0; + error: unable to upgrade package toz/0.1.0 to 0.2.0 + info: because package tez depends on (toz == 0.1.0) + info: package toz/0.2.0 required by tez, tvz + info: consider re-trying with --upgrade|-u potentially combined with --recursive|-r + info: or explicitly request up/downgrade of package tez + info: or explicitly specify package toz version to manually satisfy these constraints + EOE + $pkg_drop bax tiz tez } @@ -19490,7 +19505,7 @@ test.arguments += --sys-no-query ds = foo fox fux fix fex bar baz bac bat bas bus box bax bux bix \ bex boo biz buz buc tax tex tix tiz toz tez tuz tux dex dix \ - diz dox ''; + diz dox tvz ''; # Prepare the package build list. # -- cgit v1.1