Skip to contentSkip to conversation

what to do with wrong checksum

DISCUSSION Frans Meulenbroeks 9 participants 27 messages Nov 6, 2009 – Nov 8, 2009

lore
Share & tools
lore
#0 lore raw

While trying to build xmltv I got this:

NOTE: The MD5Sums did not match. Wanted:
'495fd8c320f67a0c8e0b90ccb060f0ea' and Got:
'68d9a93d507bbf917e1f3ad294fd5727'
NOTE: Task failed: Checksum of 'http://xmltwig.com/xmltwig/XML-Twig-3.33.tar.gz' failed

How should I handle this. Of course I can change the checksum, but i don't think that is the intention :-)
Is there a version somewhere cached that has the old checksum (so I can compare).
Or how else should I handle this?

Frans

#1 lore raw
Quoted 8 lines · On Friday 06 November 2009 21:38:40 Frans Meulenbroeks wrote:

While trying to build xmltv I got this:

NOTE: The MD5Sums did not match. Wanted:
'495fd8c320f67a0c8e0b90ccb060f0ea' and Got:
'68d9a93d507bbf917e1f3ad294fd5727'
NOTE: Task failed: Checksum of 'http://xmltwig.com/xmltwig/XML-Twig-3.33.tar.gz' failed

Quoted 5 lines

How should I handle this. Of course I can change the checksum, but i don't think that is the intention :-)
Is there a version somewhere cached that has the old checksum (so I can compare).
Or how else should I handle this?

Check the angstrom mirror or sources.oe.org and download that version and then diff it.

z.

#2 lore raw
Quoted 16 lines · Holger Hans Peter Freyther
Quoted 8 lines · On Friday 06 November 2009 21:38:40 Frans Meulenbroeks wrote:

While trying to build xmltv I got this:

NOTE: The MD5Sums did not match. Wanted:
'495fd8c320f67a0c8e0b90ccb060f0ea' and Got:
'68d9a93d507bbf917e1f3ad294fd5727'
NOTE: Task failed: Checksum of 'http://xmltwig.com/xmltwig/XML-Twig-3.33.tar.gz' failed

Quoted 5 lines

How should I handle this. Of course I can change the checksum, but i don't think that is the intention :-)
Is there a version somewhere cached that has the old checksum (so I can compare).
Or how else should I handle this?

Quoted 2 lines

Check the angstrom mirror or sources.oe.org and download that version and then diff it.

Try asking the xmltwig people what happened.

Philip

Quoted 8 lines

z.

_______________________________________________
Openembedded-devel mailing list
[email protected]
http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-devel

#3 lore raw
In reply to Holger Hans Peter Freyther

2009/11/7 Holger Hans Peter Freyther <[email protected]>:

Quoted 16 lines · On Friday 06 November 2009 21:38:40 Frans Meulenbroeks wrote:
Quoted 8 lines

While trying to build xmltv I got this:

NOTE: The MD5Sums did not match. Wanted:
'495fd8c320f67a0c8e0b90ccb060f0ea' and Got:
'68d9a93d507bbf917e1f3ad294fd5727'
NOTE: Task failed: Checksum of 'http://xmltwig.com/xmltwig/XML-Twig-3.33.tar.gz' failed

Quoted 5 lines

How should I handle this. Of course I can change the checksum, but i don't think that is the intention :-)
Is there a version somewhere cached that has the old checksum (so I can compare).
Or how else should I handle this?

Quoted 2 lines

Check the angstrom mirror or sources.oe.org and download that version and then diff it.

Hm. Did that.
Apparently version control is not very strong for Twig. The diff for the changes file:

diff -r old/XML-Twig-3.33/Changes new/XML-Twig-3.33/Changes 13a14

Quoted 1 line

added: indented_close_tag pretty_print option (suggested by H.Merijn Brand)

14a16,23

Quoted 8 lines

fix: xml_grep bug: warning when --count is used and no match is found
https://rt.cpan.org/Ticket/Display.html?id=33269
found by Hermann Peifer
fix: xml_split bug when using an XML declaration and a utf8 encoding. Spotted
by Chris Price.
fix: xml_pp bug, pod2text command to display help was not properly quoted.
Spotted by Chris Price.
fix: failing tests when LWP::UserAgent is not available

Reluctantly updated checksums.ini

Frans

#4 lore raw
Quoted 6 lines · On Saturday 07 November 2009 10:06:57 Frans Meulenbroeks wrote:
Quoted 2 lines

Check the angstrom mirror or sources.oe.org and download that version and then diff it.

Hm. Did that.
Apparently version control is not very strong for Twig. The diff for the changes file:

bump the PR of the package too

#5 lore raw

2009/11/7 Holger Hans Peter Freyther <[email protected]>:

Quoted 10 lines · On Saturday 07 November 2009 10:06:57 Frans Meulenbroeks wrote:
Quoted 7 lines
Quoted 3 lines

Check the angstrom mirror or sources.oe.org and download that version and then diff it.

Hm. Did that.
Apparently version control is not very strong for Twig. The diff for the changes file:

bump the PR of the package too

Of course.
Forgot to do it, done now. Thanks.

Frans

#6 lore raw
In reply to Frans Meulenbroeks

Frans Meulenbroeks wrote:
...

Quoted 4 lines

Reluctantly updated checksums.ini

Frans

But of course there's no magic that will remove the old cached tarball out of one's downloads directory when this sort of thing happens. (Busybox has been known to do this, too)

What do folks think we should do about that when it occurs?
a) support two entries (old and new) in checksums.ini
b) do nothing (leave as is)
c) add some sort of support so that the user gets additional information with the new checksum match failure explaining that the checksum was updated and they need to manually remove the old (bad) tarball

-Mike (mwester)

#7 lore raw
Quoted 11 lines · On Saturday 07 November 2009 14:23:01 Mike Westerhof wrote:

Frans Meulenbroeks wrote:
...

Quoted 3 lines

Reluctantly updated checksums.ini

Frans

But of course there's no magic that will remove the old cached tarball out of one's downloads directory when this sort of thing happens. (Busybox has been known to do this, too)

Quoted 6 lines

What do folks think we should do about that when it occurs?
a) support two entries (old and new) in checksums.ini
b) do nothing (leave as is)
c) add some sort of support so that the user gets additional information with the new checksum match failure explaining that the checksum was updated and they need to manually remove the old (bad) tarball

Good question... currently we only check the checksum after download, a first start would be to do it before unpack... this would create an error and we could implement c) later... (e.g. by creating a old_checksums.ini)

z.

#8 lore raw
In reply to Mike Westerhof
Quoted 11 lines · Mike Westerhof

Frans Meulenbroeks wrote:
...

Quoted 4 lines

Reluctantly updated checksums.ini

Frans

But of course there's no magic that will remove the old cached tarball out of one's downloads directory when this sort of thing happens. (Busybox has been known to do this, too)

Quoted 6 lines

What do folks think we should do about that when it occurs?
a) support two entries (old and new) in checksums.ini
b) do nothing (leave as is)
c) add some sort of support so that the user gets additional information with the new checksum match failure explaining that the checksum was updated and they need to manually remove the old (bad) tarball

d) rename the tarball slighty and mirror in on a known good server (e.g. angstrom sourcemirror) and have OE use that.

regards,

Koen

#9 lore raw

Hello,

Quoted 20 lines · Koen Kooi
Quoted 12 lines · Mike Westerhof

Frans Meulenbroeks wrote:
...

Quoted 4 lines

Reluctantly updated checksums.ini

Frans

But of course there's no magic that will remove the old cached tarball out of one's downloads directory when this sort of thing happens. (Busybox has been known to do this, too)

Quoted 6 lines

What do folks think we should do about that when it occurs?
a) support two entries (old and new) in checksums.ini
b) do nothing (leave as is)
c) add some sort of support so that the user gets additional information with the new checksum match failure explaining that the checksum was updated and they need to manually remove the old (bad) tarball

Quoted 2 lines

d) rename the tarball slighty and mirror in on a known good server (e.g. angstrom sourcemirror) and have OE use that.

IMO (d) is the safest and the right thing to do; this avoids more core to be written and avoids also we use changed versions without noticing.

Signature · 3 lines
Otavio Salvador                  O.S. Systems
E-mail: [email protected]  http://www.ossystems.com.br
Mobile: +55 53 9981-7854         http://projetos.ossystems.com.br
#10 lore raw

2009/11/7 Otavio Salvador <[email protected]>:

Quoted 23 lines

Hello,

Quoted 20 lines · Koen Kooi
Quoted 18 lines · Mike Westerhof

Frans Meulenbroeks wrote:
...

Quoted 4 lines

Reluctantly updated checksums.ini

Frans

But of course there's no magic that will remove the old cached tarball out of one's downloads directory when this sort of thing happens. (Busybox has been known to do this, too)

What do folks think we should do about that when it occurs?
a) support two entries (old and new) in checksums.ini
b) do nothing (leave as is)
c) add some sort of support so that the user gets additional information with the new checksum match failure explaining that the checksum was updated and they need to manually remove the old (bad) tarball

Quoted 6 lines
Quoted 2 lines

d) rename the tarball slighty and mirror in on a known good server (e.g. angstrom sourcemirror) and have OE use that.

IMO (d) is the safest and the right thing to do; this avoids more core to be written and avoids also we use changed versions without noticing.

Ok, I'll leave it to someone with better access so e.g. the sourcemirror to change things.
BTW I've exchanged an email with the author of twig. He stated that the version on CPAN (3.22) is the official version and that the version we use is the current development version and subject to change.
He proposed to move the 3.33 version to CPAN (which I encouraged). Guess we should then move to the cpan version which is the fixed one.

Frans

PS: and I did not think of cached versions of the files, otherwise I would probably taken somewhat more caution before upgrading checksums.ini

#11 lore raw

Hello,

Quoted 7 lines · Frans Meulenbroeks
Quoted 6 lines
Quoted 2 lines

d) rename the tarball slighty and mirror in on a known good server (e.g. angstrom sourcemirror) and have OE use that.

IMO (d) is the safest and the right thing to do; this avoids more core to be written and avoids also we use changed versions without noticing.

Quoted 8 lines

Ok, I'll leave it to someone with better access so e.g. the sourcemirror to change things.
BTW I've exchanged an email with the author of twig. He stated that the version on CPAN (3.22) is the official version and that the version we use is the current development version and subject to change.
He proposed to move the 3.33 version to CPAN (which I encouraged). Guess we should then move to the cpan version which is the fixed one.

Even better; I fully agree with it.

If he can do it, it would avoid problems to us.

Signature · 3 lines
Otavio Salvador                  O.S. Systems
E-mail: [email protected]  http://www.ossystems.com.br
Mobile: +55 53 9981-7854         http://projetos.ossystems.com.br
#12 lore raw

2009/11/7 Otavio Salvador <[email protected]>:

Quoted 20 lines

Hello,

Quoted 7 lines · Frans Meulenbroeks
Quoted 6 lines
Quoted 2 lines

d) rename the tarball slighty and mirror in on a known good server (e.g. angstrom sourcemirror) and have OE use that.

IMO (d) is the safest and the right thing to do; this avoids more core to be written and avoids also we use changed versions without noticing.

Quoted 8 lines

Ok, I'll leave it to someone with better access so e.g. the sourcemirror to change things.
BTW I've exchanged an email with the author of twig. He stated that the version on CPAN (3.22) is the official version and that the version we use is the current development version and subject to change.
He proposed to move the 3.33 version to CPAN (which I encouraged). Guess we should then move to the cpan version which is the fixed one.

Quoted 3 lines

Even better; I fully agree with it.

If he can do it, it would avoid problems to us.

I hope he can. The 3.33 version has changed again :-(

Frans

#13 lore raw
In reply to Frans Meulenbroeks
Quoted 8 lines · Frans Meulenbroeks

While trying to build xmltv I got this:

NOTE: The MD5Sums did not match. Wanted:
'495fd8c320f67a0c8e0b90ccb060f0ea' and Got:
'68d9a93d507bbf917e1f3ad294fd5727'
NOTE: Task failed: Checksum of 'http://xmltwig.com/xmltwig/XML-Twig-3.33.tar.gz' failed

Quoted 5 lines

How should I handle this. Of course I can change the checksum, but i don't think that is the intention :-)
Is there a version somewhere cached that has the old checksum (so I can compare).
Or how else should I handle this?

From my previous run in with twig:

checksums.ini: update entry for libxml-twig-perl
The Twig people are idiots because they keep replacing the tarball, a snippet from diffing the two:

Changes +0 -0
diff -Nurd XML-Twig-3.33.old/Changes XML-Twig-3.33.new/Changes
@@ -12,7 +12,11 @@
 added: better error message if find_nodes or get_xpath are called instead
       of findnodes when using XML::Twig::XPath (suggested by Zed Pobre)
 added: indented_close_tag pretty_print option (suggested by H.Merijn 

Brand)
-
+added: RT #49692 xml_split test on win 32 systems. Patch sent through RT
+ http://rt.cpan.org/Ticket/Display.html?id=49692

+fix:  RT #48616 handler condition of foo/* crashed the module
+      reported by Osfameron
+      http://rt.cpan.org/Public/Bug/Display.html?id=48616
 fix:  xml_grep bug: warning when --count is used and no match is found

https://rt.cpan.org/Ticket/Display.html?id=33269
found by Hermann Peifer
@@ -46,7 +50,9 @@
Viebrock (fix is to explicitely return null from the character
handler,
instead of the text already parsed... a few hundred thousand times)
http://rt.cpan.org/Ticket/Display.html?id=35672
-
+fix: RT #47257, minor doc bug, spotted by David Steinbrunner
+ http://rt.cpan.org/Ticket/Display.html?id=47257
+improved: speed, somewhat

#14 lore raw
In reply to Frans Meulenbroeks
Quoted 8 lines · Frans Meulenbroeks

While trying to build xmltv I got this:

NOTE: The MD5Sums did not match. Wanted:
'495fd8c320f67a0c8e0b90ccb060f0ea' and Got:
'68d9a93d507bbf917e1f3ad294fd5727'
NOTE: Task failed: Checksum of 'http://xmltwig.com/xmltwig/XML-Twig-3.33.tar.gz' failed

Quoted 5 lines

How should I handle this. Of course I can change the checksum, but i don't think that is the intention :-)
Is there a version somewhere cached that has the old checksum (so I can compare).
Or how else should I handle this?

I implemented option 'd':

http://cgit.openembedded.org/cgit.cgi/openembedded/commit/?id=7e8f2afa6fb064aaa3b477456c60f64b20caedeb

And I have to repeat that the twig upstream are idiots for behaving like this. May the fleas of a thousand camels infest their sensitive regions!

regards,

Koen

#15 lore raw

Hello Koen,

Quoted 6 lines · Koen Kooi

I implemented option 'd':

http://cgit.openembedded.org/cgit.cgi/openembedded/commit/?id=7e8f2afa6fb064aaa3b477456c60f64b20caedeb

And I have to repeat that the twig upstream are idiots for behaving like this. May the fleas of a thousand camels infest their sensitive regions!

Simple and fast :-)

BTW, please, use a shorter first line commit message since it is easier to read and also shows properly in the week log.

Cheers,

Signature · 3 lines
Otavio Salvador                  O.S. Systems
E-mail: [email protected]  http://www.ossystems.com.br
Mobile: +55 53 9981-7854         http://projetos.ossystems.com.br
#16 lore raw
In reply to Koen Kooi

Koen,

I usually ignore your pick of language, but I think using such a language in a commit -- visible to all potential users or contributors to OpenEmbedded -- is damaging the reputation of the project as a whole.

:M:

#18 lore raw

Without making a comment on the commit message:

As stated before the 3.33 version is clearly mentioned as "latest development version" on http://xmltwig.com/xmltwig/
The last stable version is 3.32
This project decided to provide snapshots (or whatever you want to call it) of the new version. In this case 3.33. Their choice.

IMHO OE should have used the latest stable version.

Frans

#19 lore raw
Quoted 7 lines · Frans Meulenbroeks

Without making a comment on the commit message:

As stated before the 3.33 version is clearly mentioned as "latest development version" on http://xmltwig.com/xmltwig/
The last stable version is 3.32
This project decided to provide snapshots (or whatever you want to call it) of the new version. In this case 3.33. Their choice.

3.33 is a version. A version is a point, not a distance. If it's a snapshot than you should call is twig-snapshot, twig-3.33rc1 or whatever. Replacing a versioned tarball weekly is *bad*, since you (as upstream maintainer) don't know what the "3.33" is your users are complaining about. And note that *nowhere* on that page it is stated that the development version keeps getting updated. And for that matter it also doesn't say 3.32 is any better.

regards,

Koen

#20 lore raw

2009/11/8 Koen Kooi <[email protected]>:

Quoted 10 lines · Frans Meulenbroeks
Quoted 8 lines

Without making a comment on the commit message:

As stated before the 3.33 version is clearly mentioned as "latest development version" on http://xmltwig.com/xmltwig/
The last stable version is 3.32
This project decided to provide snapshots (or whatever you want to call it) of the new version. In this case 3.33. Their choice.

Quoted 7 lines

3.33 is a version. A version is a point, not a distance. If it's a snapshot than you should call is twig-snapshot, twig-3.33rc1 or whatever. Replacing a versioned tarball weekly is *bad*, since you (as upstream maintainer) don't know what the "3.33" is your users are complaining about. And note that *nowhere* on that page it is stated that the development version keeps getting updated. And for that matter it also doesn't say 3.32 is any better.

Note that I am only relaying what the dev told me and that it by no means reflect my personal opinion.

And indeed they do not mention that the unstable version can change, nor that the stable won't change.
It might be that cpan has some rules for not updating stable versions so it might be that pulling from cpan is better. I don't know cpan and its way of working well enough to make a statement about that.

--- My personal $ 0.02:
If I want to reuse something from the web, I'm happy that I can get it, as it saves me work.
If it is not fully the way I want it, I try to convince or educate them to do things differently.
If they won't, either I have to live with it or avoid that specific piece of software.
Making snide remarks in a public area only creates irritation and frustration and does not help./
--- End of my $ 0.02 (and someday I'll learn how to insert a euro symbol in my emails :-) )

Frans.

#21 lore raw
In reply to Koen Kooi

Hello Koen,

Quoted 7 lines · Koen Kooi

3.33 is a version. A version is a point, not a distance. If it's a snapshot than you should call is twig-snapshot, twig-3.33rc1 or whatever. Replacing a versioned tarball weekly is *bad*, since you (as upstream maintainer) don't know what the "3.33" is your users are complaining about. And note that *nowhere* on that page it is stated that the development version keeps getting updated. And for that matter it also doesn't say 3.32 is any better.

If it is bad or not it is up to them (it is their project). If it is stated that it is a development version in their website then we ought not take it.

Signature · 3 lines
Otavio Salvador                  O.S. Systems
E-mail: [email protected]  http://www.ossystems.com.br
Mobile: +55 53 9981-7854         http://projetos.ossystems.com.br
#22 lore raw
In reply to Frans Meulenbroeks

Hello,

Quoted 9 lines · Frans Meulenbroeks

Without making a comment on the commit message:

As stated before the 3.33 version is clearly mentioned as "latest development version" on http://xmltwig.com/xmltwig/
The last stable version is 3.32
This project decided to provide snapshots (or whatever you want to call it) of the new version. In this case 3.33. Their choice.

IMHO OE should have used the latest stable version.

I fully agree and I didn't notice it was state on their website; In this case the only wrong side here is OE (not upstream).

Signature · 3 lines
Otavio Salvador                  O.S. Systems
E-mail: [email protected]  http://www.ossystems.com.br
Mobile: +55 53 9981-7854         http://projetos.ossystems.com.br
#23 lore raw
Quoted 12 lines · Otavio Salvador

Hello,

Quoted 8 lines · Frans Meulenbroeks

Without making a comment on the commit message:

As stated before the 3.33 version is clearly mentioned as "latest development version" on http://xmltwig.com/xmltwig/
The last stable version is 3.32
This project decided to provide snapshots (or whatever you want to call it) of the new version. In this case 3.33. Their choice.

Quoted 4 lines
Quoted 1 line

IMHO OE should have used the latest stable version.

I fully agree and I didn't notice it was state on their website; In this case the only wrong side here is OE (not upstream).

Except if you want to read the docs, because the website states that you should read the docs of the development version. That fact coupled with no obvious signs on that page that the development version shouldn't get used, I wouldn't say OE is wrong to use the 3.33 version. Heck, the development version is the top item on that page.

Either way, xmltwig is now on "the list".

regards,

Koen

#24 lore raw

I'm with you on this one, Koen. Changing a versioned tarball is just dumb - it goes against common sense and long standing convention in release engineering.

As for choosing the 3.32 version, who's to say they won't add a bugfix and update that tarball too?

-Graham

#25 lore raw
Quoted 6 lines · Graham Gower

I'm with you on this one, Koen. Changing a versioned tarball is just dumb - it goes against common sense and long standing convention in release engineering.

As for choosing the 3.32 version, who's to say they won't add a bugfix and update that tarball too?

Beacuse that's not the way the whole CPAN (Perl's packages repository) works. Version 3.32 is there, version 3.33 is not.

Przemek

#26 lore raw
In reply to Koen Kooi
Quoted 10 lines · Koen Kooi
Quoted 5 lines · Michael 'Mickey' Lauer

Koen,

I usually ignore your pick of language, but I think using such a language in a commit -- visible to all potential users or contributors to OpenEmbedded -- is damaging the reputation of the project as a whole.

Which part of the commit message in
http://cgit.openembedded.org/cgit.cgi/openembedded/commit/?id=7e8f2afa6fb064aaa3b477456c60f64b20caedeb
did you find damaging?

Making remarks about the upstream maintainers is not helpful.

Philip

Quoted 7 lines

_______________________________________________
Openembedded-devel mailing list
[email protected]
http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-devel