Files
RedBear-OS/recipes/dev/gdk-pixbuf/source/build-aux/post-install.py
T
vasilito ff4ff35918 feat: track all source trees in git — full fork offline-first model
Red Bear OS is a full fork. All sources must be available from git clone
with zero network access. Removed gitignore rules that excluded fetched
source trees under recipes/*/source/, local/recipes/kde/*/source/,
local/recipes/qt/*/source/, and vendor source trees.

Build artifacts (target/, build/, source.tar, *.o, *.so) remain excluded.

127291 files added — kernel, relibc, base, bootloader, pkgar, all KDE/Qt
frameworks, mesa, wayland, DRM drivers, and every other recipe source.
2026-05-14 10:55:53 +01:00

27 lines
790 B
Python

#!/usr/bin/env python3
import os
import sys
import subprocess
if 'DESTDIR' not in os.environ:
bindir = sys.argv[1]
libdir = sys.argv[2]
binary_version = sys.argv[3]
query_loaders = os.path.join(bindir, "gdk-pixbuf-query-loaders")
loaders_dir = os.path.join(libdir, "gdk-pixbuf-2.0", binary_version)
loaders_cache = os.path.join(loaders_dir, "loaders.cache")
os.makedirs(loaders_dir, exist_ok=True)
cmd = [query_loaders]
with subprocess.Popen(cmd, stdout=subprocess.PIPE, close_fds=True) as p:
data = p.stdout.read()
with open(loaders_cache, "wb") as f:
f.write(data)
else:
print("*** Warning: loaders.cache not built because DESTDIR is set")
print("*** You will need to manually call gdk-pixbuf-query-loaders")