Building kernel packages in Launchpad

Juerg Haefliger juerg.haefliger at canonical.com
Mon Jun 19 09:29:06 UTC 2023


Hi,


> I would like to publish a PPA with customized kernel packages that
> track the official Ubuntu kernel releases. I am aiming to use
> Launchpad's continuous integration service, but I've encountered some
> challenges.
> 
> The first hurdle is identifying which repository and branch is updated
> to contain the latest release kernel sources. For linux-meta
> (lp:ubuntu/+source/linux-meta) there's a branch like
> applied/ubuntu/focal-security but linux just has a master branch. I
> did find lp:~ubuntu-kernel/ubuntu/+source/linux/+git/focal which seems
> close, if slightly ahead.

This is where all the supported kernels and their repos (and branches) are
specified:
https://git.launchpad.net/~canonical-kernel/+git/kteam-tools/plain/info/kernel-series.yaml

Note that the kernel repos are frequently rebased so if you want released
bits you need to go by tags.


> Next, this repository does not contain a debian/control file so the
> Launchpad build tool, git-build-recipe, is unable to process the
> source tree. Because the 'run' instruction is disallowed on Launchpad,
> it is not possible to run debian/rules clean.
> 
> It would be very useful to be able to use the same CI infrastructure
> as virtually all other Ubuntu source packages. Are there any
> enhancements we can consider either for the kernel source tree or
> within Launchpad itself to address this situation?

Yeah we don't support that. We operate with source packages, i.e., build
source packages (locally) and then upload to LP for building. I agree it'd be
nice to support LP CI (for testing/debugging/whatever purposes) but I haven't
looked into how feasible that is, given our current process. There's probably
other things besides a  missing debian/control that break git-build-recipe.

...Juerg


> Thanks,
> Ryan
> 

-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 833 bytes
Desc: OpenPGP digital signature
URL: <https://lists.ubuntu.com/archives/kernel-team/attachments/20230619/acd5ae52/attachment.sig>


More information about the kernel-team mailing list