Skip to content

Commit

Permalink
Add libselinux.so.1 to package allow list (#3661)
Browse files Browse the repository at this point in the history
Some distros (Arch) don't use SELinux, so it
won't be present on those systems.
  • Loading branch information
ferdnyc authored Aug 20, 2020
1 parent ff3dfd5 commit 4608d43
Showing 1 changed file with 16 additions and 7 deletions.
23 changes: 16 additions & 7 deletions freeze.py
Original file line number Diff line number Diff line change
Expand Up @@ -284,6 +284,7 @@ def find_files(directory, patterns):
libpath = libdetailsparts[0].strip()
libpath_file = os.path.basename(libpath)
if (libpath
and os.path.exists(libpath)
and not libpath.startswith("/lib")
and "libnvidia-glcore.so" not in libpath
and libpath_file not in [
Expand All @@ -306,13 +307,21 @@ def find_files(directory, patterns):
"libpangocairo-1.0.so.0",
"libpangoft2-1.0.so.0",
"libharfbuzz.so.0",
"libthai.so.0" ]
) or libpath_file in ["libgcrypt.so.11", "libQt5DBus.so.5", "libpng12.so.0",
"libbz2.so.1.0", "libqxcb.so", "libxcb-xinerama.so.0", "libpcre.so.3"]:
# Ignore missing files
if os.path.exists(libpath):
filepath, filename = os.path.split(libpath)
external_so_files.append((libpath, filename))
"libthai.so.0",
]
) or libpath_file in [
"libgcrypt.so.11",
"libQt5DBus.so.5",
"libpng12.so.0",
"libbz2.so.1.0",
"libqxcb.so",
"libxcb-xinerama.so.0",
"libpcre.so.3",
"libselinux.so.1",
]:
external_so_files.append((libpath, libpath_file))
# Any other lib deps that fail to meet the inclusion
# criteria above will be silently skipped over

elif sys.platform == "darwin":
# Copy Mac specific files that cx_Freeze misses
Expand Down

0 comments on commit 4608d43

Please sign in to comment.