RFC: Making it mandantory to have a checksums.ini entry
Hey,
I constantly spend my day moving checksums from tmp/checksums.ini to the right place and I would like to make it mandatory to have a checksums.ini entry when adding new versions.
The spend time on copy and pasting a checksums.ini entry is really small and the value is very high. Stuff like macports is forcing one to have checksums as well.
The attached diff would force it.
comments appreciated
z.
classes/base.bbclass +4 -1
@@ -602,7 +602,10 @@ python base_do_fetch() { try: if type == "http" or type == "https" or type == "ftp" or type == "ftps": if not base_chk_file(parser, pn, pv,uri, localpath, d): - bb.note("%s-%s: %s has no entry in conf/checksums.ini, not checking URI" % (pn,pv,uri)) + if not bb.data.getVar("OE_ALLOW_INSECURE_DOWNLOADS",d, True): + bb.fatal("%s-%s: %s has no entry in conf/checksums.ini, not checking URI" % (pn,pv,uri)) + else: + bb.note("%s-%s: %s has no entry in conf/checksums.ini, not checking URI" % (pn,pv,uri)) except Exception: raise bb.build.FuncFailed("Checksum of '%s' failed" % uri) }
Quoted 3 lines · Holger Freyther
The spend time on copy and pasting a checksums.ini entry is really small and the value is very high. Stuff like macports is forcing one to have checksums as well.
This makes a lot of sense for me since the way it is being used currently makes no sense.
If people has internal repositories that don't want to use checksum it can be allowed by recipe basis as you already support in your proposed patch.
+1
Signature · 8 lines
O T A V I O S A L V A D O R --------------------------------------------- E-mail: [email protected] UIN: 5906116 GNU/Linux User: 239058 GPG ID: 49A5F855 Home Page: http://otavio.ossystems.com.br --------------------------------------------- "Microsoft sells you Windows ... Linux gives you the whole house."
Quoted 5 lines · Holger Freyther
Hey,
I constantly spend my day moving checksums from tmp/checksums.ini to the right place and I would like to make it mandatory to have a checksums.ini entry when adding new versions.
+1
Quoted 3 lines
The spend time on copy and pasting a checksums.ini entry is really small and the value is very high.
I added a bunch checksums from my buildmachines and poky a while ago, Marcins scripts make that really easy.
Quoted 4 lines
Stuff like macports is forcing one to have checksums as well.
The attached diff would force it.
How that that patch affect things fetched for a CVS_TARBALL_STASH, e.g. git_foo.bar.tar.gz, since that one is unversioned and prone to change?
regards,
Koen
Quoted 11 lines
comments appreciated
z.------------------------------------------------------------------------
_______________________________________________
Openembedded-devel mailing list
[email protected]
http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-devel
On Wednesday 01 October 2008 04:47:41 Holger Freyther wrote:
I have added the relevant checksums we had at Openmoko and made it mandatory to have a checksum. See the previous mail on how to disable it.
z.
Quoted 4 lines · Holger Freyther
On Wednesday 01 October 2008 04:47:41 Holger Freyther wrote:
I have added the relevant checksums we had at Openmoko and made it mandatory to have a checksum. See the previous mail on how to disable it.
Instead of having people disabling the checks here's how you can help:
Step 1)
go to TMPDIR and locate the checksums.ini there
Step 2)
sort the checksums.ini:
python
/OE/org.openembedded.dev/contrib/source-checker/oe-checksums-sorter.py checksums.ini > new
Step 3) combine the checksums.ini from OE and yours:
cat /OE/org.openembedded.dev/conf/checksums.ini checksums.ini >
combined-sums
Step 4)
sort the result and apply it to OE
python
/OE/org.openembedded.dev/contrib/source-checker/oe-checksums-sorter.py combined-sums > /OE/org.openembedded.dev/conf/checksums.ini
Step 5) go to your OE dir and inspect the results:
cd /OE/org.openembedded.dev
git diff conf/checksums.ini
The diff should only contain additions (removals and replacements are a sign of corruption somewhere).
If you see no spurious changes, commit it and wait for people to bitch if you added a corrupted checksum ;)
regards,
Koen
Wednesday 15 of October 2008 19:51:36 Koen Kooi napisał(a):
Quoted 4 lines
Step 1)
go to TMPDIR and locate the checksums.ini thereStep 2)
This step can be ignored.
Quoted 1 line
Step 3) combine the checksums.ini from OE and yours:
$ cat TMPDIR/checksums.ini >> /OE/org.openembedded.dev/conf/checksums.ini
Quoted 2 lines
Step 4)
sort the result and apply it to OE
$ cd /OE/org.openembedded.dev/conf/ $ python ../contrib/source-checker/oe-checksums-sorter.py \ checksums.ini >tmp $ mv tmp checksums.ini
Quoted 1 line
Step 5)
inspect the results:
$ git diff checksums.ini
Quoted 2 lines
The diff should only contain additions (removals and replacements are a sign of corruption somewhere).
Thats how I handle that stuff.
Signature · 1 line
JID: [email protected]
Would be a good idea to update <http://wiki.openembedded.net/index.php/Update_checksums.ini>, so that this information is available outside this mailing list.
Quoted 6 lines · Steffen
Would be a good idea to update <http://wiki.openembedded.net/index.php/Update_checksums.ini>, so that this information is available outside this mailing list.
_______________________________________________
Openembedded-devel mailing list
[email protected]
http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-devel
I added a new page http://wiki.openembedded.net/index.php/Checksums because its not so much related to policy.
Quoted 6 lines
Quoted 3 lines
Would be a good idea to update
<http://wiki.openembedded.net/index.php/Update_checksums.ini>,
so that this information is available outside this mailing list.I added a new page http://wiki.openembedded.net/index.php/Checksums
because its not so much related to policy.
Then the old page should be deleted to avoid confusions.
Quoted 7 lines · Steffen
Quoted 6 lines
Quoted 3 lines
Would be a good idea to update <http://wiki.openembedded.net/index.php/Update_checksums.ini>,
so that this information is available outside this mailing list.I added a new page http://wiki.openembedded.net/index.php/Checksums because its not so much related to policy.
Quoted 8 lines
Then the old page should be deleted to avoid confusions.
_______________________________________________
Openembedded-devel mailing list
[email protected]
http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-devel
No. The new page is about how to add new chechsums and other page is about what to do if a checksum is wrong.
Quoted 4 lines
Quoted 1 line
Then the old page should be deleted to avoid confusions.
No. The new page is about how to add new chechsums and other page is about what to do if a checksum is wrong.
Hmmmm? OK, but the names of both pages "Update checksums.ini" and "Checksums" are really confusing then.