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

qemu: 8.2.4 -> 9.0.0 #298097

Merged
merged 1 commit into from
May 16, 2024
Merged

qemu: 8.2.4 -> 9.0.0 #298097

merged 1 commit into from
May 16, 2024

Conversation

alyssais
Copy link
Member

Description of changes

The Darwin patches have stopped applying again. (cc @willcohen)

Things done

  • Built on platform(s)
    • x86_64-linux
    • aarch64-linux
    • x86_64-darwin
    • aarch64-darwin
  • For non-Linux: Is sandboxing enabled in nix.conf? (See Nix manual)
    • sandbox = relaxed
    • sandbox = true
  • 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/)
  • 24.05 Release Notes (or backporting 23.05 and 23.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
  • Fits CONTRIBUTING.md.

Add a 👍 reaction to pull requests you find important.

@ofborg ofborg bot requested a review from edolstra March 22, 2024 17:07
@ofborg ofborg bot added 11.by: package-maintainer This PR was created by the maintainer of the package it changes 10.rebuild-darwin: 11-100 10.rebuild-linux: 11-100 labels Mar 22, 2024
@risicle
Copy link
Contributor

risicle commented Apr 2, 2024

Might it be time to set MACOSX_DEPLOYMENT_TARGET to something >= 10.14 for qemu?

@alyssais
Copy link
Member Author

alyssais commented Apr 2, 2024

I don't use or understand macOS, so I don't really have an opinion, except that something needs to be done in the next two weeks.

@alyssais alyssais changed the title qemu: 8.2.2 -> 9.0.0-rc0 qemu: 8.2.2 -> 9.0.0-rc2 Apr 4, 2024
@risicle
Copy link
Contributor

risicle commented Apr 7, 2024

I'm told the fixes needed to make this work on darwin are currently in staging. Haven't been able to do a staging bootstrap yet to test this.

@alyssais
Copy link
Member Author

staging-next has merged now, so am I understanding correctly that if I rebase this it should build on Darwin without the patches?

@alyssais alyssais changed the title qemu: 8.2.2 -> 9.0.0-rc2 qemu: 8.2.2 -> 9.0.0-rc3 Apr 12, 2024
@alyssais
Copy link
Member Author

Still not building on x86_64-darwin. Is there something else that needs to happen?

@willcohen
Copy link
Contributor

I no longer have access to an x86 mac (moved on to arm64) and so can't actually run the relevant builds. However, unless #101229 and similar issues happen, it would surprise me to not need these anymore. The patches are basically undoing 10.13+ stuff that is being added to QEMU to allow it to keep building on x86. At this point, 10.13 came out in 2017, and I think we're reaching the point where it's unreasonable to backport software to require an OS's API that has to be 7+ years old.

If only because I don't know anyone else who is invested in qemu on darwin x86 on nix, I'm not sure how to test that functionality short of me trial-and-erroring blindly by trying to fix diffs and with ofborg as my guinea pig.

@risicle
Copy link
Contributor

risicle commented Apr 12, 2024

staging-next has merged now, so am I understanding correctly that if I rebase this it should build on Darwin without the patches?

No, I'm told it missed this staging-next cycle.

@risicle
Copy link
Contributor

risicle commented Apr 13, 2024

Have tried with the new staging-next cycle, and still no luck :(

@matdibu
Copy link
Contributor

matdibu commented Apr 24, 2024

9.0 (non RC) is out now, if you can and want to pursue this.

@alyssais
Copy link
Member Author

I still need somebody to tell me what to do about x86_64-darwin, unless we just mark it broken?

@willcohen
Copy link
Contributor

Unless we can find someone with an x86-darwin machine who wants to rebase and test, I think broken is the best bet, but that's just me.

@alyssais
Copy link
Member Author

@ofborg test cage cagebreak cloud-init-hostname cloud-init mtp os-prober phosh sway systemd-initrd-luks-fido2 tinywl virtualbox

@alyssais
Copy link
Member Author

Ugh, apparently QEMU is release-critical for x86_64-darwin, so we can't just mark it broken without blocking the channel.

@roberth @Enzime seems like you were involved in that — can you help here?

@alyssais alyssais changed the title qemu: 8.2.2 -> 9.0.0-rc3 qemu: 8.2.2 -> 9.0.0 Apr 24, 2024
@willcohen
Copy link
Contributor

If it's okay to get it removed out of being release critical, that makes the most sense to me. If it's considered release critical, then we'll need to find a volunteer from darwin maintainers who's still on x86 and doesn't mind rebasing the patches (not pinging them yet...)

@amarshall
Copy link
Member

amarshall commented Apr 30, 2024

Following the advice from the docs on using a newer SDK does not seem to work, or at least has other problems:

applying this patch onto this PR (after rebasing on nixos-unstable)
diff --git a/pkgs/applications/virtualization/qemu/default.nix b/pkgs/applications/virtualization/qemu/default.nix
index a2b01272b1f3..7afca0cbd371 100644
--- a/pkgs/applications/virtualization/qemu/default.nix
+++ b/pkgs/applications/virtualization/qemu/default.nix
@@ -265,7 +265,6 @@ stdenv.mkDerivation (finalAttrs: {
     license = licenses.gpl2Plus;
     maintainers = with maintainers; [ eelco qyliss ];
     platforms = platforms.unix;
-    broken = stdenv.hostPlatform.system == "x86_64-darwin";
   }
   # toolsOnly: Does not have qemu-kvm and there's no main support tool
   // lib.optionalAttrs (!toolsOnly) {
diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix
index eaa23105da40..398179be3fa2 100644
--- a/pkgs/top-level/all-packages.nix
+++ b/pkgs/top-level/all-packages.nix
@@ -34070,8 +34070,8 @@ with pkgs;
 
   eiskaltdcpp = libsForQt5.callPackage ../applications/networking/p2p/eiskaltdcpp { };
 
-  qemu = callPackage ../applications/virtualization/qemu {
-    inherit (darwin.apple_sdk.frameworks) CoreServices Cocoa Hypervisor vmnet;
+  qemu = darwin.apple_sdk_11_0.callPackage ../applications/virtualization/qemu {
+    inherit (darwin.apple_sdk_11_0.frameworks) CoreServices Cocoa Hypervisor vmnet;
     inherit (darwin.stubs) rez setfile;
     inherit (darwin) sigtool;
   };
results in these errors when building on x86_64-darwin
../hw/9pfs/9p-local.c:1084:11: error: call to undeclared function 'utimensat'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
1 error generated.
../hw/9pfs/9p.c:1691:36: error: use of undeclared identifier 'UTIME_NOW'
../hw/9pfs/9p.c:1694:32: error: use of undeclared identifier 'UTIME_OMIT'
../hw/9pfs/9p.c:1701:36: error: use of undeclared identifier 'UTIME_NOW'
../hw/9pfs/9p.c:1704:32: error: use of undeclared identifier 'UTIME_OMIT'
../hw/9pfs/9p.c:3508:32: error: use of undeclared identifier 'UTIME_OMIT'
../hw/9pfs/9p.c:3514:32: error: use of undeclared identifier 'UTIME_OMIT'
6 errors generated.
/nix/store/lab5b8cz2jwy112r6ikry36xhln2v9am-apple-framework-Foundation-11.0.0/Library/Frameworks/Foundation.framework/Headers/NSObjCRuntime.h:522:55: error: function definition declared 'typedef'
/nix/store/lab5b8cz2jwy112r6ikry36xhln2v9am-apple-framework-Foundation-11.0.0/Library/Frameworks/Foundation.framework/Headers/NSObjCRuntime.h:523:5: error: use of undeclared identifier 'NSOrderedAscending'
/nix/store/lab5b8cz2jwy112r6ikry36xhln2v9am-apple-framework-Foundation-11.0.0/Library/Frameworks/Foundation.framework/Headers/NSObjCRuntime.h:524:5: error: use of undeclared identifier 'NSOrderedSame'
/nix/store/lab5b8cz2jwy112r6ikry36xhln2v9am-apple-framework-Foundation-11.0.0/Library/Frameworks/Foundation.framework/Headers/NSObjCRuntime.h:525:5: error: use of undeclared identifier 'NSOrderedDescending'
/nix/store/lab5b8cz2jwy112r6ikry36xhln2v9am-apple-framework-Foundation-11.0.0/Library/Frameworks/Foundation.framework/Headers/NSObjCRuntime.h:529:30: error: block pointer to non-function type is invalid
/nix/store/lab5b8cz2jwy112r6ikry36xhln2v9am-apple-framework-Foundation-11.0.0/Library/Frameworks/Foundation.framework/Headers/NSObjCRuntime.h:529:29: error: nullability specifier '_Nonnull' cannot be applied to non-pointer type 'int'
/nix/store/lab5b8cz2jwy112r6ikry36xhln2v9am-apple-framework-Foundation-11.0.0/Library/Frameworks/Foundation.framework/Headers/NSObjCRuntime.h:529:28: error: function cannot return function type 'int (id _Nonnull, id _Nonnull)'
/nix/store/lab5b8cz2jwy112r6ikry36xhln2v9am-apple-framework-Foundation-11.0.0/Library/Frameworks/Foundation.framework/Headers/NSValue.h:78:1: error: function cannot return function type 'NSComparisonResult' (aka 'int (int)')
/nix/store/lab5b8cz2jwy112r6ikry36xhln2v9am-apple-framework-Foundation-11.0.0/Library/Frameworks/Foundation.framework/Headers/NSValue.h:109:94: error: expected a version of the form 'major[.minor[.subminor]]'
/nix/store/lab5b8cz2jwy112r6ikry36xhln2v9am-apple-framework-Foundation-11.0.0/Library/Frameworks/Foundation.framework/Headers/NSValue.h:109:126: error: expected a version of the form 'major[.minor[.subminor]]'
/nix/store/lab5b8cz2jwy112r6ikry36xhln2v9am-apple-framework-Foundation-11.0.0/Library/Frameworks/Foundation.framework/Headers/NSValue.h:109:162: error: expected a version of the form 'major[.minor[.subminor]]'
/nix/store/lab5b8cz2jwy112r6ikry36xhln2v9am-apple-framework-Foundation-11.0.0/Library/Frameworks/Foundation.framework/Headers/NSValue.h:109:195: error: expected a version of the form 'major[.minor[.subminor]]'
/nix/store/lab5b8cz2jwy112r6ikry36xhln2v9am-apple-framework-Foundation-11.0.0/Library/Frameworks/Foundation.framework/Headers/NSOrderedCollectionChange.h:51:11: error: expected ';' after method prototype
/nix/store/lab5b8cz2jwy112r6ikry36xhln2v9am-apple-framework-Foundation-11.0.0/Library/Frameworks/Foundation.framework/Headers/NSArray.h:75:54: error: expected a type
/nix/store/lab5b8cz2jwy112r6ikry36xhln2v9am-apple-framework-Foundation-11.0.0/Library/Frameworks/Foundation.framework/Headers/NSArray.h:76:86: error: expected a type
/nix/store/lab5b8cz2jwy112r6ikry36xhln2v9am-apple-framework-Foundation-11.0.0/Library/Frameworks/Foundation.framework/Headers/NSArray.h:84:126: error: expected a type
/nix/store/lab5b8cz2jwy112r6ikry36xhln2v9am-apple-framework-Foundation-11.0.0/Library/Frameworks/Foundation.framework/Headers/NSArray.h:130:153: error: expected a version of the form 'major[.minor[.subminor]]'
+ (nullable NSArray<ObjectType> *)arrayWithContentsOfFile:(NSString *)path API_DEPRECATED_WITH_REPLACEMENT("arrayWithContentsOfURL:error:", macos(10.0, API_TO_BE_DEPRECATED), ios(2.0, API_TO_BE_DEPRECATED), watchos(2.0, API_TO_BE_DEPRECATED), tvos(9.0, API_TO_BE_DEPRECATED));
/nix/store/lab5b8cz2jwy112r6ikry36xhln2v9am-apple-framework-Foundation-11.0.0/Library/Frameworks/Foundation.framework/Headers/NSArray.h:130:185: error: expected a version of the form 'major[.minor[.subminor]]'
+ (nullable NSArray<ObjectType> *)arrayWithContentsOfFile:(NSString *)path API_DEPRECATED_WITH_REPLACEMENT("arrayWithContentsOfURL:error:", macos(10.0, API_TO_BE_DEPRECATED), ios(2.0, API_TO_BE_DEPRECATED), watchos(2.0, API_TO_BE_DEPRECATED), tvos(9.0, API_TO_BE_DEPRECATED));
/nix/store/lab5b8cz2jwy112r6ikry36xhln2v9am-apple-framework-Foundation-11.0.0/Library/Frameworks/Foundation.framework/Headers/NSArray.h:130:221: error: expected a version of the form 'major[.minor[.subminor]]'
+ (nullable NSArray<ObjectType> *)arrayWithContentsOfFile:(NSString *)path API_DEPRECATED_WITH_REPLACEMENT("arrayWithContentsOfURL:error:", macos(10.0, API_TO_BE_DEPRECATED), ios(2.0, API_TO_BE_DEPRECATED), watchos(2.0, API_TO_BE_DEPRECATED), tvos(9.0, API_TO_BE_DEPRECATED));
fatal error: too many errors emitted, stopping now [-ferror-limit=]
20 errors generated.

@alyssais alyssais added the 2.status: merge conflict This PR has merge conflicts with the target branch label May 3, 2024
@ofborg ofborg bot removed the 2.status: merge conflict This PR has merge conflicts with the target branch label May 3, 2024
@alyssais
Copy link
Member Author

alyssais commented May 7, 2024

@NixOS/darwin-maintainers does anybody care about QEMU on x86_64-darwin? If nobody steps up there's not much we can do apart from remove it from the tested set…

@Et7f3
Copy link
Contributor

Et7f3 commented May 7, 2024

Their is an effort to port nixos test on macos so I think we should repair it. I will try to fix it (not today but tomorrow) but if anyone have a fix earlier it is ok.

@toonn
Copy link
Contributor

toonn commented May 7, 2024

I'm also looking into this but won't have time to finish until tomorrow. Feel free to beat me to it.

@wegank
Copy link
Member

wegank commented May 7, 2024

I'm also working on this.

@wegank wegank force-pushed the qemu-9.0.0-rc0 branch 2 times, most recently from beadcc2 to 99dc467 Compare May 7, 2024 20:38
@wegank wegank force-pushed the qemu-9.0.0-rc0 branch from 99dc467 to c333d04 Compare May 8, 2024 12:47
@alyssais alyssais marked this pull request as ready for review May 10, 2024 07:35
@alyssais alyssais changed the title qemu: 8.2.2 -> 9.0.0 qemu: 8.2.3 -> 9.0.0 May 10, 2024
@alyssais
Copy link
Member Author

Thanks a lot @wegank!

@Et7f3
Copy link
Contributor

Et7f3 commented May 11, 2024

libvirt doesn't build (with sandbox enabled) on x86_64-darwin. It doesn't build on master
error: builder for '/nix/store/7h0ma9nwqn2kvk2lazq6w2mrwslf65ip-python3.11-nixops-gce-unstable-2023-05-26.drv' failed with exit code 1;
       last 10 log lines:
       > Creating a wheel...
       > * Getting build dependencies for wheel...
       > * Building wheel...
       > Successfully built nixops_gcp-1.0-py3-none-any.whl
       > Finished creating a wheel...
       > Finished executing pypaBuildPhase
       > Running phase: pythonRuntimeDepsCheckHook
       > Executing pythonRuntimeDepsCheck
       > Checking runtime dependencies for nixops_gcp-1.0-py3-none-any.whl
       >   - cryptography==40.0.1 not satisfied by version 42.0.5
       For full logs, run 'nix log /nix/store/7h0ma9nwqn2kvk2lazq6w2mrwslf65ip-python3.11-nixops-gce-unstable-2023-05-26.drv'.
error: builder for '/nix/store/d3z4nx44bqzj2l2d5zga6q1p1mfbg4rc-python3.11-nixops-hetzner-unstable-2022-04-23.drv' failed with exit code 1;
       last 10 log lines:
       > Creating a wheel...
       > * Getting build dependencies for wheel...
       > * Building wheel...
       > Successfully built nixops_hetzner-1.0-py3-none-any.whl
       > Finished creating a wheel...
       > Finished executing pypaBuildPhase
       > Running phase: pythonRuntimeDepsCheckHook
       > Executing pythonRuntimeDepsCheck
       > Checking runtime dependencies for nixops_hetzner-1.0-py3-none-any.whl
       >   - typing-extensions<4.0.0,>=3.7.4 not satisfied by version 4.11.0
       For full logs, run 'nix log /nix/store/d3z4nx44bqzj2l2d5zga6q1p1mfbg4rc-python3.11-nixops-hetzner-unstable-2022-04-23.drv'.
error: builder for '/nix/store/4pay3bg9f3bjgdgbdmb8j6pjkfyffzy1-python3.11-nixops-hetznercloud-unstable-2023-02-19.drv' failed with exit code 1;
       last 10 log lines:
       > * Getting build dependencies for wheel...
       > * Building wheel...
       > Successfully built nixops_hetznercloud-0.1.3-py3-none-any.whl
       > Finished creating a wheel...
       > Finished executing pypaBuildPhase
       > Running phase: pythonRuntimeDepsCheckHook
       > Executing pythonRuntimeDepsCheck
       > Checking runtime dependencies for nixops_hetznercloud-0.1.3-py3-none-any.whl
       >   - hcloud==1.18.2 not satisfied by version 1.35.0
       >   - typing-extensions<4.0.0,>=3.7.4 not satisfied by version 4.11.0
       For full logs, run 'nix log /nix/store/4pay3bg9f3bjgdgbdmb8j6pjkfyffzy1-python3.11-nixops-hetznercloud-unstable-2023-02-19.drv'.
error: builder for '/nix/store/jcdw0nxwwn530l4gbzipin0dwz5qhpav-python3.11-qemu-0.6.1.0a1.drv' failed with exit code 1;
       last 10 log lines:
       > Traceback (most recent call last):
       >   File "/nix/store/lfsz3kkk1gbs2cq58lkyn9f8mfdijin6-python3.11-qemu-0.6.1.0a1/bin/.qom-wrapped", line 6, in <module>
       >     from qemu.utils.qom import main
       >   File "/nix/store/lfsz3kkk1gbs2cq58lkyn9f8mfdijin6-python3.11-qemu-0.6.1.0a1/lib/python3.11/site-packages/qemu/utils/qom.py", line 41, in <module>
       >     from .qom_fuse import QOMFuse
       >   File "/nix/store/lfsz3kkk1gbs2cq58lkyn9f8mfdijin6-python3.11-qemu-0.6.1.0a1/lib/python3.11/site-packages/qemu/utils/qom_fuse.py", line 48, in <module>
       >     import fuse
       >   File "/nix/store/2gkw9jgh3f533lydjsf3n1ipxwdzhglx-python3.11-fusepy-3.0.1/lib/python3.11/site-packages/fuse.py", line 115, in <module>
       >     raise EnvironmentError('Unable to find libfuse')
       > OSError: Unable to find libfuse
       For full logs, run 'nix log /nix/store/jcdw0nxwwn530l4gbzipin0dwz5qhpav-python3.11-qemu-0.6.1.0a1.drv'.
error: builder for '/nix/store/7s782bsqjapyzf0fn303x68wm5cwzjbd-diffoscope-265.drv' failed with exit code 1;
       last 10 log lines:
       >     def test_diff(differences):
       >         expected_diff = get_data("wasm_expected_diff")
       > >       actual_diff = differences[0].unified_diff
       > E       IndexError: list index out of range
       >
       > tests/comparators/test_wasm.py:50: IndexError
       > =========================== short test summary info ============================
       > FAILED tests/comparators/test_wasm.py::test_diff - IndexError: list index out of range
       > = 1 failed, 624 passed, 55 skipped, 15 deselected, 1 xfailed, 1 xpassed in 7929.02s (2:12:09) =
       > /nix/store/79qly7vi6mjpmbmgivn4dfzl69f0f1sy-stdenv-darwin/setup: line 1588: pop_var_context: head of shell_variables not a function context
       For full logs, run 'nix log /nix/store/7s782bsqjapyzf0fn303x68wm5cwzjbd-diffoscope-265.drv'.
error: builder for '/nix/store/08vypajjpzwjvnaavyixc55m6dqhb4kx-libvirt-10.0.0.drv' failed with exit code 1;
       last 10 log lines:
       >
       >
       > Ok:                 108
       > Expected Fail:      0
       > Fail:               0
       > Unexpected Pass:    0
       > Skipped:            13
       > Timeout:            1
       >
       > Full log written to /private/tmp/nix-build-libvirt-10.0.0.drv-0/source/build/meson-logs/testlog.txt
       For full logs, run 'nix log /nix/store/08vypajjpzwjvnaavyixc55m6dqhb4kx-libvirt-10.0.0.drv'.
error: 1 dependencies of derivation '/nix/store/z32kp9vrfih3dknv42yr1fhhbw15wc8i-libvirt-glib-5.0.0.drv' failed to build
error: 1 dependencies of derivation '/nix/store/53bx2n82bcaz5syn64vs5l4h8xvm8dqd-mgmt-unstable-2022-10-24.drv' failed to build
error: 1 dependencies of derivation '/nix/store/4y9sj44dfa9mi587mc5pvab6r9q76bgy-ocaml-libvirt-0.6.1.5.drv' failed to build
error: 1 dependencies of derivation '/nix/store/mhalk47sj12mvdzs3izdwzwbmjjq9ik3-python3.11-libvirt-10.0.0.drv' failed to build
error: 1 dependencies of derivation '/nix/store/pxkp9g9lzgb262j7nx67ssm5mhylkha2-ruby3.1-ruby-libvirt-0.8.2.drv' failed to build
error: 1 dependencies of derivation '/nix/store/cns1i5nmwcic7gyrnhc20ah3prcfknp1-ruby3.2-ruby-libvirt-0.8.2.drv' failed to build
error: 1 dependencies of derivation '/nix/store/sy0a9yilhpd5ajrq4rl4zjqxzkbjaslw-ruby3.3-ruby-libvirt-0.8.2.drv' failed to build
error: 1 dependencies of derivation '/nix/store/vl5cbc0ihds0cl36n081vynvr6rjf68s-python3.11-nixops-libvirtd-unstable-2023-09-01.drv' failed to build
error: 3 dependencies of derivation '/nix/store/ma6crmv3r1rp9m7016w8ncw0j7zqkkb1-virt-manager-4.1.0.drv' failed to build
error: 2 dependencies of derivation '/nix/store/92i3g6znggb6972c27h8igic7scaz4d4-virt-viewer-11.0.drv' failed to build
error: 2 dependencies of derivation '/nix/store/c1agaklfgpbc4bf9bk6y1bdizqsgqfmx-virt-viewer-11.0.drv' failed to build
error: 1 dependencies of derivation '/nix/store/sk9skjphqjppy1k01p2gnf1mgcn14zxb-appvm-unstable-2021-12-20.drv' failed to build
error: 4 dependencies of derivation '/nix/store/mkjn9ny88zjn0v4y3i7g8s1x78hqinqs-nixops-unstable-2024-02-28.drv' failed to build
error: builder for '/nix/store/535c3f1zvw6gypijm3by9q3i9xg2bsgf-python3.12-cot-2.2.1.drv' failed with exit code 1;
       last 10 log lines:
       >     return get_versions()["version"]
       >            ^^^^^^^^^^^^^^
       >   File "/private/tmp/nix-build-python3.12-cot-2.2.1.drv-0/cot-2.2.1/versioneer.py", line 1408, in get_versions
       >     cfg = get_config_from_root(root)
       >           ^^^^^^^^^^^^^^^^^^^^^^^^^^
       >   File "/private/tmp/nix-build-python3.12-cot-2.2.1.drv-0/cot-2.2.1/versioneer.py", line 342, in get_config_from_root
       >     parser = configparser.SafeConfigParser()
       >              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
       > AttributeError: module 'configparser' has no attribute 'SafeConfigParser'. Did you mean: 'RawConfigParser'?
       > /nix/store/79qly7vi6mjpmbmgivn4dfzl69f0f1sy-stdenv-darwin/setup: line 1588: pop_var_context: head of shell_variables not a function context
       For full logs, run 'nix log /nix/store/535c3f1zvw6gypijm3by9q3i9xg2bsgf-python3.12-cot-2.2.1.drv'.
error: 16 dependencies of derivation '/nix/store/h6grs7gbcvflpknipid22d1pyafrbljs-review-shell.drv' failed to build
nix build nixpkgs#libvirt --out-link /dev/null --rebuild
error: builder for '/nix/store/fwngvfmylb17js2p7r96fkj5s2phfj87-libvirt-10.0.0.drv' failed with exit code 1;
       last 10 log lines:
       >
       >
       > Ok:                 108
       > Expected Fail:      0
       > Fail:               0
       > Unexpected Pass:    0
       > Skipped:            13
       > Timeout:            1
       >
       > Full log written to /private/tmp/nix-build-libvirt-10.0.0.drv-1/source/build/meson-logs/testlog.txt
       For full logs, run 'nix log /nix/store/fwngvfmylb17js2p7r96fkj5s2phfj87-libvirt-10.0.0.drv'.

Other error are not related. diffoscope build on master but not in this PR.

@alyssais
Copy link
Member Author

It doesn't build on master

So the build failure is unrelated to this PR?

@reckenrode
Copy link
Contributor

libvirt doesn't build (with sandbox enabled) on x86_64-darwin. It doesn't build on master

I have found Meson-based tests to be annoyingly unreliable on Darwin. Try using sudo. I have no idea why that does anything, but it often works for me.

@wegank
Copy link
Member

wegank commented May 14, 2024

Result of nixpkgs-review pr 298097 run on x86_64-linux 1

15 packages marked as broken and skipped:
  • mkosi-full
  • mkosi-full.dist
  • mkosi-full.man
  • qemu_xen
  • qemu_xen-light
  • qemu_xen-light.debug
  • qemu_xen-light.ga
  • qemu_xen.debug
  • qemu_xen.ga
  • qemu_xen_4_15
  • qemu_xen_4_15-light
  • qemu_xen_4_15-light.debug
  • qemu_xen_4_15-light.ga
  • qemu_xen_4_15.debug
  • qemu_xen_4_15.ga
33 packages failed to build:
  • linuxKernel.packages.linux_4_19.virtualbox
  • linuxPackages_4_19_hardened.virtualbox (linuxKernel.packages.linux_4_19_hardened.virtualbox)
  • linuxKernel.packages.linux_5_10.virtualbox
  • linuxPackages_5_10_hardened.virtualbox (linuxKernel.packages.linux_5_10_hardened.virtualbox)
  • linuxKernel.packages.linux_5_15.virtualbox
  • linuxPackages_5_15_hardened.virtualbox (linuxKernel.packages.linux_5_15_hardened.virtualbox)
  • linuxKernel.packages.linux_5_4.virtualbox
  • linuxPackages_5_4_hardened.virtualbox (linuxKernel.packages.linux_5_4_hardened.virtualbox)
  • linuxKernel.packages.linux_6_1.virtualbox
  • linuxPackages_6_1_hardened.virtualbox (linuxKernel.packages.linux_6_1_hardened.virtualbox)
  • linuxPackages.virtualbox (linuxKernel.packages.linux_6_6.virtualbox)
  • linuxPackages_hardened.virtualbox (linuxPackages_6_6_hardened.virtualbox)
  • linuxKernel.packages.linux_6_8.virtualbox
  • linuxPackages_latest-libre.virtualbox (linuxKernel.packages.linux_latest_libre.virtualbox)
  • linuxPackages-libre.virtualbox (linuxKernel.packages.linux_libre.virtualbox)
  • linuxPackages_lqx.virtualbox (linuxKernel.packages.linux_lqx.virtualbox)
  • linuxPackages_xanmod.virtualbox (linuxKernel.packages.linux_xanmod.virtualbox)
  • linuxPackages_xanmod_latest.virtualbox (linuxKernel.packages.linux_xanmod_latest.virtualbox ,linuxPackages_xanmod_stable.virtualbox)
  • linuxPackages_zen.virtualbox (linuxKernel.packages.linux_zen.virtualbox)
  • linuxPackages_latest.virtualbox
  • python312Packages.cot
  • python312Packages.cot.dist
  • solo5
  • solo5.debug
  • virtualbox
  • virtualbox.modsrc
  • virtualboxHardened
  • virtualboxHardened.modsrc
  • virtualboxHeadless
  • virtualboxHeadless.modsrc
  • virtualboxKvm
  • virtualboxWithExtpack
  • virtualboxWithExtpack.modsrc
56 packages built:
  • OVMFFull
  • OVMFFull.fd
  • alpine-make-vm-image
  • cloud-init
  • cloud-init.dist
  • cloud-utils
  • cloud-utils.guest
  • colima
  • cot (python311Packages.cot)
  • cot.dist (python311Packages.cot.dist)
  • diffoscope
  • diffoscope.dist
  • diffoscope.man
  • gnome.gnome-boxes
  • guestfs-tools
  • libguestfs
  • lima
  • lima-bin
  • lxd-lts
  • multipass
  • nemu
  • open-watcom-bin
  • open-watcom-bin-unwrapped
  • out-of-tree
  • python311Packages.guestfs
  • python311Packages.guestfs.dist
  • python311Packages.qemu
  • python311Packages.qemu.dist
  • python312Packages.guestfs
  • python312Packages.guestfs.dist
  • python312Packages.qemu
  • python312Packages.qemu.dist
  • qemu
  • qemu-python-utils
  • qemu-python-utils.dist
  • qemu-utils
  • qemu-utils.debug
  • qemu.debug
  • qemu.ga
  • qemu_full
  • qemu_full.debug
  • qemu_full.ga
  • qemu_kvm
  • qemu_kvm.debug
  • qemu_kvm.ga
  • qemu_test
  • qemu_test.debug
  • qemu_test.ga
  • qtemu
  • quickemu
  • quickgui
  • tests.testers.nixosTest-example
  • tests.testers.runNixOSTest-example
  • tests.trivial-builders.references
  • vagrant
  • zpool-auto-expand-partitions

@wegank
Copy link
Member

wegank commented May 14, 2024

@ofborg build solo5

@wegank
Copy link
Member

wegank commented May 14, 2024

@ofborg build linuxKernel.packages.linux_6_8.virtualbox

@@ -59,6 +59,8 @@ in stdenv.mkDerivation {
checkPhase = ''
runHook preCheck
patchShebangs tests
substituteInPlace scripts/virtio-run/solo5-virtio-run.sh \
--replace-fail "-no-acpi" "-machine acpi=off"
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Upstream?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

@alyssais alyssais changed the title qemu: 8.2.3 -> 9.0.0 qemu: 8.2.4 -> 9.0.0 May 15, 2024
@alyssais alyssais changed the base branch from master to staging May 16, 2024 08:20
@wegank wegank merged commit f4c3014 into NixOS:staging May 16, 2024
26 of 28 checks passed
@alyssais alyssais deleted the qemu-9.0.0-rc0 branch June 9, 2024 11:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
10.rebuild-darwin: 11-100 10.rebuild-linux: 11-100 11.by: package-maintainer This PR was created by the maintainer of the package it changes
Projects
None yet
Development

Successfully merging this pull request may close these issues.

9 participants