Cmt: [kernel-snaps-uc22:pi][PATCH] snapcraft.yaml: Fill in missing metadata

Juerg Haefliger juerg.haefliger at canonical.com
Wed Oct 11 08:00:08 UTC 2023


On Mon, 9 Oct 2023 16:12:40 +0100
Dimitri John Ledkov <dimitri.ledkov at canonical.com> wrote:

> Hi,
> 
> On Fri, 6 Oct 2023 at 09:55, Juerg Haefliger
> <juerg.haefliger at canonical.com> wrote:
> >
> > BugLink: https://bugs.launchpad.net/bugs/2038479
> >
> > Fill in missing metadata so that 'snap info <name>' returns useful
> > information for people who want to report problems.
> >
> > While at it, tidy up the summary and description and make them
> > consistent across all kernel snaps.
> >
> > Signed-off-by: Juerg Haefliger <juerg.haefliger at canonical.com>
> > ---
> >  snapcraft.yaml | 8 ++++++--
> >  1 file changed, 6 insertions(+), 2 deletions(-)
> >
> > diff --git a/snapcraft.yaml b/snapcraft.yaml
> > index 1fbf6eb6c70b..5151c669941d 100644
> > --- a/snapcraft.yaml
> > +++ b/snapcraft.yaml
> > @@ -1,7 +1,11 @@
> >  name: pi-kernel
> >  version: 5.15.0-1038.41
> > -summary: The Canonical Raspberry Pi kernel
> > -description: The Canonical Raspberry Pi kernel
> > +summary: Raspberry Pi Ubuntu kernel
> > +description: The Raspberry Pi Ubuntu kernel package as a snap
> > +source-code: https://git.launchpad.net/~canonical-kernel-snaps/+git/kernel-snaps-uc22
> > +issues: https://bugs.launchpad.net/canonical-kernel-snaps/+filebug?field.tags=pi-kernel
> > +contact: https://bugs.launchpad.net/canonical-kernel-snaps/+filebug?field.tags=pi-kernel
> > +license: GPLv2  

I should probably drop the license since the snap also contains firmware blobs
which have a different license. Which brings up another question: Should the
snap contain license files?


> I like all updates. I have question about 'source-code' i believe this
> is automatically populated during the build into manifest.txt
> indirectly
> 
> ```
> image-info:
>   build-request-id: lp-82294272
>   build-request-timestamp: '2023-09-11T15:15:10Z'
>   build_url: https://launchpad.net/~canonical-kernel-snaps/+snap/pi-kernel--uc22/+build/2226329
> ```
> 
> VCS revision: ca401316295bbceabdca66386ef9a9e6ec346cd9
> But yeah, I don't see source code url.
> 
> It seems a bit self-referencing to specify url or the repository that
> contains the snapcraft.yaml. Is this even part of the snapcraft.yaml
> reference syntax? cause i would have hoped that would be
> auto-populated from where the build has happened.

Yes it is (optional): https://snapcraft.io/docs/snapcraft-yaml-reference
It's debatable though whether this should point to the snap repo or the
kernel repo (and the firmware repo)... It think it should be the snap repo
from which one can find their way to the other repos.

...Juerg


> >  type: kernel
> >  confinement: strict
> >  build-base: core22
> > --
> > 2.39.2
> >
> >
> > --
> > kernel-team mailing list
> > kernel-team at lists.ubuntu.com
> > https://lists.ubuntu.com/mailman/listinfo/kernel-team  
> 
> 
> 

-------------- 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/20231011/f2a50ffc/attachment.sig>


More information about the kernel-team mailing list