Commit Graph

936 Commits

Author SHA1 Message Date
Eduardo Lima (Etrunko) 3ce4eaa6a2 qemu-7.2.0-1 2022-12-20 15:09:58 -03:00
Eduardo Lima (Etrunko) d09d3961a3 Rebuild for libbpf 1.0.0 2022-11-11 15:02:07 -03:00
Eduardo Lima (Etrunko) 7539983f1e Fix changelog entries 2022-09-27 11:49:10 -03:00
Davide Cavalca 92a87311fd Unconditionally enable capstone-devel 2022-09-08 17:00:39 +01:00
Davide Cavalca 795912844a Bump required meson version 2022-09-08 14:12:47 +01:00
Eduardo Lima (Etrunko) 64fe772650 Disable vfio-user for the moment
https://github.com/nutanix/libvfio-user/issues/707

Signed-off-by: Eduardo Lima (Etrunko) <etrunko@redhat.com>
2022-09-02 11:58:00 -03:00
Eduardo Lima (Etrunko) 055837f300 qemu-7.1.0-1
Signed-off-by: Eduardo Lima (Etrunko) <etrunko@redhat.com>
2022-09-02 11:07:59 -03:00
Cole Robinson 2874d70b6b Fix pcre-static dep on fedora < 37, for virt-preview
Signed-off-by: Cole Robinson <crobinso@redhat.com>
2022-08-15 16:49:40 -04:00
Daniel P. Berrangé 34254733fe Fix compat with glibc 2.36
Signed-off-by: Daniel P. Berrangé <berrange@redhat.com>
2022-08-02 18:37:18 +01:00
Daniel P. Berrangé 0eeaeaae15 Get rid of patch numbering
RPM no longer requires use of numbered patches, a simple 'Patch' is
sufficient.

Signed-off-by: Daniel P. Berrangé <berrange@redhat.com>
2022-08-02 17:43:44 +01:00
Daniel P. Berrangé 2abd5d20f1 Show config.log contents when configure fails
This will make it easier to debug future koji build failures

Signed-off-by: Daniel P. Berrangé <berrange@redhat.com>
2022-08-02 15:58:41 +01:00
Paolo Bonzini 98276b3e5f Replace pcre-static dependency with pcre2-static, to adjust for glib switching
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
2022-07-26 07:48:27 +02:00
Fedora Release Engineering 22305b524e Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild
Signed-off-by: Fedora Release Engineering <releng@fedoraproject.org>
2022-07-22 23:54:02 +00:00
Cole Robinson 9fda121878 Adjust for Xen dropping 32bit arches
Signed-off-by: Cole Robinson <crobinso@redhat.com>
2022-06-11 16:28:18 -04:00
Eduardo Lima (Etrunko) 72c46205a7 Use git-am for patch handling 2022-06-07 09:37:12 -03:00
Cole Robinson 18240b2c2d user-static binfmt files aren't packaged on native archs
Signed-off-by: Cole Robinson <crobinso@redhat.com>
2022-06-06 19:23:11 -04:00
Cole Robinson c6215ce146 BuildRequires: (pipewire-jack-XXX or jack-XXX)
pipewire-jack-audio-connection-kit is a drop in replacement
for jack-audio-connection-kit, but they have package conflicts.

The former is pulled in by default for Fedora Workstation, so prefer
its matching -devel variant, so `dnf builddep` has a chance to work
and not error due to the conflict.

Signed-off-by: Cole Robinson <crobinso@redhat.com>
2022-06-06 13:39:42 -04:00
Daniel J Walsh 0d9e001957 Split qemu-user-static into per-arch subpackages (bz 2061584) 2022-06-06 13:20:24 -04:00
Cole Robinson e84a043f40 spec: Stop unsetting smp_mflags for s390x
This was added over 12 years ago, in my testing it seem to be
required. Seems s390x builders only advertise -j2 anyways

Signed-off-by: Cole Robinson <crobinso@redhat.com>
2022-06-06 08:56:35 -04:00
Cole Robinson cb880e77f3 spec: ppc64le tests are still busted, but s390x are working now
Signed-off-by: Cole Robinson <crobinso@redhat.com>
2022-06-06 08:55:24 -04:00
Cole Robinson 8d6927e8da Skip iotests entirely
Getting sporadic failures like described here:
https://www.mail-archive.com/qemu-devel@nongnu.org/msg887683.html

Signed-off-by: Cole Robinson <crobinso@redhat.com>
2022-06-05 12:50:08 -04:00
Cole Robinson 467b991168 Add some test fixes
Signed-off-by: Cole Robinson <crobinso@redhat.com>
2022-06-05 11:00:55 -04:00
Cole Robinson a3d41732e4 spec: Add explicit alsa and dbus-display ./configure options
Signed-off-by: Cole Robinson <crobinso@redhat.com>
2022-06-04 20:31:31 -04:00
Cole Robinson 9439665b5a Disable dbus UI + audio on centos stream 8
Signed-off-by: Cole Robinson <crobinso@redhat.com>
2022-06-04 20:31:06 -04:00
Cole Robinson 870630749a spec: Fix building without jack on centos stream
Signed-off-by: Cole Robinson <crobinso@redhat.com>
2022-06-03 04:50:21 -04:00
Cole Robinson a575c5e346 qemu-7.0.0-4
Fix virtio-scsi hang (bz #2079347)
Add dep on virtio-gpu-ccw (bz #2091964)
2022-06-02 10:45:19 -04:00
Cole Robinson 01af37d608 spec: Add dep on virtio-gpu-ccw (bz 2091964)
Signed-off-by: Cole Robinson <crobinso@redhat.com>
2022-06-02 09:29:25 -04:00
Cole Robinson 230e4a2b0a qemu-7.0.0-3
Make qemu-common own /usr/share/qemu/vhost-user (bz 2086836)
Add virtiofsd to qemu-system-* deps (bz 2083155)
Add qemu-pr-helper to qemu-system-* deps

Signed-off-by: Cole Robinson <crobinso@redhat.com>
2022-05-17 15:31:05 -04:00
Cole Robinson ef9df8de89 spec: Move qemu-pr-helper dep from `qemu` to `qemu-system-XXX`
Similar to what was done for virtiofsd in the previous commit

Signed-off-by: Cole Robinson <crobinso@redhat.com>
2022-05-17 14:25:45 -04:00
Cole Robinson a686537d26 spec: Move virtiofsd dep from `qemu` to `qemu-system-XXX`
When we split virtiofsd out from qemu-common, the intention was it
would be installed with `qemu-system-XXX` but not
`qemu-system-XXX-core`, similar to how device modules are treated.

It was accidentally added to the `qemu` metapackage, which is rarely
used.

This fixes that mistake.

https://bugzilla.redhat.com/show_bug.cgi?id=2083155

Signed-off-by: Cole Robinson <crobinso@redhat.com>
2022-05-17 14:24:36 -04:00
Cole Robinson 4e789f984b spec: Make qemu-common own /usr/share/qemu/vhost-user
https://bugzilla.redhat.com/show_bug.cgi?id=2086836

Signed-off-by: Cole Robinson <crobinso@redhat.com>
2022-05-17 14:19:36 -04:00
Daniel P. Berrangé 8825298cc2 Remove qemu-common as a dep from qemu-user-static
qemu-common has a dep on python, and has nothing that is critical for
the operation of the userspace emulators. At most the qemu-trace-stap
tool is useful, but we shouldn't force install of qemu-common just for
that. qemu-user-static needs to be lightweight as its used to support
cross-arch execution in scenarios where container/image size matters.

In dropping qemu-common as a dep, we just need to ensure we still have
the license files present.

Signed-off-by: Daniel P. Berrangé <berrange@redhat.com>
2022-05-04 11:57:10 +01:00
Daniel P. Berrangé d8c4df3d29 Drop redundant qemu-trace-stap copy from qemu-user-static (rhbz#2061584)
The static build of QEMU installs a copy of 'qemu-trace-stap' python
script, which gets renamed to 'qemu-trace-stap-static' by an overly
enthusiastic wildcard. This ends up adding a python dependency to
the qemu-user-static RPM, which is unhelpful.

Anyone who wants to trace QEMU user binaries with the stap helper
can easily install qemu-common as desired.

Signed-off-by: Daniel P. Berrangé <berrange@redhat.com>
2022-05-03 19:00:07 +01:00
Eduardo Lima (Etrunko) 0007b37337 qemu-7.0.0-1 2022-04-21 23:43:10 -03:00
Richard W.M. Jones af7430aef5 acpi: fix QEMU crash when started with SLIC table (RHBZ#2072303) 2022-04-06 09:52:10 +01:00
Neal Gompa fdc9ebb862 Backport virtiofsd changes to fix crashes on F36+
Resolves: rhbz#2070066
2022-04-01 18:22:21 -04:00
Richard W.M. Jones 148536a5a4 Bump and rebuild for SONAME change in libmpathpersist (RHBZ#2069778) 2022-04-01 17:00:38 +01:00
Cole Robinson 3f428d8457 Add edk-arm dep for system-arm
It's expected nowdays for -M virt

Signed-off-by: Cole Robinson <crobinso@redhat.com>
2022-02-24 14:49:11 -05:00
Cole Robinson 82e1f8635e spec: Some fixes for centos9 stream virt-preview builds
Signed-off-by: Cole Robinson <crobinso@redhat.com>
2022-02-24 14:48:16 -05:00
Cole Robinson 41fa2b0e3c Bump release to not conflict with f36
Signed-off-by: Cole Robinson <crobinso@redhat.com>
2022-02-10 15:35:21 -05:00
Eduardo Lima (Etrunko) c8164e8043 virtiofsd: Drop membership of all supplementary groups (CVE-2022-0358)
Resolves: rhbz#2044863
2022-02-10 15:27:55 -05:00
Cole Robinson 5b1d8f6b37 spec: break out qemu-virtiofsd subpackage
Pulled in by qemu-* but not qemu-*-core, like we do for device modules.

There's a virtual Provides: vhostuser-backend(fs) indicating this
packages is a vhost-user.json fs provider.

Use that for the qemu dep, as in the future there will be alternate
virtiofsd impl packages in Fedora

Signed-off-by: Cole Robinson <crobinso@redhat.com>
2022-02-10 14:38:51 -05:00
Paolo Bonzini 06a96ef6dd Fix non-SGX builds 2022-02-02 10:47:02 +01:00
Fedora Release Engineering f38131b637 - Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild
Signed-off-by: Fedora Release Engineering <releng@fedoraproject.org>
2022-01-21 16:56:00 +00:00
Cole Robinson ffa629f31c spec: Fix build on centos 8 stream
* Drop use of %dnl which centos 8 RPM doesn't support
* Use internal capstone copy on centos8
* Don't try to use jack driver on centos

Signed-off-by: Cole Robinson <crobinso@redhat.com>
2022-01-11 17:45:13 -05:00
Richard W.M. Jones 6dc1a3e091 Bump release and rebuild for new xen 2022-01-11 09:49:20 +00:00
Eduardo Lima (Etrunko) a640e151b2 qemu-6.2.0 2021-12-15 12:22:07 -03:00
Eduardo Lima (Etrunko) 2d6f694dd7 qemu-6.2.0-rc4
Signed-off-by: Eduardo Lima (Etrunko) <etrunko@redhat.com>
2021-12-09 13:21:24 -03:00
Eduardo Lima (Etrunko) 842e805475 qemu-6.2.0-rc3
Signed-off-by: Eduardo Lima (Etrunko) <etrunko@redhat.com>
2021-12-04 13:36:50 -03:00
Daniel P. Berrangé f54452a157 Fix iovec limits with scsi-generic 2021-11-25 21:29:35 +00:00
Richard W.M. Jones f9f5de9994 Define STAP_SDT_ARG_CONSTRAINT=g on %%{arm}, workaround for:
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103395

See also /usr/include/sys/sdt.h
2021-11-24 17:42:43 +00:00
Richard W.M. Jones 69b8f67c7d Revert "ExcludeArch armv7 temporarily"
This reverts commit eedf91107a.
2021-11-23 17:58:27 +00:00
Richard W.M. Jones eedf91107a ExcludeArch armv7 temporarily 2021-11-22 16:56:46 +00:00
Richard W.M. Jones 1609e9b0cd Add support for qemu-nbd --selinux-relabel option (RHBZ#1984938) 2021-11-22 15:07:08 +00:00
Adam Williamson b34716a4e7 Fix snapshot creation with qxl graphics 2021-11-08 10:18:35 -08:00
Cole Robinson 59b417a5f3 spec: Add `--without check` for skipping tests
Makes it easier to skip tests for copr builds

Signed-off-by: Cole Robinson <crobinso@redhat.com>
2021-10-08 16:17:17 -04:00
Cole Robinson 9182556bd5 spec: Update test skip comment
s390x and ppc64le tests are still busted. I think s390x is koji
build OS related, so maybe a rebase to new fedora will fix it.

Signed-off-by: Cole Robinson <crobinso@redhat.com>
2021-10-08 16:17:17 -04:00
Cole Robinson 7be05bc02d Fix tcg PVH test with binutils 2.36+
Signed-off-by: Cole Robinson <crobinso@redhat.com>
2021-10-08 16:17:17 -04:00
Cole Robinson 1d93f5191e Fix qemu crash with vnc + libvirt virDomainOpenConsole
Signed-off-by: Cole Robinson <crobinso@redhat.com>
2021-10-06 12:16:27 -04:00
Richard W.M. Jones 65ccb9e09a Alternate fix for assertion on armv7hl (RHBZ#1999878) 2021-09-12 20:45:17 +01:00
Richard W.M. Jones c5273992ba Fix assertion on armv7hl
https://bugzilla.redhat.com/show_bug.cgi?id=1999878
2021-09-01 17:48:27 +01:00
Richard W.M. Jones c1a37784f9 Fix -cpu max (RHBZ#1999700) 2021-08-31 18:59:35 +01:00
Richard W.M. Jones 9eb1916f15 Disable gcrypt (for real this time).
This will use gnutls's internal implementation as the
default crypto engine:

  Crypto
    TLS priority                 : "@QEMU,SYSTEM"
    GNUTLS support               : YES
    GNUTLS crypto                : YES
    libgcrypt                    : NO
    nettle                       : NO
    crypto afalg                 : NO
    rng-none                     : NO
    Linux keyring                : YES

Fixes: https://bugzilla.redhat.com/show_bug.cgi?id=1998452
2021-08-27 13:19:13 +01:00
Richard W.M. Jones 1ba242c778 Revert "Disable gcrypt" which seems to disable gnutls (RHBZ#1998452)
This reverts commit a06059bd4d.
2021-08-27 10:23:34 +01:00
Richard W.M. Jones 96944e0b05 Fix dependency pci_gl -> pci-gl and vga_gl -> vga-gl (RHBZ#1997855) 2021-08-26 08:10:11 +01:00
Eduardo Lima (Etrunko) 050829c2b7 qemu-6.1.0 2021-08-24 21:21:19 -03:00
Eduardo Lima (Etrunko) 79f4b0ef32 qemu-6.1.0-rc4
Signed-off-by: Eduardo Lima (Etrunko) <etrunko@redhat.com>
2021-08-18 15:15:26 -03:00
Eduardo Lima (Etrunko) a06059bd4d Disable gcrypt
Use gnutls as the default crypto backend to match latest upstream defaults

Signed-off-by: Eduardo Lima (Etrunko) <etrunko@redhat.com>
2021-08-12 13:53:38 -03:00
Eduardo Lima (Etrunko) bf8d867e21 qemu-6.1.0-rc3
- Static build works again.
- Remove --enable-block-drv-whitelist-in-tools option causing iotests
  049 134 158 to fail.

Signed-off-by: Eduardo Lima (Etrunko) <etrunko@redhat.com>
2021-08-12 12:32:20 -03:00
Eduardo Lima (Etrunko) 51980a6acd Some workarounds for build failures on rc2
- Temporarily disable static build

FAILED: qemu-aarch64
gcc  -o qemu-aarch64 ... -Wl,--start-group libqemuutil.a libhwcore.fa libqom.fa /usr/lib64/libz.a -lrt -lutil -pthread -lgnutls -ltspi -lgmp -lunistring -lnettle -lhogweed -ltasn1 -lidn2 -lp11-kit -lm -lgthread-2.0 -lglib-2.0 -lpcre -Wl,--end-group
/usr/bin/ld: cannot find -lgnutls
/usr/bin/ld: cannot find -ltspi
/usr/bin/ld: cannot find -lgmp
/usr/bin/ld: cannot find -lunistring
/usr/bin/ld: cannot find -lnettle
/usr/bin/ld: cannot find -lhogweed
/usr/bin/ld: cannot find -ltasn1
/usr/bin/ld: cannot find -lidn2
/usr/bin/ld: cannot find -lp11-kit
collect2: error: ld returned 1 exit status

- Temporarily disable make check, qemu-iotests failing

Failures: 049 134 158
Failed 3 of 119 iotests
2021-08-10 03:47:37 -03:00
Eduardo Lima (Etrunko) b048de05e7 qemu-6.1.0-rc2
Signed-off-by: Eduardo Lima (Etrunko) <etrunko@redhat.com>
2021-08-10 03:30:06 -03:00
Cole Robinson 6bb4bb52c7 qemu-6.0.0-12.fc35
Signed-off-by: Cole Robinson <crobinso@redhat.com>
2021-07-29 07:34:46 -04:00
Cole Robinson f744b8b952 spec: quote %{firmwaredirs} for consistency
Signed-off-by: Cole Robinson <crobinso@redhat.com>
2021-07-28 20:07:57 -04:00
Cole Robinson f806e664d9 spec: Use --enable-lto if _lto_cflags is not empty
Not sure if this is strictly required, but it seems like
the right thing to do

Signed-off-by: Cole Robinson <crobinso@redhat.com>
2021-07-28 19:23:02 -04:00
Cole Robinson 38b1a6c732 spec: Update LTO comment
Signed-off-by: Cole Robinson <crobinso@redhat.com>
2021-07-28 19:10:59 -04:00
Cole Robinson b7cbd7e5e1 spec: Open code %set_build_flags
There should be no functional difference here, but it's not
obvious at a glance how qemu handles globally defined CFLAGS + LDFLAGS
with --extra-cflags and --extra-ldflags.

Reproduce the desired behavior with explicit configure options and
RPM variables

Signed-off-by: Cole Robinson <crobinso@redhat.com>
2021-07-25 16:22:33 -04:00
Cole Robinson e3c05f4d3e spec: Use %make_build for 'check' too
So we get smp_flags

Signed-off-by: Cole Robinson <crobinso@redhat.com>
2021-07-25 12:05:06 -04:00
Cole Robinson 1ac11e4877 spec: Explicitly don't build with c++
This is the historical intended behavior in the buildroot, but for
local builds, or with clang, qemu would detect a c++ compiler on the
host. So explicitly make the check fail by passing /bin/false

Signed-off-by: Cole Robinson <crobinso@redhat.com>
2021-07-25 09:38:55 -04:00
Cole Robinson 2dc6f7395e spec: Drop explicit --build-id
clang + gcc have done this for us for years

Signed-off-by: Cole Robinson <crobinso@redhat.com>
2021-07-25 09:38:55 -04:00
Cole Robinson 0edf0fe9c8 spec: Drop python3 shebang fixup for tests rpm
* python -> python3 isn't required anymore for qemu.git
* env -> /usr/bin is handled by rpm brp-mangle-shebangs

Signed-off-by: Cole Robinson <crobinso@redhat.com>
2021-07-25 09:38:55 -04:00
Richard W.M. Jones e5d06dbc16 Actually fix previous commit
See discussion in:
https://bugzilla.redhat.com/show_bug.cgi?id=1985369
2021-07-23 15:27:16 +01:00
Richard W.M. Jones 2825584364 Fix dependencies of qemu metapackage
Commit 7a925b3802 ("spec: More RHEL merging") placed the %description
section right up against the list of Requires.  This resulted in RPM
silently ignoring the Requires and adding them to the description
instead.  As a result the qemu metapackage was totally broken.

Fixes: commit 7a925b3802
2021-07-23 15:03:34 +01:00
Fedora Release Engineering 6af1856936 - Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
Signed-off-by: Fedora Release Engineering <releng@fedoraproject.org>
2021-07-23 10:38:07 +00:00
Cole Robinson d6b4a46932 qemu-6.0.0-10.fc35
Signed-off-by: Cole Robinson <crobinso@redhat.com>
2021-07-18 17:44:08 -04:00
Cole Robinson ba7d6c0e41 spec: Split out qemu-tools subpackage
Main reason is to reduce the library dependency footprint of
-core packages

Signed-off-by: Cole Robinson <crobinso@redhat.com>
2021-07-15 11:37:32 -04:00
Cole Robinson 7ae7935089 spec: Split out qemu-pr-helper subpackage
Main reason is to reduce the library dependency footprint of
-core package

Signed-off-by: Cole Robinson <crobinso@redhat.com>
2021-07-15 11:37:24 -04:00
Cole Robinson 51821d35c5 spec: s/datarootdir/datadir/
The latter is the more common one

Signed-off-by: Cole Robinson <crobinso@redhat.com>
2021-07-07 19:07:37 -04:00
Cole Robinson 180e0d8daf qemu-6.0.0-9.fc35
Signed-off-by: Cole Robinson <crobinso@redhat.com>
2021-07-07 16:37:33 -04:00
Cole Robinson e0cb84627a spec: Use --firmwarepath to drop rom symlinking
Access ipxe, seabios, seavgabios, and sgabios roms directly
in their /usr/share directories.

Signed-off-by: Cole Robinson <crobinso@redhat.com>
2021-07-07 16:35:01 -04:00
Cole Robinson d13afbee6a spec: BuildRequires: clang if toolchain == clang
Let's us experiment easier with clang usage in koji

Signed-off-by: Cole Robinson <crobinso@redhat.com>
2021-07-02 19:05:54 -04:00
Cole Robinson b013f94648 spec: Drop use of %dnl macro
It's not available on centos8

Signed-off-by: Cole Robinson <crobinso@redhat.com>
2021-07-02 18:08:34 -04:00
Cole Robinson d5c2bbe293 spec: use %set_build_flags
Signed-off-by: Cole Robinson <crobinso@redhat.com>
2021-07-02 16:03:07 -04:00
Cole Robinson 05fedb21f6 spec: use make_install macro
make_install is: /usr/bin/make install DESTDIR=%{buildroot} INSTALL="/usr/bin/install -p"

Signed-off-by: Cole Robinson <crobinso@redhat.com>
2021-07-02 15:32:53 -04:00
Cole Robinson 0ae9d20128 spec: Drop make install sharedir and datadir usage
qemu doesn't use sharedir. datadir is set at configure time

Signed-off-by: Cole Robinson <crobinso@redhat.com>
2021-07-02 15:32:09 -04:00
Cole Robinson 183fcd911e spec: Use %make_build macro
make_build is: make -O -jXX V=1 VERBOSE=1

So it covers all our make option usage

Signed-off-by: Cole Robinson <crobinso@redhat.com>
2021-07-02 15:20:16 -04:00
Cole Robinson e6c8eaee02 spec: Remove buildldflags
VL_LDFLAGS has not been present in qemu.git since 2008!

Signed-off-by: Cole Robinson <crobinso@redhat.com>
2021-07-02 15:16:41 -04:00
Cole Robinson d4c8ff71ce spec: SDL2_image isn't available on epel/rhel
Signed-off-by: Cole Robinson <crobinso@redhat.com>
2021-07-02 15:07:14 -04:00
Cole Robinson f4c1719ae1 spec: Re-disable tests for power64, still intermittently hanging
Signed-off-by: Cole Robinson <crobinso@redhat.com>
2021-06-30 18:53:18 -04:00
Cole Robinson 73149263f3 spec: Use --enable-capstone even if capstone-devel not available
In that case (like building on EPEL), use the internal qemu copy,
like RHEL qemu-kvm does.

Signed-off-by: Cole Robinson <crobinso@redhat.com>
2021-06-30 16:19:08 -04:00
Cole Robinson b2595a5449 qemu-6.0.0-8.fc35
Signed-off-by: Cole Robinson <crobinso@redhat.com>
2021-06-30 10:49:14 -04:00