OPINIONATED OMARCHY
TROUBLESHOOTING CORPUS
790
RECORDS
790
AUDITED
0
UNCHECKED
2388
SOURCES
LIVE
pacman-aur medium common DISPUTE

Stop AUR builds failing on debugedit or producing -debug packages

archomarchyendeavouroscachyosmanjaroauryayparudesktoplaptop
AUDITED Audited against its sources and confirmed accurate. · checked against Omarchy omarchy 4.0.4-1 on 2026-10-05
AUDIT NOTE

The EndeavourOS thread shows the exact debugedit error, attributes it to the pacman update enabling debug, the base-devel group-to-metapackage change, and -debug packages showing in pacman -Qtdq. On this machine /etc/makepkg.conf (owned by pacman 7.1.0) has OPTIONS=(strip docs !libtool !staticlibs emptydirs zipman purge debug lto), base-devel 1-2 depends on debugedit, and debugedit 5.3-2 is installed. Read /usr/share/makepkg/util/config.sh: it sources /etc/makepkg.conf, then /etc/makepkg.conf.d/*.conf, then ${XDG_CONFIG_HOME:-~/.config}/pacman/makepkg.conf before making OPTIONS readonly, so OPTIONS+=(!debug) there works. util/option.sh in_opt_array walks the array from the end, so the last occurrence wins as claimed. executable/debugedit.sh emits the quoted error text. omarchy-update-aur-pkgs runs yay -Sua as the user, which reads the per-user config. Not exercised: no package was built.

Symptom

An AUR update that worked last month now fails in the packaging step:


==> ERROR: Cannot find the debugedit binary required for including source files in debug packages.
 -> error making: davinci-resolve-exit status 15

Or the build succeeds but every AUR package now comes with a foo-debug twin, builds take noticeably longer, and pacman -Qtdq lists a pile of -debug packages as orphans.

Cause

The makepkg.conf shipped by pacman enables debug (and lto) in OPTIONS. With debug on, makepkg compiles with debug flags and splits the symbols into an extra <pkgname>-debug package, and it needs the debugedit binary to do that. A system whose build tools came from the old base-devel group rather than the current base-devel meta package may not have debugedit, so the build stops. Where debugedit is present, the build succeeds and produces the extra package. Omarchy 4 ships this stock configuration: /etc/makepkg.conf has OPTIONS=(strip docs !libtool !staticlibs emptydirs zipman purge debug lto), and base-devel (which pulls in debugedit) is installed, so on Omarchy you get the -debug packages and slower builds rather than the error.

Fix

Debug packages are only useful if you intend to debug that program. Turn the option off for your own builds in the per-user config, which makepkg reads after /etc/makepkg.conf and /etc/makepkg.conf.d/*.conf, so package updates never overwrite it:


mkdir -p ~/.config/pacman
echo 'OPTIONS+=(!debug)' >> ~/.config/pacman/makepkg.conf

The last occurrence of an option in the array wins, so appending !debug overrides the debug earlier in the system file. Add !lto the same way if long link times are the complaint.

Then rerun the AUR update (omarchy update on Omarchy 4, yay -Sua elsewhere).

If you do want debug packages, install the missing tool instead:


sudo pacman -S --needed base-devel

Remove -debug packages that were already installed (check the list before confirming):


pacman -Qq | grep -- '-debug$'
sudo pacman -Rns $(pacman -Qq | grep -- '-debug$')

Verify

bash -c 'source /etc/makepkg.conf; source ~/.config/pacman/makepkg.conf; echo ${OPTIONS[@]}' ends in !debug, and the next AUR build produces no -debug package in its output.

Sources

makepkg-debug-option-debugedit-and-debug-packages