Commit Graph

346 Commits

Author SHA1 Message Date
Julius Michaelis
aa4e34969b qemu: add workaround for static build closure pulling in buildinput (#83667) 2024-08-13 13:36:03 +02:00
Zhaofeng Li
6e81b41ce7 qemu: Fix static build 2024-08-13 13:36:03 +02:00
Julius Michaelis
376b49ee4c qemu: Skip dependencies unnecessary for qemu-user which fail in pkgsStatic (libaio, dtc) 2024-08-13 13:36:03 +02:00
Julius Michaelis
dd5bc7b7fe qemu-user: add qemu "user space emulator only" variant
When used from pkgsStatic, this is synonymous with the "qemu-user-static"
packages available in other distros.
2024-08-13 13:36:03 +02:00
Zhaofeng Li
a4ba1adf0b qemu: Support disabling blobs
Not needed for a minimal qemu-user-static build.
2024-08-13 13:36:03 +02:00
Zhaofeng Li
12428702eb qemu: Support disabling tools
Not needed for a minimal qemu-user-static build.
2024-08-13 13:36:03 +02:00
Zhaofeng Li
a94afe42c0 qemu: Support disabling TCG plugins
The plugin .so's do not build statically.
2024-08-13 13:36:03 +02:00
Zhaofeng Li
ed38ae461a qemu: Skip doc-related sphinx dependencies sphinx when docs are disabled 2024-08-13 13:36:03 +02:00
Julius Michaelis
e8c75c234e qemu: remove unused texinfo dependency 2024-08-13 13:36:03 +02:00
Alyssa Ross
3a194eb094
qemu: 9.0.1 -> 9.0.2
Fixes: CVE-2024-4467
2024-07-17 18:41:00 +02:00
Sergei Trofimovich
6db86a5dd0 qemu: 9.0.0 -> 9.0.1 2024-06-12 07:58:43 +01:00
Alyssa Ross
3df6bb2c85
Merge remote-tracking branch 'origin/master' into staging-next
Conflicts:
	pkgs/applications/blockchains/polkadot/default.nix
2024-06-09 22:47:12 +01:00
Alexis Hildebrandt
755b915a15 treewide: Remove indefinite article from meta.description
nix run nixpkgs#silver-searcher -- -G '\.nix$' -0l 'description.*"[Aa]n?' pkgs \
  | xargs -0 nix run nixpkgs#gnused -- -i '' -Ee 's/(description.*")[Aa]n? (.)/\1\U\2/'
2024-06-09 23:07:45 +02:00
github-actions[bot]
97d15b22bf
Merge master into staging-next 2024-06-02 18:01:10 +00:00
Alyssa Ross
36de695b0e
qemu: fix cross
dtc is needed as a native build input (for the dtc binary) and as a
build input (for libfdt).

Closes: https://github.com/NixOS/nixpkgs/pull/314270
2024-05-26 11:35:08 +02:00
github-actions[bot]
dfe5aa3439
Merge staging-next into staging 2024-05-22 18:01:30 +00:00
Alyssa Ross
aa0ce1a26e qemu: enable canokey by default
Given that we were overriding qemu_test to enable this anyway,
enabling this by default saves Hydra a QEMU build.

There's also clear demand from users[1] for this feature, so our
alternatives are:

 - Offer a qemu-canokey attribute.  I don't want to do this, because I
   don't think there's any reason to make Hydra build an extra QEMU.

 - Enable it only for qemu_test.  I don't want to do this, because it
   will lead to users using qemu_test without understanding its
   subtleties.

 - Force users to build from source.  I don't think there's any reason
   to do this when it's unlikely to hurt anybody having it enabled by
   default.  There's no reason to single out canokey to be disabled by
   default in spite of users' needs given that we enable so many other
   optional QEMU features.

[1]: https://github.com/canokeys/canokey-qemu/issues/6
2024-05-22 18:26:30 +02:00
Alyssa Ross
19e14ba4c1 canokey-qemu: fix build on x86_64-darwin 2024-05-22 18:26:30 +02:00
Alyssa Ross
befe8bbe40 canokey-qemu: fix build with clang 2024-05-22 18:26:30 +02:00
Alyssa Ross
740152c8c1 canokey-qemu: unstable-2022-06-23 -> 0-unstable-2023-06-06 2024-05-22 18:26:30 +02:00
Alyssa Ross
3f878c71e1
qemu: 8.2.4 -> 9.0.0 2024-05-15 20:30:18 +02:00
Alyssa Ross
3eebbc5fe2 qemu: 8.2.3 -> 8.2.4
New release was created in part to work around issues with CDN caching
of multiple versions of the 8.2.3 tarball.

Closes: https://github.com/NixOS/nixpkgs/issues/311497
2024-05-15 20:24:52 +02:00
Jan Tojnar
1b2ebb8fbb Merge branch 'master' into staging-next 2024-04-28 17:33:27 +02:00
Gabriel Fontes
f6bcc42acb qemu: 8.2.2 -> 8.2.3 2024-04-28 10:36:16 +02:00
Jan Tojnar
eb04659fc2 treewide: wrapGAppsHook → wrapGAppsHook3
This was achieved using the following command:

    sd 'wrapGAppsHook\b' wrapGAppsHook3 (rg -l 'wrapGAppsHook\b')

And then manually reverted the following changes:

- alias in top-level.nix
- function name in wrap-gapps-hook.sh
- comment in postFixup of at-spi2-core
- comment in gtk4
- comment in preFixup of 1password-gui/linux.nix
- comment in postFixup of qgis/unwrapped-ltr.nix and qgis/unwrapped.nix
- comment in postFixup of telegram-desktop
- comment in postFixup of fwupd
- buildCommand of mongodb-compass
- postFixup of xflux-gui
- comment in a patch in kdePackages.kde-gtk-config and plasma5Packages.kde-gtk-config
- description of programs.sway.wrapperFeatures.gtk NixOS option (manual rebuild)
2024-04-27 02:23:22 +02:00
Sergei Trofimovich
cc1d2f5bf5 qemu: 8.2.1 -> 8.2.2
Changes: https://lore.kernel.org/all/1709577077.783602.1474596.nullmailer@tls.msk.ru/T/
2024-03-05 21:37:06 +00:00
Shea Levy
d422836d72
qemu: 8.2.0 -> 8.2.1 2024-01-30 08:31:46 -05:00
Robert Scott
9a9ed628da qemu: add patch for CVE-2023-6693 2024-01-28 11:14:57 +01:00
Nick Cao
03ed7bac5b
qemu: enable rutabagaSupport only if rutabaga_gfx is available on host platform 2024-01-15 12:16:43 -05:00
qubitnano
7d993cf0b9 qemu: fix virtio-gpu display issues 2024-01-09 15:33:51 +01:00
Alyssa Ross
b4db0582a1
qemu: add rutabaga support 2024-01-09 00:23:05 +01:00
Alyssa Ross
fc38d28b26 qemu: 8.1.3 -> 8.2.0 2023-12-26 17:12:04 +01:00
Alyssa Ross
4db6d0ab3a qemu: 8.1.2 -> 8.1.3 2023-11-29 14:04:40 +01:00
Anthony Roussel
e30f48be94
treewide: fix redirected and broken URLs
Using the script in maintainers/scripts/update-redirected-urls.sh
2023-11-11 10:49:01 +01:00
Robert Hensing
310e449b04 qemu: Build qemu-utils on ofborg
Makes sure that the qemu-utils build succeeds when qemu-utils is
about to be updated. It's a bit of an odd build perhaps, so it's
good to check that it still builds.
2023-10-29 11:33:11 +01:00
Robert Hensing
0dd2112aa6 qemu-utils: Rework as an emulatorless qemu build
Benefits

  - Reduce the derivation closure.
      - This reduces rebuilds and makes derivations that use
        qemu-utils less susceptible to build errors.
  - Includes extra qemu tools that weren't included before.
  - Removes fragile binary copying (old qemu-utils impl).
      - Can't forget to copy somethat that a binary needs.
      - Less custom packaging is better.

Cost

  - Adds an 80 second build, but the time is offset by rebuilding
    its dependents less.

  - The output of qemu-utils goes from ~7 MB to ~40 MB, but it
    provides more functionality.
2023-10-29 11:33:11 +01:00
Sergei Trofimovich
fda60c836d qemu: 8.1.1 -> 8.1.2 2023-10-18 02:45:14 +01:00
Sergei Trofimovich
a7e7daf60d qemu: 8.1.0 -> 8.1.1 2023-09-25 06:28:00 +00:00
André Vitor de Lima Matos
5b0ed68c10 qemu: add pipewire support (8.1 feature) 2023-09-07 08:40:56 +00:00
Alyssa Ross
8c27922a0e qemu: 8.0.4 -> 8.1.0 2023-09-04 08:51:56 +00:00
Robert Scott
d9201bf799
Merge pull request #251114 from alyssais/qemu-finalPackage
qemu_kvm.tests: use finalPackage
2023-08-24 19:26:54 +01:00
Alyssa Ross
045910a1a3 qemu-utils: copy from qemu_kvm, not qemu
qemu_kvm is a much smaller build, so it's nicer if you're building
qemu-utils specifically.  None of the tools depend on the emulation
targets disabled in qemu_kvm.

The tools are copied, not linked, so we don't have to worry about
potentially depending on both qemu_kvm and qemu in a bigger
derivation, and qemu_kvm is already built by Hydra, so there's no
increase in Hydra workload by using the variant.
2023-08-24 07:15:13 -07:00
Alyssa Ross
6e980e6458
qemu_kvm.tests: use finalPackage
This makes qemu_kvm.tests do the right thing — building qemu_kvm with
tests enabled.  Previously, it would always build qemu, so all targets
would be enabled, even if accessed through qemu_kvm.tests.
2023-08-24 07:48:17 +00:00
Sergei Trofimovich
8af0d023f6 qemu: 8.0.3 -> 8.0.4
While at it added a trivial updater.

Changes: https://www.mail-archive.com/qemu-devel@nongnu.org/msg981379.html
2023-08-23 20:27:03 +00:00
Sergei Trofimovich
81e0627e5f qemu: 8.0.2 -> 8.0.3
Changes: https://www.mail-archive.com/qemu-devel@nongnu.org/msg975665.html
2023-07-22 13:54:25 +01:00
Alyssa Ross
3d4b845beb
qemu: 8.0.0 -> 8.0.2 2023-06-06 11:30:34 +00:00
David Gonzalez Martin
27e3c0da44 qemu: add capstone support
Currently using the -d in_asm flag in QEMU does not report any
dissassembly. This fixes it.
2023-05-18 13:03:23 +00:00
Adam Joseph
c407873d50 qemu: allow to disable generation of documentation
I've been having trouble with some qemu builds since the v8.0.0 bump
failing with:

```
kernel-doc 'perl /build/qemu/docs/../scripts/kernel-doc -rst -enable-lineno -sphinx-version 5.3.0 -Werror /build/qemu/docs/../include/qemu/bitops.h' processing failed with: [Errno 2] No such file or directory: 'perl'
```

... this happens despite `perl` being part of `stdenv`.  Adding
`perl` to `nativeBuildInputs` doesn't seem to fix it.  It is handy
to be able to simply skip the docs in situations like this in order
to maintain forward progress, so this commit adds `enableDocs?true`
to allow that.
2023-04-22 00:24:23 +03:00
Alyssa Ross
10a0be03de qemu: 7.2.1 -> 8.0.0
Now that shaderinclude is Python, I don't think we need Perl any more.

virtiofsd has been removed in favor of the standalone virtiofsd package.

Co-authored-by: Will Cohen <willcohen@users.noreply.github.com>
2023-04-20 13:22:20 +00:00
github-actions[bot]
e88cc8f10e
Merge master into staging-next 2023-04-09 18:01:15 +00:00