Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

nixos/tests/wine: fix gecko check and diskSize type #156200

Merged
merged 1 commit into from
Mar 20, 2022

Conversation

B4dM4n
Copy link
Contributor

@B4dM4n B4dM4n commented Jan 22, 2022

Motivation for this change

This fixes the wine test, which currently fails with the following error:

error: A definition for option `virtualisation.diskSize' is not of type `null or positive integer, meaning >0'. Definition values:
       - In `<unknown-file>': "800"
(use '--show-trace' to show detailed location information)
Things done
  • Built on platform(s)
    • x86_64-linux nix build -f ./nixos/tests/wine.nix
    • aarch64-linux
    • x86_64-darwin
    • aarch64-darwin
  • For non-Linux: Is sandbox = true set in nix.conf? (See Nix manual)
  • Tested, as applicable:
  • Tested compilation of all packages that depend on this change using nix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD". Note: all changes have to be committed, also see nixpkgs-review usage
  • Tested basic functionality of all binary files (usually in ./result/bin/)
  • 22.05 Release Notes (or backporting 21.11 Release notes)
    • (Package updates) Added a release notes entry if the change is major or breaking
    • (Module updates) Added a release notes entry if the change is significant
    • (Module addition) Added a release notes entry if adding a new NixOS module
    • (Release notes changes) Ran nixos/doc/manual/md-to-db.sh to update generated release notes
  • Fits CONTRIBUTING.md.

@B4dM4n
Copy link
Contributor Author

B4dM4n commented Jan 26, 2022

I ran the tests again including #153932.

The new test winePackages-wayland succeeds, but wineWowPackages-wayland fails:

machine # wine: created the configuration directory '/root/.wine'
machine # 002c:fixme:actctx:parse_depend_manifests Could not find dependent assembly L"Microsoft.Windows.Common-Controls" (6.0.0.0)
machine # 0048:fixme:actctx:parse_depend_manifests Could not find dependent assembly L"Microsoft.Windows.Common-Controls" (6.0.0.0)
machine # 0050:fixme:actctx:parse_depend_manifests Could not find dependent assembly L"Microsoft.Windows.Common-Controls" (6.0.0.0)
machine # error: XDG_RUNTIME_DIR not set in the environment.
machine # error: XDG_RUNTIME_DIR not set in the environment.
machine # wine: Unhandled page fault on execute access to 00007FDA45A0FA80 at address 00007FDA45A0FA80 (thread 0048), starting debugger...
Details
machine # [    6.361949] systemd[1]: Startup finished in 2.790s (kernel) + 3.570s (userspace) = 6.361s.
(finished: waiting for unit multi-user.target, in 7.00 seconds)
machine: must succeed: bash -c 'wine /nix/store/0wqs6a0ifvdw2qkl2y5cim1s01kalap2-hello-i686-w64-mingw32-2.10/bin/hello.exe 2> >(tee wine-stderr >&2)'
machine # wine: created the configuration directory '/root/.wine'
machine # 002c:fixme:actctx:parse_depend_manifests Could not find dependent assembly L"Microsoft.Windows.Common-Controls" (6.0.0.0)
machine # 0048:fixme:actctx:parse_depend_manifests Could not find dependent assembly L"Microsoft.Windows.Common-Controls" (6.0.0.0)
machine # 0050:fixme:actctx:parse_depend_manifests Could not find dependent assembly L"Microsoft.Windows.Common-Controls" (6.0.0.0)
machine # error: XDG_RUNTIME_DIR not set in the environment.
machine # error: XDG_RUNTIME_DIR not set in the environment.
machine # wine: Unhandled page fault on execute access to 00007FDA45A0FA80 at address 00007FDA45A0FA80 (thread 0048), starting debugger...
machine # 0048:err:seh:start_debugger Couldn't start debugger L"winedbg --auto 68 88" (2)
machine # Read the Wine Developers Guide on how to set up winedbg or another debugger
machine # wine: Unhandled page fault on execute access to 00007F09BAE7BA80 at address 00007F09BAE7BA80 (thread 0050), starting debugger...
machine # 0050:err:seh:start_debugger Couldn't start debugger L"winedbg --auto 76 88" (2)
machine # Read the Wine Developers Guide on how to set up winedbg or another debugger
machine # 0040:err:winediag:nodrv_CreateWindow Application tried to create a window, but no driver could be loaded.
machine # 0040:err:winediag:nodrv_CreateWindow The explorer process failed to start.
machine # 002c:err:winediag:nodrv_CreateWindow Application tried to create a window, but no driver could be loaded.
machine # 002c:err:winediag:nodrv_CreateWindow The explorer process failed to start.
machine # [    7.536116] dbus-daemon[750]: [system] Activating via systemd: service name='org.freedesktop.UDisks2' unit='udisks2.service' requested by ':1.2' (uid=0 pid=898 comm="C:\windows\system32\winedevice.exe                " label="kernel")
machine # [    7.550101] systemd[1]: Starting Disk Manager...
machine # [    7.660975] udisksd[907]: udisks daemon version 2.9.4 starting
machine # [    7.683455] dhcpcd[657]: eth0: Router Advertisement from fe80::2
machine # [    7.683902] dhcpcd[657]: eth0: adding address fec0::5054:ff:fe12:3456/64
machine # [    7.684383] dhcpcd[657]: eth0: adding route to fec0::/64
machine # [    7.684762] dhcpcd[657]: eth0: adding default route via fe80::2
machine # [    7.685520] udisksd[907]: Failed to load config files: Failed to get contents of the config dir (/etc/libblockdev/conf.d/)Error opening directory “/etc/libblockdev/conf.d/”: No such file or directory. Using the built-in config
machine # 0084:err:winediag:nodrv_CreateWindow Application tried to create a window, but no driver could be loaded.
machine # 0084:err:winediag:nodrv_CreateWindow The explorer process failed to start.
machine # [    7.822507] dbus-daemon[750]: [system] Activating via systemd: service name='org.freedesktop.PolicyKit1' unit='polkit.service' requested by ':1.3' (uid=0 pid=907 comm="/nix/store/73xsyv7lvx2jdda77n5fhmch7yyq07rv-udisks" label="kernel")
machine # [    7.838972] systemd[1]: Starting Authorization Manager...
machine # [    7.970099] polkitd[911]: Started polkitd version 0.120
machine # [    8.247999] polkitd[911]: Loading rules from directory /etc/polkit-1/rules.d
machine # [    8.248555] polkitd[911]: Loading rules from directory /run/current-system/sw/share/polkit-1/rules.d
machine # [    8.252401] polkitd[911]: Finished loading, compiling and executing 2 rules
machine # [    8.254494] dbus-daemon[750]: [system] Successfully activated service 'org.freedesktop.PolicyKit1'
machine # [    8.255065] systemd[1]: Started Authorization Manager.
machine # [    8.255913] polkitd[911]: Acquired the name org.freedesktop.PolicyKit1 on the system bus
machine # [    8.385818] dbus-daemon[750]: [system] Successfully activated service 'org.freedesktop.UDisks2'
machine # [    8.388403] systemd[1]: Started Disk Manager.
machine # [    8.389523] udisksd[907]: Acquired the name org.freedesktop.UDisks2 on the system message bus
machine # 0084:err:setupapi:SetupDefaultQueueCallbackW copy error 1812 L"@C:\\windows\\system32\\drivers\\wineusb.sys,-1" -> L"C:\\windows\\inf\\wineusb.inf"
machine # 008c:err:winediag:nodrv_CreateWindow Application tried to create a window, but no driver could be loaded.
machine # 008c:err:winediag:nodrv_CreateWindow The explorer process failed to start.
machine # 00ac:err:winediag:nodrv_CreateWindow Application tried to create a window, but no driver could be loaded.
machine # 00ac:err:winediag:nodrv_CreateWindow The explorer process failed to start.
machine # wine: configuration in L"/root/.wine" has been updated.
(finished: must succeed: bash -c 'wine /nix/store/0wqs6a0ifvdw2qkl2y5cim1s01kalap2-hello-i686-w64-mingw32-2.10/bin/hello.exe 2> >(tee wine-stderr >&2)', in 17.16 seconds)
machine: must succeed: bash -c 'wine /nix/store/i68pcsdkflphlk3smpc0n6i348x58xiq-hello-x86_64-w64-mingw32-2.10/bin/hello.exe 2> >(tee wine-stderr >&2)'
machine # error: XDG_RUNTIME_DIR not set in the environment.
machine # wine: Unhandled page fault on execute access to 00007F48B4ADBA80 at address 00007F48B4ADBA80 (thread 0060), starting debugger...
```</details>

@7c6f434c
Copy link
Member

Not sure whether this use of Wayland just still needs fixes in packaging. @jmc-figueira ?

@Artturin
Copy link
Member

Artturin commented Mar 6, 2022

@ofborg build nixosTests.wine

@nixos-discourse
Copy link

This pull request has been mentioned on NixOS Discourse. There might be relevant details there:

https://discourse.nixos.org/t/prs-ready-for-review/3032/783

@Artturin Artturin merged commit 8cfcf8c into NixOS:master Mar 20, 2022
@B4dM4n B4dM4n deleted the nixos-tests-wine branch March 22, 2024 08:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants