If you read the file that's actually downloaded it's the page asking for you to accept their cookie policy. I've not even the slightest idea how to work around this. I tried downloading the file, putting it in DISTFILES and then trying "emerge --resume" but it still attempts to download it. >>> Verifying ebuild manifests >>> Emerging (1 of 1) media-video/handbrake-1.0.7::gentoo >>> Downloading 'http://handbrake.fr/rotation.php?file=HandBrake-1.0.7.tar.bz2' --2017-07-19 11:47:44-- http://handbrake.fr/rotation.php?file=HandBrake-1.0.7.tar.bz2 Resolving handbrake.fr... 46.105.55.28 Connecting to handbrake.fr|46.105.55.28|:80... connected. HTTP request sent, awaiting response... 302 Moved Temporarily Location: https://handbrake.fr/rotation.php?file=HandBrake-1.0.7.tar.bz2 [following] --2017-07-19 11:47:45-- https://handbrake.fr/rotation.php?file=HandBrake-1.0.7.tar.bz2 Connecting to handbrake.fr|46.105.55.28|:443... connected. HTTP request sent, awaiting response... 200 OK Length: 5961 (5.8K) [text/html] Saving to: ‘/usr/portage/distfiles/handbrake-1.0.7.tar.bz2’ /usr/portage/distfi 100%[===================>] 5.82K --.-KB/s in 0s 2017-07-19 11:47:45 (1.13 GB/s) - ‘/usr/portage/distfiles/handbrake-1.0.7.tar.bz2’ saved [5961/5961] !!! Fetched file: handbrake-1.0.7.tar.bz2 VERIFY FAILED! !!! Reason: Filesize does not match recorded size !!! Got: 5961 !!! Expected: 12650549 Refetching... File renamed to '/usr/portage/distfiles/handbrake-1.0.7.tar.bz2._checksum_failure_.IAOGKW' !!! Couldn't download 'handbrake-1.0.7.tar.bz2'. Aborting. * Fetch failed for 'media-video/handbrake-1.0.7', Log file: * '/var/tmp/portage/media-video/handbrake-1.0.7/temp/build.log' >>> Failed to emerge media-video/handbrake-1.0.7, Log file: >>> '/var/tmp/portage/media-video/handbrake-1.0.7/temp/build.log' * Messages for package media-video/handbrake-1.0.7: * Fetch failed for 'media-video/handbrake-1.0.7', Log file: * '/var/tmp/portage/media-video/handbrake-1.0.7/temp/build.log'
strange. works for me. /usr/portage/media-video/handbrake$ ebuild handbrake-1.0.7.ebuild fetch >>> Downloading 'http://mirror.netcologne.de/gentoo/distfiles/handbrake-1.0.7.tar.bz2' [..] /usr/portage/distfi 100%[===================>] 12.06M 1.90MB/s in 6.4s
That's odd. Yours is using a mirror, mine is downloading from handbrake.fr. I don't even have a mirror listed in my ebuild. WEIRD.
Ok, I figured the problem with no mirrors out. Was a bad url for the mirrors in my make.conf. Fixed that. That said, maybe someone should figure out a way to deal with the given url in case someone doesn't have any mirrors listed. Maybe point directly to a mirror?
(In reply to ehrich.weiss from comment #3) > Ok, I figured the problem with no mirrors out. Was a bad url for the mirrors > in my make.conf. Fixed that. > > That said, maybe someone should figure out a way to deal with the given url > in case someone doesn't have any mirrors listed. Maybe point directly to a > mirror? Pointing directly to a mirror isn't something really supported (AFAIK), and if it was, it'd be a portage feature.
But we should update the SRC_URI, in a way that it works without mirrors too.