After successful downloading the source .tgz, emerge aborts, complaining that the download wasn't successful. >>> Downloading ftp://ftp.povray.org/pub/povray/Official/Unix/povuni_s.tgz --10:48:07-- ftp://ftp.povray.org/pub/povray/Official/Unix/povuni_s.tgz => `/usr/portage/distfiles/povuni_s.tgz' Resolving ftp.povray.org... done. Connecting to ftp.povray.org[204.213.191.228]:21... connected. Logging in as anonymous ... Logged in! ==> SYST ... done. ==> PWD ... done. ==> TYPE I ... done. ==> CWD /pub/povray/Official/Unix ... done. ==> PASV ... done. ==> RETR povuni_s.tgz ... done. Length: 6,602,380 (unauthoritative) 100%[====================================>] 6,602,380 130.45K/s ETA 00:00 10:48:58 (130.45 KB/s) - `/usr/portage/distfiles/povuni_s.tgz' saved [6602380] !!! Couldn't download povuni_s.tgz. Aborting. After proving that the source file is OK > tar tvzf povuni_s.tgz drwxrwxrwx root/root 0 2003-01-07 02:23:22 povray-3.50c/ -rw-r--r-- root/root 14637 2003-01-07 02:22:44 povray-3.50c/Makefile.in -r--r--r-- root/root 2658 2003-01-07 02:10:01 povray-3.50c/README -rw-r--r-- root/root 897 2003-01-07 02:09:58 povray-3.50c/AUTHORS -r--r--r-- root/root 1207 2003-01-07 02:09:59 povray-3.50c/COPYING .... retrying also failed after saving the file. >>> Resuming download... >>> Downloading ftp://ftp.povray.org/pub/povray/Official/Unix/povuni_s.tgz --10:40:53-- ftp://ftp.povray.org/pub/povray/Official/Unix/povuni_s.tgz => `/usr/portage/distfiles/povuni_s.tgz' Resolving ftp.povray.org... done. Connecting to ftp.povray.org[204.213.191.228]:21... connected. Logging in as anonymous ... Logged in! ==> SYST ... done. ==> PWD ... done. ==> TYPE I ... done. ==> CWD /pub/povray/Official/Unix ... done. ==> SIZE povuni_s.tgz ... done. ==> PASV ... done. ==> REST 6602380 ... done. ==> RETR povuni_s.tgz ... done. Length: 6,602,380 [0 to go] 100%[====================================>] 6,602,380 --.--K/s ETA --:-- 10:40:55 (0.00 B/s) - `/usr/portage/distfiles/povuni_s.tgz' saved [6602380] !!! Couldn't download povuni_s.tgz. Aborting. Even after manually downloading the file from different sources, emerge tries to resume the download, failing just like above.
povray 3.5 is updated to version 3.50c on the povray ftp server, while the ebuild still is for povray 3.50a. The filename is still the same (povuni_s.tgz) but the size differs.
Created attachment 9844 [details] Digest file for povray-3.50c This file should go into /usr/portage/media-gfx/povray/files
Created attachment 9845 [details] New ebuild for povray-3.50c This is the old povray-3.50a ebuild, blatantly copied with new name.
Created attachment 9846 [details, diff] Patch for povray-3.50c This is the patch (copied from the old povray-3.50a.patch).
The old source files are starting to show up on the Gentoo mirrors again, which makes this new digest file invalid if the emerge pulls the source package from one of the mirrors. If you want povray-3.50c you need to get the povuni_s.tgz from www.povray.org and put it in the distfiles directory manually. I built the new version this way and it works. Not sure about what has changed though.
I was making the povray-3.50c ebuild this morning, but it failed while trying to build the digest (with the same error). Seems like the problem is deeper than you are saying. Either portage is interpreting the wget return code incorrectly, or wget is giving us a weird return code.
The issue seems to have been user error on my part. New ebuild commited, thanks for your help guys.