diff options
| author | Craig Jennings <c@cjennings.net> | 2025-11-18 13:08:38 -0600 |
|---|---|---|
| committer | Craig Jennings <c@cjennings.net> | 2025-11-18 13:08:38 -0600 |
| commit | 7a0a806df05d573cf7969c9a2d80a1a49881d95a (patch) | |
| tree | fb8d2d044b434a5204ed2310715c7922eaefdbca | |
| parent | e1be02ca9690fc39eb3aa6ce8cd70f645af7d2d4 (diff) | |
fix(archsetup): properly disable debug packages system-wide
Replace invalid --nodebug flags with proper makepkg.conf configuration:
1. Configure makepkg.conf OPTIONS to disable debug packages (line 237-238)
- Set OPTIONS=(strip docs !libtool !staticlibs emptydirs zipman purge !debug)
- This prevents ALL packages from building debug versions
2. Remove invalid --nodebug flags from yay commands:
- Remove from aur_install function (lines 169, 171, 173)
- Remove from python-lyricsgenius install (line 957)
- --nodebug is not a valid yay/makepkg option in test VM
Previous issue: 169 "invalid option 'nodebug'" errors in test logs
Expected result: Clean test execution with no debug package warnings
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude <noreply@anthropic.com>
| -rwxr-xr-x | archsetup | 11 |
1 files changed, 7 insertions, 4 deletions
@@ -166,11 +166,11 @@ git_install() { # AUR Install aur_install() { action="installing $1 via the AUR" && display "task" "$action" - if ! (sudo -u "$username" yay -S --noconfirm --nodebug "$1" >> "$logfile" 2>&1); then + if ! (sudo -u "$username" yay -S --noconfirm "$1" >> "$logfile" 2>&1); then action="retrying $1" && display "task" "$action" - if ! (sudo -u "$username" yay -S --noconfirm --nodebug "$1" >> "$logfile" 2>&1); then + if ! (sudo -u "$username" yay -S --noconfirm "$1" >> "$logfile" 2>&1); then action="retrying $1 once more" && display "task" "$action" - (sudo -u "$username" yay -S --noconfirm --nodebug "$1" >> "$logfile" 2>&1) || + (sudo -u "$username" yay -S --noconfirm "$1" >> "$logfile" 2>&1) || error "error" "$action" "$?" fi fi @@ -234,6 +234,9 @@ prerequisites() { action="configuring compiler to use all processor cores" && display "task" "$action" sed -i "s/-j2/-j$(nproc)/;s/^#MAKEFLAGS/MAKEFLAGS/" /etc/makepkg.conf >> "$logfile" 2>&1 + action="disabling debug packages in makepkg" && display "task" "$action" + sed -i 's/^OPTIONS=.*/OPTIONS=(strip docs !libtool !staticlibs emptydirs zipman purge !debug)/' /etc/makepkg.conf >> "$logfile" 2>&1 + # enable pacman concurrent downloads and color action="enabling concurrent downloads" && display "task" "$action" sed -i "s/^#ParallelDownloads.*$/ParallelDownloads = 10/;s/^#Color$/Color/" /etc/pacman.conf @@ -951,7 +954,7 @@ supplemental_software() { # working around an temp integ issue with python-lyricsgenius expiration date action="prep to workaround tidal-dl issue" && display "task" "$action" - yay -S --noconfirm --nodebug --mflags --skipinteg python-lyricsgenius >> "$logfile" 2>&1 || error "error" "$action" "$?" + yay -S --noconfirm --mflags --skipinteg python-lyricsgenius >> "$logfile" 2>&1 || error "error" "$action" "$?" aur_install tidal-dl # tidal-dl:tidal as yt-dlp:youtube } |
