Script 'mail_helper' called by obssrc
Hello community,

here is the log from the commit of package qemu for openSUSE:Factory checked in 
at 2021-01-20 18:22:52
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/qemu (Old)
 and      /work/SRC/openSUSE:Factory/.qemu.new.28504 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "qemu"

Wed Jan 20 18:22:52 2021 rev:191 rq:864182 version:5.2.0

Changes:
--------
--- /work/SRC/openSUSE:Factory/qemu/qemu.changes        2021-01-10 
19:38:45.549471779 +0100
+++ /work/SRC/openSUSE:Factory/.qemu.new.28504/qemu.changes     2021-01-20 
18:22:59.279288917 +0100
@@ -1,0 +2,33 @@
+Mon Jan 18 22:54:11 UTC 2021 - Bruce Rogers <brog...@suse.com>
+
+- Fix qemu-testsuite issue where white space processing gets
+  handled differently under bash 5.1 (boo#1181054)
+  iotests-Fix-_send_qemu_cmd-with-bash-5.1.patch
+
+-------------------------------------------------------------------
+Wed Jan 13 19:48:17 UTC 2021 - Bruce Rogers <brog...@suse.com>
+
+- Convert qemu-kvm from a script to a symlink. Using qemu-kvm to
+  invoke the QEMU emulator has been deprecated for some time,
+  but is still provided. It has as it's ancient origins a version
+  of QEMU which had KVM acceleration enabled by default, and then
+  recently, until now, it is a shell script which execs the QEMU
+  emulator, adding '-machine accel=kvm' to the beginning of the
+  list of command line options passed to the emulator.
+  This method collides with the now preferred method of specifying
+  acceleration options by using -accel. qemu-kvm is now changed to
+  simply be a symlink to the same QEMU binary which the prior
+  script exec'd. This new approach takes advantage of a built-in
+  QEMU feature where if QEMU is invoked using a program name ending
+  in 'kvm', KVM emulation is enabled. This approach is better in
+  that it is more compatible with any other command line option
+  that may be added for describing acceleration.
+  For those who have modified qemu-kvm to add additional command
+  line options, or take other actions in the context of the script
+  you will now need to create an alternate script "emulator" to
+  achieve the same result. Note that it's possible there may be
+  some very subtle behavioral difference in the switch from a
+  script to a symlink, but given that qemu-kvm is a deprecated
+  package, we're not going to worry about that.
+
+-------------------------------------------------------------------

New:
----
  iotests-Fix-_send_qemu_cmd-with-bash-5.1.patch

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ qemu.spec ++++++
--- /var/tmp/diff_new_pack.XKDI6z/_old  2021-01-20 18:23:01.171290675 +0100
+++ /var/tmp/diff_new_pack.XKDI6z/_new  2021-01-20 18:23:01.175290679 +0100
@@ -180,6 +180,7 @@
 Patch00046:     Makefile-Don-t-check-pc-bios-as-pre-requ.patch
 Patch00047:     roms-Makefile-add-cross-file-to-qboot-me.patch
 Patch00048:     usb-Help-compiler-out-to-avoid-a-warning.patch
+Patch00049:     iotests-Fix-_send_qemu_cmd-with-bash-5.1.patch
 # Patches applied in roms/seabios/:
 Patch01000:     seabios-use-python2-explicitly-as-needed.patch
 Patch01001:     seabios-switch-to-python3-as-needed.patch
@@ -507,10 +508,10 @@
 %description kvm
 %{generic_qemu_description}
 
-This package simply provides a shell script wrapper for the QEMU program which
-does the actual machine emulation and virtualization for this architecture. The
-wrapper simply adds command-line parameters to ensure that the KVM accelerator
-is invoked. It provides no additional benefit, and is considered deprecated.
+This package provides a symlink to the main QEMU emulator used for KVM 
+virtualization. The symlink is named qemu-kvm, which causes the QEMU program 
+to enable the KVM accelerator, due to the name reference ending with 'kvm'. 
+This package is an artifact of the early origins of QEMU, and is deprecated.
 %endif
 
 %package lang
@@ -1037,6 +1038,7 @@
 %ifarch %arm %ix86
 %patch00048 -p1
 %endif
+%patch00049 -p1
 %patch01000 -p1
 %patch01001 -p1
 %patch01002 -p1
@@ -1643,22 +1645,14 @@
 install -D -m 0644 %{SOURCE12} %{buildroot}%_docdir/qemu-x86/supported.txt
 install -D -m 0644 %{SOURCE13} %{buildroot}%_docdir/qemu-s390x/supported.txt
 %if %{legacy_qemu_kvm}
-cat > %{buildroot}%_bindir/qemu-kvm << 'EOF'
-#!/bin/sh
-
-%ifarch s390x
-exec %_bindir/qemu-system-s390x -machine accel=kvm "$@"
-%else
-exec %_bindir/qemu-system-x86_64 -machine accel=kvm "$@"
-%endif
-EOF
-chmod 755 %{buildroot}%_bindir/qemu-kvm
 install -D -m 0644 %{SOURCE5} %{buildroot}%_mandir/man1/qemu-kvm.1.gz
 install -d %{buildroot}%_docdir/qemu-kvm
 %ifarch s390x
+ln -s qemu-system-s390x %{buildroot}%_bindir/qemu-kvm
 ln -s ../qemu-s390x/supported.txt 
%{buildroot}%_docdir/qemu-kvm/kvm-supported.txt
 rst2html --exit-status=2 %{buildroot}%_docdir/qemu-s390x/supported.txt 
%{buildroot}%_docdir/qemu-kvm/kvm-supported.html
 %else
+ln -s qemu-system-x86_64 %{buildroot}%_bindir/qemu-kvm
 ln -s ../qemu-x86/supported.txt %{buildroot}%_docdir/qemu-kvm/kvm-supported.txt
 rst2html --exit-status=2 %{buildroot}%_docdir/qemu-x86/supported.txt 
%{buildroot}%_docdir/qemu-kvm/kvm-supported.html
 %endif

++++++ bundles.tar.xz ++++++
Binary files old/553032db17440f8de011390e5a1cfddd13751b0b.bundle and 
new/553032db17440f8de011390e5a1cfddd13751b0b.bundle differ

++++++ iotests-Fix-_send_qemu_cmd-with-bash-5.1.patch ++++++
++++ 1652 lines (skipped)




++++++ qemu.spec.in ++++++
--- /var/tmp/diff_new_pack.XKDI6z/_old  2021-01-20 18:23:01.671291101 +0100
+++ /var/tmp/diff_new_pack.XKDI6z/_new  2021-01-20 18:23:01.671291101 +0100
@@ -440,10 +440,10 @@
 %description kvm
 %{generic_qemu_description}
 
-This package simply provides a shell script wrapper for the QEMU program which
-does the actual machine emulation and virtualization for this architecture. The
-wrapper simply adds command-line parameters to ensure that the KVM accelerator
-is invoked. It provides no additional benefit, and is considered deprecated.
+This package provides a symlink to the main QEMU emulator used for KVM 
+virtualization. The symlink is named qemu-kvm, which causes the QEMU program 
+to enable the KVM accelerator, due to the name reference ending with 'kvm'. 
+This package is an artifact of the early origins of QEMU, and is deprecated.
 %endif
 
 %package lang
@@ -1510,22 +1510,14 @@
 install -D -m 0644 %{SOURCE12} %{buildroot}%_docdir/qemu-x86/supported.txt
 install -D -m 0644 %{SOURCE13} %{buildroot}%_docdir/qemu-s390x/supported.txt
 %if %{legacy_qemu_kvm}
-cat > %{buildroot}%_bindir/qemu-kvm << 'EOF'
-#!/bin/sh
-
-%ifarch s390x
-exec %_bindir/qemu-system-s390x -machine accel=kvm "$@"
-%else
-exec %_bindir/qemu-system-x86_64 -machine accel=kvm "$@"
-%endif
-EOF
-chmod 755 %{buildroot}%_bindir/qemu-kvm
 install -D -m 0644 %{SOURCE5} %{buildroot}%_mandir/man1/qemu-kvm.1.gz
 install -d %{buildroot}%_docdir/qemu-kvm
 %ifarch s390x
+ln -s qemu-system-s390x %{buildroot}%_bindir/qemu-kvm
 ln -s ../qemu-s390x/supported.txt 
%{buildroot}%_docdir/qemu-kvm/kvm-supported.txt
 rst2html --exit-status=2 %{buildroot}%_docdir/qemu-s390x/supported.txt 
%{buildroot}%_docdir/qemu-kvm/kvm-supported.html
 %else
+ln -s qemu-system-x86_64 %{buildroot}%_bindir/qemu-kvm
 ln -s ../qemu-x86/supported.txt %{buildroot}%_docdir/qemu-kvm/kvm-supported.txt
 rst2html --exit-status=2 %{buildroot}%_docdir/qemu-x86/supported.txt 
%{buildroot}%_docdir/qemu-kvm/kvm-supported.html
 %endif

Reply via email to