yeahuh / rpms / qemu-kvm

Forked from rpms/qemu-kvm 2 years ago
Clone
22c213
From 4df157781801c50224373be57fa3c8c3741c0535 Mon Sep 17 00:00:00 2001
22c213
From: Miroslav Rezanina <mrezanin@redhat.com>
22c213
Date: Fri, 12 Oct 2018 07:31:11 +0200
22c213
Subject: Initial redhat build
22c213
22c213
This patch introduces redhat build structure in redhat subdirectory. In addition,
22c213
several issues are fixed in QEMU tree:
22c213
22c213
 - Change of app name for sasl_server_init in VNC code from qemu to qemu-kvm
22c213
  - As we use qemu-kvm as name in all places, this is updated to be consistent
22c213
 - Man page renamed from qemu to qemu-kvm
22c213
  - man page is installed using make install so we have to fix it in qemu tree
22c213
 - Use "/share/qemu-kvm" as SHARE_SUFFIX
22c213
  - We reconfigured our share to qemu-kvm to be consistent with used name
22c213
22c213
This rebase includes changes up to qemu-kvm-4.1.0-18.el8
22c213
22c213
Rebase notes (3.1.0):
22c213
- added new configure options
22c213
22c213
Rebase notes (4.0.0):
22c213
- Added dependency to perl-Test-Harness (upstream)
22c213
- Added dependency to python3-sphinx (upstream)
22c213
- Change location of icons (upstream)
22c213
- Remove .desktop file (added upstream)
22c213
- Added qemu-trace-stap (added upstream)
22c213
- Removed elf2dmp (added upstream)
22c213
- Remove .buildinfo
22c213
- Added pvh.bin rom (added upstream)
22c213
- Added interop documentation files
22c213
- Use python module instead of qemu.py (upstream)
22c213
22c213
Rebase notes (4.1.0):
22c213
- Remove edk2 files generated by build
22c213
- Switch to rhel-8.1-candidate build target
22c213
- Remove specs documentation
22c213
- Switched from libssh2 to libssh
22c213
- Add rc0 tarball usage hacks
22c213
- Added BuildRequires for wget, rpm-build and python3-sphinx
22c213
- Removed new unpacked files
22c213
- Update configure line to use new options
22c213
22c213
Rebase notes (4.2.0):
22c213
- Disable iotest run during make check
22c213
- README renamed to README.rst (upstream)
22c213
- Removed ui-spice-app.so
22c213
- Added relevant changes from "505f7f4 redhat: Adding slirp to the exploded tree"
22c213
- Removed qemu-ga.8 install from spec file - installed by make
22c213
- Removed spapr-rtas.bin (upstream)
22c213
- Require newer SLOF (20191022)
22c213
22c213
Merged patches (3.1.0):
22c213
- 01f0c9f RHEL8: Add disable configure options to qemu spec file
22c213
- Spec file cleanups
22c213
22c213
Merged patches (4.0.0):
22c213
- aa4297c Add edk2 Requires to qemu-kvm
22c213
- d124ff5779 Fixing brew build target
22c213
- eb204b5 Introduce the qemu-kvm-tests rpm
22c213
- 223cf0c Load kvm module during boot (partial)
22c213
22c213
Merged patches (4.1.0):
22c213
- ebb6e97 redhat: Fix LOCALVERSION creation
22c213
- b0ab0cc redhat: enable tpmdev passthrough (not disabling tests)
22c213
- 7cb3c4a Enable libpmem to support nvdimm
22c213
- 8943607 qemu-kvm.spec: bump libseccomp >= 2.4.0
22c213
- 27b7c44 rh: set CONFIG_BOCHS_DISPLAY=y for x86 (partial)
22c213
- e1fe9fe x86_64-rh-devices: enable TPM emulation (partial)
22c213
22c213
Merged patches (4.2.0):
22c213
- 69e1fb2 enable virgla
22c213
- d4f6115 enable virgl, for real this time ...
22c213
22c213
Signed-off-by: Danilo C. L. de Paula <ddepaula@redhat.com>
22c213
---
22c213
 .gitignore                        |    1 +
22c213
 Makefile                          |    3 +-
22c213
 configure                         |    1 +
22c213
 os-posix.c                        |    2 +-
22c213
 redhat/Makefile                   |   82 +
22c213
 redhat/Makefile.common            |   51 +
22c213
 redhat/README.tests               |   39 +
22c213
 redhat/qemu-kvm.spec.template     | 2434 +++++++++++++++++++++++++++++
22c213
 redhat/scripts/process-patches.sh |    7 +-
22c213
 tests/Makefile.include            |    2 +-
22c213
 ui/vnc.c                          |    2 +-
22c213
 11 files changed, 2615 insertions(+), 9 deletions(-)
22c213
 create mode 100644 redhat/Makefile
22c213
 create mode 100644 redhat/Makefile.common
22c213
 create mode 100644 redhat/README.tests
22c213
 create mode 100644 redhat/qemu-kvm.spec.template
22c213
22c213
diff --git a/Makefile b/Makefile
22c213
index b437a346d7..086727dbb9 100644
22c213
--- a/Makefile
22c213
+++ b/Makefile
22c213
@@ -512,6 +512,7 @@ CAP_CFLAGS += -DCAPSTONE_HAS_ARM
22c213
 CAP_CFLAGS += -DCAPSTONE_HAS_ARM64
22c213
 CAP_CFLAGS += -DCAPSTONE_HAS_POWERPC
22c213
 CAP_CFLAGS += -DCAPSTONE_HAS_X86
22c213
+CAP_CFLAGS += -Wp,-D_GLIBCXX_ASSERTIONS
22c213
 
22c213
 .PHONY: capstone/all
22c213
 capstone/all: .git-submodule-status
22c213
@@ -826,7 +827,7 @@ install-doc: $(DOCS) install-sphinxdocs
22c213
 	$(INSTALL_DATA) docs/interop/qemu-qmp-ref.txt "$(DESTDIR)$(qemu_docdir)"
22c213
 ifdef CONFIG_POSIX
22c213
 	$(INSTALL_DIR) "$(DESTDIR)$(mandir)/man1"
22c213
-	$(INSTALL_DATA) qemu.1 "$(DESTDIR)$(mandir)/man1"
22c213
+	$(INSTALL_DATA) qemu.1 "$(DESTDIR)$(mandir)/man1/qemu-kvm.1"
22c213
 	$(INSTALL_DIR) "$(DESTDIR)$(mandir)/man7"
22c213
 	$(INSTALL_DATA) docs/interop/qemu-qmp-ref.7 "$(DESTDIR)$(mandir)/man7"
22c213
 	$(INSTALL_DATA) docs/qemu-block-drivers.7 "$(DESTDIR)$(mandir)/man7"
22c213
diff --git a/configure b/configure
22c213
index 6099be1d84..16564f8ccc 100755
22c213
--- a/configure
22c213
+++ b/configure
22c213
@@ -2424,6 +2424,7 @@ if test "$seccomp" != "no" ; then
22c213
         seccomp="no"
22c213
     fi
22c213
 fi
22c213
+
22c213
 ##########################################
22c213
 # xen probe
22c213
 
22c213
diff --git a/os-posix.c b/os-posix.c
22c213
index 86cffd2c7d..1c9f86768d 100644
22c213
--- a/os-posix.c
22c213
+++ b/os-posix.c
22c213
@@ -83,7 +83,7 @@ void os_setup_signal_handling(void)
22c213
 /* Find a likely location for support files using the location of the binary.
22c213
    For installed binaries this will be "$bindir/../share/qemu".  When
22c213
    running from the build tree this will be "$bindir/../pc-bios".  */
22c213
-#define SHARE_SUFFIX "/share/qemu"
22c213
+#define SHARE_SUFFIX "/share/qemu-kvm"
22c213
 #define BUILD_SUFFIX "/pc-bios"
22c213
 char *os_find_datadir(void)
22c213
 {
22c213
diff --git a/tests/Makefile.include b/tests/Makefile.include
22c213
index 8566f5f119..b483790cf3 100644
22c213
--- a/tests/Makefile.include
22c213
+++ b/tests/Makefile.include
22c213
@@ -1194,7 +1194,7 @@ check-acceptance: check-venv $(TESTS_RESULTS_DIR)
22c213
 check-qapi-schema: check-tests/qapi-schema/frontend check-tests/qapi-schema/doc-good.texi
22c213
 check-qtest: $(patsubst %,check-qtest-%, $(QTEST_TARGETS))
22c213
 check-block: $(patsubst %,check-%, $(check-block-y))
22c213
-check: check-block check-qapi-schema check-unit check-softfloat check-qtest check-decodetree
22c213
+check: check-qapi-schema check-unit check-softfloat check-qtest check-decodetree
22c213
 check-clean:
22c213
 	rm -rf $(check-unit-y) tests/*.o $(QEMU_IOTESTS_HELPERS-y)
22c213
 	rm -rf $(sort $(foreach target,$(SYSEMU_TARGET_LIST), $(check-qtest-$(target)-y)) $(check-qtest-generic-y))
22c213
diff --git a/ui/vnc.c b/ui/vnc.c
22c213
index 87b8045afe..ecf6276f5b 100644
22c213
--- a/ui/vnc.c
22c213
+++ b/ui/vnc.c
22c213
@@ -3987,7 +3987,7 @@ void vnc_display_open(const char *id, Error **errp)
22c213
 
22c213
 #ifdef CONFIG_VNC_SASL
22c213
     if (sasl) {
22c213
-        int saslErr = sasl_server_init(NULL, "qemu");
22c213
+        int saslErr = sasl_server_init(NULL, "qemu-kvm");
22c213
 
22c213
         if (saslErr != SASL_OK) {
22c213
             error_setg(errp, "Failed to initialize SASL auth: %s",
22c213
-- 
22c213
2.21.0
22c213