* RFC: Making it mandantory to have a checksums.ini entry
@ 2008-10-01 2:47 Holger Freyther
2008-10-01 2:58 ` Otavio Salvador
` (2 more replies)
0 siblings, 3 replies; 11+ messages in thread
From: Holger Freyther @ 2008-10-01 2:47 UTC (permalink / raw)
To: openembedded-devel
[-- Attachment #1: Type: text/plain, Size: 428 bytes --]
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.
[-- Attachment #2: make-it-mandantory.diff --]
[-- Type: text/x-diff, Size: 801 bytes --]
diff --git a/classes/base.bbclass b/classes/base.bbclass
index 2025483..a2a93c8 100644
--- a/classes/base.bbclass
+++ b/classes/base.bbclass
@@ -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)
}
^ permalink raw reply related [flat|nested] 11+ messages in thread
* Re: RFC: Making it mandantory to have a checksums.ini entry
2008-10-01 2:47 RFC: Making it mandantory to have a checksums.ini entry Holger Freyther
@ 2008-10-01 2:58 ` Otavio Salvador
2008-10-01 7:06 ` Koen Kooi
2008-10-15 17:34 ` Holger Freyther
2 siblings, 0 replies; 11+ messages in thread
From: Otavio Salvador @ 2008-10-01 2:58 UTC (permalink / raw)
To: openembedded-devel
Holger Freyther <zecke@selfish.org> writes:
> 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
--
O T A V I O S A L V A D O R
---------------------------------------------
E-mail: otavio@debian.org 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."
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: RFC: Making it mandantory to have a checksums.ini entry
2008-10-01 2:47 RFC: Making it mandantory to have a checksums.ini entry Holger Freyther
2008-10-01 2:58 ` Otavio Salvador
@ 2008-10-01 7:06 ` Koen Kooi
2008-10-15 17:34 ` Holger Freyther
2 siblings, 0 replies; 11+ messages in thread
From: Koen Kooi @ 2008-10-01 7:06 UTC (permalink / raw)
To: openembedded-devel
On 01-10-2008 04:47, Holger Freyther wrote:
> 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
>
> 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.
> 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
>
> comments appreciated
> z.
>
>
> ------------------------------------------------------------------------
>
> _______________________________________________
> Openembedded-devel mailing list
> Openembedded-devel@lists.openembedded.org
> http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-devel
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: RFC: Making it mandantory to have a checksums.ini entry
2008-10-01 2:47 RFC: Making it mandantory to have a checksums.ini entry Holger Freyther
2008-10-01 2:58 ` Otavio Salvador
2008-10-01 7:06 ` Koen Kooi
@ 2008-10-15 17:34 ` Holger Freyther
2008-10-15 17:51 ` Koen Kooi
2 siblings, 1 reply; 11+ messages in thread
From: Holger Freyther @ 2008-10-15 17:34 UTC (permalink / raw)
To: 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.
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: RFC: Making it mandantory to have a checksums.ini entry
2008-10-15 17:34 ` Holger Freyther
@ 2008-10-15 17:51 ` Koen Kooi
2008-10-15 18:17 ` Marcin Juszkiewicz
0 siblings, 1 reply; 11+ messages in thread
From: Koen Kooi @ 2008-10-15 17:51 UTC (permalink / raw)
To: openembedded-devel
On 15-10-2008 19:34, Holger Freyther wrote:
> 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
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: RFC: Making it mandantory to have a checksums.ini entry
2008-10-15 17:51 ` Koen Kooi
@ 2008-10-15 18:17 ` Marcin Juszkiewicz
2008-10-16 12:20 ` Sledz, Steffen
0 siblings, 1 reply; 11+ messages in thread
From: Marcin Juszkiewicz @ 2008-10-15 18:17 UTC (permalink / raw)
To: openembedded-devel
Wednesday 15 of October 2008 19:51:36 Koen Kooi napisał(a):
> Step 1)
> go to TMPDIR and locate the checksums.ini there
>
> Step 2)
This step can be ignored.
> Step 3) combine the checksums.ini from OE and yours:
$ cat TMPDIR/checksums.ini >>
/OE/org.openembedded.dev/conf/checksums.ini
> 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
> Step 5)
inspect the results:
$ git diff checksums.ini
> The diff should only contain additions (removals and replacements are
> a sign of corruption somewhere).
Thats how I handle that stuff.
--
JID: hrw@jabber.org
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: RFC: Making it mandantory to have a checksums.ini entry
2008-10-15 18:17 ` Marcin Juszkiewicz
@ 2008-10-16 12:20 ` Sledz, Steffen
2008-10-16 12:39 ` Thomas Kunze
0 siblings, 1 reply; 11+ messages in thread
From: Sledz, Steffen @ 2008-10-16 12:20 UTC (permalink / raw)
To: openembedded-devel
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.
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: RFC: Making it mandantory to have a checksums.ini entry
2008-10-16 12:20 ` Sledz, Steffen
@ 2008-10-16 12:39 ` Thomas Kunze
2008-10-16 12:44 ` Sledz, Steffen
0 siblings, 1 reply; 11+ messages in thread
From: Thomas Kunze @ 2008-10-16 12:39 UTC (permalink / raw)
To: openembedded-devel
Sledz, Steffen schrieb:
> 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
> Openembedded-devel@lists.openembedded.org
> 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.
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: RFC: Making it mandantory to have a checksums.ini entry
2008-10-16 12:39 ` Thomas Kunze
@ 2008-10-16 12:44 ` Sledz, Steffen
2008-10-16 12:52 ` Thomas Kunze
0 siblings, 1 reply; 11+ messages in thread
From: Sledz, Steffen @ 2008-10-16 12:44 UTC (permalink / raw)
To: openembedded-devel
> > 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.
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: RFC: Making it mandantory to have a checksums.ini entry
2008-10-16 12:44 ` Sledz, Steffen
@ 2008-10-16 12:52 ` Thomas Kunze
2008-10-16 13:12 ` Sledz, Steffen
0 siblings, 1 reply; 11+ messages in thread
From: Thomas Kunze @ 2008-10-16 12:52 UTC (permalink / raw)
To: openembedded-devel
Sledz, Steffen schrieb:
>>> 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.
>
>
> _______________________________________________
> Openembedded-devel mailing list
> Openembedded-devel@lists.openembedded.org
> 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.
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: RFC: Making it mandantory to have a checksums.ini entry
2008-10-16 12:52 ` Thomas Kunze
@ 2008-10-16 13:12 ` Sledz, Steffen
0 siblings, 0 replies; 11+ messages in thread
From: Sledz, Steffen @ 2008-10-16 13:12 UTC (permalink / raw)
To: openembedded-devel
> > 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.
^ permalink raw reply [flat|nested] 11+ messages in thread
end of thread, other threads:[~2008-10-16 13:17 UTC | newest]
Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-10-01 2:47 RFC: Making it mandantory to have a checksums.ini entry Holger Freyther
2008-10-01 2:58 ` Otavio Salvador
2008-10-01 7:06 ` Koen Kooi
2008-10-15 17:34 ` Holger Freyther
2008-10-15 17:51 ` Koen Kooi
2008-10-15 18:17 ` Marcin Juszkiewicz
2008-10-16 12:20 ` Sledz, Steffen
2008-10-16 12:39 ` Thomas Kunze
2008-10-16 12:44 ` Sledz, Steffen
2008-10-16 12:52 ` Thomas Kunze
2008-10-16 13:12 ` Sledz, Steffen
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.