Skip to content

Commit

Permalink
Don't deploy glibc files to runtime in file deploy helper
Browse files Browse the repository at this point in the history
  • Loading branch information
azubieta committed Jun 21, 2022
1 parent 021caca commit 92a84ea
Showing 1 changed file with 1 addition and 69 deletions.
70 changes: 1 addition & 69 deletions appimagebuilder/modules/deploy/files/deploy_helper.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,66 +41,6 @@ class FileDeploy:
"**/libxcb-xfixes.so*",
"**/libxcb.so*",
],
"glibc": [
"**/libc-*.so",
"**/libc.so*",
"**/ld-*.so",
"**/ld-linux-x86-64.so*",
"etc/ld.so.conf.d/*",
"**/libcrypt.so*",
"**/libnss_compat-*.so",
"**/libnss_nis.so*",
"**/libmemusage.so*",
"**/libpthread.so*",
"**/libcrypt.so*",
"**/libz.so*",
"**/libpthread-*.so",
"**/libutil.so*",
"**/libnsl.so*",
"**/libnss_nis-*.so",
"**/libutil-*.so",
"**/libdl-*.so",
"**/libmvec-*.so",
"**/libBrokenLocale.so*",
"**/libnss_nisplus.so*",
"**/libgcc_s.so*",
"**/libnss_compat.so*",
"**/libz.so*",
"**/libthread_db-*.so",
"**/libpcprofile.so",
"**/librt.so*",
"**/libnss_nisplus-*.so",
"**/libnss_hesiod.so*",
"**/libresolv.so*",
"**/libBrokenLocale-*.so",
"**/libnss_hesiod-*.so",
"**/libSegFault.so",
"**/libnss_files.so*",
"**/libanl.so*",
"**/librt-*.so",
"**/libanl-*.so",
"**/libresolv-*.so",
"**/libm.so*",
"**/libnss_files-*.so",
"**/libthread_db.so*",
"**/libdl.so*",
"**/libnss_dns.so*",
"**/libnsl-*.so",
"**/libmvec.so*",
"**/libnss_dns-*.so",
"**/libm-*.so",
"**/ld-linux-x86-64.so*",
"**/gconv/*",
"**/audit/*",
"**/libstdc++.so*",
"**/libstdcxx/*",
"**/doc/zlib1g/*",
"**/doc/libc6/*",
"**/doc/gcc-10-base/*",
"**/doc/libgcc-s1/*",
"**/doc/libcrypt1/*",
"**/doc/libstdc++6/*",
],
}

def __init__(self, app_dir: str):
Expand All @@ -119,8 +59,7 @@ def deploy(self, paths: [str]):
self._deploy_path(path)

def _deploy_path(self, path):
deploy_prefix = self._resolve_deploy_prefix(path)
deploy_path = deploy_prefix + path.lstrip("/")
deploy_path = os.path.normpath(self.app_dir + path)

if not os.path.exists(deploy_path) and os.path.isfile(path):
self.logger.info("deploying %s" % path)
Expand All @@ -135,13 +74,6 @@ def _is_a_graphic_library(self, path):

return False

def _resolve_deploy_prefix(self, path: str):
for pattern in self.listings["glibc"]:
if fnmatch.fnmatch(path, pattern):
return self.app_dir.rstrip("/") + "/runtime/compat/"

return self.app_dir.rstrip("/") + "/"

def clean(self, paths: [str]):
self.logger.info("Removing excluded files")
base_paths = [
Expand Down

0 comments on commit 92a84ea

Please sign in to comment.