From 1004a0b986111bba482c25987c95cf5b0cfa29dc Mon Sep 17 00:00:00 2001 From: nevaforget Date: Thu, 2 Apr 2026 08:52:26 +0200 Subject: [PATCH] Fix paru PKGBUILD repo name collision with pacman registry Both the pacman package registry and the paru PKGBUILD repo used [moonarch] as section name, causing paru to fail resolving PKGBUILD upgrade targets against the wrong repo. Renamed PKGBUILD repo to [moonarch-pkgbuilds] and moved config from ~/.config/paru/paru.conf to system-wide /etc/paru.conf. --- DECISIONS.md | 6 ++++++ scripts/post-install.sh | 17 ++++++++++------- 2 files changed, 16 insertions(+), 7 deletions(-) diff --git a/DECISIONS.md b/DECISIONS.md index 165b4a1..ee13cef 100644 --- a/DECISIONS.md +++ b/DECISIONS.md @@ -1,5 +1,11 @@ # Decisions +## 2026-04-02 – Rename paru PKGBUILD repo, move config to /etc/paru.conf +- **Who**: Dominik, Ragnar +- **Why**: paru PKGBUILD repo and pacman package registry both used `[moonarch]` as section name. When pkgver-bot pushed version bumps, paru tried to resolve PKGBUILD targets (moongreet-git, moonlock-git) against the pacman repo — which only contains moonarch-git — causing "nicht alle benötigten Pakete gefunden" errors. +- **Tradeoffs**: Renaming the PKGBUILD repo section means existing installations need a one-time manual fix. Using `/etc/paru.conf` instead of `~/.config/paru/paru.conf` is consistent with moonarch's system-wide config philosophy. +- **How**: Renamed PKGBUILD repo section from `[moonarch]` to `[moonarch-pkgbuilds]`. Moved paru config (Mode + repo) from user-level `~/.config/paru/paru.conf` to system-wide `/etc/paru.conf`. Updated post-install.sh accordingly. + ## 2026-04-01 – Replace dunst with swaync as notification daemon - **Who**: Dominik, Ragnar - **Why**: Dunst lacks wp_fractional_scale_v1 support, causing aliased/jagged font rendering on external monitors in mixed-DPI setups (laptop eDP-1 at 2.5x, externals at 1x). Confirmed by testing: removing fractional scaling fixed the issue. swaync uses GTK4 which handles fractional scaling natively. diff --git a/scripts/post-install.sh b/scripts/post-install.sh index f0ce17c..ba7e1af 100755 --- a/scripts/post-install.sh +++ b/scripts/post-install.sh @@ -51,13 +51,16 @@ rm -f "$KEY_FILE" # --- Set up Moonarch custom paru repo --- log "Setting up Moonarch paru repo..." -PARU_CONF="$HOME/.config/paru/paru.conf" -mkdir -p "$(dirname "$PARU_CONF")" -if ! grep -q '\[moonarch\]' "$PARU_CONF" 2>/dev/null; then - cat >> "$PARU_CONF" <<'EOCONF' -[moonarch] -Url = https://gitea.moonarch.de/nevaforget/moonarch-pkgbuilds.git -EOCONF +PARU_CONF="/etc/paru.conf" +if ! grep -q 'Mode.*p' "$PARU_CONF" 2>/dev/null; then + sudo sed -i '/^\[options\]/a Mode = arp' "$PARU_CONF" + log " + Mode = arp set in paru.conf." +else + log " ~ Mode already includes pkgbuilds." +fi +if ! grep -q '\[moonarch-pkgbuilds\]' "$PARU_CONF" 2>/dev/null; then + printf '\n[moonarch-pkgbuilds]\nUrl = https://gitea.moonarch.de/nevaforget/moonarch-pkgbuilds.git\n' \ + | sudo tee -a "$PARU_CONF" > /dev/null log " + Moonarch repo added to paru.conf." else log " ~ Moonarch repo already in paru.conf."