From a2321ff65bc65d8eddce880f2acd2a536443bf9a Mon Sep 17 00:00:00 2001 From: "biao716.wang" Date: Tue, 13 Jun 2023 17:24:01 +0900 Subject: [PATCH] fix gbs build error https://bugs.tizen.org/browse/DEVT-440 This build error happens in such senario: 1. when there exist two or more same rpm packages with different version, And this package don't depend on other pcakges. So During parsing the cache file .srcfiles.cache, according to the rule of expanddeps file, If there is no "R:" section for this package, it will not compare the version. the releated variable will always save the first package info. This error is caused by: https://review.tizen.org/gerrit/gitweb?p=tools/build.git;a=commit;h=bb2a3cc363850d2751058d34c90d5fe00bc80cbc Change-Id: I2ecdd621bc0350278158fe92dc715f370aba875f Signed-off-by: biao716.wang --- expanddeps | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/expanddeps b/expanddeps index c9466bf..c98c3d7 100755 --- a/expanddeps +++ b/expanddeps @@ -246,7 +246,7 @@ while() { next unless ($r); my ($i, $newid) = ($1, $2); undef $i unless !$ids{$i} || $verscmp->($ids{$i}, $newid) < 0; - undef $i unless defined($pkgF) && defined($pkgP) && defined($pkgR); + undef $i unless defined($pkgF) && defined($pkgP); if (defined $i) { $i =~ /^(.*)\.([^\.]+)$/ or die; push @{$packs_arch{$2}}, $1; -- 2.7.4