Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 168114 - sys-power/nvram-wakeup-0.97_p863 invalid SRC_URI
Summary: sys-power/nvram-wakeup-0.97_p863 invalid SRC_URI
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High minor (vote)
Assignee: Gentoo's Team for Core System packages
URL: http://nvram-wakeup.svn.sourceforge.n...
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-02-23 11:31 UTC by Ville Aakko
Modified: 2007-03-03 06:26 UTC (History)
0 users

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Ville Aakko 2007-02-23 11:31:43 UTC
Hi!

There is something very weird about the latest nvram-wakeup ebuild

The digest verification fails on the latest nvram-wakeup-mb.c, but this is not the weird part. 

Apparently, there is nothing wrong with the file when donwloaded directly from the URL in the URL field of this bug. But looking in the file produced by this ebuild and portage, it seems the beginning has been replaced by some 'ls' aoutput from someone's Debian box. Downloading the file by hand (from the very same URL) and replacing "/usr/portage/distfiles/nvram-wakeup-mb.c?revision=863" with it, digest verification no longer fails and allows emerge to continue.

Reproducible: Always

Steps to Reproduce:
(delete "/usr/portage/distfiles/nvram-wakeup-mb.c?revision=863" first to be sure you start from a clean table)

1. emerge nvram-wakeup
Actual Results:  
The digest verification fails.

less "/usr/portage/distfiles/nvram-wakeup-mb.c?revision=863" -> garbage at the start of file

Expected Results:  
The file should be downloaded correctly 

Downloading the file by hand from the URL and putting the file in the distfiles works around this problem.
Comment 1 Ville Aakko 2007-02-23 11:43:16 UTC
Actually, there's something wrong with how portage uses wget (or something), I think - I know nothing about portage's internals so I really don't know what is happening here.

However, here's what I get for output from 'emerge portage':

>>> Emerging (1 of 1) sys-power/nvram-wakeup-0.97_p863 to /
>>> Downloading 'http://trumpetti.atm.tut.fi/gentoo/distfiles/nvram-wakeup-mb.c?revision=863'
--13:38:59--  http://trumpetti.atm.tut.fi/gentoo/distfiles/nvram-wakeup-mb.c?revision=863
           => `/usr/portage/distfiles/nvram-wakeup-mb.c?revision=863'
Resolving trumpetti.atm.tut.fi... 130.230.54.100, 2001:708:310:54::2
Connecting to trumpetti.atm.tut.fi|130.230.54.100|:80... connected.
HTTP request sent, awaiting response... 404 Not Found
13:39:00 ERROR 404: Not Found.

>>> Downloading 'ftp://trumpetti.atm.tut.fi/gentoo/distfiles/nvram-wakeup-mb.c?revision=863'
--13:39:00--  ftp://trumpetti.atm.tut.fi/gentoo/distfiles/nvram-wakeup-mb.c?revision=863
           => `/usr/portage/distfiles/.listing'
Resolving trumpetti.atm.tut.fi... 130.230.54.100, 2001:708:310:54::2
Connecting to trumpetti.atm.tut.fi|130.230.54.100|:21... connected.
Logging in as anonymous ... Logged in!
==> SYST ... done.    ==> PWD ... done.
==> TYPE I ... done.  ==> CWD /gentoo/distfiles ... done.
==> PASV ... done.    ==> LIST ... done.
/usr/portage/distfiles/.listing has sprung into existence.
Retrying.

--13:39:02--  ftp://trumpetti.atm.tut.fi/gentoo/distfiles/nvram-wakeup-mb.c?revision=863
  (try: 2) => `/usr/portage/distfiles/nvram-wakeup-mb.c?revision=863'
Connecting to trumpetti.atm.tut.fi|130.230.54.100|:21... connected.
Logging in as anonymous ... Logged in!
==> SYST ... done.    ==> PWD ... done.
==> TYPE I ... done.  ==> CWD not required.
==> PASV ... done.    ==> LIST ... done.

    [ <=>                                                                                                                                                       ] 884           --.--K/s             

13:39:02 (558.73 KB/s) - `/usr/portage/distfiles/nvram-wakeup-mb.c?revision=863' saved [884]

: No such file or directory
unlink: No such file or directory
No matches on pattern `nvram-wakeup-mb.c?revision=863'.
>>> Resuming download...
>>> Downloading 'http://nvram-wakeup.svn.sourceforge.net/viewvc/*checkout*/nvram-wakeup/trunk/nvram-wakeup/nvram-wakeup-mb.c?revision=863'
Warning: wildcards not supported in HTTP.
--13:39:03--  http://nvram-wakeup.svn.sourceforge.net/viewvc/*checkout*/nvram-wakeup/trunk/nvram-wakeup/nvram-wakeup-mb.c?revision=863
           => `/usr/portage/distfiles/nvram-wakeup-mb.c?revision=863'
Resolving nvram-wakeup.svn.sourceforge.net... 66.35.250.144
Connecting to nvram-wakeup.svn.sourceforge.net|66.35.250.144|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: unspecified [text/plain]

100%[==========================================================================================================================================================>] 152,785      105.72K/s             

13:39:05 (105.50 KB/s) - `/usr/portage/distfiles/nvram-wakeup-mb.c?revision=863' saved [152785]

 * nvram-wakeup-0.97.tar.bz2 MD5 ;-) ...                                                                                                                                                        [ ok ]
 * nvram-wakeup-0.97.tar.bz2 RMD160 ;-) ...                                                                                                                                                     [ ok ]
 * nvram-wakeup-0.97.tar.bz2 SHA1 ;-) ...                                                                                                                                                       [ ok ]
 * nvram-wakeup-0.97.tar.bz2 SHA256 ;-) ...                                                                                                                                                     [ ok ]
 * nvram-wakeup-0.97.tar.bz2 size ;-) ...                                                                                                                                                       [ ok ]
 * checking ebuild checksums ;-) ...                                                                                                                                                            [ ok ]
 * checking auxfile checksums ;-) ...                                                                                                                                                           [ ok ]
 * checking miscfile checksums ;-) ...                                                                                                                                                          [ ok ]
 * checking nvram-wakeup-0.97.tar.bz2 ;-) ...                                                                                                                                                   [ ok ]
 * checking nvram-wakeup-mb.c?revision=863 ;-) ...                                                                                                                                              [ !! ]

!!! Digest verification failed:
!!! /usr/portage/distfiles/nvram-wakeup-mb.c?revision=863
!!! Reason: Failed on MD5 verification
!!! Got: d69d91bd3013ffe59b5437290551e153
!!! Expected: 77710334e1c95bb0788bce3075e96c1f

--- END ----

However, even the file at trumpetti.atm.tut.fi is correct. And again, downloading the file by hand does get a correct file.

Actully, I think the 'ls' output I get at the beginnig of the file .listing -file from trumpetti. But also I'm quite confused what is happening here =).
Comment 2 Jakub Moc (RETIRED) gentoo-dev 2007-02-23 12:06:11 UTC
<snip>
Warning: wildcards not supported in HTTP.
</snip>

This is not a valid SRC_URI, really can't assume that mirrors will handle such stuff. RESTRICT="primaryuri" could work, but then again, no guarantee that all SF mirrors will handle this either.
Comment 3 SpanKY gentoo-dev 2007-02-27 15:21:13 UTC
wrong ... there's a reason it says "warning", it's because wget assumes you're trying to use * like a wildcard, not like part of the URI
Comment 4 SpanKY gentoo-dev 2007-03-03 06:26:41 UTC
looks like it's a matter of ftp hating the ?

i'll just restrict the mirror