I was checking out if I could get the debug packages from a mirror to see if one could install the library debug package for glibc. I tested each server that exist in the Artix mirrorlist file.
Only the Hungary server appears to have the debug repositories currently so I created the custom mirrorlist file to prevent all the negative hits when updating.
# vim /etc/pacman.conf
[system-debug]
Include = /etc/pacman.d/mirrorlist-debug
[world-debug]
Include = /etc/pacman.d/mirrorlist-debug
[galaxy-debug]
Include = /etc/pacman.d/mirrorlist-debug
# vim /etc/pacman.d/mirrorlist-debug
# Hungary
Server = https://quantum-mirror.hu/mirrors/pub/artix-linux/$repo/os/$arch
# pacman -Syu glibc-debug
:: Synchronising package databases...
jspaces is up to date
system is up to date
world is up to date
galaxy is up to date
lib32 is up to date
universe is up to date
moksha is up to date
omniverse is up to date
system-debug is up to date
world-debug is up to date
galaxy-debug is up to date
extra is up to date
community is up to date
multilib is up to date
:: Starting full system upgrade...
resolving dependencies...
looking for conflicting packages...
Packages (1) glibc-debug-2.36-6
Total Download Size: 28.71 MiB
Total Installed Size: 100.94 MiB
:: Proceed with installation? [Y/n] y
:: Retrieving packages...
glibc-debug-2.36-6-x86_64 28.7 MiB 7.11 MiB/s 00:04 [##########################################] 100%
(1/1) checking keys in keyring [##########################################] 100%
(1/1) checking package integrity [##########################################] 100%
(1/1) loading package files [##########################################] 100%
(1/1) checking for file conflicts [##########################################] 100%
(1/1) checking available disk space [##########################################] 100%
:: Processing package changes...
(1/1) installing glibc-debug [##########################################] 100%
:: Running post-transaction hooks...
(1/1) Refreshing PackageKit...
$ vim test.c
int main(void) {
int a = 5 - 6;
return 0;
}
$ gcc -g test.c -o test
$ valgrind test
==1357== Memcheck, a memory error detector
==1357== Copyright (C) 2002-2022, and GNU GPL'd, by Julian Seward et al.
==1357== Using Valgrind-3.19.0 and LibVEX; rerun with -h for copyright info
==1357== Command: test
==1357==
==1357==
==1357== HEAP SUMMARY:
==1357== in use at exit: 0 bytes in 0 blocks
==1357== total heap usage: 29 allocs, 29 frees, 4,240 bytes allocated
==1357==
==1357== All heap blocks were freed -- no leaks are possible
==1357==
==1357== For lists of detected and suppressed errors, rerun with: -s
==1357== ERROR SUMMARY: 0 errors from 0 contexts (suppressed: 0 from 0)
It looks like the test file submitted actual was successfully completed. So it looks like the debug package was required since without it fails.
Why do all the other mirrors do not have the debug repositories?
Seems to me that the mirror sites themselves maybe the cause of the issue of not having those debug repositories on their mirrors. It is a fairly new feature so most likely the mirror sites may not have the debug repositories configured to be synchronized. Oh well, your guess is as good as mine.