Lines Matching defs:pkg
607 /// That is, suppose the content of a package named 'pkg' is located
608 /// at /root/path/pkg. Suppose an element of that package is named
609 /// is at '/root/path/pkg/somewhere/inside/element'.
612 /// /pkg/somewhere/inside/element.
785 static bool extract_package_and_map_its_content(const package_sptr &pkg,
1778 /// @param pkg the main package we are looking at.
1785 create_private_types_suppressions(const package& pkg, const options &opts)
1789 package_sptr devel_pkg = pkg.devel_package();
1825 /// @param pkg the package to consider.
1831 maybe_create_public_dso_sonames_set(package& pkg, const options &opts)
1833 if (opts.compare_private_dsos || !pkg.public_dso_sonames().empty())
1836 if (pkg.type() == abigail::tools_utils::FILE_TYPE_RPM)
1837 return get_dsos_provided_by_rpm(pkg.path(), pkg.public_dso_sonames());
1845 /// @param pkg the package to consider.
1849 must_compare_public_dso_only(package& pkg, options& opts)
1851 if (pkg.type() == abigail::tools_utils::FILE_TYPE_RPM
1932 /// @param pkg the linux kernel package to consider.
1936 maybe_handle_kabi_whitelist_pkg(const package& pkg, options &opts)
1940 || !pkg.kabi_whitelist_package())
1943 if (pkg.type() != abigail::tools_utils::FILE_TYPE_RPM)
1946 string pkg_name = pkg.base_name();
1947 bool is_linux_kernel_package = file_is_kernel_package(pkg_name, pkg.type());
1952 package_sptr kabi_wl_pkg = pkg.kabi_whitelist_package();
2033 package_sptr pkg;
2038 : pkg(p), opts(o), is_ok(false)
2045 is_ok = pkg && extract_package_and_map_its_content(pkg, opts);
2487 /// @param pkg the package to extract and to analyze.
2493 extract_package_and_map_its_content(const package_sptr &pkg, options &opts)
2495 assert(pkg);
2504 main_pkg_extraction.reset(new pkg_extraction_task(pkg, opts));
2506 if (!pkg->debug_info_packages().empty())
2508 dbg_extraction.reset(new pkg_extraction_task(pkg->debug_info_packages(),
2513 if (package_sptr devel_pkg = pkg->devel_package())
2519 if (package_sptr kabi_wl_pkg = pkg->kabi_whitelist_package())
2543 is_ok = create_maps_of_package_content(*pkg, opts);
2546 maybe_handle_kabi_whitelist_pkg(*pkg, opts);
2599 /// @param pkg the package to prepare.
2605 prepare_package(package_sptr& pkg, options &opts)
2606 {return extract_package_and_map_its_content(pkg, opts);}
2887 /// @param pkg (unpacked) package
2896 self_compare_prepared_userspace_package(package& pkg,
2902 string pkg_name = pkg.base_name();
2906 if (!pkg.debug_info_packages().empty())
2908 pkg.debug_info_packages().front()->extracted_dir_path() +
2913 pkg.path_elf_file_sptr_map().begin();
2914 it != pkg.path_elf_file_sptr_map().end();
2917 if (it != pkg.path_elf_file_sptr_map().end()
2941 maybe_erase_temp_dirs(pkg, pkg, opts);
2982 maybe_erase_temp_dirs(pkg, pkg, opts);
3139 /// @param pkg the package to consider.
3148 self_compare_prepared_package(package& pkg,
3154 status = self_compare_prepared_userspace_package(pkg, diff, opts);
3194 /// @param pkg the package to consider.
3200 compare_to_self(package_sptr& pkg, options& opts)
3202 if (!prepare_package(pkg, opts))
3206 return self_compare_prepared_package(*pkg, diff, opts);