blob: 2a014812c46b282dc2a7a442d55b6b70b81575f6 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
|
# Copyright 2021 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
import glob
from portage.output import colorize
def check_dyn_libs_inconsistent(directory, provides):
"""Checks directory for whether any dynamic libraries were installed and
if PROVIDES corresponds."""
# Let's check if we've got inconsistent results.
# If we're installing dynamic libraries (.so files), we should
# really have a PROVIDES.
# (This is a complementary check at the point of ingestion for the
# creation check in doebuild.py)
# Note: we could check a non-empty PROVIDES against the list of .sos,
# but this doesn't gain us anything. We're interested in failure
# to properly parse the installed files at all, which should really
# be a global problem (e.g. bug #811462)
installed_dynlibs = glob.glob(directory + "/**/*.so", recursive=True)
return installed_dynlibs and not provides
|