fix gbs build error 16/294116/1
authorbiao716.wang <biao716.wang@samsung.com>
Tue, 13 Jun 2023 08:24:01 +0000 (17:24 +0900)
committerbiao716.wang <biao716.wang@samsung.com>
Tue, 13 Jun 2023 08:24:08 +0000 (17:24 +0900)
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 <biao716.wang@samsung.com>
expanddeps

index c9466bf..c98c3d7 100755 (executable)
@@ -246,7 +246,7 @@ while(<F>) {
    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;