Hi! I am currently packaging up a bunch of packages, to be distributed in a custom repository. A script runs makepkg
, then issues a repo-add
command.
I hit a bug which crashed repo-add
and tried to debug it:
- Looking at
/usr/bin/repo-add
I found it to be an ELF file. pacman -Qo
told me it belongs topacman
.- I navigated to the CachyOS
pacman
repository. - I found
repo-add.sh.in
and itsmeson.build
. - I looked at the PKGBUILD.
- I was at a loss because I found no connection between the shell script from the repository and the ELF file on my system.
Can you enlighten me, what the /usr/bin/repo-add
binary is and how it is produced?
(The bug in question seems to have been caused by me placing two package versions of the same package and calling repo-add
once. Running repo-add
for each package file mitigated the issue, although I could also make sure that there is only one package version present when doing a bulk repo-add
call.)