libabigail/tools
Dodji Seketeli bad389f01a abipkgdiff: Avoid comparing binaries that are outside of the package
Some symlinks in some RPMs resolve to binaries outside of the package. In
those cases, avoid considering them.

	* src/abg-tools-utils.cc (maybe_get_symlink_target_file_path): Do
	not require that the file path points to a symlink.  A file path
	can point to a file that is not a symlink and yet the whole path
	can be in parent directory that is a symlink.  In this case,
	realpath will correctly resolve to the correct target file.
	* tools/abipkgdiff.cc (maybe_update_package_content): A path to a
	binary that is not inside the RPM (because a symlink resolved to a
	file outside of the RPM) should not be added to the set of
	binaries to be analyzed.
	* tests/data/test-diff-pkg/symlink-dir-test1-report1.txt: Add new
	test file.
	* tests/data/test-diff-pkg-ctf/symlink-dir-test1-report1.txt:
	Likewise.
	* tests/data/Makefile.am: Add new test file to source
	distribution.
	* tests/test-diff-pkg.cc (in_out_specs): for the
	data/test-diff-pkg/symlink-dir-test1/dir{1,2}/symlinks test, the
	root dir of the package is
	data/test-diff-pkg/symlink-dir-test1/dir{1,2}.  Use that to test
	that the symlinks are properly handled.  Also, use the
	data/test-diff-pkg/symlink-dir-test1/dir{1,2}/symlinks as a root
	of an alternative package for which the symlinks resolve outside
	the package, under
	data/test-diff-pkg/symlink-dir-test1/dir{1,2}/targets.  In this
	later case, the symlinked files should be ignored in the
	comparison.  Likewise for
	data/test-diff-pkg-ctf/symlink-dir-test1/dir1/symlinks.

Signed-off-by: Dodji Seketeli <dodji@redhat.com>
2023-09-07 15:23:38 +02:00
..
.gitignore Update .gitignore files to ignore typical dev side products 2019-04-16 16:32:52 +02:00
abicompat.cc Update copyright year for 2023 2023-01-01 18:19:30 +01:00
abidiff.cc abidiff: Add --{follow,list}-dependencies & add-binaries{1,2} support 2023-07-07 13:34:51 +02:00
abidw.cc abidw: Add --{follow,list}-dependencies & --add-binaries support 2023-07-07 13:34:47 +02:00
abilint.cc Update copyright year for 2023 2023-01-01 18:19:30 +01:00
abipkgdiff.cc abipkgdiff: Avoid comparing binaries that are outside of the package 2023-09-07 15:23:38 +02:00
abisym.cc Update copyright year for 2023 2023-01-01 18:19:30 +01:00
binilint.cc Update copyright year for 2023 2023-01-01 18:19:30 +01:00
fedabipkgdiff fedabipkgdiff: Fix previous commit 2023-07-06 16:03:22 +02:00
kmidiff.cc comparison: Add a mode to not apply filters on interface sub-graphs 2023-03-02 18:31:43 +01:00
Makefile.am Make Front Ends first class citizens 2022-11-18 18:12:38 +01:00