Cross-package tooling notes
repo_arch_status.shreported a genuinely-published split package as “not published” (2026-12-02, fixed).barrierhad just been published asbarrier+barrier-headless+barrier-debugat 2.4.0-6 — therepo_release.shlog showed three cleanUPLOADEDlines — yetrepo_arch_status.sh maintained/barrierprintedx86_64 euronuc not published. Querying the repo db by hand (curlthe.db.tar.gz,bsdtar xOf --include='*/desc') confirmed all three packages were present at2.4.0-6, so the publish was fine and the reporting was wrong.Root cause: the script resolves the db lookup key by
sed-ingpkgbase=and falling back topkgname=. A split package declarespkgname=(barrier barrier-headless)and frequently has nopkgbase=line at all (makepkg then takes the array’s first element as the implicit pkgbase). The fallback therefore captured the literal string(barrier barrier-headless), which matches no%NAME%in the db. The pre-existing guard only blanked values containing$(theperl-${_dist@L}case in the script’s own comment), so a parenthesised array sailed straight through to the lookup.This is the same bug class as the pkgname-vs-pkgbase fix already applied to
repo_build.sh/remote_build.sh— that round simply missed this script. Fixed here the same way: acase '('*)branch strips the parens and keeps the first word, placed before the existing$check (the first element could itself contain a variable reference). Regression-checked against a plain package (thruk), apkgbase=-carrying one (qt5-nemo-qml-plugin-configuration) and two other split packages (pacman-static,libarchive-static) — all still resolve correctly.Why it mattered rather than being cosmetic: a false “not published” invites a pointless rebuild-and-republish of something already live, which is exactly the same-version-rebuild trap documented further down this file (fresh
SOURCE_DATE_EPOCH-> non-identical artifacts -> poisoned package cache for the next dependent build). If any other script resolves a pkgname bysed-ing the PKGBUILD, assume it has this bug until checked; the robust source ismakepkg --printsrcinfo’spkgbase =field, which is whatgenerate_overview.shalready uses and why the dashboard listed barrier’s split packages correctly the whole time.repo_arch_status.sh’s “building” column has no package identity — known, deliberately left alone (2026-12-02)._local_building()is justpgrep -f "archlinuxaba-<arch>-build"(plus theextra-variant), so it answers “is something building for this arch on this host”, not “is this package building”. With several packages in flight at once it misattributes: whilelinux-lts515was building pentium4, queryingpacman-staticandlibarchive-staticboth showedpentium4 euronuc buildingeven though neither had any pentium4 build running. Harmless for the normal one-build-at-a-time case, misleading during a concurrent session. The per-package truth already exists inbuild_status/<pkgbase>--<arch>.status(host, start timestamp, pid), which is what a fix should read. Not changed on the spot — four builds were in flight at the time and rewriting build-state detection under them was the riskier option.Killing
repo_release.sh(orrepo_build.sh) mid-run does not cascade to its children, and can leave a remote ARM board’s.building.lockstuck forever. Hit 2026-11-15 rebuildinglocal-install/monitoring-pluginsfor ARM (full story in that package’s own memory file). A plainkill <pid>on the top-level oksh process leavesrepo_build.sh->repo_build_remote.sh-> thesshconnection to the board all still running – each has to be killed explicitly (checkps auxfor the whole tree). Worse: killing the localsshclient abruptly, instead of letting the remote script exit on its own, means the remote script’s own unlock trap never runs, leaving/data/INSTALL/.building.lockon that board stuck with a pid/timestamp that looks like a live build but isn’t. Every subsequent attempt on that board correctly refuses to start (“already building something else”) until someone clears it by hand. Recovery: confirm nothing is actually running first (ssh build@<host> ps auxf– a lingeringtail -fon the build log from a human watching it is not a process to kill), thenssh build@<host> 'rm -f /data/INSTALL/.building.lock/holder && rmdir /data/INSTALL/.building.lock'. If a multi-archrepo_release.shrun needs to be killed, kill the whole process tree up front and check every remote board it had reached for a stale lock before retrying – don’t assume the lock released itself just because the local orchestrator process is gone.scripts/merge_gitlab_history.sh’s first real-world run (2026-11-15,local-install/monitoring-plugins) worked cleanly. Previously only written and exercised in the abstract (swig4.4’s case didn’t actually fit it – seememory/swig4.4.md’s 2026-11-01 entry – that was a zero-commit fresh checkout wanting gitlab history only up to a fork point, not a real merge). Here the AUR checkout had its own real history and gitlab’s packaging repo was a direct continuation of it (the package had simply been adopted into officialextrasince this checkout was last touched) – a clean fast-forward,CLEAN, no conflict. Confirms the script’s basic mechanism works as designed for the case it was actually built for: an AUR package that graduated to the official repos, where we still want to track/rebuild it (here: a custom local patch, for a MariaDB fix, turned out to no longer be needed – gitlab’s own history had already dropped it along the way).Added
check_repology_feed.sh(2026-11-14), a new check resource alongsidecheck_aur_feedback.sh. Fetcheshttps://repology.org/maintainer/<AUR_USER_NAME>@aur/feed-for-repo/aur/atomand parses it withxmllint --xpath(libxml2, already on this box;local-name()used throughout since--xpathcan’t declare the feed’s default Atom namespace) – no Python helper, peroksh_coding_style.md’s standing “oksh, not Python” preference for new scripts in this project (first draft used a Python/ElementTree helper, corrected before being kept). Reports new events (outdated/ uptodate/added/removed/ignored) not seen before, deduped againstrepology_feed_state/seen(entry ids, one per line – same pattern ascheck_aur_feedback.sh’s comment dedup). Appends dated sections toREPOLOGY.txtat toplevel; never truncates. One HTTP GET covers every package Repology attributes to this maintainer (the feed is a bounded rolling window of recent events, not full history), so it’s much cheaper thancheck_aur_feedback.sh’s per-package RPC+scrape loop. Not wired intoupdate_cycle.sh– same ascheck_aur_feedback.sh, it’s standalone/run-on-demand for now.- Repology runs its own independent version comparison, so it’s a
useful cross-check against our nvchecker/
check_for_updates_maintained.shsetup: it immediately surfaced thatbasic256was wrongly showing “OK” inSTATES.txtdue to a realvercmpbug (missingprefix = "v"in.nvchecker.toml) – seememory/basic256.md’s 2026-11-14 entry. - Also doubles as after-the-fact confirmation that a push actually reached AUR and Repology’s own re-scan caught up (an “outdated” entry flipping to “uptodate”).
- Repology runs its own independent version comparison, so it’s a
useful cross-check against our nvchecker/
aur_comments.py->aur_comments.sh(2026-11-14), same “no Python” cleanup.check_aur_feedback.sh’s comment scraper was still Python (predated the oksh-only convention). Rewritten usingxmllint --html --xpath(tolerates AUR’s page even though it isn’t well-formed XML): comment ids from//*[@class='comment-header']/@id, author/date parsed out of the flattened/whitespace-squeezed header text (sed/grep -oE), body text viastring(//*[@id='comment-<id>-content'])likewise squeezed. Verified byte-for-byte against the old Python script’s output on a real saved AUR page (basic256, 10 comments) except one cosmetic difference: text immediately adjacent to a tag with no source whitespace between them (e.g. a commit-hash link directly followed by": message") comes out without an inserted space – the old Python version joined every per-text-node chunk with" "unconditionally;xmllint’sstring()only has whatever whitespace existed in the source. Harmless: dedup keys on the comment id, not the exact spacing of the displayed text.check_aur_feedback.shnow calls it directly ("${script_dir}/aur_comments.sh" "${pkgname}", relying on the file’s own shebang+exec bit, notsh/python3in front of it – matching howrepo_release.shcalls other oksh scripts) instead ofpython3 aur_comments.py.check_aur_feedback.shmistook a transient network failure for a “new comment since your reply” (2026-10-03). During a ~230-package run,aur_comments.pyhit a DNS resolution failure (socket.gaierror: Temporary failure in name resolution) fetching one package’s AUR page (kchmviewer, confirmed viaaur_feedback_state/aur_comments.err). The calling loop captured only stdout (empty on that failure) and never checked the python process’s exit code, so an emptycomments_outwas indistinguishable from “this package genuinely has no comments yet” – that fed straight into the ANSWERED/REOPENED logic, which saw “latest comment author != me” (because there was no latest comment at all) and both printed a falseREOPENED maintained/kchmviewer kchmviewer (new comment since your reply)inFEEDBACK.txtand clobberedaur_feedback_state/kchmviewer.answeredfrom its correct2026-04-09 17:45down to empty – silently breaking that package’s answered-tracking for every future run too, not just this one’s report. Verified against a fresh live scrape immediately after: no new comment actually exists, the newest is still the maintainer’s own 2026-04-09 reply. Fixed: the script now checks$?after theaur_comments.pycall and, on nonzero, printsFETCHFAILED <pkgdir> <pkgbase> (... rc=N ...)andcontinues before touching that package’sseen_fileoranswered_file– a failed fetch now leaves state untouched instead of being read as “zero comments”. Also manually restoredkchmviewer.answeredback to2026-04-09 17:45(the corrupted empty value would have falsely flagged itANSWEREDagain on the very next successful run, masking the fact nothing ever actually changed). IfFETCHFAILEDlines show up in a future run, that package’s comment check simply didn’t happen that cycle – rerunaur_comments.py <pkgname>by hand once network is confirmed fine, don’t treat the absence of a report as “no new comments”.A single generic pacman.conf doesn’t cover both x86_64 and the 32-bit arches – the
[core]/[extra]mirrorlist differs, not just$archinside it. Built 2026-08-13, wiringarchlinuxaba-<arch>-buildup for i486/i686/pentium4 (previously x86_64-only, seememory/REPO_PUBLISH_DESIGN.md). The existingarch/config/pacman.conf.d/archlinuxaba.confis a copy of devtools’ genericextra.conf:Architecture = auto,Include = /etc/pacman.d/mirrorlist(the plain 64-bit Arch mirror). Assumed this would “just work” for every arch since pacman substitutes$archinServer =lines at read time – wrong assumption: devtools32 ships separateextra-i486.conf/extra-i686.conf/extra-pentium4.conffiles (/usr/share/devtools/pacman.conf.d/) with an explicitArchitecture = <arch>and, critically,Include = /etc/pacman.d/mirrorlist32(mirror.archlinux32.org) instead – 32-bit packages live on an entirely different mirror network, not just a different$archsubdirectory of the same one. Buildingarchlinuxaba-i486-buildetc. with the generic config failed immediately at fresh chroot creation (error: failed retrieving file 'core.db'– 404 against the 64-bit mirror, which has no i486/i686/pentium4 trees at all). Fix: addedarchlinuxaba-i486.conf/archlinuxaba-i686.conf/archlinuxaba-pentium4.conf, each the corresponding stockextra-<arch>.confwith our[archlinuxaba]section spliced in ahead of[core](same pattern as the originalarchlinuxaba.confvs.extra.conf).archlinuxaba-archbuild’s existing per-arch config resolution (prefers${repo}-${arch}.confover${repo}.conf, see the script’s own header comment) picked these up with no code change. Lesson for wiring up any new arch here in the future: check whether devtools ships an arch-specific base config before assuming the generic one is arch-agnostic – it usually isn’t for anything outside the “one real mirror network” x86_64 case.A build/publish/rebuild cycle for the same pkgver-pkgrel within one session can poison the local pacman package cache for the next build. Same 2026-08-13 session: rebuilt+republished
libstroke0.5.1-11 twice in a row while iterating on the fix above (each build gets a freshSOURCE_DATE_EPOCH, so the two builds are not byte-identical even though the version string is). A laterfvwmx86_64 build then failed installinglibstrokeas a dependency –pacman: “file … is corrupted (invalid or corrupted package (checksum))” – because a stale copy from the first libstroke build was sitting in the build chroot’s package cache and no longer matched the checksum of what got published second. Not specific to archlinuxaba/fvwm/libstroke; any same-version rebuild-and-republish during a single working session can leave this trap for the next package that depends on it. Fix is just a bare retry of the affected arch (the stale cache entry doesn’t survive a fresh chroot sync) – no need to hunt down and manually clear the cache file.A report script that only prints “what’s new since last run” must never be invoked with
>truncation, and ideally shouldn’t let the caller choose. Built 2026-07-22 (scripts/check_aur_feedback.sh): first run redirected with> ../FEEDBACK.txt, correctly printed all 429 then-current AUR comments across every maintained package. Second run (after fixing an unrelated pkgname-resolution bug) was invoked the same way,>again — its own dedup logic correctly suppressed re-printing the 396 comments already marked “seen” from run 1, which is exactly what dedup is supposed to do, but since>truncated the file first and nothing else on disk held a copy of run 1’s text, that entire history was gone with no way to reconstruct it (the comments still exist on AUR, but re-fetching them would just re-trigger the same dedup and print nothing). Any script with this “print only the diff since last time” shape needs the report file itself to be append-only across runs, not just the in-memory dedup state – otherwise dedup working correctly is exactly what destroys the history. Fix applied: the script now takes the output path itself (default../FEEDBACK.txt) and appends a dated## <timestamp>section internally, skipping the write entirely if there’s nothing new to report – there is no>-redirect invocation path left for a caller to get wrong.check_aur_feedback.shANSWERED/REOPENED tracking (2026-09-07). Before this, a comment thread you’d already replied to on AUR looked identical inFEEDBACK.txtto one nobody had touched – the.seen-file dedup only stops a comment being re-printed, it never recorded whether it had actually been addressed.aur_comments.pylists comments newest-first (matches the AUR page’s own layout), so the script now checks, per package, whether the current newest comment is authored byAUR_USER_NAME(sourced fromconfig/global.conf) – if so the thread is “answered as of now”. State lives inaur_feedback_state/<pkgbase>.answered(the reply’s date, or empty), and anANSWERED/REOPENEDline is printed only on a state transition (mirrors the existingFLAG/UNFLAGGEDOutOfDate pattern right below this script’s other dedup logic) –REOPENEDmeans someone commented again after your reply. Narrow by design: doesn’t catch the reporter self-resolving their own thread (e.g.pacman-static’s “tnx. solved.” case) – that’s still visible in the plainCOMMENTline, just not tracked as a state change. Also never fires when a request is resolved by fixing the PKGBUILD directly without ever replying on AUR – confirmed real case:duckie_xyzasked foraarch64onqt5-connectivity(2026-08-31), user added it straight to the PKGBUILD the next day with no AUR reply (“some small changes are just obvious, I don’t comment them” – user’s own words, 2026-09-07). That thread will show as open/ unanswered by this heuristic forever, even though it’s fully resolved – always check the actual PKGBUILD/repo state before treating an “unanswered”FEEDBACK.txtentry as still needing work. Companion convention (not code): whenever a session acts on, or explicitly decides not to act on, AUR feedback for a package, log a one-line dated note in that package’s ownmemory/<pkgname>.md– theANSWERED/REOPENEDmachinery tracks whether AUR itself shows a reply, not why a decision was made, and that reasoning belongs in the per-package memory file the same as any other packaging decision (seememory/qt5-doc.md’s 2026-09-07 entry for a worked example: a real open upstream-download bug, reproduced by a second reporter after an initial “cannot reproduce”, left open pending a decision on the suggestedprepare()-based fix).AUR RPC maintainer checks must include co-maintainers, not just primary maintainer.
scripts/compare_packages.shqueriesrpc/v5/search/<user>?by=maintainer, which only returns packages where<user>is the primary maintainer — packages held as co-maintainer are silently excluded, and show up as false “local dir not on AUR” diffs. Confirmed 2026-07-20:nagircbot,pacman-static, andtrojitaall looked like AUR-maintainer mismatches from theby=maintainersearch alone, butby=comaintainers(same endpoint, differentbyvalue) showed all three are legitimately co-maintained by this account (primary maintainers are other people) — not orphan or drift situations at all. Any future “is this package actually ours on AUR” check needs bothby=maintainerandby=comaintainersunioned before concluding something’s missing/mismatched.rpc/v5/info/<pkgname>also exposes this per-package via theCoMaintainersarray field (absent entirely if there are none).nvchecker’s
include_regex/exclude_regexusere.fullmatch, notre.matchorre.search(nvchecker/core.py’sapply_list_options:re_pat.fullmatch(str(x))). An anchored-prefix-only pattern like"^5\\."matches nothing – fullmatch requires the whole version string (e.g."5.7.7") to match, and"^5\\."only ever matches the literal 2-char string"5.". Need a trailing.*("5\\..*"–fullmatchalready anchors both ends, no need for^/$). Confirmed 2026-09-08 fixing a false UPD flag onqt5-quickcontrols-nemo(upstream moved to Qt6 tags this package deliberately doesn’t track – see that package’s own memory file); the first attempt ("^5\\.") silently produced “include_regex matched no versions” /no-resultinstead of the intended filter. Always verify a newinclude_regex/exclude_regexwith a directnvchecker -c .nvchecker.toml --logger jsonrun before trusting it.Dependency-resolution checks need
pacman -Si+ a real Provides scan, notpacman -T. Built 2026-07-26 (scripts/check_dependencies.sh, after findingmaintained/lxappearance-obconf-gtk3depended onlxappearance-gtk3, which never existed anywhere – seememory/lxappearance-obconf-gtk3.md). Three separate bugs surfaced while building the checker, in order:-
pacman -T(deptest) only checks installed packages, not the sync databases –dkms(real package in[extra], just not installed on this build host) came back “unsatisfied” even thoughpacman -Si dkmsfinds it immediately. Use-Sifor an install-state-independent existence check. -
pacman -Sialone still doesn’t seeProvides– virtual/group deps (sh,pkgconfig,java-runtime,ttf-font,initramfs,fuse,atk) and soname deps (libobrender.so, fromopenbox) are essentially never named after the package that actually provides them, so a plain-Silookup flagged nearly all of them as broken. There’s nopacman -S*query that does a provides-only lookup without an actual transaction; the fix wastar -xOfon every configured repo’s sync db (pacman-conf --repo-list,$(pacman-conf DBPath)sync/<repo>.db) parsed for raw%PROVIDES%fields directly. -
commneedsLC_ALL=Cto match aLC_ALL=C sort-ed input – this host’s locale isen_US.UTF-8, and a locale-defaultcommagainst C-locale-sorted files silently mis-diffs (“input is not in sorted order” printed to stderr, but the command still exits 0 and produces wrong output that looks plausible). Net effect for any future resolution primitive: verify it against both a known-installed-and-real name and a known-not-installed-but- real name before trusting its output, and assumeProvidesneeds handling explicitly – pacman’s own name-lookup commands don’t do it for you outside a real transaction. As of 2026-07-26 (right after the lxappearance-obconf-gtk3 fix), a full run across all 544 unique dependency entries in arch/ resolves cleanly – 0 BROKEN.
-
Policy notes, split out since they apply broadly rather than to one package:
HOST_INSTALL_POLICY.md(never install packages on this host to fix a build — chroots exist for that; GPG key imports for source verification are the one exception),PKGREL_VS_PKGVER.md(packaging- only fixes bumppkgrel, notpkgver),ARCHIVE_APPEND_ONLY.md(never remove/move anything out of the private repo’sarchive/dir).This machine can currently only build packages for x86_64, pentium4, i686, and i486 — it has local
extra-<arch>-buildarchbuild chroots for exactly these four. Any other arch that shows up in a PKGBUILD’sarch=()— notably aarch64, arm, armv6h, armv7h, riscv64 — cannot be built here yet; that would need either QEMU user-mode emulation (to run a foreign-arch chroot on this x86_64 host) or SSH access to a real build machine of that architecture, neither of which is set up. Therepo_build.shscript (seeREPO_PUBLISH_DESIGN.md) already treats this as expected: it skips and reports any arch with no localextra-<arch>-buildinstead of failing the whole build.Some existing PKGBUILDs contain pre-existing invalid-UTF-8 byte sequences in comments (e.g. libarchive-static’s
# Tomáš Mrázmaintainer-key comment, which is already mojibake’d to a raw Latin-1 0xE1 byte in git history). My Edit tool and any full-file rewrite (Perl scripts likeupdpkgsums,makepkg --printsrcinfo, etc.) treat the file as UTF-8 text and silently replace such invalid bytes with U+FFFD on save, corrupting them further even in lines I didn’t intend to touch.- After editing a PKGBUILD, diff the full file content against the last git
revision (
git -C <pkg> show HEAD:PKGBUILD) to catch unintended byte-level drift outside the lines you meant to change, not just the lines you meant to change. - Use
LC_ALL=C grep -a/ byte-level tools when inspecting such lines; UTF-8-locale grep can silently fail to match corrupted byte sequences.
- After editing a PKGBUILD, diff the full file content against the last git
revision (
archbuildscripts (extra-<arch>-build) pass args after--straight into their internalmakechrootpkg_argsarray without inserting a separator — so to get args through tomakepkginside the chroot you need a double--:sudo extra-i686-build -- -- --nobuild --skippgpcheck. A single--makesmakechrootpkgitself choke on the makepkg flags (“illegal option – -”).--nobuildis the cheap way to run justprepare()(extract + patch + any config/version reconciliation) inside a chroot without doing the full compile — much faster than a full build when you only need to check/update generated files like kernel configs.- The chroot’s working-copy build tree lives at
/var/lib/archbuild/<repo>-<arch>/<local-copy-user>/build/<pkgname>/src/...(default local-copy name is your own username) — files placed there byprepare()(e.g. a reconciled.config) can besudo cp’d back out andchown’d to your user. namcapinside these chroots is broken (ImportError: libalpm.so.14: cannot open shared object file) andcheckpkgalways says “target not found” since there’s no local repo — both are known-harmless environment issues, not build failures.
Intra-tree dependency ordering — fixed 2026-07-07 for x86_64.
extra-<arch>-buildchroots resolvedepends/makedependsonly against the official Arch mirrors (whateverpacman.confin the chroot points at) — never against other packages built earlier in the samerepo_release_all.shrun, and never in build-order at all (packages are processed in plain alphabetical order). Any package here whosedepends/makedependsnames another custom package from this tree (not an official Arch package — e.g. the Qt5/KDE5 rebuild stack, orarduino-builderneedingarduino-ctags) used to fail witherror: target not found: <pkg>regardless of run order. Seememory/kdstatemachineeditor.mdfor the original diagnosis.- Fix:
scripts/archlinuxaba-archbuild(symlinked asscripts/archlinuxaba-x86_64-build) is a copy of the system/usr/bin/archbuild(devtools32), changed in exactly one place: it resolvespacman_configfrom this project’s ownarch/config/pacman.conf.d/first (falling back to the system location), andarch/config/pacman.conf.d/archlinuxaba.confis a copy of the stockextra.confwith our own private repo (archlinuxaba,SigLevel = Optional TrustAll) added ahead of[core]/[extra]. This mirrors devtools32’s own*-with-build-supportconfig pattern (bootstrap/staging repos layered on top of the base config the same way). It uses its own separate chroot (/var/lib/archbuild/archlinuxaba-x86_64), so the stockextra-x86_64chroot is untouched. Never modifies anything under/usr— everything new lives underarch/. repo_build.shnow resolves the build command per-arch via a_build_cmdhelper:archlinuxaba-x86_64-buildfor x86_64, plainextra-<arch>-buildfor everything else (only x86_64 is wired up so far, per explicit scope).- Verified against a real case:
arduino-builderneedsarduino-ctags(a package in this tree, already published) — failed under plainextra-x86_64-build, succeeded underarchlinuxaba-x86_64-buildonce retried. - Caveat: this only helps once a dependency has actually been built+published
before the package that needs it is attempted —
repo_release_all.shstill processes the tree in plain alphabetical order with no dependency-graph awareness, so a package needing an alphabetically-*later* custom dependency will still fail on a single top-to-bottom pass and needs a manual retry afterward (seememory/gcc-ia16.md,memory/fvwm.mdfor pending examples).
- Fix:
This build box’s GPG keyring is missing some upstream signing keys referenced by
validpgpkeysin various PKGBUILDs, causing--skippgpcheck-less real builds (asrepo_build.shdoes, unlikebuild_all_archs.sh’s own test-build convenience flag) to fail source verification withunknown public key <ID>regardless of anything about the package’s own PKGBUILD/source correctness. First seen 2026-07-07 for key95FA6F43E21188C4acrossmaintained/arduinoandmaintained/arduino-builder. Unlike installing a package on the host (never do that — seememory/feedback_no_host_installs.md’s original, narrower rule), importing a signing key needed purely for source verification is a normal, expected part of doing the build and is fine to do on the host:gpg --recv-keys <ID>(fromhkps://keys.openpgp.orgorkeyserver.ubuntu.comif the PKGBUILD doesn’t specify one). Done for95FA6F43E21188C4on 2026-07-07 — both packages should be retried.A third missing-dependency class, distinct from environment drift and intra-tree ordering: real AUR-only dependencies this tree doesn’t maintain at all (e.g.
dbmodel-qt4needingqt4,adtpro-git/p2c- style needingcc65/gcc14). Unlike the KDE5/Qt5 stack (custom packages that live in this tree, just not resolvable mid-run — fixed byarchlinuxaba-x86_64-build, see above), these depend on packages that were never part ofarch/maintained/private/adapted/ownedin the first place. Building them would mean also building/vendoring a package this tree doesn’t own. Per the user (2026-07-07): note these and move on, don’t try to resolve them now — revisit once there’s an actual plan for out-of-tree AUR dependencies.CMake in this build environment refuses
cmake_minimum_requiredversions below 3.5 (Compatibility with CMake < 3.5 has been removed from CMake.), which will hit any older/unmaintained CMake-based package whoseCMakeLists.txtstill declares an ancient minimum version. First seen 2026-07-07 onkdiagram5(seememory/kdiagram5.md). CMake’s own suggested workaround is-DCMAKE_POLICY_VERSION_MINIMUM=3.5passed to thecmakeinvocation in the PKGBUILD’sbuild()— not applied yet to any package as part of this pass; expect this to recur across other older CMake-based packages in the tree.Modern GCC’s default warnings-as-errors trip older/unmaintained C/C++ sources on genuinely harmless issues like an unused-but-set variable (
error: variable 'X' set but not used [-Werror=unused-but-set-variable=]). Seen 2026-07-07 onmodest(memory/modest.md) andnewsboat-og(memory/newsboat-og.md). Not fixed for either; would need a source fix or relaxing that specific-Werrorin the PKGBUILD’s CFLAGS. Expect this to recur on other old C/C++ packages in the tree.Long-running builds (e.g. kernel compiles via
archbuild) started as a plain backgrounded Bash tool call die with the session (SIGHUP) if the session is closed early. To survive session termination, launch them in a detachedscreensession instead:screen -dmS <name> bash <script>.sh(or-e^Xyfor a custom escape sequence). Check on it later withscreen -r <name>or by tailing the chroot’s own build log at/var/lib/archbuild/<repo>-<arch>/<user>/logdest/<pkg>-<ver>-<arch>-build.log.Danger: manually replicating
repo_build.sh’s git-status-driven post-build cleanup (git status --porcelain -- .→rm -rfevery??entry not matching*.pkg.tar.*/.sig) can delete a brand-new source file you just added, not just real build byproducts. That cleanup’s own assumption is “an untracked file after a successful build is either a release artifact or something makepkg generated” — true when running it via the real pipeline on an already-committed package tree, but this project’s own standing rule is nevergit commit(seeCLAUDE.md). So a genuinely new file you add to amaintained/package (a new local patch, a new config) — something you fully intend to keep — will always show as??untracked, indistinguishable from a downloaded tarball or a.logfile, for as long as this session lives. Hit this for real 2026-07-16 onakonadi-notes: a newly-writtenakonadi-notes-24.08.3-kmime-26.04-api.patchgot deleted by exactly this cleanup snippet run by hand right after a successful publish. Recovered only because a scratch copy of the diff still existed to regenerate it from.- How to apply: before running (or hand-replicating) this cleanup after a
build, check
git status --porcelain -- .yourself first and make sure every??entry it’s about to remove is something you actually expect to be disposable (a downloaded source tarball, a*.logfile, a VCS clone dir) — not a patch/config file you just added as the actual fix. When in doubt, copy the new file somewhere safe (or note its content) before letting any cleanup step run near it. - Confirmed 2026-07-31 that this isn’t just a manual-replication risk — the
real, automated
repo_release.sh→repo_build.shpipeline does this too, every time, to every new uncommitted patch file. Onkdiagram5: wrotekdiagram-2.8.0-ecm-project-version.patch, wired it intoprepare(), ran the normalrepo_release.sh maintained/kdiagram5(not a hand-replicated cleanup), build succeeded, and the patch (plus the unrelated pre-existingPKGBUILD~backup) was silentlyrm -rf’d by this exact cleanup step since neither was git-tracked. Recovered only because the patch content was still in this session’s own context to rewrite verbatim (checksum matched, confirming an exact recreation) — a fresh session with no memory of the patch’s content would have lost it for good. Since this project’s assistant never runsgit commit(seeCLAUDE.md), every single new patch file written in any session is on a countdown to deletion the moment the next successfulrepo_release.sh/repo_build.shrun touches that package directory — there is no “safe” window. Until/unless this cleanup step gets a*.patchexception (not done as of this note — would need explicit user sign-off, since a stray downloaded.patchsource file some PKGBUILDs also legitimately fetch viasource=()complicates a blanket exclusion), treat any newly-written patch as needing the user togit commitit (or add it to.gitignore’s inverse / otherwise mark it tracked) before the first build, not after.
- How to apply: before running (or hand-replicating) this cleanup after a
build, check
repo_publish.sh’s filename-derived arch/pkgname parsing had no validation, and it silently corrupted the remote repo layout twice. Found 2026-07-26 while investigating a user-reported bogus directoryos/x86_64pkg.tar.zst/on the repo host. Root cause:_pkg_arch()/_pkg_name()stripped an expected.pkg.tar.<ext>suffix and then took “whatever’s after the last-” as arch/pkgname, with no check that the strip actually matched anything. Two real incidents from this: (1)m68k-elf-gcc, built via a separate ad-hoc/data/INSTALL/-based flow (not this repo’sarch/tree) with a misconfiguredPKGEXTmissing its leading dot, produced...x86_64pkg.tar.zst– the unguarded strip left it untouched, and${_base##*-}grabbed the wholex86_64pkg.tar.zsttail as “arch”, publishing into a bogus top-level dir with its own orphanedrepo-adddatabase. (2)zoom, built by a separate concurrent session, produced a filename missing its-<pkgrel>-segment (zoom-7.1.5.4332_orig_x86_64.pkg.tar.xz), so the only hyphen left after the (successful, this time) extension strip put7.1.5.4332_orig_x86_64in as “arch”. Both bogus dirs sat unnoticed on the repo host for over a week (m68k-elf-gcc: 2026-07-16 to 2026-07-26; zoom: 2026-07-22 to 2026-07-26) since nothing about publishing failed loudly –mkdir -p/repo-addhappily created a whole new “repo” at the bogus path. Fixed:_pkg_stripped_base()now aborts (non-zero exit,ERROR:to stderr) if the.pkg.tar.*strip didn’t change anything, and_pkg_arch()additionally rejects any result containing a.(real arch names never have one; both incidents above did). Both stale directories were removed from the repo host after confirming a correct copy of m68k-elf-gcc already existed inos/x86_64/(zoom had no other copy – removing its bogus dir removed the package from the repo entirely, done with explicit user confirmation). Lesson for any future filename-parsing helper: validate that an expected-pattern strip actually matched before trusting what’s left over, don’t just chain more stripping operations on a possibly-untouched string.archive/reorganized to be per-arch, 2026-07-26. Was previously one flat directory shared across all archs (deliberate original design – filenames embed pkgver+arch so they can’t collide there either way). User asked for it to mirroros/’s per-arch layout instead._archive_old()inrepo_publish.shalready received the package’s arch as_pkgarch; changed it to create/move into${ARCHIVE_DIR}/${_pkgarch}/instead of flat${ARCHIVE_DIR}/. The existing 73 files were migrated in place on the repo host with a one-off script that reused the same_pkg_arch()parsing logic (not a second implementation) to classify each file, thenmkdir -p+mvper arch – verified file count (73) and total byte size (830534379) matched exactly before and after, nothing lost. Result:archive/{any,i686,pentium4,x86_64}/.**Routine per-package publishes go through
repo_diff_local_remote.shrepo_release_changed.sh, not a hand-chainedextra-x86_64-build->repo_sign.sh->repo_publish.shsequence – even for just one or two UPD-flagged packages.** Went off this rail 2026-07-27 while updatingi686-elf-binutils/x86_64-elf-binutils(2.45/2.46.0 -> 2.47): after editing both PKGBUILDs, ranextra-x86_64-builddirectly to test-build, thenrepo_sign.shandrepo_publish.shby hand for each. That produced a correct result (both published fine, verified against the remote repo and site afterward), but skipped the actual sanctioned tooling:repo_diff_local_remote.shwould have confirmed both read as CHANGED once the PKGBUILDs were bumped, andrepo_release_changed.shbuilds+signs+publishes exactly that detected set (also handles the “already up to date, skip” and multi-package cases uniformly, and keeps theREPO_BUILD_ONLY_ARCHconvention and per-package logfiles underrepo_release_logs/consistent with every other routine cycle).repo_release.sh <pkgdir>(single-package build->sign->publish) is the right manual escape hatch when a package needs individual attention outside the diff-driven flow (e.g. re-testing after a build fix) – reaching for the three lower-level scripts directly should be rarer still, reserved for cases where evenrepo_release.sh’s ordering doesn’t fit (e.g. republishing an already-built artifact without rebuilding it).
Recovering an in-place build into the
/data/INSTALLstaging layout, after building directly insidearch/<category>/<pkgname>by mistake (e.g. viabuild_all_archs.shrun there instead ofrepo_release.sh/repo_build_staged.shfrom the start – don’t do this; see the entry above and the “build staged by default” habit note). If the build already ran and especially if it was expensive (a kernel compile across 4 archs, hours of chroot time), don’t throw the work away and restart staged – migrate the result into the layoutrepo_build_staged.shwould have produced:- If
/data/INSTALL/<pkgname>already exists (a previous release’s staged build), move it aside first – never overwrite/delete it. Follow the existing rotation convention already in use forlinux-lts510(-old,-older,-oldestas each new one bumps the previous aside):mv /data/INSTALL/<pkgname> /data/INSTALL/<pkgname>-old(or-older/-oldestif-oldis already taken). -
rsync -a --exclude=.git -- arch/<category>/<pkgname>/ /data/INSTALL/<pkgname>/– same invocationrepo_build_staged.shitself uses, just run after the build instead of before. This carries the tracked PKGBUILD/patches/etc and the untracked build byproducts (downloaded sources, produced*.pkg.tar.*, logs) into the staged location together in one shot. -
git clean -fdinsidearch/<category>/<pkgname>to drop every untracked byproduct from the tracked tree, restoring it to exactly the pre-build state (verify withgit status --short– must be empty). This is the actual goal of staging:arch/never carries build output. - Sign + publish from the
/data/INSTALL/<pkgname>copy directly (repo_sign.sh/repo_publish.shthere) rather than copying package files back intoarch/first – no need, they’re not needed there. - Leave everything else in
/data/INSTALL/<pkgname>as-is afterward (downloaded tarball, per-arch build/package/namcap logs, the package files themselves) – don’t try to replicaterepo_build.sh’s own post-build cleanup (which deletes everything untracked except the release artifacts) by hand here. That cleanup is driven bygit status --porcelaininsidebuild_dir, butrsync --exclude=.gitmeans these staged copies have no working.git(confirmed against the existinglinux-lts515-oldstaged dir:git statusthere fails with “fatal: not a git repository”), sorepo_build.shitself silently skips that cleanup step too when running the normal way – leaving the full build state in/data/INSTALL/<pkgname>permanently is the actual established behavior, not an oversight to fix. First done 2026-08-21 forlinux-lts5155.15.216 (see its own memory file for the specific run) – generalize this same five-step recovery to any other package caught mid-build in place.
- If
Remote ARM build machines (2026-08-27): armv6h/armv7h/aarch64 no longer always
SKIPPED.repo_build.shpreviously had no way to build any arch this host (x86_64) lacks a local chroot for.eurobuild4/eurobuild5/eurobuild14are real dedicated boards (loginbuild@<host>, passwordless sudo) for armv6h/armv7h/aarch64 respectively – no chroot/devtools tooling on them at all, just a plainmakepkg -srun natively. Wired up viaarch/config/remote_build.conf(arch->host map) +arch/scripts/remote_build_lib.sh(config loader, missing file is NOT fatal – an additive fallback path) +arch/scripts/repo_build_remote.sh(local-side driver: push pkgdir, ssh-build, pull back*.pkg.tar.*+ a combined build log) +arch/scripts/remote_build.sh(the agent script itself, redeployed fresh to each board on every invocation so the three boards can’t drift out of sync with git).repo_build.sh’s per-arch loop falls back to this only when it has no local build command for that arch; sign/publish are completely unaffected either way. A package file already sitting inpkgdirfor the exact current pkgver-pkgrel-arch is reused instead of triggering another remote build – these boards are slow (eurobuild4 is single-core/423Mi RAM) and a real build can take 40+ minutes./dataon each board is a mounted NBD block device (/root/mount_data.sh, root-owned, board’s own tiny SD-card rootfs is 2-8GB and not meant to take real build I/O) served by a separate NBD server host,eurobuild3– confirmed 2026-08-27 that server has to be up too, not just the target board itself, or the mount fails regardless.remote_build.shauto-runsmount_data.sh(with anbd-client -d /dev/nbd0retry for a stale/dead prior connection – seen once on eurobuild4: “nbd0 already in use”, mount then fails to read the superblock) if/dataisn’t already mounted.repo_build_remote.shalso pings the target board andREMOTE_BUILD_NBD_SERVERbefore attempting anything – fails fast with a clear message instead of a long ssh/rsync connect timeout if either is down. Don’t attempt an arm remote build if any of eurobuild3/4/5/14 aren’t up – ping from this host (euronuc) to check first if in doubt.- makepkg’s automatic key import from a package’s
keys/pgp/*.asc(thevalidpgpkeysconvention) didn’t reliably trigger on these boards for a key never seen there before, even with the.ascfile right there –remote_build.shnow explicitlygpg --imports everything inkeys/pgp/before building. Not package-specific, fixed once at the agent-script level. - eurobuild4 (armv6h) runs
pacman 6.0.1, long EOL (ArchLinux ARM dropped armv6h support entirely a while back, so this can’t be fixed by upgrading – there’s nothing left to upgrade to for this arch) – it can’t compute a checksum for agit+...source at all, reportingNOT FOUNDrather than treating a real sha512sums entry as unhashable the waySKIPwould. Any PKGBUILD with a real hash (notSKIP) on a git source needs acase "${CARCH}" in i486| armv6h) sha512sums[N]='SKIP' ;; esac-style per-arch override for that source’s index – seememory/libarchive-static.md’s 2026-08-27 entry for a worked example (and a cautionary tale: a similar-looking guard already existed there and was completely dead, patching the wrong array indices). - eurobuild4’s bash (5.1.16) also parses
if [[ ... ]] then(no;beforethen) as a hard syntax error, where bash 5.3.15 (eurobuild5/14) accepts it – a real grammar difference between those versions, confirmed withpacman-static’s upstream PKGBUILD. If a PKGBUILD fails to even source on an armv6h remote build (“syntax error near unexpected token”), check for this exact idiom before assuming it’s the checksum issue above. Fix is always just adding the missing;– safe on every bash version. remote_build.shnow runsmakepkg -s -C --noconfirm(-C/--cleanbuild, added 2026-08-27) – without it, a prior partial/failed attempt at the same pkgver-pkgrel can leave$srcdir(“src/”) already-extracted-and-prepare()-mutated, so a retry’spatchcalls can fail with “already exists” even though nothing is actually wrong (hit this on eurobuild4 withpacman-static’spacman-reproducible-builds.patch, after ruling out the checksum/bash issues above as the cause).-Conly removes the ephemeralsrc/working copy – persistent VCS clone caches and already-downloaded tarballs at the top level of pkgdir are untouched, so this doesn’t reintroduce the slow-refetch problemrepo_build_remote.sh’s no---deletersync push was meant to avoid./data-mount ordering bug, fixed 2026-08-27: the mount-ensure check originally lived only insideremote_build.sh(the agent, which only runs afterrepo_build_remote.shhas alreadymkdir’d andrsync’d intoREMOTE_BUILD_ROOT, i.e. under/data). On a freshly-rebooted board (confirmed with eurobuild4 after the user rebooted it to clear a stuck build)/dataisn’t mounted yet at that point, so themkdiritself failed –Permission denied(the bare unmounted mountpoint dir is root-owned). Fixed by moving the mount-ensure+stale-nbd-retry check intorepo_build_remote.sh, running before its ownmkdir/rsync steps – removed the now-redundant duplicate fromremote_build.sh, single source of truth.- More generally: these boards accumulate real leftover build state across
sessions (the user’s own prior manual work, or an earlier failed automated
attempt) in ways a fresh
rsyncpush doesn’t clean, because VCS source checkouts and$srcdirextractions live entirely on the remote board, never touched by the push/pull steps that only movePKGBUILD/patches/*.pkg.tar.*/logs. If a remote build fails with something that looks like stale state (a file “already exists”, a corrupted git ref, etc) rather than a real build error,sshin and look at what’s actually sitting inREMOTE_BUILD_ROOT/<pkgname>/before assuming it’s a new bug – hit both a corruptedbrotligit clone (fatal: bad object refs/remotes/origin/test_902775910, fixed withrm -rfto force a fresh clone) and the$srcdircase above forpacman-staticon eurobuild4/5/14 in the same session, both pre-existing from before this session touched these boards at all. - Stale local sync db right after publishing a dependency (2026-09-06):
i686-elf-pcc-git(aarch64) failed witherror: target not found: i686-elf-pcc-libseven thoughi686-elf-pcc-libs-git(whichprovides=(i686-elf-pcc-libs)) had just been built+published toarchlinuxabasuccessfully, ~25s earlier. Confirmed viassh build@eurobuild14 "pacman -Ss i686-elf-pcc-libs"– not visible until a manualsudo pacman -Sywas run, after which it resolved immediately (and the built package’s own.PKGINFOdid have the rightprovidesline all along – not a PKGBUILD bug).archlinuxaba’sServer =line points straight atarchlinux32.andreasbaumann.cc(no separate mirror), so this reads as either a CDN/reverse-proxy cache TTL onarchlinuxaba.db.tar.gzin front of that host, or just pacman’s ordinary “sync db isn’t auto-refreshed on every-S” behavior combined with these boards’ sync db legitimately being minutes stale from whenever they last ran-Syon their own. Either way: when a queued build depends on a package published to the same remote-arch earlier in the same session, don’t assume an immediate retry failing on a missing/unresolvable dep means a real problem –sshin and forcesudo pacman -Syon that board first, or just leave a minute or two of gap between publishing a dependency and building something that needs it there. - Same symptom, official mirror this time (2026-11-18):
foo2zjs-nightly(aarch64, eurobuild14) failed twice a day apart on a plain 404 fetchingpoppler-26.10.0-2-aarch64.pkg.tar.xzfrommirror.archlinuxarm.org– not our ownarchlinuxabarepo at all this time.pacman -Si poppleron the board still reported the long-gone26.10.0-2; upstream had moved to26.11.0-1. Same fix,sudo pacman -Syon the board, worked immediately. So this stale-sync-db gotcha isn’t specific to our own repo sitting behind a possible CDN cache – it’s just these boards’ sync dbs going stale generally between sessions. Before blaming a remote-build 404/missing-dependency failure on a real upstream gap,pacman -Syon the board first regardless of which repo the missing file is from. Seememory/foo2zjs-nightly.md’s 2026-11-18 entry for the full incident. - Swap file available at
/data/swapafter mounting NBD/data(per the user, 2026-09-28) – not yet wired intoremote_build.sh/repo_build_remote.shautomatically. Relevant for a heavy build (e.g. anything pulling in Qt6, likeandroid-file-transfer’sqt6-base/qt6-toolsmakedepends) thrashing a weak board even at the per-hostMAKEFLAGS=-j1cap (config/remote_build.conf’sREMOTE_BUILD_MAKEFLAGS_<host>) – symptom confirmed 2026-09-28 on eurobuild14 buildingandroid-file-transfer(aarch64):pingsucceeded but newsshconnections timed out during the banner exchange, while the original build’s already-established ssh session (visible viass -tnp | grep <board-ip>) stayed alive and kept making progress – same class of symptom as the earlier eurobuild5 Qt6 swap-thrash entry above (kswapd0 pegged, SSH getting reset), just short of an outright connection reset this time. Next time a remote board build is dispatched for a Qt/heavy package,swapon /data/swap(after confirming/datais mounted) as a pre-build step should be tried before assuming-j1alone is enough headroom – not yet validated whether this actually resolves the thrashing, only that the user pointed at it as the fix to reach for. - No SSH keepalive on the build connection itself, fixed 2026-10-14:
remote_build_ssh()(remote_build_lib.sh) is the one function used both for quick commands (mkdir, lock checks) and for the actual build invocation (repo_build_remote.sh’sssh ... remote_build.sh), which can run for hours over that single session with long silent stretches during a quiet compile phase. With noServerAlive*option, an idle NAT/firewall timeout during one of those stretches killed the connection outright –Read from remote host <X>: Connection timed out/client_loop: send disconnect: Broken pipe– with no fault on the board itself. Hit this for real right after the user rebooted eurobuild4/5/14 (post-update): all three failed independently, each at a different point in its own build (armv6h died early duringattr, aarch64 got ~1600 lines into openssl first) – consistent with each one’s own idle-timeout clock rather than one shared network blip. Fixed by adding-o ServerAliveInterval=30 -o ServerAliveCountMax=6toremote_build_ssh’s_ssh_opts– applies to every call through that helper, harmless for the short ones. Not yet proven over a multi-hour build (next real test is whatever queued pacman-static/bacula7 ARM rebuild follows this fix). - Power-up/shutdown procedure via europower2.lan, added 2026-11-17: all
four ARM-cluster hosts now sit behind a Shelly Power Strip Gen4 at
europower2.lan, controlled by the toplevelshelly_switch.sh(credentials in~/.config/shelly/credentials, onehost:user/passline per strip –europower1.lan/europower2.lanboth present there). Socket 1 is a single shared power line for all three SBCs (eurobuild4/5/14) – they auto-boot off mains with no WOL needed. Socket 0 iseurobuild3(the NBD server) – that one’s a real PC that stays soft-off on mains-on, so after enabling socket 0 it needs an actual WOL:sudo etherwake -i br0 <mac>run as root on euronuc (the toplevelethersfile holdseurobuild3’s MAC; plain non-sudoetherwakefrom thebuilduser produced no visible error but didn’t actually wake it – always usesudofor this). Power-up sequence:shelly_switch.sh europower2.lan 0 on && shelly_switch.sh europower2.lan 1 on, then thesudo etherwakecall, then pollpingon all four hostnames (eurobuild3 came up fastest; eurobuild14 next; eurobuild4/5 were noticeably slower, ~10min, on the one cold-power-cycle boot observed so far). Confirmed cause for eurobuild4, not NBD-related: its kernel cmdline bakes infsck.mode=force fsck.repair=yes, and its root (mmcblk0p2) is plain unjournaled ext2 – so it runs a fulle2fsckon every boot regardless of shutdown cleanliness, slow on this single-core/423Mi board. The hard power cut did separately leave the boot FAT partition (mmcblk0p1) marked “not properly unmounted” (confirmed viadmesg -Tafter boot), but that’s a minor fsck, not the ~10min driver. Not yet checked whether eurobuild5/14 have the same forced-fsck cmdline. Shutdown should be graceful, not a bare socket-off: becausemount_data.sh/umount_data.shmanage NBD/data(and its swap) entirely outside fstab (see the/data-mount-ordering entry above), a hard power cut viashelly_switch.sh ... offwhile/datais mounted risks a stale server-side NBD client-table entry (the same class of issue as the already-handled “nbd0 already in use” retry case) and leaves any in-flight write underREMOTE_BUILD_ROOTon an unclean NBD volume. Right procedure going forward:sshinto each board still up and run itsumount_data.shfirst, then cut power withshelly_switch.sh europower2.lan <socket> off. Now wired into a script, added 2026-11-18: toplevelarm_cluster_power.sh <start|stop|status>(next toshelly_switch.sh/ethers).startpowers both sockets then WOLs eurobuild3 then pollspingon all four hosts (up to 15min, covers eurobuild4’s forced-fsck boot above).stoprefuses outright if arepo_release.sh/repo_build_staged.sh/repo_build_remote.shis currently running (--forceto override), then per ARM board:umount_data.sh+poweroff, waits for it to actually stop responding to ping, then (only once all three are down) haltseurobuild3the same way, and only cuts Shelly power to a socket once everything on it has confirmed-halted – never a bare power cut while something’s still running.statusprints both socket states + ping for all four hosts. Written and syntax-checked, every underlying piece (umount_data.shcontents, root-not-build SSH access on eurobuild3, Shelly control, WOL) verified individually earlier the same session, but thestart/stopsequencing itself deliberately not live-tested yet – the user didn’t want the live cluster power-cycled just to validate it, so treat the full start/stop path as unproven until a first real run confirms it.startalso live-tested, 2026-11-18, right after thestoptest above: socket power-on + all three SBCs auto-booting worked first try, but thesudo etherwake -i br0 <mac>WOL call for eurobuild3 failed to wake it (waited 10min, nothing) even though the identical command had worked earlier the same session. Root cause:etherwakesends a raw non-IP Ethernet frame (ethertype0x0842) addressed to the target’s own MAC – forwarding that through a switch depends on the switch’s MAC table still holding an entry for a host that’s been fully powered off for a while, which is exactly the kind of thing that ages out inconsistently (hence “sometimes works, sometimes doesn’t”, not a flat failure). Switched towol(packagewol, already installed on euronuc), which instead sends a true UDP broadcast (255.255.255.255:40000) magic packet – a real broadcast gets flooded to every switch port unconditionally, no MAC-table dependency.sudo wol <mac>woke eurobuild3 in ~45s (normal PC POST+boot time) on the first try.arm_cluster_power.shupdated accordingly (sudo wol "$mac",wol_iface/-i br0dropped –woljust uses the kernel’s default route for the broadcast, confirmed that’sbr0anyway viaip route get 255.255.255.255). If WOL to eurobuild3 ever stops working again, don’t reach foretherwake– this is now the known-flaky one. Live-tested for real, 2026-11-18, by the user:stopworked end-to-end – all three ARM boards halted, then (only once they were confirmed down)eurobuild3halted, then both Shelly sockets cut in the right order, confirmed viastatusafterward. One real wrinkle:umount /datareportedtarget is busyon all three boards right after the just-finishedcsshbuild (seememory/cssh.md) –umount_data.shhas no error handling, so it pressed on tonbd-client -d(forcibly disconnecting NBD out from under a filesystem the kernel still considered mounted – not a clean unmount, closer to the hard-power-cut case this whole procedure exists to avoid) and the wrapper’s ownpoweroffran right after regardless. Harmless this time (nothing was actively writing at that moment), user confirmed “looking good”. Likely cause: some leftover reference under/data/INSTALL/<pkg>right after a build completes (an orphanedfakerootprocess, a lingering build shell with cwd there, etc) – not yet root-caused. Worth hardening later (e.g. afuser -k/short retry loop inumount_data.shbefore giving up, or havingarm_cluster_power.shtreat a failedumount_data.shas fatal rather than chaining straight intopoweroff), but not fixed yet – purely informational so far.
Build concurrency: local archs (i486/i686/pentium4/x86_64) share this one euronuc host and must run one at a time; the three remote ARM boards are physically separate single-board machines and are safe to build on in parallel with each other (and with whatever’s running locally). Confirmed by the user 2026-08-27. Don’t launch two local chroot builds concurrently on euronuc (e.g. two
repo_release.sh/repo_build_staged.shinvocations that both reach a localarchlinuxaba-<arch>-build) – not a supported pattern here.repo_build.shnow does this automatically within one invocation (fixed 2026-08-27, same session): its per-arch loop still runs local archs one at a time (blocking, as before), but each remote-arch dispatch is launched in the background immediately (output captured to a per-arch log under amktemp -dtmpdir) and all of them arewait-ed on together after the loop, so they run in parallel with each other and with whatever local chroot sequence is still going. This is the preferred way to get parallelism now – don’t manually split a single package’s build into severalREPO_BUILD_ONLY_ARCH-scopedrepo_release.shinvocations launched concurrently (that was the old workaround, e.g. done forpacman-static/libarchive-staticearlier this same session before this fix landed) unless deliberately re-testing one specific arch in isolation.- Still true, unrelated to the above: two invocations of
repo_build_staged.sh/repo_release.shfor the same package at once (e.g. one from a human, one from an agent, run by mistake) would share one local staging dir (/data/INSTALL/<pkgname>on euronuc) and can still race – this fix doesn’t change that, it just removes the need to do that manually for parallelism.
eurobuild4’s bash (5.1.16) parses
if [[ ... ]] then(no;beforethen) as a hard syntax error; bash 5.3.15 (eurobuild5/14, and this host) accepts it. Confirmed 2026-08-27 viapacman-static’s upstream PKGBUILD, which has exactly this idiom in its_git_patch_level_commitcheck –PKGBUILD: line N: syntax error near unexpected token 'then'on eurobuild4 only, everything else (including local i486, also 32-bit) built fine. Reproduced directly:bash -c 'if [[ 1 != 2 ]] then echo yes; fi'fails on 5.1.16, succeeds on 5.3.15 – a real bash grammar change between those versions, not a chroot/toolchain quirk. Fix is always the same and always safe: add the missing;beforethen– valid on every bash version, no behavior change. If a different package’sPKGBUILDfails to even source on an armv6h remote build with a “syntax error near unexpected token” message, check for this exact idiom (grep -n ']] then$'or similar) before assuming it’s the git-checksum issue above or something board-specific.repo_publish.shcouldn’t publish a package with an epoch inpkgver(fixed 2026-08-27, found viaeclipse-java-bin’s2:4.40-1) – the resulting filename has a literal:before the first/(e.g.eclipse-java-bin-2:4.40-1-x86_64.pkg.tar.zst), which rsync parses ashost:pathremote syntax; since the destination arg is also remote, it fails with “The source and destination cannot both be remote.” Fixed by prefixingpkgfile/sigfilewith./before therepo_rsynccall whenever they don’t already start with/(prepending it to an already-absolute path would wrongly root it at$PWDinstead). Affects any package with an epoch, not just this one.repo_build.sh’s untracked-cleanup could delete a staged build’s own fresh logs (fixed 2026-08-28, found viacssh) – the cleanup at the end of a real build is meant only for the git-trackedarch/tree (per its own header comment), and normally skips a/data/INSTALLstaged copy automatically sincegit statusfails there (“fatal: not a git repository”). That protection was only incidental, though:cssh’s staged dir happened to already be a real git checkout (a leftover stand-alone AUR clone predatingrepo_build_staged.shever touching it), so the cleanup ran there too and deleted that run’s own-prepare.log/-build.log/-package.logright aftermakechrootpkgcreated them (it always passes--logtomakepkgitself, so these are produced unconditionally for every chroot build, independent of anything in/etc/makepkg.conf’sBUILDENV). Fixed by skipping the cleanup outright wheneverpkgdiris under/data/INSTALL, rather than relying on it accidentally not being a git repo.scripts/repo_arch_status.sh <pkgdir>(added 2026-08-28) prints a per-arch table (machine / published version / best-effort “building” flag) for one package – see the script’s own header for exactly what the “building” heuristic can and can’t detect (local: any chroot build for that arch, not necessarily this package; remote: precise, via a livemakepkgprocess’s cwd on the mapped board). Queries the live repo db (curl+bsdtaronos/<arch>/<reponame>.db.tar.gz) for the published-version column, so it reflects reality even across separate sessions, not just this one’s own job logs. Skips any arch with no local build command and no mapped remote host (never actually attempted byrepo_build.sheither – alwaysSKIPPEDthere) – catches a leftover genericarmentry some PKGBUILDs still carry alongside the real armv6h/armv7h/aarch64.scripts/check_aur_feedback.shsilently never fetched a single comment when invoked the normal way – fixed 2026-08-28. The script computedscript_dir=$(dirname "$0")(left relative, e.g.arch/scripts) and thencd’d to${script_dir}/..– fine for the RPC-info/flag part, which only used the now-absolute$(pwd). But the laterpython3 "${script_dir}/aur_comments.py" ...call still used the original relativescript_dirstring, now resolved against the new cwd – doubling the prefix (arch/arch/scripts/aur_comments.py, “No such file or directory”). Every single comment-fetch call failed this way and was swallowed intoaur_feedback_state/aur_comments.err(python3: can't open file ...), socheck_aur_feedback.shalways printed “Nothing new to report” for comments (RPC-based OutOfDate flags were unaffected, since that part never depended onscript_dirafter thecd). Reproduces on any invocation with a relative$0from outsidearch/scripts/– i.e. exactly the normalarch/scripts/check_aur_feedback.shinvocation from the toplevel dir. Caught by chasing why a genuinely new (2026-08-28)pacman-staticAUR comment thread never showed up inFEEDBACK.txtdespite the script reporting success. Fix: resolvescript_dirto an absolute path up front,script_dir=$(cd "$(dirname "$0")" && pwd), before thecd "..". Unknown how long this was broken for – treat any pre-2026-08-28 “nothing new” comment result from this script with suspicion; theaur_feedback_state/*.seenfiles may be missing a real backlog for packages that got few/no other RPC-flag changes to mask the failure. Consider a one-time full re-check across every package now that the fix is in, to surface anything swallowed while it was broken.scripts/repo_arch_diff.sh(added 2026-08-28) is the multi-arch counterpart torepo_diff_local_remote.sh’s single-arch check: for every local PKGBUILD, compares its wishedarch=()set (read from.SRCINFO’sarch =lines – note these are tab-indented underpkgbase, so the awk match must NOT anchor with^, unlike the^pkgbase =/^pkgname =lines it also reads; got this wrong on the first pass, silently making every package look likearch=any) against what’s actually published per arch, across every arch this project can actually build (same local-build-command-or-mapped- remote-host filterrepo_arch_status.shalready uses, so a leftover unbuildablearch=()entry like a strayarmdoesn’t show up as a false gap –pacman-static’s PKGBUILD has exactly this, confirmed harmless). Fetches each buildable arch’s remote package-name set ONCE via the same lightweightrepo_ssh+lsrepo_diff_local_remote.shalready uses (not per-package – 7 ssh round-trips total, not 7×~250), so it stays cheap enough forgenerate_overview.shto call on every run. Feeds the Architectures column there (✅ wished and published, ❌ wished but missing, ➕ published but no longer wished).arch=('any')is resolved to “every buildable arch” before comparison – no special-casing needed beyond that substitution, sincerepo_publish.sh’s own any-package fan-out (upload once toos/x86_64, symlink every other arch’sos/<arch>dir at it) means the per-archlslisting already picks the symlinks up like any other file. Scope matchesrepo_diff_local_remote.sh: thearch/tree only, not theinstall_only_packages/data/INSTALLgap-fillers (those get-in the Architectures column).A
validpgpkeys-related “unknown public key” build failure may just need a plaingpg --recv-keys <fingerprint>as thebuilduser on euronuc (host, outside any chroot) – try that before assuming a deeper chroot-keyring infrastructure fix is needed. Resolved a multi-weekmod_fcgidblocker this way 2026-08-30 (the key wasn’t fetchable fromhkps://keys.openpgp.orgbut was fromhkps://keyserver.ubuntu.com); seememory/mod_fcgid.mdfor the full investigation and the remaining uncertainty about exactly why this works (a host-sidegpg --recv-keysshouldn’t, in principle, reach the ephemeral per-build chroot user’s own keyring, but empirically it did here).scripts/add_maintained.shused to add every vendored-from-AUR package undermaintained/unconditionally – fixed 2026-08-30 after it silently mis-categorizedmod_fcgid/perl-crypt-rijndael(vendored to unblockthruk; neither is actually maintained or co-maintained byAUR_USER_NAME, seememory/mod_fcgid.md’s dated entry for the discovery and the after-the-factgit mvfix). Logic moved into a new sharedscripts/add_aur_package.sh <category> <pkgname>, withadd_maintained.sh/newadd_adapted.shas thin wrappers (exec add_aur_package.sh <category> "$1"). Adding undermaintainednow checks the package’s real AUR HTML page (not the RPC API’sMaintainerfield, which only ever exposes the primary maintainer – AUR renders co-maintainers as “PrimaryName (andreas_baumann)” in the same table cell, so RPC alone would also wrongly refuse a package we’re legitimately a co-maintainer of, e.g. pacman-static) for whetherconfig/global.conf’sAUR_USER_NAMEappears anywhere in the Maintainer table cell, and refuses (not just warns) to add undermaintained/if not, pointing atadd_adapted.shinstead. No check foradapted/owned/private–adaptedis explicitly for packages we don’t maintain upstream, the other two don’t carry the same implication. A fetch failure (network hiccup, or the package genuinely doesn’t exist on AUR) warns and proceeds rather than blocking, sincegit submodule additself will fail loudly right after for a nonexistent package anyway.arch/<category>taxonomy, spelled out plainly after getting it wrong twice in one session (mod_fcgid, perl-crypt-rijndael, 2026-08-30 – see their memory files for the full story):maintained/– git submodule, AUR git remote. We are the AUR maintainer or co-maintainer (able to push there). Added viascripts/add_maintained.sh, which now enforces this.adapted/– plain, directly-tracked files, never a submodule. For a package with a real local diff on top of someone else’s upstream (patches, PKGBUILD edits) – every single entry inarch/adapted/README.mdnames one. Not a submodule because we’re diverging from their history, not tracking it. A package we don’t maintain but also haven’t modified at all does NOT belong here – there’s nothing to diff.owned/– git submodule, AUR git remote, but the upstream software itself is the user’s own project (e.g.cssh) – unlikemaintained/, the actual source isn’t AUR-native, just packaged there.private/– mixed: some are submodules pointing at a private (non-AUR) git remote the user created, specifically to preserve commit history for a package that was later deleted from AUR (gsoap287, notion3); others are plain directly-tracked files, same asadapted/. Which one depends entirely on that package’s own history, not a blanket rule.- Anything else (someone else’s package, zero local modifications, not
installed locally for personal use either – just a dependency we need built
once) – doesn’t belong under
arch/at all. Use theinstall_only_packages+/data/INSTALL/<name>plain-checkout pattern (local-install/prefix) instead.
scripts/install_only_packages– what it is and how it’s read (moved here from the file’s own header comment 2026-08-31, to keep that file a plain scannable list rather than prose): lists packages with noPKGBUILDunderarch/<category>/<name>/– either moved out entirely (upstream absorbed the local patch and thearch/copy was deleted, or it never had one checked in to begin with) – that should still show up inOVERVIEW.mdviagenerate_overview.sh’s/data/INSTALLfallback. One<category>/<name>per line, blank lines and#comments ignored.<name>must exist as/data/INSTALL/<name>/PKGBUILD–generate_overview.shwarns and skips (doesn’t abort) any entry where it doesn’t. An entry for a package that’s since moved back intoarch/<category>/<name>/ PKGBUILDis also silently skipped (normal discovery already covers it), so a stale line is harmless – no need to rush to delete one.- The
local-install/prefix specifically covers plain, unmodified upstream AUR packages – not maintained/adapted/owned by us, just periodic rebuilds of someone else’s PKGBUILD kept out ofarch/on purpose (no local diff to track, soadapted/doesn’t fit either – seememory/mod_fcgid.md’s 2026-08-30 entry for the mistake this convention now prevents). Two origin stories so far: most were installed viayayon the local machine for its own use and rebuilt here so archlinuxaba carries them for the cluster too; a few (e.g.perl-crypt-rijndael) were pulled in purely as AUR dependencies to unblock another package’s build (thruk) and never installed locally at all – both count. (mod_fcgidwas briefly here too, but moved toadapted/once it turned out to need a real local deviation – a vendored PGP key – seememory/mod_fcgid.md.)
- The
A remote ARM board can be up (pingable, SSH-reachable) but still fail
modprobe nbd– check whether it’s just waiting on a reboot after a kernel package upgrade before assuming a deeper problem. Hit oneurobuild142026-08-31 (cssh/perl-crypt-rijndaelARM catch-up after the whole cluster had been down):modprobe: could not insert 'nbd': Unknown symbol in module, root causeuname -r(7.2.0-2) not matching the installedlinux-aarch64package (7.2.2-2) –/lib/modules/only had dirs for6.10.5-3and7.2.2-2, nothing for the actually-running7.2.0-2anymore (a pending upgrade alreadypacman -Syu’d but never booted into). User has authorized rebooting these boards whenever this exact symptom (/datamount failing because of an nbd module mismatch) shows up –ssh build@<host> "sudo reboot", wait for it to come back (ping + a real SSH command succeeding, not just ping – seememory/cssh.md’s 2026-08-31 entry for the wait-loop shape used), thensudo modprobe nbdto confirm before retrying the build.REPO_BUILD_ONLY_ARCHrestricts whatrepo_build.shattempts to build, not whatrepo_publish.shends up publishing. The publish step still globs every*.pkg.tar.*sitting in the pkgdir regardless – for a package with older, already-built files for other archs still present there (e.g. a/data/INSTALL-direct package, which – unlike anarch/-staged one – never gets its old artifacts swept byrepo_build_staged.sh’s defensive pre-clean), those get re-uploaded too. Harmless when the version hasn’t changed (identical bytes, redundant re-publish), but don’t treatREPO_BUILD_ONLY_ARCHas an end-to-end “only touch this one arch” guarantee. Noticed 2026-08-31 rebuildingperl-crypt-rijndael’sarmv7halone –i686/x86_64got silently re-uploaded too.repo_build.shsupports an opt-inMAKEFLAGS="-jN"override for local chroot build parallelism (added 2026-09-04) – but getting this right took two attempts; the first one silently didn’t work. Initial (wrong) understanding: a plainsudo --preserve-env=MAKEFLAGSaround the local build commands would be enough, since the host’s/etc/makepkg.confseemed to play no role (confirmed at the time:systemd-nspawnbinds nothing from/etcinto the chroot). That was incomplete –makechrootpkgitself (not the chroot) callsload_makepkg_config()(from/usr/share/makepkg/util/config.sh) once per invocation, which unconditionally re-sources the HOST’s/etc/makepkg.confon the host side, andMAKEFLAGSis NOT among the vars that function preserves across that reload (PKGDEST/SRCDEST/PACKAGER/etc. are,MAKEFLAGSisn’t – see itsrestore_envvarslist). So our exportedMAKEFLAGSsurvived throughsudo --preserve-envonly to get silently clobbered right back to the host’s own value a few lines later, beforemakechrootpkg’s separate step (the one that actually bakesMAKEFLAGSinto the chroot copy’s/etc/makepkg.conf) ever ran. This was caught, not assumed: a reallinux-lts515pentium4 build was launched withMAKEFLAGS=-j6, left running for ~5 minutes, and only then checked by grepping the actual chroot copy’s baked/etc/makepkg.conf(/var/lib/archbuild/<repo>-<arch>/build/etc/makepkg.conf) – it showedMAKEFLAGS='-j1'(the host’s value), not-j6. Always verify this way (grep the live chroot copy’s own makepkg.conf during a real build) rather than trusting thesudo --preserve-env/printenvchain alone – that chain looked correct in isolation but missed this internal reload.- Fix:
load_makepkg_config()also honors aMAKEPKG_CONFenv var naming an alternate file to source instead of/etc/makepkg.conf. When the caller setsMAKEFLAGS,repo_build.shnow also generates a scratch copy of the host’s/etc/makepkg.confwith just itsMAKEFLAGS=line commented out, symlinks<scratch>.dto the real/etc/makepkg.conf.d(load_makepkg_configalso globs$MAKEPKG_CONF.d/*.conffor e.g.rust.conf/fortran.conf– a relocated path without this symlink would silently lose those), exportsMAKEPKG_CONFpointing at the scratch copy, and preserves bothMAKEFLAGSandMAKEPKG_CONFthrough the localsudocalls. Confirmed working against the real chroot afterward: bakedMAKEFLAGS='-j6'. - This still never touches the real host
/etc/makepkg.conf– the scratch file is generated fresh per invocation and cleaned up via an EXIT trap – so the safety property the user asked for (can’t affect the separate, unrelated Archlinux32 builder daemon also running on this host, since that’s its own process tree with its own environment) still holds. Only the mechanism for reaching that goal changed, not the goal or the constraint. - Only affects the local chroot build path. Remote-board builds
(
repo_build_remote.sh, plainmakepkg -son the board, no chroot) are unaffected either way – recorded with a fixedremoteparallelism label regardless.
- Fix:
repo_build.shnow times every arch it actually builds (local or remote; not REUSED/SKIPPED) and records it via the newscripts/repo_record_build_time.sh <pkgname> <arch> <seconds>, which upserts a<!-- BUILD-TIMES:START/END -->-delimited “Build times (auto-updated)” block near the top ofmemory/<pkgname>.md(added 2026-09-04, at the user’s request, so a future rebuild of the same package can get a rough ETA from the last measured duration instead of an unknown wait – e.g.linux-lts515’s multi-hour x86_64 compile).<pkgname>here is the package directory’s basename, same keygenerate_site.shalready uses to link a package to its memory note (so a split package’s timings land on the shared pkgbase/ dirname note, not any one of its sub-pkgnames). The block only tracks the last measured duration per arch, not a history – intentional, it’s for ETAs, not a build-time log; the existing hand-written prose entries below the block remain the place for that. If the memory note doesn’t exist yet, the script creates a minimal one (just the title + block) rather than skipping – still gets filled in properly by hand afterward per the usual per-package-memory convention.- Each recorded line also carries the parallelism used (added same day):
repo_record_build_time.shtakes an optional 4th arg, rendered as(<when>, <parallelism>).repo_build.shderives it itself per build path – local chroot builds:MAKEFLAGS=-jNif the caller exportedMAKEFLAGS(see thesudo --preserve-env=MAKEFLAGSnote below), elseserial; remote-board builds: a fixedremotelabel, since that board’s own local config governs its parallelism, not anything this project controls. - The block’s closing
<!-- BUILD-TIMES:END -->is followed by a---(Markdown thematic break) before whatever content already followed the title line (e.g. many notes have a- Path: ...bullet right after the title). Confirmed directly againstlowdown: two bullet lists separated only by a blank line get merged into one continuous<ul>per CommonMark’s own list rules – without the---, the auto-generated Build-times list silently swallowed the very next unrelated bullet (e.g.- Path: ...) into the same rendered list, misrepresenting it as a build-time entry. The---is only ever inserted the one time the block is first created; a later in-place update of an existing arch’s line never touches anything outside the START/END markers, so it’s undisturbed on every subsequent rebuild. If a future template/lowdown-invocation change ever alters list-merging behavior, re-check this withlowdown -s -o out.html in.mdon a memory note that has both a Build-times block and a- Path: ...line right after it.
- Each recorded line also carries the parallelism used (added same day):
generate_overview.shandcheck_for_updates_maintained.shwere slow (a full run: 20-30+ min) despite the--only <category>/<pkgname>scoping mechanism already documented ingenerate_overview.sh’s own header – the scoping just wasn’t being used for routine single- package publishes. Fixed/improved 2026-09-10:- Use
--only <category>/<pkgname>after every routine single- package build+publish, not a full run – it skips both slow phases below entirely and takes a few seconds. RequiresOVERVIEW_CACHE.tsvto already exist (any prior full run writes it). A full run is still needed after anything a--onlyrun can’t reconcile: a deleted/renamed package (confirmed removingarch/maintained/qt5-examples, a duplicate submodule, needed one to purge its stale row – seememory/qt5-doc.md). check_for_updates_maintained.sh’s main loop parallelized (bounded batches of 8, POSIX-portable – nowait -n/bashisms, each job in its own subshell writing to its own temp file socds and output can’t race, concatenated back in original order afterward): a full ~126-package nvchecker sweep dropped from several minutes serial to 34s measured clean.generate_overview.sh’s own/data/INSTALLgap-filling loop parallelized the same way: mostly ~2-3s/package serially, but a few entries with large generated PKGBUILDs (php74’sarch-phpbs-generated PKGBUILD, hundreds of variables) cost 50s+ of pure fork/CPU time each and dominate a serial run. Not yet cleanly re-measured – the one test run so far (24m30s, barely better) was contaminated by unrelated concurrent package builds (optdb5.3/cyrus-imapd2) hammering the same 8-core host at the same time; re-measure in isolation before trusting that number.- Real correctness bug found and fixed while testing the above, pre-existing
and unrelated to the parallelization itself: a
--onlyrun on any package outsidemaintained/(i.e.private//adapted//owned/, wherecheck_for_updates_maintained.shlegitimately produces zero output by design) hit a GNU awk 5.4.1 quirk: the merge awk’sFNR==NR {next} {...}idiom, given a truly zero-byte first file argument, silently produces zero output for the second file too – not the “just skip the empty file” behavior every other awk (and other gawk versions) gives. Confirmed directly:awk 'FNR==NR{next}{print}' emptyfile realfileprints nothing on this host, but works the instantemptyfilehas even one blank line. This silently dropped the row for the touched package and fell back to its stale cached entry – caught testing--only private/optdb5.3right after a real rebuild, where the report kept showing the oldpkgrel/arch coverage. Fix: forceupstream_fileto have at least one line (test -s "${upstream_file}" || printf '\n' >"${upstream_file}") right aftercheck_for_updates_maintained.shwrites it – the merge awk’s ownNF < 3guard already discards a blank line harmlessly, so this changes nothing for themaintained/case where the file was never empty to begin with.
- Use
repo_build.sh’s local (euronuc) chroot builds now write a live log into pkgdir as the build happens, 2026-09-10 – requested directly: “It would be nice if I could live review the logfile in a place I am familiar like /data/INSTALL/.” Before this,archbuild/makechrootpkgbuilds inside an ephemeral chroot filesystem and only copy their own<pkgname>-<pkgver>-<pkgrel>- <arch>-build.log(plus-prepare/-packagelogs) back into pkgdir once the whole build finishes – confirmed directly with a real build stuck at 73%/79% progress with zero*.logfiles in pkgdir yet. The remote ARM boards alreadyteetheir own build output live (remote_build.sh), but only onto their own filesystem – that doesn’t reach euronuc’s/data/INSTALL/<pkg>live either, only once the whole remote build finishes and gets rsynced back (confirmed with the user 2026-09-10: the ARM-board case is already fine as-is, since they can just log into the board directly andtail -fthere – only euronuc’s local path needed fixing).- Fix: both local-build call sites in
repo_build.sh(thearch=anybranch and the per-arch loop) now doset -o pipefail; sudo ... "${_cmd}" 2>&1 | tee -- "${_livelog}"instead of a baresudo ... "${_cmd}", where_livelogis a new_live_build_logfile <arch>helper:<pkgname>-<arch>-live-build.log.set -o pipefail(confirmed working in oksh directly:false | truereports exit 1 with it, 0 without) is needed so the real build command’s exit status survives the pipe instead oftee’s own (always-0) status winning –set +o pipefailimmediately after, in both the success and failure branches, so it doesn’t leak into the rest of the script. - Deliberately a different filename from archbuild’s own log, not a reuse
of the same name: the tee’s file handle stays open (appending) for the whole
build, while archbuild’s own copy-back writes its differently-named log
once, synchronously, right before the
sudocommand returns. Reusing the same name would mean two writers racing one path at the exact moment the build finishes. Confirmed both coexist cleanly with a real test build (bochs-gdb-stub, build-only viaREPO_BUILD_ONLY_ARCH=x86_64 repo_build.sh <tmp-pkgdir>, no publish): the live log (172592 bytes) and archbuild’s ownbochs-gdb-stub-2.8-1-x86_64-build.log(146208 bytes) both ended up present and intact, no corruption, no race – they just capture slightly different scope (the live one includes the outer chroot-sync noise the wrapper prints; archbuild’s own is scoped to just the inner makepkg phases). - No cleanup logic needed for the new file:
/data/INSTALL-staged builds already keep every build byproduct around for inspection (repo_build.sh’s own end-of-run cleanup explicitly skips anything under/data/INSTALL, see this file’s ownprivate_repo_publish_design-adjacent notes), and a direct in-placearch/<category>/ <pkg>build’s existing git-status-driven untracked-file cleanup picks the live log up automatically like any other build byproduct.
- Fix: both local-build call sites in
pkgname=extraction via a naivesed -n 's/^pkgname=\(.*\)$/\1/p'breaks on a split package’s array-with-variable-interpolation form, found 2026-09-10 buildinggcc10foraarch64.gcc10’s PKGBUILD haspkgname=("${pkgbase}" "${pkgbase}-libs" "${pkgbase}-fortran")– completely standard, correct split-package syntax, not a PKGBUILD bug. The sed just grabs the raw line text verbatim, without evaluating shell arrays/variables, so it produced a literal(${pkgbase} ${pkgbase}-libs ${pkgbase}-fortran)as the “pkgname” – visible directly as a garbled live-build-log filename oneurobuild14(user caught it: “this looks like a variable substitution bug”). Same fragile pattern existed in 3 places across 2 scripts:remote_build.sh’s own live-teelogfile naming (where the user actually saw it), and bothrepo_build.shhelpers added/ touched this session (_live_build_logfile, the pre-existing_existing_pkg_file). A 4th occurrence, inrepo_arch_status.sh, turned out to already be correct – useful confirmation the fix below matches an already-proven pattern in this codebase, not a new invention.- Fix, all 3 broken spots: prefer
pkgbase=(always a plain scalar by Arch packaging convention for a split package) overpkgname=, falling back topkgname=only when nopkgbase=line exists at all (a non-split PKGBUILD).repo_build.shgot a shared_pkgbase_or_pkgname()helper for both its call sites;remote_build.sh(a separate deployed file, self-contained) got the same two-step fallback inlined. Verified directly againstgcc10’s real PKGBUILD (resolves to plaingcc10, not the garbled array text) before relying on it for a real build retry. - The pkgbase-preference fix above wasn’t actually general enough – hit a
second variant of the same bug on the very next build.
cmake2(built immediately aftergcc10in the same session) has nopkgbase=line at all (not a split package) and a plain-scalar-but-interpolatedpkgname:_pkgname=cmake; pkgname=${_pkgname}2. The pkgbase-preference fallback still hits the same raw-textpkgname=sed for this case, producing a literal${_pkgname}2– visible again as a garbled live-log filename (${_pkgname}2-x86_64-live-build.log), this time caught directly rather than pointed out by the user. - Real fix, superseding the pkgbase-preference patch: no sed pattern
against raw PKGBUILD text generalizes to every variable/array shape
pkgbase=/pkgname= can take. Switched to
makepkg --printsrcinfo | awk -F' = ' '$1 == "pkgbase" { print $2; exit }'–--printsrcinfoalready fully evaluates the PKGBUILD (same tool this project’s own scripts use to regenerate.SRCINFO), so its output’s first line is always the correctly- resolvedpkgbase = <name>, split or scalar, array or plain, interpolated or not. No network access, no source download – confirmed side-effect-free. Verified directly against bothgcc10(gcc10, not the garbled array text) andcmake2(cmake2, not the garbled${_pkgname}2) before trusting it. Applied to bothrepo_build.sh’s shared_pkgbase_or_pkgname()helper andremote_build.sh’s separate inlined copy. - The narrower single-element-array gap (
pkgname=('foo')) this note originally flagged as “worth fixing if it ever causes a real incident” is now moot – the--printsrcinfo-based fix handles that case correctly too, same as every other shape, since it’s real evaluation rather than pattern-matching against specific textual forms.
- Fix, all 3 broken spots: prefer
2026-09-11: remote-board build times now label MAKEFLAGS/serial, not a bare “remote”
repo_record_build_time.sh’s “Build times” block in each package’s memory note
already labeled local chroot builds with their actual parallelism
(MAKEFLAGS=-jN or serial, derived from repo_build.sh’s own MAKEFLAGS env
var), but remote ARM-board builds (eurobuild4/5/14) just got a fixed
remote – no indication of whether that board built serially or with some
-jN. User asked for parity with the local labels.
Fix: scripts/remote_build.sh (the agent script deployed to and run on the
board) now resolves its own effective parallelism the same way makepkg itself
would – MAKEFLAGS from the environment if exported (it currently isn’t, in the
non-interactive ssh session this runs under), else parsed out of the board’s own
/etc/makepkg.conf (last uncommented MAKEFLAGS= line, quotes stripped) – and
echoes it as REMOTE_BUILD_PARALLELISM: MAKEFLAGS=-jN (or ...: serial) to
stdout before starting the build. That line lands in the ssh output
repo_build_remote.sh returns, which repo_build.sh already captures per-arch
into ${_remote_tmpdir}/${arch}.log; on a successful build, repo_build.sh now
greps that line back out and passes "remote, ${label}" (e.g.
remote, MAKEFLAGS=-j2, remote, serial) to repo_record_build_time.sh
instead of the bare remote. Falls back to plain remote if the line isn’t
found (e.g. an older/unpatched remote_build.sh still cached on some board
before its next self-deploy refresh).
No pkgdir files involved – the label rides through stdout/the existing log
capture, not a synced-back sidecar file, so no new stray-file cleanup concern
(cf. feedback_check_stale_artifacts_before_build.md).
2026-09-11: use MAKEFLAGS=-j6 for local euronuc builds going forward
Local chroot builds (x86_64/i686/pentium4/i486 on euronuc) have always
been single-threaded by default (/etc/makepkg.conf’s MAKEFLAGS="-j1"), since
repo_build.sh’s MAKEFLAGS passthrough (added 2026-09-04) is an opt-in the
caller has to set, not a default. Came up when asked whether local archs could
build in parallel with each other – they can’t, safely, as-is: every local
arch’s chroot binds the same host pkgdir as both /startdir and /srcdest
(no per-arch isolation the way the remote-board path already has, where each
board gets its own rsynced copy), so two local archs building at once would race
on the same src/ extraction. Cross-arch parallelism would need real staging
work (isolate each local arch into its own copy, mirroring the remote pattern) –
not done.
The safe, immediate win instead: set MAKEFLAGS=-j6 when invoking
repo_release.sh/repo_build_staged.sh for local builds, so each
(still-sequential) arch build at least uses multiple cores to compile. -j6
(not -j8, euronuc’s full core count) leaves headroom for the separate
Archlinux32 builder daemon that also runs on this same host – same reasoning
repo_build.sh’s own MAKEFLAGS mechanism was built around in the first place
(never touches the real /etc/makepkg.conf, see the 2026-09-04 entry above).
Adopted as a standing convention going forward, not a one-off.
2026-09-11 (same day, follow-up): MAKEFLAGS=-j6 baked in as an actual script default
Per direct follow-up request, the convention above is no longer just a “remember
to pass it” habit – scripts/repo_build.sh now has : "${MAKEFLAGS:=-j6}" +
export MAKEFLAGS right after its REPO_BUILD_ONLY_ARCH default. Still fully
overridable by an explicit caller-set MAKEFLAGS (e.g. MAKEFLAGS="-j1" for
the old serial behavior). The explicit export matters: if a caller never sets
MAKEFLAGS at all (now the common case), := alone would only create a local
shell variable that sudo --preserve-env=MAKEFLAGS further down couldn’t see.
Verified end-to-end against a real chroot build, not just an env-passthrough
test (see this file’s 2026-09-04 MAKEFLAGS entry for why that alone isn’t
trustworthy): ran scripts/repo_build_staged.sh adapted/gconf with no MAKEFLAGS
set, confirmed MAKEFLAGS=-j6 + the scratch MAKEPKG_CONF in the actual
running makechrootpkg/sudo processes’ environment via /proc/<pid>/environ,
and confirmed the auto-recorded build time picked up the new label
(memory/gconf.md: x86_64 41s, MAKEFLAGS=-j6, down from a prior serial run’s
55s).
Gotcha hit while verifying: repo_build_staged.sh copies built .pkg.tar.*
back into the git-tracked arch/<category>/<pkg>/ dir by design (so
repo_release.sh can find them to sign/publish) – calling it directly for a
build-only test, with no follow-up repo_release.sh, leaves those files sitting
in the git tree; cleaned them up manually afterward. Not a bug, just something
to remember when testing the build step in isolation.
2026-09-12: per-board lock to stop concurrent remote builds colliding
Prompted by a real incident this session: git-wd40 and xxdiff-git ended up
both compiling on eurobuild4 at the same time (a single-core, 423MB-RAM board
already fragile running just one build) – missed because checking “is the board
free” via a point-in-time ps/pgrep snapshot is inherently racy, and an
earlier xxdiff-git attempt had also left an orphaned, un-tracked makepkg
process tree running on that same board from way earlier in the session
(parented to init, no longer attached to any local repo_release.sh this
session could see) – a second, independent source of the same collision risk.
Fix: remote_build_lib.sh gained remote_build_lock <host> <label> /
remote_build_unlock <host> – an atomic mkdir-based lock (portable, no
flock dependency on the board) at REMOTE_BUILD_ROOT/.building.lock, holding
a holder file with whatever label the caller gives it. repo_build_remote.sh
now claims the lock right after its reachability ping, before touching the board
at all, and releases it via an EXIT trap covering every path (success,
failure, this script getting killed). A held lock fails the new build fast with
a clear error naming the holder, instead of silently piling on.
Deliberately fails closed, not open: a lock left behind by a crashed/killed
build stays locked until someone manually clears it
(ssh <host> rm -rf <lockdir>, or remote_build_unlock <host>) – auto-expiring
after some timeout was considered and rejected, since a
still-legitimately-running multi-hour build (e.g. git-wd40’s armv7h, 1h46m)
could otherwise have its lock stolen out from under it.
Bug caught during verification, not left in: first version of
remote_build_unlock used rmdir, which fails silently on a non-empty
directory (the lock dir isn’t empty – it holds the holder file) while the
function unconditionally returned 0 regardless. A lock survived its own unlock
call until this was caught by an actual end-to-end test (acquire ->
concurrent-attempt-fails -> unlock -> acquire-again-succeeds) run against a
real board (eurobuild14), not just a syntax check – fixed to rm -rf. Same
lesson as [[makeflags_chroot_parallelism]]: verify remote-board plumbing
against the real board, a shallow check isn’t enough.
2026-09-12: remote boards’ non-interactive PATH missing Perl’s core_perl/vendor_perl/site_perl dirs
git-wd40’s armv7h build failed generating a bundled Perl module’s man page:
pod2man: command not found, Error 127. Not a missing dependency – perl (a
real depends, correctly installed by makepkg’s own --syncdeps) was present,
and pod2man genuinely existed on the board at /usr/bin/core_perl/pod2man.
Root cause: remote_build.sh runs via non-interactive ssh -n, which skips the
login-shell profile scripts (/etc/profile.d/perlbin.sh on Arch) that normally
append /usr/bin/{core_perl,vendor_perl,site_perl} to PATH – confirmed
directly that an interactive shell’s PATH includes these, a non-interactive
ssh session’s doesn’t.
Fixed in remote_build.sh itself: appends the same three dirs to PATH
(guarded by [ -d ... ], mirroring perlbin.sh’s own logic) right after
set -u, before anything else runs. General fix, not git-wd40-specific – any
future package needing a core-Perl tool on these remote boards would have hit
the identical failure.
2026-09-13: local staging lock is per-package, not per-node (by design)
Added repo_build_staged.sh’s own lock (same mkdir-atomic pattern as
remote_build_lock/unlock) after a second repo_build_staged.sh invocation
for git-wd40 silently wiped an in-progress one’s not-yet-copied-back build
output (i486/x86_64/aarch64 lost – see this file’s 2026-09-12 remote-lock
entry for the matching incident on the board side). User asked why this lock is
keyed by package (/data/INSTALL/<pkgname>/.building.lock) rather than by
node (euronuc as a whole), given the remote board lock is host-keyed.
Deliberately different granularity for a reason: the remote lock is per-host
because a single ARM board genuinely can’t run two builds at once regardless of
which package (1 core, 423MB-1.8GB RAM) – that actually is a node lock,
correctly scoped. Euronuc itself (8 cores, real headroom) is not in that
position: different packages’ local chroot builds running concurrently is fine
and has been relied on all session (pacman-static + libarchive-static
together, git-wd40 + setserial together, etc.) – a node-wide local lock
would needlessly serialize that. The actual bug was narrower: two invocations of
the same package sharing the same staging dir. Per-package scoping fixes
exactly that without losing the cross-package parallelism this project depends
on. User confirmed this reasoning after asking about it directly.
Verified end-to-end against a real package (sc): manually planted a fake lock
-> confirmed a real invocation gets rejected with the holder’s label ->
cleared it -> confirmed a real build proceeds and the lock is released on exit
(trap fires even though checkpkg legitimately errored at the very end, since
the rebuild produced byte-identical output to what’s already published –
unrelated to the lock itself).
2026-09-15/16: site “Currently Building” page – persistent build-status files + a fast site-regen path
User wanted a site page showing what’s building right now and where. Chose a
static-status-file + republish-on-interval design over a truly live/dynamic one,
to fit the site’s existing architecture (plain HTML, rsync-published, no
backend) – repo_arch_status.sh already existed for a single package’s
best-effort “is this building” (ps/ssh probes, no persistent state – see its own
header comment), but nothing tracked it globally/cheaply across every package at
once.
Mechanism: scripts/repo_lib.sh gained
repo_build_status_start <pkgname> <arch> <host> /
repo_build_status_end <pkgname> <arch>, writing/removing
../build_status/<pkgname>--<arch>.status (one file per running build, content
"<host>\t<start-iso-utc>\t<pid>"). repo_build.sh calls these at its three
actual build points: the arch=any case, the per-arch local-chroot loop, and
inside the backgrounded subshell that waits on a remote board build. The <pid>
recorded is always a local (euronuc) process – repo_build.sh itself for a
local chroot build, or the backgrounded subshell for a remote one – deliberately
never a remote PID, so a reader can check staleness with a plain local
kill -0, never needing to ssh anywhere (if the local wrapper is gone, the
entry is stale regardless of what the remote board thinks it’s doing).
scripts/generate_site.sh got a new --current-builds fast path: skips the
full OVERVIEW/memory-notes rebuild entirely and only re-renders
site/current-builds.html from build_status/*.status, self-healing (a
kill -0-dead entry gets deleted, not shown). A full (or --only) run also
calls the same render function and adds the page’s nav link on index.html – so
a fast-path-only run never needs to touch index.html for the link to already
be there. New scripts/watch_current_builds.sh [interval-seconds] (default
120s) loops that fast path + publish_site.sh.
Two bugs caught before/while verifying against a real build:
- The markdown table body rows were being assembled with a leading newline
before each row (
"${_cb_rows}\n| ...string growth), which put a blank line between the|---|header separator and the first data row – lowdown (correctly, per CommonMark) then treats that as “table has no body rows” plus a stray trailing paragraph, not a rendering bug in lowdown. Fixed by making each row string end with its own trailing newline instead, so rows concatenate with no gap. Caught by testing against syntheticbuild_status/*.statusentries before ever wiring this into a real build – planting a fake in-progress entry (with a genuinely-alive PID, e.g. asleep &job) and a genuinely-stale one (a PID that can’t exist) is the way to verify this end-to-end without waiting on a real multi-hour build; also confirmed the stale one gets deleted and the empty-state fallback text renders correctly. -
watch_current_builds.sh’s first draft self-terminated the momentbuild_status/was empty at all, including on its very first check right after launch – fine for “watch an already-running build to completion”, wrong for “launch it slightly early, before the next arch has started yet” (exactly what happened launching it forlinux-lts515’s remaining i686/i486/pentium4 while x86_64 was still mid-build under the pre-instrumentation script copy, see below). Fixed by only self-terminating on empty after having seen at least one non-empty check first (_wcb_seen_anyguard) – it now waits quietly, polling, for the first sign of activity, then tracks it through to done.
Editing a script file while a build already has it open, live – confirmed the
WHOLE invocation keeps running the pre-edit version, not just the phase already
in progress: repo_build.sh was edited (this session) while linux-lts515’s
x86_64 phase was already running under it (a long sudo ... | tee pipeline
mid-flight). The edit itself didn’t crash anything – the build kept progressing
normally the whole time, consistent with the classic “safe to upgrade a running
script” property (an already-open file descriptor keeps reading its original
inode’s bytes regardless of what happens to the path afterward, as long as the
edit is a write-to-temp-then-rename rather than a true in-place
truncate+overwrite of the same inode). But that same property means the entire
invocation – not just the phase already in-flight – kept reading from that one
original open fd for its whole lifetime: pentium4/i686/i486, reached hours later
after x86_64 finished, are later reads from the same fd, not a fresh open(),
so they got the pre-edit bytes too. Confirmed directly: build_status/ was
never touched again after this session’s own manual test cleanup, across all
four archs’ real builds (multi-hour each) – no repo_build_status_start/_end
call ever actually ran in this invocation. A watch_current_builds.sh launched
to track the remaining archs consequently ran for 8+ hours never seeing any
activity (its _wcb_seen_any guard correctly never fired, so it also correctly
never self-terminated on a false “done” – but it did have to be killed by hand
once the real build finished, since nothing it was waiting for was ever going to
happen). Lesson: a script edited while any invocation of it is currently
running will not take effect for that invocation at all, no matter how many loop
iterations/phases are still ahead of it – only a fresh invocation (started
after the edit) sees the new code. Don’t edit a script while something has it
open if avoidable; if it can’t be avoided, expect zero effect on the
already-running invocation, not partial effect.
2026-09-16: remote board lock’s own mkdir ran before the /data mount-ensure step – an unmounted board looked exactly like real contention
oksh’s ARM rebuild (all 3 boards, armv6h/armv7h/aarch64) failed
immediately on every attempt with
ERROR: <host> is already building something else -- (empty holder label) –
three separate retries, same result every time, on all three boards
simultaneously. Initially read as real external contention (checked for other
Claude sessions via ListAgents – all offline; checked cron/systemd timers –
nothing relevant; asked the user directly rather than force-clearing a lock that
might be protecting a genuine concurrent build). User confirmed nothing should
be running there.
Actual cause, found by reproducing the exact lock command by hand:
ssh <host> "mkdir '/data/INSTALL/.building.lock' ..." returned
mkdir: cannot create directory ...: No such file or directory – not “File
exists” (which is what a real held lock would produce). mountpoint -q /data
confirmed all three boards currently have /data (the NBD block device)
unmounted, likely from a reboot. repo_build_remote.sh already had a /data
mount-ensure step (added after an earlier, different incident on 2026-08-27 – an
unmounted /data failing the rsync step) – but it ran after the board-lock
acquisition (remote_build_lock, in remote_build_lib.sh), whose own mkdir
is also a write under /data/INSTALL/. remote_build_lock’s error path
doesn’t distinguish “mkdir failed because the lock dir already exists” (real
contention) from “mkdir failed because a whole parent directory is missing”
(unmounted /data) – both just fail the mkdir, and the fallback
cat .../holder fails too either way (empty output either because there’s no
holder file, or because the whole path doesn’t exist), so both cases print the
identical misleading “already building something else – “ message. This meant
any board with /data unmounted would report 100% of its remote build
attempts as “locked by someone else,” never as the real “mount needed” error,
and never succeeding no matter how many times it was retried.
Fix: moved the mount-ensure block in repo_build_remote.sh to run before
the lock acquisition, not after – confirmed directly: a manual
ssh <host> mkdir '/data/INSTALL/.building.lock' ... reproduced the exact
ENOENT before the fix, then a full retry after the fix built and published all
three archs cleanly on the first pass (no more false locked errors).
remote_build_lock itself wasn’t changed – it’s the call-site ordering in
repo_build_remote.sh that was wrong, not the locking primitive.
Lesson for next time this pattern shows up: an “already building something
else” error with a visibly empty holder label is a strong signal it isn’t real
contention – a real lock’s holder file is never empty, remote_build_lock
always writes a non-empty label ("<pkg> (<arch>), pid <n>, <timestamp>") when
it actually succeeds in claiming the lock. Don’t stop at “it’s locked, try
later” for an empty label specifically – reproduce the underlying mkdir/cat
by hand against the board first.
- Recurring pacman-install hang specific to the local 32-bit chroots
(
archlinuxaba-i686/archlinuxaba-pentium4), first hit 2026-09-25 during the [[osl]]/[[cloog]]/gcc47 ARM-chain rebuild: a chroot’s ownpacman -S <deps>step (installing already-downloaded, checksum- verified packages) sometimes hangs indefinitely – observed 55 min, then later 6.5 hours – with the stuckpacmanprocess showing zerorchar/wcharin/proc/<pid>/ioand (when checked) blocked infutex_do_waitper/proc/<pid>/stack. Never seen on the local x86_64 chroot or the remote ARM boards for the exact same packages built the same session. Initially suspected an unrelated concurrentextra-staging-i686-buildjob sharing the/var/cache/archbuild32cache mount, but the hang recurred a third time (ongcc47installingcloog+ppl) well after that other job had already finished – so shared-cache contention is not the sole (or even primary) cause. Root cause still unconfirmed; something about this host’s 32-bit chroots’ package-install path is genuinely flaky, independent of any other running job.- Detection: if a chroot’s build log tail stays static on an
“installing/pacman” line for more than ~5 minutes, check
/proc/<pid>/ioon the actualpacmanprocess (find it viaps aux | grep pacman, not the outermakechrootpkg/sudowrappers) – all-zerorchar/wcharafter several minutes is a hang, not “just slow.” Don’t wait an hour “just in case” before checking. - Recovery:
sudo kill -9the specific stuckpacmanPID(s) (and itssudoparent).repo_build.sh’s per-arch loop treats the resulting build failure like any other and moves on to the next arch automatically – no need to restart the wholerepo_release.shrun. Simply retrying the same arch afterward (a freshrepo_release.shinvocation once the run finishes) has always succeeded cleanly so far. - Do NOT use
pkill -P <backgrounded-nohup-PID>to try to target the stuck child – that PID is the top of the entire oksh/makechrootpkg/pacman process chain (background jobs here are never truly detached from the launching shell), so-Ponly reaches its immediate child, never the actual leaf process. Find and kill the specific stuck PID directly. - Separately noticed once: after killing a stuck build mid-run, that run’s
repo_release.shlog went completely silent afterrepo_build.sh’s own “proceeding to sign/publish the N arch(s) that did succeed” warning – no step 2/3 (sign/publish) output ever appeared, even though the build artifacts were correctly copied back to the tracked pkgdir. Cause not root-caused. Workaround: runscripts/repo_sign.sh+scripts/repo_publish.shby hand directly against the already-built*.pkg.tar.*files sitting in the pkgdir – faster than a full retry and avoids re-triggering the same chroot flakiness. Seememory/cloog.md’s 2026-09-25 entries for the first two occurrences in detail.
- Detection: if a chroot’s build log tail stays static on an
“installing/pacman” line for more than ~5 minutes, check
2026-09-29: LAN mirror (archlinux.lan.brgn.ch) missing extra.db – x86_64 chroot syncs can fail
The archlinuxaba-x86_64-build devtools chroot’s base core/extra/
multilib repos (distinct from archlinuxaba itself, which points straight at
archlinux32.andreasbaumann.cc via
arch/config/pacman.conf.d/archlinuxaba.conf) come from this machine’s own
/etc/pacman.d/mirrorlist, which has exactly one active Server line:
https://archlinux.lan.brgn.ch/archlinux/$repo/os/$arch (a LAN mirror).
Confirmed 2026-09-29 (check_ssl_cert build) that this mirror serves core.db
fine but 404s on extra.db specifically – not transient, failed identically on
a retry minutes later.
Fixed (user-approved – this is a host-level config change, not project-scoped)
by adding a fallback line right after the broken one:
Server = https://geo.mirror.pkgbuild.com/$repo/os/$arch. Had to edit two
files, not one: the host’s own /etc/pacman.d/mirrorlist and
/var/lib/archbuild/archlinuxaba-x86_64/root/etc/pacman.d/mirrorlist – the
chroot keeps its own separate copy from whenever it was last created/synced, not
bind-mounted or live-linked to the host’s file, so a host-only edit alone would
not have fixed the chroot’s own sync. Needed sudo for both (plain
Edit/Write gets EACCES).
If a local x86_64 build ever fails again with
error: failed retrieving file 'extra.db' ... 404 (or any other base-repo db),
check this mirror first before assuming it’s a packaging problem – and
remember the chroot’s mirrorlist needs the same fix applied separately, the
host-level one won’t propagate on its own. Not checked whether
i486/i686/pentium4 chroots have their own separate mirrorlist copies with
the same gap (they didn’t hit this error the one time it was observed, so either
they’re pulling extra from a different working mirror already, or just got
lucky) – worth checking proactively if one of those hits an extra.db 404 too.
repo_build.sh’s awk arch parser silently stops at the FIRSTarch=()stanza in a PKGBUILD, even if it’s an unused empty placeholder, and never reaches a real one later in the file. The awk script (see its own 2026-09-21 comment, added to handle multi-linearch=()for things like icu74/75/76) matches/^arch=\(/, and once that block’s closing)is found, itexits – there’s no assumption in the script that a PKGBUILD might contain more than onearch=()assignment. Thearch-phpbsgenerator (used by the wholephp56-php85family, see [[php74]]/ [[php85]]) emits exactly this: a dead emptyarch=(\n)placeholder early in the file, then the real array (or a dynamicarch=("$CARCH")trick) much later. Result: the parser locks onto the dead empty one and the package silently falls into the “any”/x86_64-only build path, skipping every other arch with no error – confirmed hitting this live with php74’s 2026-10-21 CVE-patch rebuild (repo_release.shlogged=== any (via x86_64) ===and only ever built x86_64, even though the realarch=('x86_64' 'i686' 'pentium4')array was present later in the same file). Old sed-based single-line parser (pre-2026-09-21) didn’t have this problem by accident: it only matched a complete single-linearch=(...)@assignment, so it skipped the dead multi-line empty one and landed on the real single-line array further down – the newer, more-capable multi-line-aware awk parser is what regressed this. Fix applied so far is per-package (delete the dead placeholder stanza in the vendored PKGBUILD, don’t just trust the real array further down is the one that gets used) rather than arepo_build.shfix – revisit if a third arch-phpbs-family package hits this, since fixing the parser itself (e.g. prefer the LAST non-emptyarch=()stanza, or keep scanning instead of exiting on an empty match) would close this for good instead of requiring the same by-hand edit every time.remote_build.shnever runspacman -Syon the remote ARM board before a build – a stale local sync db causes a spurious “target not found” for a package that genuinely was just published. Hit this 2026-10-22 on botheurobuild14(db last synced 02:52 UTC, before that morning’sphp74aarch64 publish at ~07:00 UTC) andeurobuild5(db last synced 2026-10-20 – two days stale).makepkg -s’s own dependency-install step reuses whatever’s cached, it doesn’t force a sync itself. Manual fix each time:ssh <host> sudo -n pacman -Sy. Not yet fixed in the script itself – worth adding apacman -Sy(or at least-Sy archlinuxaba) step toremote_build.shbefore dependency resolution, so this stops being a recurring manual step whenever a board hasn’t built anything in a while.NEW_BUILD_MODE.mdPart D/E implementation, started 2026-10-22 (full design doc still at project toplevel, still DRAFT for the bigger queue/dispatcher Parts A-C): raisingREMOTE_BUILD_MAKEFLAGS_<host>to each board’s realnproc(4 for botheurobuild5/eurobuild14), gated on swap actually being active+persistent first (the root cause of the 2026-09-12 thrashing incident was no swap, not the parallelism itself). Done per-board as each one goes idle, not all at once:eurobuild14: swap was already active from earlier that session; added/data/swap none swap sw 0 0to/etc/fstab(wasn’t there – wouldn’t have survived a reboot), bumpedconfig/remote_build.conf’sREMOTE_BUILD_MAKEFLAGS_eurobuild14to-j4.eurobuild5: still at-j1, no swap active at all (0B, vs eurobuild14’s 2G) – queued to get the identical treatment the moment its current build (php, armv7h) finishes. Don’t touch this board’s swap/fstab/MAKEFLAGS while a build is actively running there.
Real-world test of the fstab fix, same day: the user physically rebooted
eurobuild14shortly after the/etc/fstabswap entry was added, confirming SSH came back fine (so the entry doesn’t block boot – one worry addressed) but swap was NOT active post-reboot (swapon --showempty) and/dataitself wasn’t mounted either. Root cause:/data(the NBD volume) has never been a boot-time mount on these boards at all – it’s brought up by a plain/root/mount_data.shscript, invoked manually or (for an actual build) byrepo_build_remote.sh’s own pre-flight mount-ensure check./etc/fstabprocesses entries before that script ever runs, so the swap line was always going to be a no-op at raw boot time regardless of what it says –/data/swapsimply doesn’t exist yet at that point. Worse than a no-op, confirmed by a second physical reboot: a generated.swapunit for a still-missing device doesn’t just silently skip, it stops the whole system booting (systemd waits on the unit) – the user caught this and had it removed from/etc/fstabimmediately.Corrected fix, per the user’s explicit steer: swap belongs entirely inside
/root/mount_data.sh//root/umount_data.sh– the two scripts that already own/data’s actual lifecycle on each board, not/etc/fstab(wrong layer) and not a separate step bolted ontorepo_build_remote.sh(redundant once the scripts themselves carry it).mount_data.shalready had a commented-out#swapon /swapfileplaceholder from whoever set these boards up originally – replaced withswapon /data/swap 2>/dev/null || trueright after themount /dev/nbd0 /dataline (the|| truematters: a board with no/data/swapfile yet, e.g.eurobuild4/armv6h, must not fail the whole mount over it).umount_data.shgot the mirror image,swapoff /data/swap 2>/dev/null || trueright beforeumount /data. Applied to all three ARM boards (eurobuild4,eurobuild5,eurobuild14) the same day, confirmed by the user this generalizes beyond just the two boards in the MAKEFLAGS-bump scope. No/etc/fstabentry anywhere, on any board. The standaloneswapon -acompanion check briefly added torepo_build_remote.shearlier the same day was reverted once this landed – redundant withmount_data.shitself now doing it, andrepo_build_remote.shalready calls that script via its existing/data-mount-ensure line.Moving a package to the AUR – the two documented procedures, copied verbatim 2026-10-22 from https://buildmaster.archlinux32.org/checker/summary.html (the same page that flags “missing state file” candidates, see
memory/DROPPED_TO_AUR.md’s project doc and [[qt5-feedback]] for a worked example of the second one). Read this page directly before ever improvising a different vendoring approach – a flat PKGBUILD copy intoadapted/was tried first forqt5-feedbackand corrected after the user pointed out these exact instructions existed.Method when an AUR git repo already exists (package was on AUR before, now also has a gitlab.archlinux.org packaging history to merge in):
git clone ssh://aur@aur.archlinux.org/<package> <package> cd <package> git remote add gitlab https://gitlab.archlinux.org/archlinux/packaging/packages/<package>.git git fetch gitlab git checkout main git checkout master git merge main git merge --allow-unrelated-histories main git commit -a -m 'merged with gitlab <package> (existed before in the AUR)' git filter-repo --path-rename <subdir>/: git push origin masterMethod when no AUR git repo existed yet (brand new AUR submission, the common case for a “missing state file” candidate – use
pkgctl, Arch’s own devtools CLI, already installed on this host):pkgctl repo clone --protocol=https <package> cd <package> git branch -m main master git remote remove origin git remote add origin ssh://aur@aur.archlinux.org/<package> makepkg --printsrcinfo > .SRCINFO git add .SRCINFO git commit -a -m 'moved to the AUR, added .SRCINFO' git filter-repo --path-rename <subdir>/: git commit -a -m 'rewrote git history removing subdirs' git push -u origin masterThe
git filter-repo --path-renamesteps only apply if the cloned packaging repo nests files under a subdirectory (some multi-variant gitlab packaging repos do) –qt5-feedback’s didn’t (PKGBUILD sat directly at repo root), so that step was skipped there. Everygit add/git commit/git pushin both procedures is still the user’s step, never mine – perfeedback_never_git_commit_or_push.md, this documented-procedure status doesn’t change that boundary. My part stops at: clone, branch rename, remote reconfig,.SRCINFOregen, and the PKGBUILD edits themselves (arch=() additions, pkgrel bump, Maintainer/Contributor line update) – left as uncommitted working-tree changes for the user to commit and push in whatever slicing they prefer.Rebuilding an already-published package at the SAME pkgver-pkgrel (no version bump) reliably breaks the very next LOCAL x86_64 chroot build that needs it as a dependency, exactly once. Hit this 4-for-4, 2026-10-23, rebuilding thruk’s broken perl-plack dependency chain (recurred 3 more times 2026-10-29, during a perl-5.44-ABI rebuild batch:
perl-test-sharedfork-> brokeperl-test-tcp’s next build,perl-test-name-fromline-> brokeperl-test-time’s next build,perl-test-time-> brokeperl-cookie-baker’s next build – same symptom, same one-retry-and-it’s-fine fix, nosudo rm -feven needed since the chroot’s ownpacmanprompt deletes the corrupted cached file itself before erroring out, so a plain unmodified retry already starts clean. 7-for-7 now across two sessions.) (perl-www-form-urlencoded->perl-http-entity-parser->perl-plack->thruk, allarch=(any), none bumped a version, just re-pressed identical metadata with genuinely different file bytes): every single one of the four builds failed withpacman’s:: File /var/cache/pacman/pkg/<the package I'd JUST republished>... is corrupted (invalid or corrupted package (checksum))the first time something needed to install it as a build dependency, and every one of the four succeeded cleanly on an immediate retry aftersudo rm -fon the stale cached file (+ its.sig). Checked for an obvious explanation and ruled it out: the repo server (archlinux32.andreasbaumann.cc) is plain Apache serving static files directly, no CDN/reverse-proxy cache headers,Last-Modifiedtracks real publish time – so this isn’t a caching-layer staleness issue the way the remote ARM boards’ pacman-sync problem was (see above). Most likely a real race inrepo_publish.sh/repo-additself between the package file upload and the.dbchecksum update becoming visible, but not root-caused with certainty this session – just confirmed the workaround is 100% reliable. How to apply: whenever rebuilding (not version-bumping) a package that something else in the SAME session’s build queue depends on, expect the very next build needing it to hit this once; if it does,sudo rm -f /var/cache/pacman/pkg/<pkg>-<ver>-<arch>.pkg.tar.*{,.sig}and retry – don’t chase it as a real corruption or spend time re-verifying the file (the cached bytes already match the live published copy by checksum, confirmed directly during this investigation).Rebuilding a package at the SAME pkgver-pkgrel means
pacman -Syu(even-Syyu) will report “nothing to do” on any host that already has that exact version installed, no matter how different the actual package file is. Pacman’s upgrade check only compares version strings, never file content/checksums. Confirmed directly 2026-10-23 oneurobuild5: after republishing the thruk/perl-plack chain (see the 2026-10-23 entries above) at identical versions,pacman -Sicorrectly showed the new repo-side versions, but the board already had the SAME versions installed, so a plain-Syuthere (and, per the user, on a separate production armv7h host running the actual thruk/mod_perl service) legitimately shows nothing pending – not evidence the republish failed to take effect, just pacman’s version-only diff model. The actual fix: an explicit named reinstall –pacman -S <pkg1> <pkg2> ...(not a blanket-Syu) – which pacman honors even at a matching version, printingwarning: <pkg>-<ver> is up to date -- reinstallingand pulling the fresh file anyway. Near-miss while investigating this: ran a barepacman -Syyuoneurobuild5to check for “what’s pending” and it surfaced a real, unrelated 95-package/202MB full system upgrade (toolchain packages likeclang/go/compiler-rtincluded) with an interactive[Y/n]prompt –-Syyuis a REAL upgrade command, not a dry-run/"list what’s pending” query. The prompt correctly aborted on EOF (no stdin via thessh -nwrapper) and the board’s pacman lock released cleanly on its own, so nothing was actually applied, but don’t reach for-Syyuon a shared build board again for a mere availability check – usepacman -Sy(sync only) +pacman -Si <pkg>(repo-side version) +pacman -Qi <pkg>(installed version) instead, none of which can trigger an unattended system upgrade.Correction to the “arch=(any) pure-Perl packages are immune to a perl-version bump” assumption made earlier the same session: it’s wrong for at least
perl-www-form-urlencoded, and probably other CPAN distributions that ship an OPTIONAL XS variant alongside a pure-Perl fallback. Confirmed directly oneurobuild5:pacman -Ql perl-www-form-urlencodedshowed its files installed under/usr/lib/perl5/5.42/vendor_perl/...(the version-TIED path, not/usr/share/perl5/vendor_perl/) despitearch=('any')– because the distribution includes anauto/WWW/Form/UrlEncoded/XS/placeholder (an optional compiled accelerator,WWW::Form::UrlEncoded::XS, alongside the::PPpure-Perl fallback actually used), and Module::Build’s vendorlib-vs-vendorarch choice is apparently made on whether the distribution could ever contain arch-specific parts, not on what this particular build actually produced. Practical upshot, confirmed via Arch’s own tooling: after installing/upgradingperlitself, runningpacman -S <pkg>(the explicit-reinstall fix, see above) also relocates the files onto the current perl’s version path, not just refreshing bytes – so the reinstall advice already given for the production host’sWWW::Form::UrlEncodedbug remains correct, just for a fuller reason than “pure version-independent, so the old bytes don’t matter.” Bonus finding: Arch’s ownperlpackage ships a post-transaction hook (“Checking for old perl modules…”) that detects this exact condition and prints the warning"/usr/lib/perl5/<old-ver>" contains data from at least N packages which will NOT be used by the installed perl interpreterwith the EXACTpacman -Qqo '/usr/lib/perl5/<ver>'command to run – this is a well-known, officially-anticipated post-perl-upgrade scenario, not something unique to this project’s packages. How to apply: after any systemperlupgrade on a board this project builds on, runpacman -Qqo '/usr/lib/perl5/<old-version>'(or just watch for the hook’s own warning) and explicitly reinstall every package it lists – don’t assumearch=(any)exempts a package from this, check its actual installed file list (pacman -Ql <pkg> | grep perl5/) if in doubt.Rebuilding+republishing a package to the repo does NOT fix a stale install on the board that built it. Confirmed repeatedly 2026-10-23 working through
eurobuild5’s fullpacman -Qqo '/usr/lib/perl5/5.42'sweep (8 packages initially:cyrus-imapd2,perl-authen-simple,perl-b-utils,perl-crypt-random-tesha2,perl-crypt-rijndael,perl-test-reporter,perl-universal-ref,perl-www-form-urlencoded) – rebuilding+republishing each one (confirmed viatar -tfon the actual.pkg.tar.*that the new build correctly lands under/usr/lib/perl5/5.44/...) still left the board’s OWN installed copy sitting under the dead5.42path until a separate, explicitpacman -S <pkg>reinstall ran on that same board. Don’t assume “I rebuilt it” means “this board now has it” – these are two different actions. Swept clean in the end: all 7 in-scope packages explicitly reinstalled oneurobuild5, confirmed bypacman -Qqodropping to justperl-crypt-random-tesha2(left untouched – found by the sweep but never part of today’s actual task scope, flagged to the user rather than silently fixed).2026-10-25:
scripts/generate_build_queue.shadded – a standalone “build queue” report,../BUILD_QUEUE.md, same convention as OVERVIEW.md/UPDATES.md/STATES.txt. User asked for this directly (“show your build queue” led to a one-off manual answer, then “generate me a script which generates the current build queue as markdown file like the overview, wire it into the HTML site publisher”). Turned outgenerate_site.shalready had equivalent logic inline (render_current_builds, reading../build_status/*.status– written/removed byrepo_lib.sh’srepo_build_status_start/_end, one entry per in-flight (pkgname, arch) build,<host>field already covering euronuc’s own chroot builds AND remote ARM boards alike, sincerepo_build.shcalls the same status functions for both) – so this was a refactor, not a new data source: the per-file parsing + dead-PID self-healing moved out ofgenerate_site.shinto the new standalone script, andrender_current_buildsnow just shells out to it thenconvert_tops the resultingBUILD_QUEUE.md. One source of truth for both the standalonecat BUILD_QUEUE.mdview and the publishedcurrent-builds.htmlsite page, instead of two copies of the same logic that could drift. Verified end-to-end against a real live build (pacman-static/i486, running at the time) before publishing – bothgenerate_site.sh(full run) andgenerate_site.sh --current-builds(the fast pathscripts/watch_current_builds.shpolls) correctly picked up the in-progress row.2026-10-25 (same session):
memory/BUILD_LOG.mdadded – an append-only, newest-first history of every build attempt (success/failure, package/arch/host/duration), plus “Planned Next” and “Recently Completed” sections added toBUILD_QUEUE.md/the “Build Queue” site page (renamed from “Currently Building”). User asked directly: “keep a log of what you build where and … how long … in the memory, and also show it in the build queue, show what has been built, [what] is currently running, what is planned to be run.” Design constraint that shaped this:pacman-static’s 7-arch brotli rebuild (and, moments later, acsshrebuild started mid-session) was actively running viarepo_build.shthroughout this work – editing a shell script file while a long-lived process has it open and is still reading forward through it is a real risk (truncate+ rewrite can corrupt the live interpreter’s view of the file), sorepo_build.shitself was deliberately left untouched. Everything was built instead on two things already safe to edit mid-build:repo_lib.sh(dot-sourced once near the top ofrepo_build.sh, so its functions are already fully parsed into the running process’s memory – editing the file on disk afterward has zero effect on that process, only on future invocations) andrepo_record_build_time.sh(a separate, freshly-exec’d process each time it’s invoked, reads fresh from disk every call).repo_lib.sh’srepo_build_status_end(called byrepo_build.shunconditionally right after every real build attempt, success OR failure – the one place that sees both) now also calls a newrepo_log_build_rowhelper, which prepends a row tomemory/BUILD_LOG.mdusing only data already in the.statusfile it’s about to delete (host, start time) plus the current clock for duration – pessimistically markedFAILED, since status_end alone can’t know the eventual outcome.repo_record_build_time.sh(only ever invoked byrepo_build.shon the success path, immediately after the matchingstatus_endcall, same sequential script) then finds the FIRST (i.e. most recent, since the log is newest-first) row for that exact (pkgname, arch) via a smallawk -F'|'field-match-and-rewrite, and flips it fromFAILEDtoOK, filling inParallelismat the same time (which only that script’s caller context knows). A row that’s never flipped staysFAILED– correctly representing a build that was attempted but didn’t finish successfully. Verified with a throwawaytestpkg/fake.statusfile end-to-end (FAILED row written, then flipped to OK by a simulated success call, second arch’s row left the first one’s untouched) before touching anything real.- Known limitation, accepted deliberately: because the already-
running
pacman-static/csshprocesses have the OLDrepo_lib.shalready loaded, none of THEIR remaining arch completions (this run) get logged – only builds launched by a FRESHrepo_release.sh/repo_build.shinvocation after this edit will. Flagged to the user rather than silently assumed complete. scripts/generate_build_queue.shextended with two more sections beyond the existing “Currently Building”: Planned Next (for each package with at least one currently-running arch, its fullarch=()– read from/data/INSTALL/<pkgname>/PKGBUILD, whichrepo_build_staged.sh/the plain local-installrepo_build.shpath always populates for anything actually mid-build regardless of its originalarch/category – minus archs currently running minus archs with aBUILD_LOG.mdrow finished at/after that package’s own earliest running-arch start time, as an approximate “release start” anchor) and Recently Completed (the newest rows ofBUILD_LOG.md, capped at 15). “Planned Next” is a derived approximation, not a persisted queue manifest –repo_build.shdoesn’t write one, and building one would have meant editing that live file, which this session’s whole design deliberately avoided.- Site page renamed “Currently Building” -> “Build Queue” (title,
index.html link text) to match – same
current-builds.htmlslug/ URL kept, only the human-facing name changed, so nothing already linking to it breaks. memory/BUILD_LOG.mdis a plainmemory/*.mdfile, so it’s automatically picked up bygenerate_site.sh’s existing “convert every memory note” loop the first time any future build actually completes and creates it – no extra wiring needed for that part.
repo_add_remote/repo_remove_remote(repo_lib.sh) hardcodeTMPDIR=/data/tmpon the repo host (euroweb.lan) forrepo-add’s own db-extraction scratch space – that directory did not exist there (fixed 2026-10-26, found via an nrpe 4.2.0 publish).repo_publish.shprintedUPLOADED/ARCHIVEDlines normally (those don’t touch/data/tmp) but everyrepo-add/repo-removecall failed withmktemp: failed to create directory via template '/data/tmp/repo-tools.XXXXXXXXXX': No such file or directory– silently, sincerepo_publish.shdoesn’t treat that as fatal to the whole run (it printsERROR: repo-add failed for ...and moves on to archive/upload the next file). Net effect: the live.db.tar.gzstill listed the old pkgver’s entry while the actual file sitting inos/<arch>/was the old version too (archived before the failed remove, so briefly the db and the live dir did agree on nothing getting removed – but on a version where the remove succeeds and only the add fails, or vice versa, the db and the live directory can end up pointing at completely different, non-existent files). Any future publish on this host should be assumed to risk hitting this if/data/tmphas been wiped (e.g. a reboot without a persistent/data/tmp, or a fresh host). Fixed for now with a one-offssh root@euroweb.lan mkdir -p -m 1777 /data/tmp– not yet made self-healing inrepo_lib.sh(e.g.mkdir -p "$TMPDIR"before therepo-add/repo-removecall) or persisted across reboots (not a systemd-tmpfiles entry). Worth doing either before the next time this silently bites a publish. Always grep arepo_publish.shlog forERROR:/mktempin addition to theSIGNED/UPLOADEDlines a quick skim focuses on – this is a second concrete case (alongside the connection-reset one infeedback_verify_publish_full_log.md) of a publish run that looks clean at a glance but left the live repo inconsistent.Repo host migrated:
euroweb.lan->eurowebnew.lan(2026-10-30), more renames expected.config/repo.conf’sREPOSITORY_HOSTnow points ateurowebnew.lan– a genuinely different machine (VM,/dev/vda+/dev/vdbvirtio disks) from the oldeuroweb.lan(a Raspberry Pi,mmcblk0SD card). The old host is NOT decommissioned: it still answers ateuroweb.lan/archlinux32.andreasbaumann.ccand its Apache now just reverse-proxies every request for that public vhost straight tohttp://192.168.1.48/(eurowebnew.lan) – see/etc/httpd/sites-ssl.d/archlinux32.andreasbaumann.cc.confon the old host. SoREPOSITORY_URL(the public pacman-facing URL,https://archlinux32.andreasbaumann.cc/archlinuxaba/) did NOT need to change and still resolves/works – onlyREPOSITORY_HOST(used for the direct SSH/rsync thatrepo_publish.shetc. do to actually write packages) needed updating, since publishing to the old host would hit a/datathat’s now just an empty mountpoint dir (its external USB SATA disk had disconnected – unmount+disconnect visible in the old host’sdmesg, unrelated hardware flakiness, not fixed – irrelevant now that writes go to the new host instead). Confirmed before switching: the new host’s SSH host key already matched existingknown_hostsentries foreuroweb/euroweb.lan/eurowebnew(no.lan) – same key, so trusted without prompting, just missing the exacteurowebnew.lanstring inknown_hosts(added viassh-keyscan). Also confirmed/data/tmp(1777) already exists on the new host, so the scratch-space bug noted just above this entry won’t recur there without reprovisioning. AllREPOSITORY_HOSTusage was already centralized inconfig/repo.conf(nothing hardcoded inscripts/*.sh), so this was a one-line config change, no script edits needed. When the next rename happens, check this file won’t be stale and updateconfig/repo.confagain – and if a future host ever reuses an old hostname for something unrelated, don’t assume aknown_hostsmatch means “same machine” without checkinglsblk/hostnametoo, the way this entry did.repo_publish.sh <pkgfile...>takes real package files only – never pass a matching.sigas its own argument (2026-10-31, libarchive-static revert). The script already handles each package’s.sigautomatically; it does not expect to receive one as a standalone “pkgfile”. Passing one anyway (e.g. via a glob like*.pkg.tar.xz*, which also matches*.pkg.tar.xz.sig) makes the script process the.sigas if it were itself a package to publish: it archives the real package that was just uploaded moments earlier in the same invocation (now “old” relative to this bogus duplicate target), uploads the.sigintoos/<arch>/as if it were data, then failsrepo-addon it (bsdtar: Error opening archive: Unrecognized archive format/is not a package file, skipping/Package database was not modified due to errors). Net effect: the db ends up with no entry at all for that package/arch (shows “not published” onrepo_arch_status.sh), andos/<arch>/is left holding only a stray orphaned.sig– the real file got swept intoarchive/instead. This reproduced identically across every arch in one call (7 archs x 2 pkgnames), so it is not an occasional flake, it is guaranteed given a.sigin the argument list. Always glob/list just the.pkg.tar.*files (no trailing*that could also match.sig) when callingrepo_publish.shdirectly –repo_release.sh’s own normal flow never hits this since it only ever passes the real package glob itself. Recovery, if already hit: re-runrepo_publish.shwith only the real package file(s) (no.sig) – it republishes clean andrepo_arch_status.shconfirms. Seememory/libarchive-static.md’s 2026-10-31 entry for the full incident.New:
.nvchecker-gate.tomlconvention +WAITstate, implemented 2026-10-31 in response to the libarchive-static incident above. For a package whose.nvchecker.tomldeliberately tracks a project’s own upstream releases directly (not Arch’s official repackage of that same project – e.g. libarchive-static tracking libarchive’s GitHub tags), upstream can legitimately run ahead of Arch’s own package for it. Until now,check_for_updates_maintained.shwould flagUPDas soon as upstream moved, with no way to know Arch itself hadn’t caught up yet – exactly what led to publishing libarchive-static 3.8.11 ahead of Arch’s owncore/libarchive(still 3.8.10 at the time), then having to revert.Fix: an opt-in
.nvchecker-gate.tomlfile (same directory, same nvchecker config shape as.nvchecker.toml) names the real Arch package to wait for, viasource = "archpkg". When present and the normal check would sayUPD, the script also resolves the gate package’s current version (stripping its trailing-pkgrelbefore comparing) and only keepsUPDif upstream’s tracked version is<=that – otherwise it downgrades to a newWAITstate: visible inSTATES.txt/OVERVIEW.md(🟣, its own legend entry and summary-table row), but deliberately distinct fromUPDso routine update cycles don’t act on it.Added
.nvchecker-gate.toml(archpkglibarchive) tomaintained/libarchive-staticonly. Deliberately NOT added tomaintained/pacman-static, even though its.nvchecker.tomlhas the same “tracks the project’s own git tags directly” shape: Arch’spacmanarchpkg version string is VCS-style (7.1.0.r9.g54d9411-3, i.e. commits-since-tag), not a plain release version, and pacman-static’s ownpkgveris already in that same VCS-style form (7.1.0.r9.g54d9411) rather than a clean tag – a directvercmpbetween a clean upstream tag and that commits-since-tag archpkg string isn’t a reliable same-shape comparison the way it is for libarchive-static’s plainX.Y.Zversions, and there’s no live incident motivating it yet. Revisit if a similar ahead-of-Arch publish ever happens for pacman-static’s own version (its bundled deps, tracked vianvchecker-deps.toml, are a separate, already-fine mechanism and unaffected by any of this).Fails open, not closed: if the gate’s own nvchecker lookup errors or returns nothing (confirmed happens transiently, e.g. a 599/connection reset against archlinux.org),
GATE_VERSIONends up empty and the originalUPDstands rather than silently getting stuck – a flaky gate check costs a human a double-check before publishing, not a permanently suppressed real update.repo_arch_status.shfalse “not published” on apkgname=using shell parameter expansion (2026-11-01, perl-test-tcp). Itspkgnamedetection is a plainsedon^pkgname=(.*)$(falling back topkgbase=first, for split packages) – fine for a literal name, butperl-test-tcp’s real upstream PKGBUILD haspkgname=perl-${_dist@L}(bash’s@L-lowercase parameter expansion, not somethingsedcan evaluate). The script captured the literal textperl-${_dist@L}as “the pkgname” and looked that string up in the repo db, found nothing, and reported “not published” for a package that had in fact just published successfully (confirmed independently by downloading the livearchlinuxaba.db.tar.gzdirectly and finding the real entry there). Fix applied: after thepkgbase=/pkgname=sed capture, if the result still contains a literal$(a reliable sign of unevaluated shell syntax), discard it and fall back to the package directory’s own basename – same fallback already used when neitherpkgbase=norpkgname=parses at all, and a safe one here since the directory basename is the real pkgname by convention for every package this script is ever pointed at (botharch/submodules and/data/INSTALL/<pkg>local-install checkouts). Verified: correctly reportspublished (2.22-3)after the fix, no regression against known-good packages (mtop,libarchive-static) re-checked afterward. This is a different root cause from, but the same class of bug as,pkgname_extraction_bug.md’s split-package-array case – any script that parses a PKGBUILD’spkgname=/pkgbase=viasedinstead of real shell evaluation can be fooled by any non-literal RHS, not just arrays. If a future script hits a similar false negative/positive, check whether the PKGBUILD in question uses parameter expansion, command substitution, or any other non-literalpkgname=/pkgbase=value before assuming the script’s own logic (or the actual publish) is at fault.generate_site.sh’sscript_dirwasn’t absolutized before its owncd(2026-11-11). The script computesscript_dir=$(dirname "$0")then immediatelycd "${script_dir}/.."intoarch/. When invoked with a relative path from the toplevel (sh arch/scripts/generate_site.sh, the same calling convention used forgenerate_overview.sh/repo_release.shelsewhere in this project),script_dirstays the relative stringarch/scripts– fine for the initialcd, but the later unconditionalrender_current_builds()call references"${script_dir}/generate_build_queue.sh"after thecd, by which point that same relative string resolves toarch/arch/scripts/generate_build_queue.sh(onearch/too many) relative to the new cwd –No such file or directory, andBUILD_QUEUE.md/current-builds.htmlsilently didn’t get regenerated (the rest of the script still ran and exited 0, easy to miss in a tail of the output). Only shows up when$0is relative; invoking with an absolute path happens not to trigger it. Fixed:script_dir=$(cd "$(dirname "$0")" && pwd) || exit 1– absolutize once up front, same pattern already used correctly elsewhere in this project’s scripts. Verified: re-run producedWrote .../BUILD_QUEUE.mdwith no error, both from the toplevel and from insidearch/.Arch’s
core/openssl-3compat package exists for exactly the openssl-4.x-ENGINE-removal transition (2026-11-11). When a chroot’s systemopenssljumps to the new 4.x major series (which dropped the legacy ENGINE API), checkpacman -Si openssl-3/ whether it’s already installed (it may already be pulled in as another package’s dependency, e.g.pythonon the x86_64 chroot here) before writing any custom side-by-side compat package from scratch – Arch’s owncore/openssl-3(3.5.9-2 as of this writing, “Version 3.5 LTS”) is a complete, correctly-built, officially-maintained side-by-side dev package (/usr/lib/openssl-3/{lib,pkgconfig,cmake},/usr/include/openssl-3/) – far simpler and better-maintained than rolling our own. See [[linux-lts515]]’s 2026-11-11/12 entry for the full investigation (a customopenssl-3.6package was actually built and test-verified working before this was discovered). Point a consumer’sPKG_CONFIG_PATHat/usr/lib/openssl-3/pkgconfig(conditionally, only where the chroot’s own openssl has actually made the jump – checked viapacman -Q opensslper arch, see that same memory entry for the full per-arch table as of 2026-11-12) rather than assuming every arch needs it.add_aur_package.sh’s AUR-maintainer check uses the wrong page for a split package whose pkgbase differs from all its pkgnames (2026-11-12,pidgin). The check fetcheshttps://aur.archlinux.org/packages/<pkgname-arg>and greps its Maintainer cell – correct when pkgname and pkgbase are the same string, butpidgin’s real pkgbase (pkgname=('libpurple' 'finch')) has no package literally namedpidginon AUR at all; that name belongs to a completely unrelated package (pidgin-gtkui, different maintainer). Runningscripts/add_maintained.sh pidginreported “AUR shows you as neither maintainer nor co-maintainer” even though the user genuinely is the maintainer of the real pkgbase (verified via RPC:rpc/v5/info?arg=libpurple->Maintainer: andreas_baumann,PackageBase: pidgin). Worked around by hand (verify via RPC against a real pkgname first, then run the script’s owngit submodule add -b master ssh://aur@aur.archlinux.org/<pkgbase>.git <category>/<pkgbase>directly, skipping the flawed check) rather than fixing the script – not done here, out of scope for that session. Real fix, if this recurs often enough to be worth it: resolve the pkgbase’s actual maintainer via the RPC API against one of its real pkgnames (orPackageBasefield) instead of assuming pkgname == pkgbase.UPDATES.mdis newest-entry-first – new dated sections get prepended at the top, never appended to the bottom. Caught 2026-11-19: four entries from the same day got appended withcat >> UPDATES.md(no problem technically, but it buried them after the file’s oldest 2026-07-02 entry, breaking the newest-first convention the rest of the file already followed – should have been obvious from the file’s own structure, not something that needed telling twice). Fixed by moving that block to the top (with its own# Updates --- 2026-11-19 (...)header, matching every other dated section) and adding an explicit ordering-convention note as the very first paragraph of the file (a blockquote) so it’s visible without having to infer it from existing structure.scripts/generate_site.shnow auto-builds a table of contents forUPDATES.html(inject_toc(), called right afterUPDATES.md’sconvert_top) – derived from the actual<h1 id="...">headings lowdown already rendered (grep+sed on the HTML output, not from the.mdsource), inserted right after<div id="content">, before the ordering-convention blockquote’s own content. Can’t drift out of sync with the real anchors since it’s built from them directly. Added because the file passed 3900+ lines / 88 entries and had no other way to jump to a specific past entry.inject_tocis written generically (takes any HTML file with<h1 id>headings) in case another toplevel doc grows long enough to need the same treatment later.
eurobuild3set to power-on-after-mains-loss in its own BIOS, 2026-11-19 –arm_cluster_power.sh startno longer sends it a WOL packet. Previously neededsudo wol <mac>after powering socket 0 (eurobuild3 stayed soft-off on mains-on, unlike the three ARM SBCs which already auto-boot) – see thewol-over-etherwakeentry above. User changed the BIOS setting so it now auto-boots the same way the SBCs do; removed the WOL step (and the now-unusedethers_filelookup) fromdo_start()entirely rather than leaving dead code.stop/statusare unaffected. First real stop/start cycle, same session:stophitumount: /data: target is busyoneurobuild14specifically (the other two unmounted cleanly) but the script proceeded topoweroffanyway and all four hosts confirmed down afterward – watch for a stale NBD client-table entry oneurobuild14’s next mount attempt (same class of issue as the already-documented “nbd0 already in use” retry case) given/datawasn’t cleanly unmounted there before the power cut.Session-local preference, 2026-11-19: skip
eurobuild4/armv6hfor new build requests “for now, too slow” – not a permanent policy change to any PKGBUILD’sarch=(), just don’t volunteerarmv6hbuilds (or passREPO_BUILD_ONLY_ARCHexcluding it) unless the user asks for that arch specifically. Revisit if the user lifts this later in the session or a future one.Session-local build-scope preference, 2026-11-19/20: only
x86_64,aarch64,armv7h. User: “can we focus to x86_64, aarch64 and armv7 builds for now” + “the rest I don’t need currently, it’s fine to have them in arch, but you don’t have to build and publish them”. Soi686/pentium4/i486/armv6hstay in each PKGBUILD’sarch=()untouched (no PKGBUILD edits, noarch=()narrowing) – just passREPO_BUILD_ONLY_ARCH="x86_64 aarch64 armv7h"on build invocations rather than letting a full run attempt everything. Supersedes/extends the earlier same-session “skip eurobuild4/armv6h, too slow” note.A global
CPPFLAGS/LDFLAGSoverride in a PKGBUILD’sbuild()is the wrong tool for “make one extension link a different library version”, and it can silently fail to even take effect. Tried 2026-11-20 onphp74: its IMAP extension failed to link because the AURc-clientlibrary callsTLSv1_{client,server}_method(), dropped from Arch’sopenssl4.1.0 (full story inmemory/c-client.md). Reached forexport CPPFLAGS+=" -I/usr/include/openssl-1.0"/LDFLAGS+=" -L/usr/lib/openssl-1.0"as a quick fix. Two independent problems, both caught only because the user asked “is this just affecting c-client for the IMAP module or anything else?”:- Scope:
php74has seven OpenSSL consumers (--with-openssl,--with-curl,--with-snmp,--with-ldap --with-ldap-sasl,--with-pgsql,--with-mysqli/mysqlnd,--with-imap). A global flag redirects all of them.ext/opensslbuilt against 1.0.2 would lose TLS 1.3 entirely (that arrived in 1.1.1) – a functional and security regression inside a release whose entire purpose was security patches – andphp74-curl(systemlibcurl->libssl.so.4) coexisting withphp74-openssl->libssl.so.1.0.0means two OpenSSL runtimes in one process. Ouropenssl-1.0does carry the Debian versioned-symbols patch that makes that survivable, but silently depending on it is not acceptable. - It didn’t even work:
configureemitted its own-L/usr/lib(from--with-imap=shared,/usr) ahead of the appendedLDFLAGS, so-lsslstill resolved to the system library and the build failed with the identical error. Confirmed by reading the actual failing link line inconfig.lograther than trusting that the flag “should” apply. Rule: fix a library-level symbol problem in the library’s own package (here: patchc-client, whose.soleaves the symbols undefined for its consumers to resolve), not by bending the consumer’s global flags – and when a flag-based workaround is genuinely right, verify it reached the actual compile/link invocation inconfig.log, since autoconf freely puts its own-L/-Iahead of yours.
- Scope:
A silent remote build is not evidence of a hang – php74 needs ~20-40 min of pure PKGBUILD evaluation on an ARM board before makepkg prints its first line. Killed two otherwise-fine
php74ARM builds on 2026-11-20 after ~14 min of a zero-byte build log, calling them hung on the strength ofwchan == pipe_readplus no output. Both were working. The correct liveness test, which settles it in seconds:P=$(pgrep -f 'makepkg -s -C' | head -1) awk '{print $14+$15}' /proc/$P/stat # CPU ticks -- sample twice readlink /proc/$P/fd/0; readlink /proc/$P/fd/63If CPU ticks climb (php74: ~212 ticks / 8s, ~26%) and the fd 0 / fd 63 pipe inodes change between samples, it is alive: bash is creating and tearing down process substitutions in a tight loop, and a
pipe_readsample is just catching it mid-churn. A genuine deadlock shows static CPU and a stable pipe inode with no other holder (check with a/proc/*/fdsweep for that inode).- Why it is this slow:
makepkgre-sources the PKGBUILD once per subpackage, and php74 has 58 split subpackages x ~1700 lines. Measured on euronuc:makepkg --printsrcinfo= 1m56s, of whichsys1m16s – fork/exec-bound, not compute-bound. On the boards that is compounded by the pkgdir living on/data, an NBD network block device served by eurobuild3, so every fork and re-read crosses the network. Hence ~26% CPU rather than pegged. - Recorded durations for this package (
memory/php74.md’s build-times block): armv7h 3h57m, aarch64 1h12m. Check that block for an ETA before judging any build “stuck” – seefeedback_dont_overpoll_builds/build_time_tracking.
- Why it is this slow:
.SRCINFOtab-indents every field except the leadingpkgbaseline, which silently broke pkgver/pkgrel extraction in every remote build log this project has ever produced.awk -F' = ' '$1 == "pkgver"'never matches, because$1is"\tpkgver".pkgbaseis the only unindented line, which is exactly why the pkgname half always resolved correctly and the version half always came outunknown– 71*-unknown-unknown-*-build.logfiles on disk across trickle, yay, php, check_ssl_cert, brave-origin-bin and others. Fixed 2026-11-20 inremote_build.shandrepo_build_remote.shby stripping leading whitespace (sub(/^[ \t]+/, "", $1)) before comparing. Verified live. Any future.SRCINFOparsing must strip that indentation.- Same change moved the pkgbase/pkgver/pkgrel resolution to the local
side (
repo_build_remote.shpassesREMOTE_BUILD_PKGBASE/PKGVER/ PKGRELthrough on the ssh command line), so the boards no longer pay the 2-minute--printsrcinfocost at all. The on-board path is now only a fallback: bounded bytimeout 120, warns instead of being silenced by2>/dev/null, andtr -cd 'A-Za-z0-9._+-'-sanitized so a weird value can’t break theteepath and (withpipefailon) mask a successful build as a FAILURE – the 2026-09-28openssl-1.1failure mode.
- Same change moved the pkgbase/pkgver/pkgrel resolution to the local
side (
2026-11-24: arm_cluster_power.sh start does not restore the NBD /data mount that stop tears down
Two findings from an ffmpeg7.1 aarch64 rebuild that failed instantly after a
cluster stop/start cycle. Both cost real debugging time, and the error you
actually see points nowhere near the cause.
1. /data on the ARM boards is an NBD mount, and nothing remounts it on
boot. /root/mount_data.sh on each board does
modprobe nbd; nbd-client -N $(hostname) eurobuild3.lan /dev/nbd0;
mount /dev/nbd0 /data; swapon /data/swap, and /root/umount_data.sh reverses
it. arm_cluster_power.sh stop runs umount_data.sh on every board; its
start path only powers the sockets and waits for ping – it never runs
mount_data.sh. There is no fstab entry and nbd.service/nbd@.service are
disabled, so after any stop/start the boards come up with a bare, empty
/data on the SD card and no /data/INSTALL – i.e. no staging tree, so
every remote build fails. Fix for now: run /root/mount_data.sh on each board
after arm_cluster_power.sh start (eurobuild4/5 mounted cleanly this way,
63G /dev/nbd0). The script itself should be fixed to call it in start,
mirroring what stop undoes.
2. The symptom is a phantom board lock, which is actively misleading.
With /data/INSTALL missing, remote_build_lock’s
mkdir /data/INSTALL/.building.lock fails with ENOENT – a missing parent,
not a held lock – and because the lock deliberately fails closed it reports:
ERROR: eurobuild14 is already building something else -- .
Not starting a second build on the same board. ... clear it with:
ssh eurobuild14 rmdir /data/INSTALL/.building.lock
Tell-tale: the holder name is empty (-- .), because there is no
holder file to read. A real lock always names a package and pid. So on that
error, check ls -d /data/INSTALL and mount | grep /data before believing
the “already building” story or following its advice to rmdir a lock that
does not exist. Worth making remote_build_lock distinguish
“parent missing” from “lock held”.
3. A pacman -Syu on a board that upgrades linux-aarch64 blocks NBD until
reboot. After the upgrade, eurobuild14 ran 7.3.4-3-aarch64-ARCH while only
/usr/lib/modules/7.3.6-1-aarch64-ARCH existed – the running kernel’s module
tree was gone, so modprobe nbd could not load, /dev/nbd0 never appeared,
and nbd-client died with Couldn't resolve the nbd netlink family even
though the server side negotiated fine (export eurobuild14 is configured on
eurobuild3 and nbd-server was running). So: after upgrading a board’s
kernel, reboot it before expecting any remote build to work.
2026-11-26: AUR feedback checks – unreachable IPv6, connection resets, and a pinned-comment bug that hides unanswered threads
Three separate problems, found while re-running check_aur_feedback.sh
after a run where every package reported RPC request failed.
1. IPv6 to AUR is unreachable from euronuc (the total-failure cause)
aur.archlinux.org publishes both an A (209.126.35.78) and an AAAA
(2604:cac0:a104:d::2) record. This host has no working IPv6 route to
it: Connecting to ...|2604:cac0:a104:d::2|:443... failed: Network is
unreachable, 8/8 probes. Whenever wget picked the v6 address the
request died instantly. Over IPv4 the same probe was 6/6 fine. That is
what made a whole sweep look like “AUR is down” when AUR was healthy.
Fixed by forcing -4 in the shared AUR_WGET_OPTS in
check_aur_feedback.sh (exported, and defaulted again inside
aur_comments.sh so a standalone run gets it too). Don’t “fix” a
blanket AUR failure by waiting for AUR – check whether the request even
left the host on a usable address first.
2. The residual failures are Connection reset by peer, not timeouts
With v4 forced, ~33 of ~230 packages still failed; aur_comments.err had
634 Connection reset lines. That is AUR shedding load, and a reset
has to be waited out, not retried fast. Also, every failing package was
fine when queried individually seconds later (HTTP 200), confirming it is
load-related and not a bad pkgname.
Raised to --tries=6 --waitretry=20 --timeout=25, added a script-level
second and third attempt with a 30s pause around both the RPC call and
the comment-page fetch, and raised the inter-package delay from a
hardcoded 0.5 to AUR_FEEDBACK_SLEEP (default 5). The important part is
not the pacing but that an RPC miss used to continue, skipping the
package’s comments entirely – so one blip silently produced a gap in
FEEDBACK.txt that nothing ever reconstructed. Re-running at
AUR_FEEDBACK_SLEEP=6 gave 0 errors with only 3 recovered retries.
3. Pinned comments break the ANSWERED/REOPENED heuristic (still OPEN)
check_aur_feedback.sh decides “you replied last” with
latest_line=$(echo "${comments_out}" | head -1), relying on
aur_comments.sh listing newest-first. AUR renders a “Pinned Comments”
section above the chronological list, and aur_comments.sh scrapes
//*[@class='comment-header']/@id in document order – so a pinned
comment comes out first, regardless of its date.
Consequence: for any package where the maintainer’s own comment is
pinned, the thread reads as permanently ANSWERED and can never report
REOPENED. Live example: freeimage has andreas_baumann’s
2026-03-08 CVE warning pinned, so aur_feedback_state/freeimage.answered
sat at 2026-03-08 09:19 while JPT48’s unanswered 2026-11-22 comment
was the real newest one. Confirmed on the live page: document order is
comment-1062271 (pinned, 2026-03-08) before comment-1091492
(2026-11-22), and the HTML contains a Pinned Comments heading with two
class="comments package-comments" blocks.
FIXED once the sweep finished (editing a running oksh script mid-run
is unsafe, hence the delay): latest_line now sorts by the TSV’s date
field before taking the head –
latest_line=$(echo "${comments_out}" | sort -t"$(printf '\t')" -k2,2r | head -1)
Verified both ways: for freeimage the old head -1 returned
2026-03-08 andreas_baumann (pinned) and the new one returns
2026-11-22 JPT48 (real newest); for meh-git, which has no pinned
comment, both return the same line, so the change is a no-op where there
was nothing wrong.
Cleanup still pending: 62 of 266 *.answered state files currently
hold a date, and any of those whose date came from a pinned maintainer
comment is stale. Rather than re-fetching 62 pages to audit them, just let
the next full sweep recompute them – with the fix in place a mislabelled
thread now flips to "" and prints REOPENED, which is exactly the
signal that was missing. Expect a batch of REOPENED lines on the next run
and read them as “this was always unanswered”, not as new activity.
(freeimage is a certainty: its state still reads 2026-03-08 09:19.)
2026-11-26: OVERVIEW.md’s Architectures column tracks presence, NOT version – a partial-arch publish looks complete
Hit while publishing meh-git for x86_64 only on request. Afterwards
the overview row read:
| maintained/meh-git | meh-git | 0.3.76.g7c84708-1 | - | SAME-VCS | - | ✅i686 ✅pentium4 ✅x86_64 |
which reads as “0.3.76 on all three arches”. It wasn’t: i686 and pentium4
were still on 0.3.66.g8bfae40-1. repo_arch_status.sh showed the truth:
i686 published (0.3.66.g8bfae40-1)
x86_64 published (0.3.76.g7c84708-1)
pentium4 published (0.3.66.g8bfae40-1)
Why: archcell() in generate_overview.sh only asks whether an arch
is in the published set – its own comment says “wished … and
published”. There is no version comparison per arch, so an arch sitting on
an older published version is indistinguishable from one on the current
one. The Version column shows the local PKGBUILD’s version, so the two
columns side by side imply something neither one actually checked.
The ❌ marker only means “wished but not published at all”, which is why a version-behind arch can never show as a gap.
Consequence: after any deliberate REPO_BUILD_ONLY_ARCH publish, the
dashboard looks finished. Use repo_arch_status.sh <pkgdir> to see
per-arch versions – do not read the overview’s green checks as “all
arches current”. Same caution applies to the historical partial publishes
in this tree (e.g. pacman-static’s repeated “Intel archs now, ARM later”
rounds – those rows looked complete the whole time they were split).
Not fixed – it needs repo_arch_diff.sh to carry a per-arch version
and archcell() to render a distinct marker (e.g. a warning token with
the lagging version) for “published but behind”. Worth doing, since the
split-publish pattern is routine here, but it changes the dashboard’s
data model rather than a one-line render, so it wants a deliberate
decision rather than a drive-by edit.
2026-11-28: STATES.txt reported OK for packages nvchecker never actually checked
check_for_updates_maintained.sh had a silent-false-OK path that hid
three real updates for 12 days. When a package’s .nvchecker.toml uses
source = "manual", nvchecker’s json logger emits the literal string
"None" as the version (not a null, which the existing
jq 'select(.version != null)' filter would have dropped). vercmp None
6.7.5 is -1, i.e. “None is older”, so DIFF -gt 0 was false and
STATE stayed at its OK initialiser. Result: a line like
OK maintained/kgamma 6.7.5 None, which reads as “checked, up to date”
when nothing was ever checked. The same path swallowed genuine nvchecker
failures (network, upstream API change), where CHECK_VERSION comes back
empty – vercmp "" <any> is also -1.
13 packages were in this state: kgamma, kwin-x11, wacomtablet,
colord-kde, kde-development-environment-meta, and the 8 deliberately
frozen KF5 ones (kinit5, kholidays5, plasma-framework5,
kio5-extras, prison5, kirigami2, kdoctools5, purpose5). For the
KF5 group it was harmless (5.116.0 is the last KF5 release, nothing newer
exists). For the three Plasma-6.7 packages it was not: Plasma 6.7.6
had been out since ~2026-11-16 and kwin-x11/kgamma/wacomtablet
tarballs all exist in it – the 6.7 branch is still getting point
releases even though 6.8 dropped the X11 session these packages serve.
What actually caught it was check_repology_feed.sh
(REPOLOGY outdated kgamma 6.7.5 is outdated by 6.7.6), which is the
second time that cross-check has caught a bug in our own version
reporting (first: basic256’s missing prefix = "v", 2026-11-14).
Fixed (user’s choice of the three options offered): an empty or
"None" CHECK_VERSION now reports ? – the same token already used
for a package with no .nvchecker.toml at all – instead of OK. The
if test -f ".nvchecker.toml" block was split so the version fetch and
the version comparison are separate steps, which also removed the old
else STATE="? " branch (one nesting level less, one place that sets
? instead of two). Deliberately reuses ? rather than adding a MAN
token, so generate_overview.sh’s upstream_icon() mapping and its
legend needed no change at all. Verified all four paths by hand with
--only: manual source -> ?, normal source -> OK/UPD, no
.nvchecker.toml -> ?, and libarchive-static’s .nvchecker-gate.toml
WAIT path still intact.
Standing consequence: ? is not “nothing to do here”. A ? row can
mean “no version tracking configured” (most of them), but it can equally
mean “tracked manually, go look yourself” or “the checker broke today”.
For the source = "manual" ones the cheap manual check is the upstream
index directly, e.g. for the Plasma packages:
curl -s https://download.kde.org/stable/plasma/ | grep -oE '6\.[0-9]+\.[0-9]+/' | sort -uV | tail.
scripts/check_repology_feed.sh covers whatever subset Repology
attributes to this maintainer and should be run every cycle for exactly
this reason – it is the only automated check that sees these packages.
2026-11-28: arm_cluster_power.sh start does not mount /data – every cold start needs a manual mount_data.sh
arm_cluster_power.sh is asymmetric, and it blocks ARM builds right
after a power cycle. do_stop() explicitly runs
sudo /root/umount_data.sh on each board before halting it, but
do_start() only flips the two Shelly sockets and waits for all four hosts
to answer ping – it never remounts anything. Nothing on the boards mounts
the NBD device at boot either (no fstab entry, no unit), so after any
stop/start cycle all three boards come up with /data missing and
df /data silently reporting the SD-card rootfs (/dev/mmcblk0p2) instead.
/data/INSTALL doesn’t exist at that point, so a build dispatched to the
board would fail – or worse, land its lock dir on the SD card, which is
exactly the confusing already building something else -- . symptom from
the 2026-11-25 libarchive-static armv6h story below.
So: after arm_cluster_power.sh start, always check df -h /data on each
board and run sudo /root/mount_data.sh where it’s missing. Verified
2026-11-28: all three boards (eurobuild4/5/14) needed it after a cold start;
eurobuild5 and eurobuild14 mounted first try
(Negotiation: ..size = 65536MB / Connected /dev/nbd0).
eurobuild4 reproduced the known nbd-client failure on the first attempt
(Error: Failed to setup device, check dmesg then
mount: /data: can't read superblock on /dev/nbd0) – same thing as the
2026-11-25 armv6h incident. The recovery is reliable and takes seconds:
sudo nbd-client -d /dev/nbd0, pause a moment, then
sudo /root/mount_data.sh again; it connected cleanly on the retry. Worth
doing eurobuild4 first and expecting one retry, rather than treating it as a
new problem each time. Check /data/INSTALL/.building.lock on each board at
the same time – a stale lock from a previously killed run never expires on
its own.
Both sides fixed, same day, at the user’s request – “make start mount /data too, but make it tolerant, so that the boards also come up when eurobuild3/nbd is not available”:
arm_cluster_power.sh’sdo_start()now mirrorsdo_stop(): after the ping wait it mounts/dataon each board. The eurobuild3 wait was split out of the main wait and made non-fatal – the old code waited for all four hosts together andexit 1’d on timeout, which is precisely the intolerance the user ruled out. Now the ARM boards get the 900s budget and are still required, while eurobuild3 gets its own short 120s wait (mains has been on long enough for the boards to boot by then, so if it isn’t answering it isn’t going to) plus a/dev/tcpprobe of port 10809, since a pingable host can have nonbd-serverrunning. Either miss prints warnings naming the fix and returns 0 – “ARM boards are up; /data not mounted.” New helpers:nbd_listening,data_mounted_on,mount_data_on./root/mount_data.shon all three boards was replaced with a version that refuses up front rather than failing halfway: it short-circuits if/datais already a mountpoint, checks ping and the nbd port before touching/dev/nbd0, retries once vianbd-client -don failure, detaches the device if it still can’t mount, and verifiesmountpoint -q /databefore reporting success. The old one rannbd-clientandmountunconditionally and exited 0 regardless – the direct cause of the silent-SD-card-fallback trap described above./bin/shon these boards is bash and there is nonc, so the port probe uses/dev/tcp. The originals are preserved as/root/mount_data.sh.origon each board.
Both use mountpoint -q /data, never df /data, to decide “is it mounted”
– that distinction is the whole point.
The host-side nbd-client -d retry in mount_data_on is now redundant with
the board-side one; deliberately kept, since it costs nothing and still
covers a board running an older mount_data.sh.
Verified end-to-end: start against the already-running cluster took the
idempotent path on all three boards and did not power-cycle anything
(was_on: true); the two tolerant branches were exercised on stubbed copies
(exit 0, warnings, no mount attempted); and the board script’s idempotent,
host-unreachable and port-closed paths were all tested on eurobuild4 while
builds were running on it, confirming the refusal paths never touch
/dev/nbd0 or the live mount.
2026-11-28: add_aur_package.sh no longer makes adapted/ a git submodule (the bug is finally fixed)
scripts/add_adapted.sh is a one-line wrapper around
scripts/add_aur_package.sh, and that shared implementation ended in a
single unconditional
git submodule add -b master "ssh://aur@aur.archlinux.org/${pkgname}.git" "${category}/${pkgname}"
for every category – so using it for adapted/ silently produced
exactly the thing the taxonomy forbids outright (“adapted/ packages must
never be git submodules, no exceptions”). That is not hypothetical: it is
how etherwake, foo2zjs-nightly and openssl-1.0 ended up as stray
submodule gitlinks that had to be converted back to plain tracked files by
hand on 2026-11-18. The bug was identified then and left unfixed; noticed
again 2026-11-28 while adding curlftpfs-ng, and the user asked for it to
be fixed properly.
Fix: the category now decides how the package lands.
maintained/owned/private still get git submodule add over ssh
(they have an AUR remote worth pushing to). adapted instead gets a plain
git clone into a mktemp -d, has its .git deleted, is mv’d into
place, and is git added as ordinary files – then the script exit 0s
before ever reaching the submodule line. Also added an up-front
[ -e "${target}" ] guard for all categories (it previously relied on
git submodule add’s own refusal).
Two deliberate details:
httpsforadapted/, notssh. The category exists for read-only vendored copies of other people’s packages, so it needs no AUR ssh key, and the.gitis discarded immediately anyway so the remote is never used again.git addbut nevergit commit. An untracked new dir underadapted/is cruft tocleanup_all.sh’sgit clean -fdand gets deleted out from under you (hit for real withladybird), so staging immediately is the protection – while committing stays the user’s step, always. The success message says so explicitly.
Verified end-to-end in a throwaway git init repo (the script works
relative to cwd, so this exercises the real code path without touching
arch/): adapted/python-rfc8785 landed as mode 100644 plain files,
no .gitmodules, no .git/modules, no inner .git, staged not
committed, and its mktemp -d cleaned up. The failure path was exercised
too – an AUR connection reset on the first attempt produced a clean
ERROR: failed to clone, nothing staged, no partial directory left
behind.