lmiphay / gentoo.overlay

lmiphay gentoo overlay
4 stars 3 forks source link

Firestorm-bin updated URL for the linux package and now results in a 404 error #18

Open zewm opened 2 years ago

zewm commented 2 years ago

When trying to emerge this package (games-simulation/Firestorm-bin-6.5.3-r1) it results in a 404 error when attempting to download the linux package/source from the firestorm website.

In the current ebuild it points to https://downloads.firestormviewer.org/preview/linux/Phoenix_Firestorm-Releasex64_x86_64_6.5.3.65658.tar.xz

but the URL has changed (/preview/ has been omitted) and is now this url https://downloads.firestormviewer.org/linux/Phoenix_Firestorm-Releasex64_x86_64_6.5.3.65658.tar.xz

The version numbers are all correct and have not changed as of this writing.

source: https://www.firestormviewer.org/linux/

lmiphay commented 2 years ago

Thanks for the report @zewm - updated now.

ntheo1979 commented 10 months ago

Same issue, I'm afraid, @lmiphay: `

Emerging (3 of 3) games-simulation/firestorm-bin-7.0.0_alpha_p1::lmiphay Downloading 'https://downloads.firestormviewer.org/test/linux/Phoenix-Firestorm-Alphax64-7-0-0-72232.tar.xz' --2023-11-01 14:06:51-- https://downloads.firestormviewer.org/test/linux/Phoenix-Firestorm-Alphax64-7-0-0-72232.tar.xz Resolving downloads.firestormviewer.org... 104.21.6.124, 172.67.134.216, 2606:4700:3035::6815:67c, ... Connecting to downloads.firestormviewer.org|104.21.6.124|:443... connected. HTTP request sent, awaiting response... 403 Forbidden 2023-11-01 14:06:51 ERROR 403: Forbidden.

!!! Couldn't download 'Phoenix-Firestorm-Alphax64-7-0-0-72232.tar.xz'. Aborting.

The file downloads properly if you put the address in a browser, but after it passes some type of test first within the browser. wget complains

nikos@Archytas ~/Desktop $ wget https://downloads.firestormviewer.org/test/linux/Phoenix-Firestorm-Alphax64-7-0-0-72232.tar.xz--2023-11-01 14:25:12-- https://downloads.firestormviewer.org/test/linux/Phoenix-Firestorm-Alphax64-7-0-0-72232.tar.xz Resolving downloads.firestormviewer.org... 104.21.6.124, 172.67.134.216, 2606:4700:3035::6815:67c, ... Connecting to downloads.firestormviewer.org|104.21.6.124|:443... connected. HTTP request sent, awaiting response... 403 Forbidden 2023-11-01 14:25:12 ERROR 403: Forbidden.

lmiphay commented 10 months ago

I think that firestorm and/or cloudfare have recently restricted downloads to those using web browsers only.

This would be fetch restricted in gentoo terms.

The workaround is to download the tarball using the web browser and manually move it to /usr/portage/disfiles

I will update the ebuild with instructions to do this, if it turns out that the situation is permanent...

ntheo1979 commented 10 months ago

It seems you are right, it happens with release versions too. I do not have a /usr/portage/distfiles (I do not have a /usr/portage at all), should I make one?

lmiphay commented 10 months ago

You may have a /var/cache/distfiles ?

If you do have that directory, then that is where the tarball should be moved after downloading it with a web browser.

Some notes on handling fetch restricted packages:

  1. https://www.seifertm.de/blog/fetching-packages-from-authenticated-http-uris-with-gentoo-portage/
  2. https://devmanual.gentoo.org/ebuild-writing/functions/pkg_nofetch/index.html
ntheo1979 commented 10 months ago

Well, that did it. Thank you, and for the references too.

lmiphay commented 9 months ago

The latest release candidate downloaded directly via the ebuild.

Let me know if you see further fetch failures. I will add a message anyway in case the DDoS protection is turned on again on the fs website.

ntheo1979 commented 9 months ago

Yes, I see this: https://jira.firestormviewer.org/browse/FIRE-33379 Did you file it?

Thanks for working on it :) Firestorm can be tiresome to work sometimes, but alas it is the viewer with the most features.