Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 345263 - net-wireless/bluez intermittent checksum failures of oui.txt
Summary: net-wireless/bluez intermittent checksum failures of oui.txt
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Tiziano Müller (RETIRED)
URL: http://standards.ieee.org/regauth/oui...
Whiteboard:
Keywords:
: 349302 (view as bug list)
Depends on:
Blocks:
 
Reported: 2010-11-13 05:10 UTC by Christopher Byrne
Modified: 2011-02-23 22:08 UTC (History)
6 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
Diff of corrupted file 0C375F (oui-0C375F.txt.diff,109.65 KB, patch)
2010-11-13 05:14 UTC, Christopher Byrne
Details | Diff
net-wireless/bluez-4.82 build.log (build.log,5.08 KB, text/plain)
2011-02-23 13:56 UTC, orionbelt2
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Christopher Byrne 2010-11-13 05:10:27 UTC
While (re-)emerging net-wireless/bluez-4.75 as part of net-print/cups post-install message, a checksum error occurred. However, upon reemerging the package (via emerge --resume --keep-going) it successfully redownloaded the file

And I'm not the only one who has run into this: http://forums.gentoo.org/viewtopic-t-852512.html . I didn't need to resync, though.
Comment 1 Christopher Byrne 2010-11-13 05:14:50 UTC
Created attachment 254175 [details, diff]
Diff of corrupted file 0C375F

diff the correct vs incorrect file (according to portage, anyway)
Comment 2 Zac Medico gentoo-dev 2010-11-13 16:38:27 UTC
I guess some mirrors have an outdated copy of the file, since the digest got updated for bug 344815. Anyway, oui.txt on the master mirror appears to have the same sha1sum as the one in the current manifest:

$ sha1sum /mnt/distfiles/distfiles/oui.txt
3315f34ed4f46f87d1fc9b1d0fc656c39d59e5fb  /mnt/distfiles/distfiles/oui.txt
Comment 3 Zac Medico gentoo-dev 2010-11-13 16:44:08 UTC
Here's a working link for the file whose checksums are in the manifest:

  http://gentoo.osuosl.org/distfiles/oui.txt
Comment 4 Jeroen Roovers (RETIRED) gentoo-dev 2010-11-23 14:47:03 UTC
Looks like upstream changed it yet again.

jer@bastiaan /newaches/gentoo/cvs/gentoo-x86/net-wireless/bluez $ ebuild bluez-4.77.ebuild fetch
Appending /newaches/gentoo/cvs/gentoo-x86 to PORTDIR_OVERLAY...
 * bluez-4.77.tar.gz RMD160 SHA1 SHA256 size ;-) ...                                                                                [ ok ]
>>> Downloading 'http://ftp.snt.utwente.nl/pub/os/linux/gentoo/distfiles/oui.txt'
--2010-11-23 15:50:21--  http://ftp.snt.utwente.nl/pub/os/linux/gentoo/distfiles/oui.txt
Resolving ftp.snt.utwente.nl... 130.89.149.20, 2001:610:1908:a000::149:20
Connecting to ftp.snt.utwente.nl|130.89.149.20|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 2282383 (2.2M) [text/plain]
Saving to: `/aches/distfiles/oui.txt'

100%[=================================================================================================>] 2,282,383   2.11M/s   in 1.0s

2010-11-23 15:50:22 (2.11 MB/s) - `/aches/distfiles/oui.txt' saved [2282383/2282383]

 * oui.txt RMD160 SHA1 SHA256 size ;-) ...                                                                                          [ ok ]
 * checking ebuild checksums ;-) ...                                                                                                [ ok ]
 * checking auxfile checksums ;-) ...                                                                                               [ ok ]
 * checking miscfile checksums ;-) ...                                                                                              [ ok ]
jer@bastiaan /newaches/gentoo/cvs/gentoo-x86/net-wireless/bluez $ rm /aches/distfiles/oui.txt* -v
removed `/aches/distfiles/oui.txt'
jer@bastiaan /newaches/gentoo/cvs/gentoo-x86/net-wireless/bluez $ GENTOO_MIRRORS="" ebuild bluez-4.77.ebuild fetch
Appending /newaches/gentoo/cvs/gentoo-x86 to PORTDIR_OVERLAY...
 * bluez-4.77.tar.gz RMD160 SHA1 SHA256 size ;-) ...                                                                                [ ok ]
>>> Downloading 'http://standards.ieee.org/regauth/oui/oui.txt'
--2010-11-23 15:50:42--  http://standards.ieee.org/regauth/oui/oui.txt
Resolving standards.ieee.org... 140.98.193.16
Connecting to standards.ieee.org|140.98.193.16|:80... connected.
HTTP request sent, awaiting response... 301 Moved Permanently
Location: http://standards.ieee.org/develop/regauth/oui/oui.txt [following]
--2010-11-23 15:50:42--  http://standards.ieee.org/develop/regauth/oui/oui.txt
Reusing existing connection to standards.ieee.org:80.
HTTP request sent, awaiting response... 200 OK
Length: 2290876 (2.2M) [text/plain]
Saving to: `/aches/distfiles/oui.txt'

100%[=================================================================================================>] 2,290,876   1.32M/s   in 1.7s

2010-11-23 15:50:47 (1.32 MB/s) - `/aches/distfiles/oui.txt' saved [2290876/2290876]

('Filesize does not match recorded size', 2290876L, 2282383)
!!! Fetched file: oui.txt VERIFY FAILED!
!!! Reason: Filesize does not match recorded size
!!! Got:      2290876
!!! Expected: 2282383
Refetching... File renamed to '/aches/distfiles/oui.txt._checksum_failure_.Mf9rBy'

!!! Couldn't download 'oui.txt'. Aborting.
Comment 5 Pacho Ramos gentoo-dev 2010-11-23 17:57:54 UTC
Have just regenerated the digest to match current oui.txt file, I have also prepared a local script to test this problem periodically
Comment 6 Zac Medico gentoo-dev 2010-11-23 23:50:17 UTC
(In reply to comment #5)
> Have just regenerated the digest to match current oui.txt file, I have also
> prepared a local script to test this problem periodically

You might want to do something like SRC_URI="http://standards.ieee.org/regauth/oui/oui.txt -> oui-20101123.txt" and bump the date there each time you update the manifest. That way mirrors that are out of date will simply return 404 error for the new name instead of serving a file with the same name and the wrong checksum.
Comment 7 Pacho Ramos gentoo-dev 2010-11-24 19:56:38 UTC
(In reply to comment #6)
> (In reply to comment #5)
> > Have just regenerated the digest to match current oui.txt file, I have also
> > prepared a local script to test this problem periodically
> 
> You might want to do something like
> SRC_URI="http://standards.ieee.org/regauth/oui/oui.txt -> oui-20101123.txt" and
> bump the date there each time you update the manifest. That way mirrors that
> are out of date will simply return 404 error for the new name instead of
> serving a file with the same name and the wrong checksum.
> 

Looks better to me, thanks a lot, will take care of this in the next bump (when I have time)

Reopening to remember the issue
Comment 8 Pacho Ramos gentoo-dev 2010-11-25 23:36:20 UTC
+*bluez-4.80 (25 Nov 2010)
+
+  25 Nov 2010; Pacho Ramos <pacho@gentoo.org> -bluez-4.69.ebuild,
+  +bluez-4.80.ebuild:
+  Version bump with multiple upstream fixes, also handle oui.txt file
+  downloading in a better way as suggested by Zac in bug #345263, update
+  HOMEPAGE, remove .la files, and fix cups location (bug #346033 by Florian
+  Steinel). Remove old.
+
Comment 9 Jeroen Roovers (RETIRED) gentoo-dev 2010-12-21 15:59:19 UTC
*** Bug 349302 has been marked as a duplicate of this bug. ***
Comment 10 orionbelt2 2011-02-23 13:56:02 UTC
Created attachment 263623 [details]
net-wireless/bluez-4.82 build.log

Hello,

This bug has not really been resolved.

I have been trying to emerge bluez for several months now, always failing. Portage tries to download the file oui-20101219.txt from multiple sites which fail with 404 errors (not surprisingly, as per Comment #7, but why is the file not on the mirrors?), and in the end it finds oui.txt (this time without a date suffix, not surprisingly) on IEEE's site. This time the file downloads but, again not surprisingly, the checksum fails. I am attaching the build log.

As far as i can tell, the problem would go away if the correct dated version of oui.txt was on the Gentoo mirrors. I have no clue why this is not the case...
Comment 11 Pacho Ramos gentoo-dev 2011-02-23 19:53:59 UTC
4.87 should solve this (but I don't know why oui-20101219.txt has been removed from mirrors :-/)
Comment 12 orionbelt2 2011-02-23 21:49:33 UTC
Thanks Pacho, 4.87 as well as 4.89 indeed emerge without problems. Perhaps a bump is due?
Comment 13 Pacho Ramos gentoo-dev 2011-02-23 22:08:34 UTC
It needs to be stabilized -> bug 356255