Skip to content

Arch linux devtools chroot configuration

This page documents how to permanently disable debug options when compiling packages within an isolated container using Arch Linux devtools utilities.

🛠 CONFIGURATION

To bypass the default devtools chroot behavior and stop the automatic compilation of unstripped binaries and split -debug packages, modify the system-wide architecture blueprint file.

sudo nano /usr/share/devtools/makepkg.conf.d/x86_64.conf

Within the file, locate the OPTIONS array and explicitely append an exclamation mark to the debug flag:

Before

OPTIONS=(strip docs libtool staticlibs emptydirs zipman purge debug lto)

After

OPTIONS=(strip docs libtool staticlibs emptydirs zipman purge !debug lto)

⚠ PERSISTENCE WARNING

The configuration step above modifies a system file directly managed by pacman.

Upstream Overwrites: Because /usr/share/devtools/makepkg.conf.d/x86_64.conf belongs entirely to the devtools package namespace, any future system update (pacman -Syu) that includes a newer release of devtools will overwrite this file back to its default state.

Maintenance: If split -debug packages begin appearing again during isolated builds, this file has been reset and the !debug flag must be manually re-inserted.

Posted

10:56 PM 2026-06-16