cryptospore / rpms / qemu-kvm

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