HUB
Sign inSign up

ideaplexus/aurcache-builder

By ideaplexus

•Updated 2 days ago

AURCache builder with fixes for packages that fail to build in the upstream image

Image
0

3.0K

ideaplexus/aurcache-builder repository overview

⁠AURCache Builder

A custom Docker image based on ghcr.io/lukas-heiligenbrunner/aurcache-builder⁠, with fixes for packages that fail to build in the default image.

⁠Changes vs. upstream

The makepkg settings below live in /etc/makepkg.conf.d/ideaplexus.conf (makepkg.conf in this repository), not in ~/.config/pacman/makepkg.conf: aurcache overwrites that file at the start of every build with its own (makepkg_conf setting, MAKEFLAGS, PKGDEST). Until November 2026 they were appended there and silently had no effect in real builds. MAKEFLAGS comes from aurcache (-j$(nproc)).

⁠1. vconsole.conf stub

Some packages (e.g. linux-cachyos) run mkinitcpio during the build, which requires /etc/vconsole.conf to exist. The file is created as an empty stub to prevent build failures.

⁠2. DLAGENTS — browser User-Agent for HTTPS downloads

Epson's download servers block requests without a browser-like User-Agent and return HTTP 403. The default curl agent (and Linux-based UA strings) are blocked; wget with a Windows browser UA works, per AUR comments⁠.

The https agent is makepkg-dl, a wrapper that runs wget with that UA for Epson hosts only; every other host gets makepkg's default curl agent. A browser UA for everything broke other sources: SourceForge serves browsers an HTML download page instead of the file, and sites behind a bot check (Anubis, e.g. linuxtv.org) a challenge page. It cannot go straight into DLAGENTS: makepkg splits the agent at spaces and ignores quotes, so --user-agent="Mozilla/5.0 (Windows …)" turned into a row of bogus URLs.

DLAGENTS=('https::/usr/local/bin/makepkg-dl %o %u')

This fixes packages like epson-inkjet-printer-escpr2 and epson-inkjet-printer-escpr that download sources directly from download-center.epson.com.

⁠3. No check()

BUILDENV in makepkg.conf turns off check, so makepkg skips the test suites. Tests of some packages fail or hang in the build container (e.g. lib32-libsoup3, whose check() failure took down the whole lib32-gstreamer dependency chain, and syncthingtray-qt6). The packages themselves build fine.

⁠4. Fetch missing PGP keys

makepkg verifies source signatures against the keys in the builder's keyring, which is empty in a fresh container: packages like lib32-libwebp, lib32-pam, lib32-mpg123, lib32-orc and lib32-v4l-utils failed with unknown public key. ~/.gnupg/gpg.conf sets a keyserver and auto-key-retrieve, so gpg fetches a missing key while verifying. The signature check itself stays on.

⁠5. Retry git network operations

paru clones all AUR dependencies of a package in parallel (54 for the lib32-gstreamer chain), and aur.archlinux.org resets some of these connections (Recv failure: Connection reset by peer), which failed the whole build. paru uses git-retry as its git ([bin] Git in ~/.config/paru/paru.conf), which retries clone, fetch, pull and ls-remote up to five times with a growing pause.

⁠6. Extra packages
  • wget, which makepkg-dl calls; the base image ships only curl. Unnoticed until the settings actually took effect (headlamp-bin failed with The download program wget is not installed).
  • lib32-glu: lib32-v4l-utils links its test tool v4l2gl against GLU without declaring it as a dependency and otherwise picks up the 64-bit /usr/lib/libGLU.so (file in wrong format).

Tag summary

Content type

Image

Digest

sha256:4f0f49bed…

Size

968.8 MB

Last updated

2 days ago

docker pull ideaplexus/aurcache-builder