Skip to content

Rum: Add Wine build linked against older glibc - #66

Closed
Bugg4 wants to merge 7 commits into
seapear:mainfrom
Bugg4:rum-zorin
Closed

Bugg4 wants to merge 7 commits into
seapear:mainfrom
Bugg4:rum-zorin

Conversation

@Bugg4

@Bugg4 Bugg4 commented Sep 18, 2025 •

Copy link
Copy Markdown
Contributor

This allows ZorinOS and other systems based on Ubuntu 22.04 to run ElementalWarrior's wine. More specifically, my build was linked against glibc 2.35.

  • Make user check for current glibc version installed and direct them to the proper build

  • Shorten note about other shells (the guide assumes that if a user is running anything other than bash, they probably know or can figure out where to put aliases)

  • remove --force flag from winetricks install

  • Remove unneeded steps from DPI fix

Resolves #53

TODO:

  • Succesful test on ZorinOS

This allows ZorinOS and other systems based on Ubuntu 22.04 to run ElementalWarrior's wine.
More specifically, my build was linked against glibc 2.35.

- Make user check for current glibc version installed and direct them to the proper build
-  Shorten note about other shells (the guide assumes that if a user is running anything other than bash, they probably know or can figure out where to put aliases )

- remove `--force` flag from winetricks install

- Remove unneeded steps from DPI fix
@Gamedirection

Gamedirection commented Sep 19, 2025 •

Copy link
Copy Markdown
Collaborator

Appears to still be failing.

Trying to install like a user who is following the tutorial
Some Notes:

  • Let's prioritize the original Twig compiled version. (as the Zorin fix is an edge case solution)
  • can we make your align with the same file scheme as the original? This changes all the commands for the edge case, an example which might be breaking other things:
    alias wine-ew-affinity='rum ElementalWarriorWine-x86_64-Glibc-2.35 $HOME/.local/share/wine/prefixes/affinity/'
Wine versions available:
ElementalWarriorWine-x86_64-Glibc-2.35 --> ElementalWarriorWine-x86_64
  • or we can build out a separate file/section for the zorin edge case? Not sure how we want to handle this.

===================================================

Error when following install:

interfaceas@ZorinOS:~$ wine-ew-affinity winetricks --unattended remove_mono vcrun2022 dotnet48  corefonts win11
Rumming /home/interfaceas/.local/share/wine/runners/ElementalWarriorWine-x86_64-Glibc-2.35 (wine-10.7) in: /home/interfaceas/.local/share/wine/prefixes/affinity
Executing mkdir -p /home/interfaceas/.local/share/wine/prefixes
------------------------------------------------------
warning: You are using a 64-bit WINEPREFIX. Note that many verbs only install 32-bit versions of packages. If you encounter problems, please retest in a clean 32-bit WINEPREFIX before reporting a bug.
------------------------------------------------------
------------------------------------------------------
WINEPREFIX INFO:
Drive C: total 28
drwxrwxr-x  7 interfaceas interfaceas 4096 Sep 18 19:55 .
drwxrwxr-x  4 interfaceas interfaceas 4096 Sep 18 19:55 ..
drwxrwxr-x  3 interfaceas interfaceas 4096 Sep 18 19:54 ProgramData
drwxrwxr-x  6 interfaceas interfaceas 4096 Sep 18 19:54 Program Files
drwxrwxr-x  3 interfaceas interfaceas 4096 Sep 18 19:55 Program Files (x86)
drwxrwxr-x  4 interfaceas interfaceas 4096 Sep 18 19:54 users
drwxrwxr-x 19 interfaceas interfaceas 4096 Sep 18 19:55 windows

Registry info:
/home/interfaceas/.local/share/wine/prefixes/affinity/system.reg:#arch=win64
/home/interfaceas/.local/share/wine/prefixes/affinity/user.reg:#arch=win64
/home/interfaceas/.local/share/wine/prefixes/affinity/userdef.reg:#arch=win64
------------------------------------------------------
------------------------------------------------------
warning: wine cmd.exe /c echo '%AppData%' returned empty string, error message "" 
------------------------------------------------------
interfaceas@ZorinOS:~$ wine-ew-affinity winetricks renderer=vulkan
Rumming /home/interfaceas/.local/share/wine/runners/ElementalWarriorWine-x86_64-Glibc-2.35 (wine-10.7) in: /home/interfaceas/.local/share/wine/prefixes/affinity
Executing mkdir -p /home/interfaceas/.local/share/wine/prefixes
------------------------------------------------------
warning: You are using a 64-bit WINEPREFIX. Note that many verbs only install 32-bit versions of packages. If you encounter problems, please retest in a clean 32-bit WINEPREFIX before reporting a bug.
------------------------------------------------------
------------------------------------------------------
WINEPREFIX INFO:
Drive C: total 28
drwxrwxr-x  7 interfaceas interfaceas 4096 Sep 18 19:55 .
drwxrwxr-x  4 interfaceas interfaceas 4096 Sep 18 19:56 ..
drwxrwxr-x  3 interfaceas interfaceas 4096 Sep 18 19:54 ProgramData
drwxrwxr-x  6 interfaceas interfaceas 4096 Sep 18 19:54 Program Files
drwxrwxr-x  3 interfaceas interfaceas 4096 Sep 18 19:55 Program Files (x86)
drwxrwxr-x  4 interfaceas interfaceas 4096 Sep 18 19:54 users
drwxrwxr-x 19 interfaceas interfaceas 4096 Sep 18 19:55 windows

Registry info:
/home/interfaceas/.local/share/wine/prefixes/affinity/system.reg:#arch=win64
/home/interfaceas/.local/share/wine/prefixes/affinity/user.reg:#arch=win64
/home/interfaceas/.local/share/wine/prefixes/affinity/userdef.reg:#arch=win64
------------------------------------------------------
------------------------------------------------------
warning: wine cmd.exe /c echo '%AppData%' returned empty string, error message "" 
------------------------------------------------------
interfaceas@ZorinOS:~$ pushd ~/.local/share/wine/prefixes/affinity/drive_c/windows/system32/ &&
wget https://archive.org/download/win-metadata/WinMetadata.zip &&
unzip WinMetadata.zip &&
rm WinMetadata.zip &&
popd
~/.local/share/wine/prefixes/affinity/drive_c/windows/system32 ~ ~/.local/share/wine/runners ~
--2025-09-18 19:56:47--  https://archive.org/download/win-metadata/WinMetadata.zip
Resolving archive.org (archive.org)... 207.241.224.2
Connecting to archive.org (archive.org)|207.241.224.2|:443... connected.
HTTP request sent, awaiting response... 302 Found
Location: https://ia800802.us.archive.org/8/items/win-metadata/WinMetadata.zip [following]
--2025-09-18 19:56:48--  https://ia800802.us.archive.org/8/items/win-metadata/WinMetadata.zip
Resolving ia800802.us.archive.org (ia800802.us.archive.org)... 207.241.230.82
Connecting to ia800802.us.archive.org (ia800802.us.archive.org)|207.241.230.82|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 2301811 (2.2M) [application/zip]
Saving to: ‘WinMetadata.zip’

WinMetadata.zip            100%[=======================================>]   2.19M  4.77MB/s    in 0.5s    

2025-09-18 19:56:49 (4.77 MB/s) - ‘WinMetadata.zip’ saved [2301811/2301811]

Archive:  WinMetadata.zip
   creating: WinMetadata/
  inflating: WinMetadata/Windows.AI.winmd  
  inflating: WinMetadata/Windows.ApplicationModel.winmd  
  inflating: WinMetadata/Windows.Data.winmd  
  inflating: WinMetadata/Windows.Devices.winmd  
  inflating: WinMetadata/Windows.Foundation.winmd  
  inflating: WinMetadata/Windows.Gaming.winmd  
  inflating: WinMetadata/Windows.Globalization.winmd  
  inflating: WinMetadata/Windows.Graphics.winmd  
  inflating: WinMetadata/Windows.Management.Setup.winmd  
  inflating: WinMetadata/Windows.Management.winmd  
  inflating: WinMetadata/Windows.Media.winmd  
  inflating: WinMetadata/Windows.Networking.winmd  
  inflating: WinMetadata/Windows.Perception.winmd  
  inflating: WinMetadata/Windows.Security.winmd  
  inflating: WinMetadata/Windows.Services.winmd  
  inflating: WinMetadata/Windows.Storage.winmd  
  inflating: WinMetadata/Windows.System.winmd  
  inflating: WinMetadata/Windows.UI.winmd  
  inflating: WinMetadata/Windows.UI.Xaml.winmd  
  inflating: WinMetadata/Windows.Web.winmd  
~ ~/.local/share/wine/runners ~
interfaceas@ZorinOS:~$ cd ~/Downloads/
interfaceas@ZorinOS:~/Downloads$ wine-ew-affinity wine ~/Downloads/affinity-
affinity-designer-msi-2.6.3.exe  affinity-photo-msi-2.6.3.exe     
interfaceas@ZorinOS:~/Downloads$ wine-ew-affinity wine ~/Downloads/affinity-designer-msi-2.6.3.exe 
Rumming /home/interfaceas/.local/share/wine/runners/ElementalWarriorWine-x86_64-Glibc-2.35 (wine-10.7) in: /home/interfaceas/.local/share/wine/prefixes/affinity
002c:err:wineboot:process_run_key Error running cmd L"C:\\windows\\system32\\winemenubuilder.exe -a -r" (126).
00ec:err:environ:init_peb starting L"Z:\\home\\interfaceas\\Downloads\\affinity-designer-msi-2.6.3.exe" in experimental wow64 mode
wine: failed to load L"\\??\\C:\\windows\\syswow64\\ntdll.dll" error c0000135
Application could not be started, or no application associated with the specified file.
ShellExecuteEx failed: 0024:err:start:fatal_error FormatMessage failed


@Bugg4

Bugg4 commented Sep 19, 2025

Copy link
Copy Markdown
Contributor Author

Thanks for testing and for the feedback, I'll look into it

@Gamedirection

Copy link
Copy Markdown
Collaborator
interfaceas@ZorinOS:~/.local/share/wine/runners$ pushd ~/.local/share/wine/runners &&
tar xvzf ElementalWarriorWine.tar.gz &&
rm ElementalWarriorWine.tar.gz &&
popd
~/.local/share/wine/runners ~/.local/share/wine/runners ~/.local/share/wine/runners ~/.local/share/wine/runners /opt
tar (child): ElementalWarriorWine.tar.gz: Cannot open: No such file or directory
tar (child): Error is not recoverable: exiting now
tar: Child returned status 2
tar: Error is not recoverable: exiting now

Full log up to this point:
Clipboard(2).txt

based on this I should utilize:

pushd ~/.local/share/wine/runners &&
tar xvzf ElementalWarriorWine-x86_64.tar.gz &&
rm ElementalWarriorWine-x86_64.tar.gz &&
popd

or for Glibc:

cd ~/.local/share/wine/runners
tar xvzf ElementalWarriorWine-x86_64-Glibc-2.35.tar.gz
rm ElementalWarriorWine-x86_64-Glibc-2.35.tar.gz

Next issue with new naming scheme with Glibc is during .bashrc or .bash_aliases
alias wine-ew-affinity='rum ElementalWarriorWine-x86_64 $HOME/.local/share/wine/prefixes/affinity/'
should be
alias wine-ew-affinity='rum ElementalWarriorWine-x86_64-Glibc-2.35 $HOME/.local/share/wine/prefixes/affinity/'


Idk if it's just me but I either can't seem to get past the alias into the expected results of wine-ew-affinity wineboot --init

Still working on trouble shooting.

@Bugg4

Bugg4 commented Sep 24, 2025

Copy link
Copy Markdown
Contributor Author

Thanks again. I haven't had the chance to come back to this yet but I'll definitely test on a Zorin VM as soon as I have time

Also adapt tar extraction command to work for both versions of the build
Running `rum ElementalWarriorWine-x86_64-Glibc-2.35 $HOME/.local/share/wine/prefixes/affinity/ wineboot --init` wine does ask to create the directory if it doesn't exist, but it's better to make it explicitly beforehand
@Bugg4

Bugg4 commented Sep 25, 2025 •

Copy link
Copy Markdown
Contributor Author

@Gamedirection

So, with the above fixes, plus:

  • wine64 symlink
pushd "$HOME/.local/share/wine/runners/ElementalWarriorWine-x86_64-Glibc-2.35/bin/"
ln -s wine wine64
popd
  • more up-to-date winetricks relative to zorin 6.8.0-60-generic available repos:
wine-ew-affinity winetricks --self-update

winetricks fails to install vcrun2022 :

wine-ew-affinity winetricks --unattended vcrun2022 dotnet48 corefonts win11
Rumming /home/zorin/.local/share/wine/runners/ElementalWarriorWine-x86_64-Glibc-2.35 (wine-10.7) in: /home/zorin/.local/share/wine/prefixes/affinity
Executing cd /usr/bin
Using winetricks 20250102-next - sha256sum: d2981475cd3bbc39d243198d1f64894b765b6ad040dfdcfe9edfc0943dad0d56 with wine-10.7 and WINEARCH=win64
Executing w_do_call vcrun2022
Executing load_vcrun2022 
Using native,builtin override for following DLLs: concrt140 msvcp140 msvcp140_1 msvcp140_2 msvcp140_atomic_wait msvcp140_codecvt_ids vcamp140 vccorlib140 vcomp140 vcruntime140
Executing wine C:\windows\syswow64\regedit.exe /S C:\windows\Temp\_vcrun2022\override-dll.reg
wine: failed to open "C:\\windows\\syswow64\\regedit.exe": c0000135
------------------------------------------------------
egedit.exe /S C:\windows\Temp\_vcrun2022\override-dll.reg returned status 53. Aborting.
------------------------------------------------------

At this point, since the Zorin specific procedures would be cluttering the main guide, I think it would be best to:

  • Create a variant of the guide for Zorin / Ubuntu 22.04 and mark it as incomplete.
    • Would still be unusable because of the above winetricks failure, needs research and additional testing.
  • Maybe wait for Zorin to be updated and retry using the main Twig EW build.
  • Add Zorin current incompatibility to know issues and OS support matrix in the docs.

Let me know how you'd like to proceed

@Gamedirection

Copy link
Copy Markdown
Collaborator

alias wine-ew-affinity='rum ElementalWarriorWine-x86_64 $HOME/.local/share/wine/prefixes/affinity/'
Glib needs -->
alias wine-ew-affinity='rum ElementalWarriorWine-x86_64-Glibc-2.35 $HOME/.local/share/wine/prefixes/affinity/'

Unsure if there is a more elegant way to capture both versions? I saw the star helped a lot.

@Gamedirection

Copy link
Copy Markdown
Collaborator

Got stuck with the initialize again wine-ew-affinity wineboot --init
Clipboard.txt

@Gamedirection

Copy link
Copy Markdown
Collaborator

This pull request will be closed, as numerous developments have occurred since its submission. I propose archiving or referencing the runner in a designated location, as it serves as an important backup.

Thank you, Bugg, for submitting this. If you wish to resubmit with an alternative fix, please feel free to do so, and I will review it. 😊
Version 10.17+ should no longer require custom runners.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[BUG] Affinity v2 does not work on Zorin

2 participants