bottlesdevs / dependencies

Repository for wine software dependencies
https://usebottles.com/database/dependencies
41 stars 40 forks source link

[Report] arial32 font download failed #232

Closed RyuKay24 closed 4 months ago

RyuKay24 commented 4 months ago

Which dependency? arial32

Problem type

Describe the problem arial32 font unable to download due to broken link or server down error: Failed to download [https://cfhcable.dl.sourceforge.net/project/corefonts/the%20fonts/final/arial32.exe]

AlmAck commented 4 months ago

Same, to me the correct link is: https://sourceforge.net/projects/corefonts/files/the%20fonts/final/arial32.exe

and not https://cfhcable.dl.sourceforge.net/project/corefonts/the%20fonts/final/arial32.exe

I would also verify other links that contains dl.sourceforge https://github.com/search?q=repo%3Abottlesdevs%2Fdependencies+dl.sourceforge&type=code

Leonidas300 commented 4 months ago

I download all fonts separatly, arial32 and trebuc32 have wrong url.

xioren commented 4 months ago

The problem is that https://sourceforge.net/projects/corefonts/files/the%20fonts/final/arial32.exe is a link to the download page, not the resource itself. When accessing that page in a browser it loads html and triggers a download after a brief delay. In my case the actual download link was https://versaweb.dl.sourceforge.net/project/corefonts/the%20fonts/final/arial32.exe?viasf=1. This is where the original urls we had came from. However since they are hard-coded if the url structure/server changes the download url breaks, such as in this case.

With that being said I just tested https://sourceforge.net/projects/corefonts/files/the%20fonts/final/arial32.exe out with requests (which is what we use internally) and it seems like it redirects properly so I have made a PR to update all sourceforge urls.

cadecomposer commented 4 months ago

Sorry not sure if this is the right place to ask this, but is there a workaround to be able to make a new bottle in the meantime before this fix gets pushed out in the next release? Was going to set up bottles today after distro hopping, but I've not been able to make a new bottle because it errors out when trying to download the Arial font

edit: figured out you can just run it offline 👍

atuleu commented 4 months ago

Sorry not sure if this is the right place to ask this, but is there a workaround to be able to make a new bottle in the meantime before this fix gets pushed out in the next release? Was going to set up bottles today after distro hopping, but I've not been able to make a new bottle because it errors out when trying to download the Arial font

I managed to do the following (using flatpak)

cd <somewhere>
git clone https://github.com/xioren/dependencies.git

The repo above is the repo with the PR that sets the right URL for the fonts

If you are using flatpak, with flatseal modify the permission of bottles

To check that it works launch bottles from command line:

flatpak run com.usebottles.bottles

You should see the following log line:

(INFO) Using local dependencies repository at <somewhere>/dependencies