hopefully finally fixed

This commit is contained in:
Agel committed 2026-11-13 14:07:56 +01:00
1 parent 1c83b4cb6b
commit fb65fadad6
4 files changed
+20 -71

No files matched your search

-30
View File
@@ -223,34 +223,6 @@ def download_and_extract_packages(resolved, repo, dest_dir):
raise RuntimeError(f"Failed to extract {filename}: {err}")
def prune_sysroot(abs_dest):
# Remove docs, manuals, locales, translations, and examples
prune_dirs = [
os.path.join(abs_dest, "share", "doc"),
os.path.join(abs_dest, "share", "man"),
os.path.join(abs_dest, "share", "info"),
os.path.join(abs_dest, "share", "locale"),
os.path.join(abs_dest, "share", "qt6", "doc"),
os.path.join(abs_dest, "share", "qt6", "examples"),
os.path.join(abs_dest, "share", "qt6", "translations"),
os.path.join(abs_dest, "share", "qt6", "phrasebooks"),
]
for unused_qml in ("LocalStorage", "Particles", "Pdf", "Scene2D", "Scene3D", "Timeline", "VirtualKeyboard", "tooling"):
prune_dirs.append(os.path.join(abs_dest, "share", "qt6", "qml", "QtQuick", unused_qml))
for d in prune_dirs:
if os.path.isdir(d):
shutil.rmtree(d)
# Remove static .a archives when a corresponding .dll.a import library exists
lib_dir = os.path.join(abs_dest, "lib")
if os.path.isdir(lib_dir):
for dll_a in glob.glob(os.path.join(lib_dir, "*.dll.a")):
static_a = dll_a[: -len(".dll.a")] + ".a"
if os.path.isfile(static_a):
os.remove(static_a)
def configure_sysroot(dest_dir, repo):
abs_dest = os.path.abspath(dest_dir)
@@ -280,8 +252,6 @@ def configure_sysroot(dest_dir, repo):
if os.path.isdir(tools_dir):
shutil.rmtree(tools_dir)
prune_sysroot(abs_dest)
def verify_installation(dest_dir):
bin_dir = os.path.join(dest_dir, "bin")