From: Phil Blundell <philb@gnu.org>
To: openembedded-devel@lists.openembedded.org
Subject: OEDEM 2009 summary: Death to checksums.ini?
Date: Tue, 10 Nov 2009 16:55:40 +0000 [thread overview]
Message-ID: <1257872140.1484.335.camel@mill.internal.reciva.com> (raw)
The current checksums.ini arrangement has a number of issues:
- single monolithic file is a rich source of merge conflicts
- concrete URIs require many duplicate entries for different mirrors
- can be annoying for folks using overlays and/or collections
- storing the checksum separately from the rest of the .bb file makes
cherry-picking harder than it needs to be
- large amount of churn in checksums.ini can make it hard to spot cases
where checksums were changed rather than just added.
It was proposed that, rather than storing checksums centrally in
checksums.ini, they should be placed in the individual .bb file to which
the checksum relates. Bitbake already has a certain level of support
for reading checksums from SRC_URI and it would seem natural to try to
make use of that.
There was some discussion around alternative proposals of storing the
checksums in separate files within the recipes/ directory. These
proposals didn't seem to offer any real advantage over storing the
checksums within the .bb file (and, importantly, didn't really solve the
issues around recipe copying/merging) so they were not pursued further.
Some concerns were raised around .inc files and other places where
multiple recipes shared a single definition of SRC_URI, but it seems
like these can all be addressed with strategic use of variable
substitutions.
Also, some concerns were raised over the disk space impact of the
lengthened SRC_URIs. However, the net increase in disk space usage
seems like it will be marginal at worst: many packages will actually
wind up using less space with the new arrangement.
There was a side discussion around providing a separate mechanism for a
site-local cache of checksums, to be used solely for verifying that a
particular source archive has not changed from one build to the next.
This cache would not be checked in anywhere or distributed. RP noted
that this was the original intent of checksums.ini. Agreed to park this
for now since it is independent of (though somewhat related to) the
topic of shared checksums.
Conclusions:
- checksums are clearly part of the metadata, it seems like they
naturally belong in the .bb file.
- there was general acceptance that the checksums belong in SRC_URI.
Next steps:
- figure out a way to implement sha256sum checking, either by extending
the code in bitbake's fetcher or by providing equivalent functionality
in base.bbclass
- work out a migration strategy: is it feasible to splice the existing
checksums into the SRC_URIs programmatically? RP thinks yes. PB
suggests leaving the existing checksums.ini as read-only and switching
to checksums incrementally for new packages. RP: can make a git hook to
allow deletion from checksums.ini but no other changes.
next reply other threads:[~2009-11-10 16:57 UTC|newest]
Thread overview: 27+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-11-10 16:55 Phil Blundell [this message]
2009-11-11 1:06 ` OEDEM 2009 summary: Death to checksums.ini? Holger Hans Peter Freyther
2009-11-11 5:46 ` Frans Meulenbroeks
2009-11-11 8:24 ` Phil Blundell
2009-11-11 8:44 ` Holger Hans Peter Freyther
2009-11-11 9:17 ` Phil Blundell
2009-11-11 9:27 ` Frans Meulenbroeks
2009-11-11 9:43 ` Holger Hans Peter Freyther
2009-11-11 13:31 ` Phil Blundell
2009-11-11 13:37 ` Holger Hans Peter Freyther
2009-11-11 13:50 ` Holger Hans Peter Freyther
2009-11-11 10:06 ` Andrea Adami
2009-11-12 17:41 ` Ricardo Salveti de Araujo
2009-11-11 11:12 ` Michael 'Mickey' Lauer
2009-11-11 17:48 ` Esben Haabendal
2009-11-11 14:17 ` Richard Purdie
2009-11-11 15:45 ` Phil Blundell
2009-11-11 16:01 ` Frans Meulenbroeks
2009-11-11 16:06 ` Phil Blundell
2009-11-11 17:37 ` Frans Meulenbroeks
2009-11-11 20:34 ` Phil Blundell
2009-11-11 20:48 ` Frans Meulenbroeks
2009-11-12 18:36 ` Phil Blundell
2009-11-12 19:18 ` Bernhard Reutner-Fischer
2009-11-12 19:31 ` Phil Blundell
2009-11-13 17:47 ` Phil Blundell
2009-11-14 8:00 ` Holger Hans Peter Freyther
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1257872140.1484.335.camel@mill.internal.reciva.com \
--to=philb@gnu.org \
--cc=openembedded-devel@lists.openembedded.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox