You are not logged in.

#1 2021-01-09 23:53:18

volker_weissmann
Member
Registered: 2020-01-05
Posts: 43

[SOLVED] CI/CD Check if package builds on AUR

Is there a script that does the follwing:

1. Take the name of a AUR package as an argument
2. Spin up a Arch Linux VM/sets up a arch-linux chroot environment, with "base" installed, but no other packages.
3. (Tries to) build the AUR package
4. Reports if the build failed.

Such a script would be nice to check for packages that are completely broken since an update.  I have encountered many packages that have build processes that are just broken since a few months.

If such a script does not exist, I will probably write one.


EDIT:
https://wiki.archlinux.org/index.php/De … ean_chroot seems to be helpful:

$ mkarchroot cleanchroot/root base-devel
$ git clone https://aur.archlinux.org/bear.git
$ cd bear
$ makechrootpkg -c -r ../cleanchroot

Last edited by volker_weissmann (2021-01-10 00:21:56)

Offline

#2 2021-01-09 23:57:45

merlock
Member
Registered: 2018-10-30
Posts: 161

Re: [SOLVED] CI/CD Check if package builds on AUR

Why make a VM, when you could build it in a chroot?


It's a big club...and you ain't in it -- George Carlin
Eenie meenie, chili beanie, the spirits are about to speak -- Bullwinkle J. Moose
Registered Linux user #149839
perl -e 'print$i=pack(c5,(41*2),sqrt(7056),(unpack(c,H)-2),oct(115),10); '

Offline

#3 2021-01-10 00:00:17

volker_weissmann
Member
Registered: 2020-01-05
Posts: 43

Re: [SOLVED] CI/CD Check if package builds on AUR

merlock wrote:

Why make a VM, when you could build it in a chroot?

You are right. I updated my post.

Offline

#4 2021-01-10 00:10:59

merlock
Member
Registered: 2018-10-30
Posts: 161

Re: [SOLVED] CI/CD Check if package builds on AUR

You could look into aurutils.


It's a big club...and you ain't in it -- George Carlin
Eenie meenie, chili beanie, the spirits are about to speak -- Bullwinkle J. Moose
Registered Linux user #149839
perl -e 'print$i=pack(c5,(41*2),sqrt(7056),(unpack(c,H)-2),oct(115),10); '

Offline

Board footer

Powered by FluxBB