libabigail/tests/data/test-fedabipkgdiff
Dodji Seketeli 5be5809f7c abipkgdiff: Extract devel and main packages in the same directory
abipkgdiff extracts the two devel packages in directories named
"devel_package{1,2}, whereas the main packages are extracted in
directories named package{1,2}.  This is wrong because a devel package
should be extracted into the same directory tree as the main package.
For instance, there can be a foo.so symbolic link (coming from the
devel package) that points to the foo-1.0.0.so (coming from the main
package) below usr/lib64/ in the extracted directory.  If the devel
and main packages are extracted in different directories then the
symbolic link is going to be broken and some binaries won't be
ABI-compared.

This patch fixes the issue by extracting devel packages into the same
directory as the main one.  Then, it makes sure the devel package and
the main one are extracted sequentially, not in parallel since they
are not being extracted into the same directory.

By fixing this, a number of previously hidden issues or even change
output are now exposed.  The patch updates these.

	* tests/data/test-diff-pkg/gcc-debuginfo-14.2.1-1.fc40.x86_64.rpm:
	Add missing debug info package.
	* tests/data/Makefile.am: Add it to source distribution.
	* tests/test-diff-pkg.cc (in_out_specs): Add the debuginfo package
	to the libgm2 test.
	* tools/abipkgdiff.cc (main): Extract the devel packages into the
	"package1" and "package2" directories.
	(extract_package_and_map_its_content): Extract the main and devel
	packages sequentially, not in parallel.
	(self_compare_prepared_userspace_package): Add more logs.
	* tests/data/test-fedabipkgdiff/test0-from-fc20-to-fc23-dbus-glib-report-0.txt:
	Adjust.
	* tests/data/test-fedabipkgdiff/test1-from-fc20-to-dbus-glib-0.106-1.fc23.x86_64-report-0.txt:
	Likewise
	* tests/data/test-fedabipkgdiff/test2-dbus-glib-0.100.2-2.fc20--dbus-glib-0.106-1.fc23-report-0.txt:
	Likewise
	* tests/data/test-fedabipkgdiff/test3-dbus-glib-0.100.2-2.fc20.i686--dbus-glib-0.106-1.fc23.i686-report-0.txt:
	Likewise
	* tests/data/test-fedabipkgdiff/test4-glib-0.100.2-2.fc20.x86_64.rpm-glib-0.106-1.fc23.x86_64.rpm-report-0.txt:
	Likewise
	* tests/data/test-fedabipkgdiff/test7-self-compare-from-fc23-dbus-glib-report-0.txt:
	Likewise
	* tests/data/test-fedabipkgdiff/vte291-0.39.1-1.fc22.x86_64--vte291-0.39.90-1.fc22.x86_64-report-0.txt:
	Likewise

Signed-off-by: Dodji Seketeli <dodji@redhat.com>
2024-08-29 17:15:44 +02:00
..
dbus-glib
nss-util
packages fedabipkgdiff refuses to compare packages with the same release number 2017-02-15 16:06:32 +01:00
dbus-glib-0.80-3.fc12.x86_64.rpm
dbus-glib-0.104-3.fc23.x86_64.rpm
dbus-glib-debuginfo-0.80-3.fc12.x86_64.rpm
dbus-glib-debuginfo-0.104-3.fc23.x86_64.rpm
test0-from-fc20-to-fc23-dbus-glib-report-0.txt abipkgdiff: Extract devel and main packages in the same directory 2024-08-29 17:15:44 +02:00
test1-from-fc20-to-dbus-glib-0.106-1.fc23.x86_64-report-0.txt abipkgdiff: Extract devel and main packages in the same directory 2024-08-29 17:15:44 +02:00
test2-dbus-glib-0.100.2-2.fc20--dbus-glib-0.106-1.fc23-report-0.txt abipkgdiff: Extract devel and main packages in the same directory 2024-08-29 17:15:44 +02:00
test3-dbus-glib-0.100.2-2.fc20.i686--dbus-glib-0.106-1.fc23.i686-report-0.txt abipkgdiff: Extract devel and main packages in the same directory 2024-08-29 17:15:44 +02:00
test4-glib-0.100.2-2.fc20.x86_64.rpm-glib-0.106-1.fc23.x86_64.rpm-report-0.txt abipkgdiff: Extract devel and main packages in the same directory 2024-08-29 17:15:44 +02:00
test5-same-dir-dbus-glib-0.100.2-2.fc20.x86_64--dbus-glib-0.106-1.fc23.x86_64-report-0.txt fedabipkgdiff: Cleanup output of ABI comparison 2024-04-29 17:04:22 +02:00
test6-nss-util-3.12.6-1.fc14.x86_64--nss-util-3.24.0-2.0.fc25.x86_64-report-0.txt fedabipkgdiff: Cleanup output of ABI comparison 2024-04-29 17:04:22 +02:00
test7-self-compare-from-fc23-dbus-glib-report-0.txt abipkgdiff: Extract devel and main packages in the same directory 2024-08-29 17:15:44 +02:00
vte291-0.39.1-1.fc22.x86_64--vte291-0.39.90-1.fc22.x86_64-report-0.txt abipkgdiff: Extract devel and main packages in the same directory 2024-08-29 17:15:44 +02:00