mirror of
git://sourceware.org/git/libabigail.git
synced 2024-12-15 22:44:41 +00:00
1d29610d51
When running fedabipkgdiff as: fedabipkgdiff --self-compare -a --from fc33 nfs-utils I am getting: Error encountered while running fedabipkgdiff with error message: Running it with the --verbose option yields more clue, though. It turns out that fedabipkgdiff runs abipkgdiff on an RPM and gives it the wrong associated -debuginfo RPM. This is because the member function RPMCollection.get_sibling_debuginfo() doesn't returns the "first" debuginfo package that comes with a given RPM. In the case of the package nfs-utils-2.5.2-1.rc4.fc33.aarch64.rpm, it was using the package nfs-utils-coreos-debuginfo-2.5.2-1.rc4.fc33.aarch64.rpm instead of the package nfs-utils-debuginfo-2.5.2-1.rc4.fc33.aarch64.rpm. So, of course, abipkgdiff could not find the proper debuginfo for the binaries carried by nfs-utils-2.5.2-1.rc4.fc33.aarch64.rpm. This happens only in cases where there a several debuginfo packages for a given RPM. In that case, we need to be more careful to select the right debuginfo package and not just a random one. This patch adds a RPMCollection.get_matching_debuginfo() member function that does the right thing. It thus teaches generate_comparison_halves() to use the new function. * tools/fedabipkgdiff (RPMCollection::get_sibling_debuginfo): Update comment. (RPMCollection::get_matching_debuginfo): Define new function. (generate_comparison_halves): Use RPMCollection::get_matching_debuginfo instead of RPMCollection::get_sibling_debuginfo. Signed-off-by: Dodji Seketeli <dodji@redhat.com> |
||
---|---|---|
.. | ||
.gitignore | ||
abiar.cc | ||
abicompat.cc | ||
abidiff.cc | ||
abidw.cc | ||
abilint.cc | ||
abipkgdiff.cc | ||
abisym.cc | ||
binilint.cc | ||
fedabipkgdiff | ||
kmidiff.cc | ||
Makefile.am |