Skip to content

About

Stripped down versions of several archlinux packages, former name llvm-libs-debloated. [Maintainer=@Samueru-sama]

Topics

Resources

Stars

24 stars

Watchers

1 watching

Forks

Latest commit

 

History

199 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

archlinux-pkgs-debloated

Previously known as 'llvm-libs-debloated'


This repo makes modified versiones of Archlinux packages, these are intended for AppImages to reduce final size, like:

  • mesa-mini and vulkan-{radeon,intel,etc}-mini remove linking to libLLVM.so, making any hardware accelerated app tiny as result.

    Also built without some developer-only features: Intel OA performance counters (GL_INTEL_performance_query), INTEL_DEBUG=bat batch decoding and decoded NOUVEAU push buffer dumps. The patches are in aux/mesa.

  • mesa-nano and vulkan-{radeon,intel,etc}-nano similar to mesa-mini, built with -Os which makes it ~30% smaller. Note -Os can have a performance and even stability issue so do not use this package in apps like emulators where this is critical.

  • llvm-libs-mini smaller version of libLLVM.so which is a 150+ MiB library. The llvm targets are limited to the host architecture (x86_64 or aarch64) plus AMDGPU, which reduces the size of the library to less than 75 MiB. Note this will cause issues if an application depends on more llvm targets, like compilers.

  • llvm-libs-nano is a copy of llvm-libs-mini, kept for backwards compatibility with scripts that hardcode the -nano name.

  • qt6-base-mini and libxml2-mini, remove 30 MiB libicudata lib dependency.

  • ffmpeg-mini which removes 20 MiB libx265.so dependency, also removes AV1 enconding support (decoding still works).

  • ffmpeg-nano a much more stripped down ffmpeg that only decodes mp3, opus, vorbis, png and jpeg (no encoders, no hardware acceleration, no external codec libraries).

  • sdl2_image-mini removes AVIF and JPEG-XL support from SDL2_image. AVIF pulls in libavif plus the whole AV1 codec family (libaom, SvtAv1Enc, rav1e, dav1d) and JPEG-XL pulls libjxl — ~23 MiB combined that most apps never use. PNG/JPG/TIFF/WEBP still work.

  • opus-mini I have no idea why Archlinux makes this lib 5 MiB when both ubuntu and alpine make it <500 KiB

  • glycin-mini Builds glycin-ng, alternative to glycin that does not have the many problems that GNOME glycin has. This replaces the old gdk-pixbuf2-mini/librsvg-mini workaround.

  • icu-mini Much smaller version of libicudata.so that is less than 3 MIB in size (10x reduction in size).

  • gtk2-mini Builds gtk2-ng-git, a community-maintained fork of GTK2. Not built at the moment, upstream is inactive.

  • libdecor-mini Builds libdecor-rs, rust implementation of libdecor without GTK/D-Bus dependencies (Ideal for SDL apps).

Projects using these packages

CI

Build jobs run inside ghcr.io/pkgforge-dev/archlinux:<arch>, which is refreshed daily. prepare-build syncs the package database and installs only what the version check needs (git, patch and wget). The build dependencies (base-devel, ccache, clang, cmake, curl, git, ninja, patchelf, unzip and wget) are installed by bin/check-upstream-version only when a package is actually going to be built, so jobs that skip an already released version never download the toolchain.

This replaced the per-arch archlinux-builder image. Pulling that ~640 MiB image cost as much as installing the toolchain (~260 MiB of packages), and every job paid for it even when it skipped the build. The plain ~190 MiB image is smaller and needs no image workflow to maintain.

Automatic updates

The x86_64 and aarch64 jobs run daily at 15:17 UTC. The emulated jobs run at 03:00 UTC on days 1, 6, 11, 16, 21, 26 and 31 of each month.

An already released package version skips compilation and package uploads. glycin-mini and libdecor-mini build glycin-ng and libdecor-rs, and mangohud is not packaged for Arch Linux ARM, so there is no target repository version to compare. They check only the released version. Use FORCE_BUILD=1 to explicitly rebuild an unchanged version.

PKGBUILDs and version sync with the archlinux forks

The emulated arches build from the PKGBUILD of their own archlinux port (bin/get-port-pkgbuild):

  • ppc64le, ppc64: the complete PKGBUILD from ArchPOWER.
  • riscv64: the Archlinux PKGBUILD plus riscv64.patch (and the extra files next to it) from archriscv-packages.
  • loongarch64: the same with loong.patch from loongarch-packages.

The riscv64 and loongarch64 ports only patch the packages that need it. For the others the plain Archlinux PKGBUILD is used. It is the one tagged ([epoch-]pkgver-pkgrel) with the version the port repo carries, not the latest one. A patch that does not apply cleanly fails the build.

For repository-backed packages, the PKGBUILD version must equal the version that the pacman repositories of the target architecture carry (bin/check-upstream-version, compared as strings). This avoids partial updates. On the emulated arches those repositories are the ones of the respective port, which can lag behind Archlinux. The build is skipped when the versions differ, when there is no Archlinux tag for the version the port carries (the port uses its own pkgrel), or when the port does not carry the package. FORCE_BUILD=2 builds anyway.

About

Stripped down versions of several archlinux packages, former name llvm-libs-debloated. [Maintainer=@Samueru-sama]

Topics

Resources

Stars

24 stars

Watchers

1 watching

Forks

Releases

Used by

Contributors

Languages