[OM Cooker] A new tool for backward compatibility analysis of API/ABI interfaces in RPM packages

Ponomarenko Andrey andrewponomarenko at yandex.ru
Wed Oct 5 09:06:47 EDT 2016


Hello,

I'd like to present a new free tool for maintainers of software libraries — Package ABI Diff Tool (Pkg-ABIdiff). It's a tool for backward compatibility analysis of API/ABI interfaces in RPM packages.

The tool does the following:

    1. Extracts input packages
    2. Searches for *.debuginfo, *.so and header files
    3. Creates ABI dumps of all found shared objects
    4. Filters out private part of the ABI using info from header files
    5. Matches shared objects in old and new packages
    6. Compares ABI dumps of corresponding objects
    7. Creates backward binary/source compatibility reports

Home page: https://github.com/lvc/pkg-abidiff

Usage: pkg-abidiff -old P1 P1-DEBUG P1-DEV -new P2 P2-DEBUG P2-DEV

  P1 — RPM package to analyze (with *.so object files)
  P1-DEBUG — corresponding debug-info package (*.debug files with DWARF info)
  P1-DEV — corresponding development package (with header files)

Report example for libssh 0.5.3 vs 0.6.3: https://abi-laboratory.pro/examples/compat_report/x86_64/libssh4/0.5.3-2.1.1/0.6.3-8.1/

The tool is based on ABICC and ABI Dumper tools: https://github.com/lvc

Enjoy!



More information about the OM-Cooker mailing list