First Last Prev Next    No search results available      Search page      Enter new bug
Bug#: 214879
Alias:
Product:
Component:
Status: RESOLVED
Resolution: FIXED
Assigned To: Portage team <dev-portage@gentoo.org>
Hardware:
OS:
Version:
Priority:
Severity:
Reporter: Petteri Räty <betelgeuse@gentoo.org>
Add CC:
CC:
URL:
Summary:
Status Whiteboard:
Keywords:

Filename Description Type Creator Created Size Actions
Create a New Attachment (proposed patch, testcase, etc.) View All

Bug 214879 depends on: Show dependency tree
Bug 214879 blocks: 216231
Votes: 0    Show votes for this bug    Vote for this bug

Additional Comments: (this is where you put emerge --info)


Not eligible to see or edit group visibility for this bug.






View Bug Activity   |   Format For Printing   |   XML   |   Clone This Bug


Description:   Opened: 2008-03-26 13:55 0000
pena activesupport # devebuild activesupport-2.0.2.ebuild clean unpack
!!! Previously fetched file: 'activesupport-2.0.2.gem'
!!! Reason: Failed on RMD160 verification
!!! Got:      2b70cf3eb6740121f793c2b9116c74f06c6b08da
!!! Expected: 2b1d7c62364c33ddbafa0ba865978d3ffdaf9d41
Refetching... File renamed to
'/var/distfiles/activesupport-2.0.2.gem._checksum_failure_.reS2im'

>>> Downloading 'http://trumpetti.atm.tut.fi/gentoo/distfiles/activesupport-2.0.2.gem'
--2008-03-26 15:23:00-- 
http://trumpetti.atm.tut.fi/gentoo/distfiles/activesupport-2.0.2.gem
Resolving trumpetti.atm.tut.fi... 130.230.54.100
Connecting to trumpetti.atm.tut.fi|130.230.54.100|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 234496 (229K) [text/plain]
Saving to: `/var/distfiles/activesupport-2.0.2.gem'

100%[==================================================================================================================================>]
234,496     --.-K/s   in 0.05s

2008-03-26 15:23:00 (4.17 MB/s) - `/var/distfiles/activesupport-2.0.2.gem'
saved [234496/234496]

>>> Unpacking source...
>>> Source unpacked.
pena activesupport # devebuild activesupport-2.0.2.ebuild clean unpack
!!! Previously fetched file: 'activesupport-2.0.2.gem'
!!! Reason: Failed on RMD160 verification
!!! Got:      2b70cf3eb6740121f793c2b9116c74f06c6b08da
!!! Expected: 2b1d7c62364c33ddbafa0ba865978d3ffdaf9d41
Refetching... File renamed to
'/var/distfiles/activesupport-2.0.2.gem._checksum_failure_.reS2im'

>>> Downloading 'http://trumpetti.atm.tut.fi/gentoo/distfiles/activesupport-2.0.2.gem'
--2008-03-26 15:51:22-- 
http://trumpetti.atm.tut.fi/gentoo/distfiles/activesupport-2.0.2.gem
Resolving trumpetti.atm.tut.fi... 130.230.54.100
Connecting to trumpetti.atm.tut.fi|130.230.54.100|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 234496 (229K) [text/plain]
Saving to: `/var/distfiles/activesupport-2.0.2.gem'

100%[==================================================================================================================================>]
234,496     --.-K/s   in 0.06s

2008-03-26 15:51:22 (3.66 MB/s) - `/var/distfiles/activesupport-2.0.2.gem'
saved [234496/234496]

>>> Unpacking source...
>>> Source unpacked.

The Manifest entry is borked and Portage doesn't complain about it when strict
is off. When there aren't any problems ebuild does check it:

pena activesupport # devebuild activesupport-1.3.1.ebuild clean unpack
 * activesupport-1.3.1.gem RMD160 SHA1 SHA256 size ;-) ...                     
                                                                               
     [ ok ]
>>> Unpacking source...
>>> Source unpacked.

------- Comment #1 From Zac Medico 2008-03-26 16:36:19 0000 -------
So, the expected behavior is that it should show a warning message and continue
despite the invalid checksum?

------- Comment #2 From Petteri Räty 2008-03-26 22:31:40 0000 -------
(In reply to comment #1)
> So, the expected behavior is that it should show a warning message and continue
> despite the invalid checksum?
> 

It should fail like it does when the file is not already in DISTDIR.

------- Comment #3 From Zac Medico 2008-03-26 23:07:11 0000 -------
Hmm, are we talking about behavior with FEATURES=strict enabled or disabled?
Perhaps the bug summary should say FEATURES=strict instead of FEATURES=-strict?
If you are trying to confuse me then you have succeeded. :P

------- Comment #4 From Zac Medico 2008-03-26 23:25:20 0000 -------
from make.conf.5:

strict
    Have portage react strongly to conditions that have the potential to be
dangerous (like missing or incorrect digests for ebuilds or distfiles).


So, shouldn't it ignore an incorrect digest if "strict" is disabled?

------- Comment #5 From Marius Mauch (RETIRED) 2008-03-27 09:22:32 0000 -------
Historically "strict" enabled checksum checks for the manifest types EBUILD and
AUX (and MISC in some versions), but DIST files were always checked independent
of "strict".
It doesn't make sense to skip checksum verification of distfiles in this case
anyway as it only delays the failure tilll the checksum check before unpack,
while for other types the check is skipped completely with "-strict".

------- Comment #6 From Zac Medico 2008-03-27 16:50:48 0000 -------
Okay, it's fixed in svn r9519 so that distfiles are always checked in any case.

------- Comment #7 From Zac Medico 2008-04-04 22:24:50 0000 -------
This is fixed in 2.1.5_rc1.

First Last Prev Next    No search results available      Search page      Enter new bug