From 7a0a806df05d573cf7969c9a2d80a1a49881d95a Mon Sep 17 00:00:00 2001 From: Craig Jennings Date: Tue, 18 Nov 2025 13:08:38 -0600 Subject: fix(archsetup): properly disable debug packages system-wide MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 --- archsetup | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/archsetup b/archsetup index d7517d9..f733138 100755 --- a/archsetup +++ b/archsetup @@ -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 } -- cgit v1.2.3