From: biao716.wang Date: Tue, 13 Jun 2023 08:24:01 +0000 (+0900) Subject: fix gbs build error X-Git-Tag: accepted/tools/devbase/tools/legacy/20250527.042449~2^2~6 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=refs%2Fchanges%2F16%2F294116%2F1;p=tools%2Fbuild.git 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 --- 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;