You are not logged in.

#1 2018-05-16 06:16:47

simonszu
Member
Registered: 2017-11-08
Posts: 8

Building AUR packages with Jenkins

Hi,

i'd like to take a deeper look into Jenkins, just for educational purposes. Since i need some project for it to build, i thought for myself, why not build a bigger AUR package which is configured to build from source? So i selected libc++. And now i have no idea how to get Jenkins to build the PKGFILE. The git clone to get the file itself is no problem, but all steps after that (did i mention that i am new to Jenkins?). Are there some plugins to make Jenkins work with PKGFILEs? What are the dependencies? I should mention that i am running Jenkins inside a docker container on a Debian host, so maybe i need some more build dependencies.

I would be very happy if you could give me some hints.

Offline

#2 2018-05-16 13:52:23

eschwartz
Fellow
Registered: 2014-08-08
Posts: 4,097

Re: Building AUR packages with Jenkins

Well, um, what exactly are those steps that failed? You've provided no links to the build configuration you're using, nor details in general.

If I had to take a wild guess as to the problem (though it's actually an extremely likely cause), your issue is that you're trying to run makepkg to build a package, but the docker container does not have makepkg installed... due to the fact that /usr/bin/makepkg (pacman) is an Arch Linux package and not available in the Debian repositories, and also not installed in the docker container by default.

You'd need to enter an Arch Linux container to do this. See https://hub.docker.com/r/archlinux/base/ then pacman -Syu base-devel to update this image and prepare it for building packages, in order to create the docker image you'd need to be running in order to build the package.

Alternative workflow: https://jenkins.debian.net is running reproducible builds tests, using schroot as configured by https://salsa.debian.org/qa/jenkins.deb … schroot.sh and run via https://salsa.debian.org/qa/jenkins.deb … nux_pkg.sh


Managing AUR repos The Right Way -- aurpublish (now a standalone tool)

Offline

#3 2018-05-16 13:58:34

simonszu
Member
Registered: 2017-11-08
Posts: 8

Re: Building AUR packages with Jenkins

There are no actual failing steps. Just me and my nearly non-existing knowledge, and the fact that i have no idea how to proceed. Do you know the situation where you are sitting in front of your blank screen and you can't get your head around something? This is exactly my problem now. Your mention of an Arch Linux container seems to point me into the right direction. So you're saying i should configure an arch linux container as a build slave for jenkins? I'll check this out.

Offline

#4 2018-05-16 14:04:24

eschwartz
Fellow
Registered: 2014-08-08
Posts: 4,097

Re: Building AUR packages with Jenkins

Oh, well, that makes sense too. smile

Yes, you'll need to somehow kickstart an arch linux container for the build jobs.


Managing AUR repos The Right Way -- aurpublish (now a standalone tool)

Offline

Board footer

Powered by FluxBB