FS#64990 - [wine-gecko] Support for global install location

Attached to Project: Community Packages
Opened by Maciej Stanczew (stanczew) - Tuesday, 31 December 2019, 00:01 GMT
Last edited by Daniel Bermond (Bermond) - Monday, 02 August 2021, 20:53 GMT
Task Type Feature Request
Category Packages: Multilib
Status Closed
Assigned To Felix Yan (felixonmars)
Daniel Bermond (Bermond)
Architecture All
Severity Medium
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 7
Private No

Details

Analogous request for wine-mono:  FS#62351 

Support for global install location was added with Wine Gecko 2.47.1 and Wine 5.0-rc1:
https://www.winehq.org/announce/5.0-rc1

Using global install saves almost 200 MB of disk space when using just one Wine prefix:
* .msi installer: 98 MB for wine-gecko package + 296 MB per Wine prefix
* global install: 197 MB for wine-gecko package + 0 MB per Wine prefix
This task depends upon

Closed by  Daniel Bermond (Bermond)
Monday, 02 August 2021, 20:53 GMT
Reason for closing:  Implemented
Additional comments about closing:  wine-gecko 2.47.2-2
Comment by oud54036@zzrgg.com (soredake) - Monday, 30 March 2020, 17:31 GMT
Any progress on this?
Comment by Daniel Bermond (Bermond) - Sunday, 01 August 2021, 12:07 GMT
Version 2.47.2-2 implements this change and is now on the [community-testing] repository. And no .msi files are on the package.

Can you please test if it works for you? Please test with both 32-bit and 64-bit wine prefixes, as the gecko engine has separated installations for each architecture.
Comment by Maciej Stanczew (stanczew) - Sunday, 01 August 2021, 16:57 GMT
Apparently since Wine 6.2, wine-gecko is not automatically installed anymore on prefix creation:
https://bugs.winehq.org/show_bug.cgi?id=50759
Because of this it's a bit more complicated to verify if Gecko is installed properly.

I tested 32- and 64-bit prefixes, with Wine and Staging (both 6.14-1). After creating a prefix I ran "wine iexplore", as suggested in the bug report.
In all cases results were as expected: with wine-gecko 2.47.2-2 installed the winehq.org page loaded inside iexplore, while with wine-gecko uninstalled I got a prompt to download it -- however the downloadable wine-gecko was 32-bit regardless if prefix was 32- or 64-bit.

I wasn't sure how to test 64-bit wine-gecko, so I installed Wine 6.1, which does check Gecko on prefix creation. With wine-gecko uninstalled I got two prompts to download it, one for 32-bit and one for 64-bit Gecko. With wine-gecko 2.47.2-2 installed there were no prompts, so the shared installation got picked up successfully.

Edit: "winecfg iexplore" -> "wine iexplore"
Comment by Daniel Bermond (Bermond) - Sunday, 01 August 2021, 17:58 GMT

For testing on a 64-bit wine prefix, run 'wine64 iexplore' and check if the 'iexplore.exe' process is loading libraries from '/usr/share/wine/gecko/wine-gecko-2.47.2-x86_64/'.

Works fine for me on both 32-bit and 64-bit wine prefixes: each wine architecture loads the gecko engine from the corresponding directory under '/usr/share/wine/gecko/', the web sites are displayed successfully and no gecko files are installed under the wine prefix.
Comment by Maciej Stanczew (stanczew) - Monday, 02 August 2021, 19:34 GMT
Ok, running "wine64 iexplore" does indeed use 64-bit Gecko.
Without wine-gecko package installed I got a download prompt, and then iexplore (and wineserver) used files under <prefix>/drive_c/system32/gecko/2.47.2/wine_gecko, as shown by lsof.
With wine-gecko 2.47.2-2 installed the winehq.org website loaded immediately without download prompt, and lsof showed Gecko DLLs under /usr/share/wine/gecko/wine-gecko-2.47.2-x86_64 were being used.
Comment by Daniel Bermond (Bermond) - Monday, 02 August 2021, 20:52 GMT
Thank you for the confirmation.

wine-gecko 2.47.2-2 is now on the [community] official repository. Closing.

Loading...