libabigail/tools
Dodji Seketeli b8ae34192f Extract all packages for a given run of abipkgdiff under the same temp dir
This patch extracts all packages for a given run of abipkgdiff under
the same temporary directory, cluttering /tmp less.

To do this, the patch makes accesses of data members of the 'package'
type go through accessor functions only.  Then the accessor for the
parent directory of all extracted package does the job of computing
the path to that parent directory in a way that makes it unique, per
thread.

	* tools/abipkgdiff.cc (package::{<all data members>}): Make the
	data members be private.  Make their names end with an underscore.
	(package::extracted_package_parent_dir_path): Remove.
	(package::extracted_package_dir_path): Rename into
	package::extracted_dir_path_.
	(package::extracted_packages_parent_dir): New static member
	function, accessor.
	(package::package): Adjust to the new names of the data members.
	Call the new package::extracted_package_parent_dir() static member
	function to initial the package::extracted_dir_path_ data member.
	(package::{path, extracted_dir_path, type, is_debug,
	path_elf_file_sptr_map, debug_info_package}): New accessors for
	the data members.
	(package::{erase_extraction_directory,
	erase_extraction_directories}): Adjust.
	(erase_created_temporary_directories)
	(create_maps_of_package_content)
	(extract_package_and_map_its_content, prepare_packages, compare)
	(main): Adjust.

Signed-off-by: Dodji Seketeli <dodji@redhat.com>
2015-07-22 16:05:11 +02:00
..
.gitignore Add .gitignore files. 2014-09-12 11:05:01 +02:00
abiar.cc Adjust archive-related code for the recent addition of tools_utils::* 2015-01-13 11:02:10 +01:00
abicompat.cc Clean up the output of abicompat weak mode 2015-07-20 16:01:27 +02:00
abidiff.cc Fix logic of determining if changes happened in abidiff 2015-07-21 12:54:57 +02:00
abidw.cc Handle the life time of the map of canonical types 2015-07-09 11:12:40 +02:00
abilint.cc Remove use of tmpnam from abilint 2015-07-20 10:06:17 +02:00
abipkgdiff.cc Extract all packages for a given run of abipkgdiff under the same temp dir 2015-07-22 16:05:11 +02:00
abisym.cc Fix symbols comparison 2015-06-02 00:07:02 +02:00
binilint.cc Update copyright years 2015-01-07 17:52:10 +01:00
Makefile.am Initial skeleton of abipkgdiff tool 2015-07-17 10:07:37 +02:00