Hello community,

here is the log from the commit of package qemu for openSUSE:Factory checked in 
at 2018-04-30 22:48:57
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/qemu (Old)
 and      /work/SRC/openSUSE:Factory/.qemu.new (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "qemu"

Mon Apr 30 22:48:57 2018 rev:139 rq:602139 version:2.11.1

Changes:
--------
--- /work/SRC/openSUSE:Factory/qemu/qemu-testsuite.changes      2018-04-07 
20:54:53.631088276 +0200
+++ /work/SRC/openSUSE:Factory/.qemu.new/qemu-testsuite.changes 2018-04-30 
22:49:03.338097486 +0200
@@ -1,0 +2,24 @@
+Fri Apr 27 20:50:49 UTC 2018 - [email protected]
+
+- Fix autoinstall of qemu-guest-agent by getting the modalias string
+  right (bsc#1091143)
+
+-------------------------------------------------------------------
+Thu Apr 26 17:20:01 UTC 2018 - [email protected]
+
+- Guard strncpy call with GCC pragma to disable warning about possible
+  incorrect usage, when in fact it is correct. This is for gcc 8
+  compatibility (bsc#1090355)
+  ipxe-efi-guard-strncpy-with-gcc-warning-ignore-pragma.patch
+
+-------------------------------------------------------------------
+Mon Apr 23 13:02:30 UTC 2018 - [email protected]
+
+- Add WantedBy for enable [email protected] auto start (bsc#1090369)
+
+-------------------------------------------------------------------
+Tue Apr 10 10:50:31 UTC 2018 - [email protected]
+
+- fix qemu-ga service file name (bsc#1089067)
+
+-------------------------------------------------------------------
qemu.changes: same change

New:
----
  ipxe-efi-guard-strncpy-with-gcc-warning-ignore-pragma.patch

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

Other differences:
------------------
++++++ qemu-testsuite.spec ++++++
--- /var/tmp/diff_new_pack.qwJM5S/_old  2018-04-30 22:49:05.998000439 +0200
+++ /var/tmp/diff_new_pack.qwJM5S/_new  2018-04-30 22:49:06.002000293 +0200
@@ -225,6 +225,7 @@
 # PATCH-FIX-OPENSUSE ipxe-stable-buildid.patch [email protected] -- 
reproducible builds
 Patch1200:      ipxe-stable-buildid.patch
 Patch1201:      ipxe-use-gcc6-for-more-compact-code.patch
+Patch1202:      ipxe-efi-guard-strncpy-with-gcc-warning-ignore-pragma.patch
 
 # sgabios
 # PATCH-FIX-OPENSUSE sgabios-stable-buildid.patch [email protected] -- 
reproducible builds
@@ -730,7 +731,7 @@
 Provides:       qemu:%_bindir/qemu-ga
 Requires(pre):  shadow
 Requires(post): udev
-Supplements:    modalias(acpi*:QEMU0002:*)
+Supplements:    modalias(acpi*:QEMU0002%3A*)
 Supplements:    modalias(pci:v0000FFFDd00000101sv*sd*bc*sc*i*)
 Supplements:    modalias(pci:v00005853d00000001sv*sd*bc*sc*i*)
 %{?systemd_requires}
@@ -906,6 +907,7 @@
 %if 0%{?suse_version} <= 1320
 %patch1201 -p1
 %endif
+%patch1202 -p1
 popd
 
 pushd roms/sgabios
@@ -1288,7 +1290,7 @@
 %endif
 install -D -m 0644 %{SOURCE1} %{buildroot}%{_udevrulesdir}/80-kvm.rules
 %endif
-install -D -p -m 0644 %{SOURCE7} %{buildroot}%{_unitdir}/qemu-ga.service
+install -D -p -m 0644 %{SOURCE7} %{buildroot}%{_unitdir}/[email protected]
 %if 0%{?is_opensuse}
 install -D -p -m 0644 %{SOURCE6} %{buildroot}%{_unitdir}/ksm.service
 %endif
@@ -1342,19 +1344,19 @@
 
 %pre guest-agent
 %{_bindir}/getent group kvm >/dev/null || %{_sbindir}/groupadd -r kvm
-%service_add_pre qemu-ga.service
+%service_add_pre [email protected]
 
 %preun guest-agent
-%service_del_preun qemu-ga.service
+%service_del_preun [email protected]
 
 %post guest-agent
-%service_add_post qemu-ga.service
+%service_add_post [email protected]
 if [ -e /dev/virtio-ports/org.qemu.guest_agent.0 ]; then
-  /usr/bin/systemctl start qemu-ga.service || :
+  /usr/bin/systemctl start 
qemu-ga@virtio\\x2dports-org.qemu.guest_agent.0.service || :
 fi
 
 %postun guest-agent
-%service_del_postun qemu-ga.service
+%service_del_postun [email protected]
 
 %if 0%{?is_opensuse}
 %pre ksm
@@ -1603,7 +1605,7 @@
 %defattr(-, root, root)
 %_mandir/man8/qemu-ga.8.gz
 %attr(0755,root,kvm) %_bindir/qemu-ga
-%{_unitdir}/qemu-ga.service
+%{_unitdir}/[email protected]
 %{_udevrulesdir}/80-qemu-ga.rules
 
 %if 0%{?is_opensuse}

++++++ qemu.spec ++++++
--- /var/tmp/diff_new_pack.qwJM5S/_old  2018-04-30 22:49:06.021999563 +0200
+++ /var/tmp/diff_new_pack.qwJM5S/_new  2018-04-30 22:49:06.025999417 +0200
@@ -225,6 +225,7 @@
 # PATCH-FIX-OPENSUSE ipxe-stable-buildid.patch [email protected] -- 
reproducible builds
 Patch1200:      ipxe-stable-buildid.patch
 Patch1201:      ipxe-use-gcc6-for-more-compact-code.patch
+Patch1202:      ipxe-efi-guard-strncpy-with-gcc-warning-ignore-pragma.patch
 
 # sgabios
 # PATCH-FIX-OPENSUSE sgabios-stable-buildid.patch [email protected] -- 
reproducible builds
@@ -730,7 +731,7 @@
 Provides:       qemu:%_bindir/qemu-ga
 Requires(pre):  shadow
 Requires(post): udev
-Supplements:    modalias(acpi*:QEMU0002:*)
+Supplements:    modalias(acpi*:QEMU0002%3A*)
 Supplements:    modalias(pci:v0000FFFDd00000101sv*sd*bc*sc*i*)
 Supplements:    modalias(pci:v00005853d00000001sv*sd*bc*sc*i*)
 %{?systemd_requires}
@@ -906,6 +907,7 @@
 %if 0%{?suse_version} <= 1320
 %patch1201 -p1
 %endif
+%patch1202 -p1
 popd
 
 pushd roms/sgabios
@@ -1288,7 +1290,7 @@
 %endif
 install -D -m 0644 %{SOURCE1} %{buildroot}%{_udevrulesdir}/80-kvm.rules
 %endif
-install -D -p -m 0644 %{SOURCE7} %{buildroot}%{_unitdir}/qemu-ga.service
+install -D -p -m 0644 %{SOURCE7} %{buildroot}%{_unitdir}/[email protected]
 %if 0%{?is_opensuse}
 install -D -p -m 0644 %{SOURCE6} %{buildroot}%{_unitdir}/ksm.service
 %endif
@@ -1342,19 +1344,19 @@
 
 %pre guest-agent
 %{_bindir}/getent group kvm >/dev/null || %{_sbindir}/groupadd -r kvm
-%service_add_pre qemu-ga.service
+%service_add_pre [email protected]
 
 %preun guest-agent
-%service_del_preun qemu-ga.service
+%service_del_preun [email protected]
 
 %post guest-agent
-%service_add_post qemu-ga.service
+%service_add_post [email protected]
 if [ -e /dev/virtio-ports/org.qemu.guest_agent.0 ]; then
-  /usr/bin/systemctl start qemu-ga.service || :
+  /usr/bin/systemctl start 
qemu-ga@virtio\\x2dports-org.qemu.guest_agent.0.service || :
 fi
 
 %postun guest-agent
-%service_del_postun qemu-ga.service
+%service_del_postun [email protected]
 
 %if 0%{?is_opensuse}
 %pre ksm
@@ -1603,7 +1605,7 @@
 %defattr(-, root, root)
 %_mandir/man8/qemu-ga.8.gz
 %attr(0755,root,kvm) %_bindir/qemu-ga
-%{_unitdir}/qemu-ga.service
+%{_unitdir}/[email protected]
 %{_udevrulesdir}/80-qemu-ga.rules
 
 %if 0%{?is_opensuse}

++++++ ipxe-efi-guard-strncpy-with-gcc-warning-ignore-pragma.patch ++++++
>From cd6ca646c12371f0146d43ea5a6b7574342c2a7f Mon Sep 17 00:00:00 2001
From: Bruce Rogers <[email protected]>
Date: Wed, 25 Apr 2018 10:26:28 -0600
Subject: [PATCH] [efi] guard strncpy with gcc warning ignore pragma

Using gcc 8 with the -Wstringop-truncation option, and with warnings
treated as errors, the following error is emitted:

util/elf2efi.c:494:2: error: 'strncpy' specified bound 8 equals destination
size [-Werror=stringop-truncation]
  strncpy ( ( char * ) new->hdr.Name, name, sizeof ( new->hdr.Name ) );
  ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Use gcc pragmas surrounding this line of code which avoid this warning. The
strncpy usage here is correct.

[BR: BSC#1090355]
Signed-off-by: Bruce Rogers <[email protected]>
---
 src/util/elf2efi.c | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/src/util/elf2efi.c b/src/util/elf2efi.c
index 6718df77..93cdda03 100644
--- a/src/util/elf2efi.c
+++ b/src/util/elf2efi.c
@@ -494,7 +494,13 @@ static struct pe_section * process_section ( struct 
elf_file *elf,
        memset ( new, 0, sizeof ( *new ) + section_filesz );
 
        /* Fill in section header details */
+/* gcc 8 warning gives false positive here - our usage is correct */
+#pragma GCC diagnostic push
+#if __GNUC__ >= 8
+#pragma GCC diagnostic ignored "-Wstringop-truncation"
+#endif
        strncpy ( ( char * ) new->hdr.Name, name, sizeof ( new->hdr.Name ) );
+#pragma GCC diagnostic pop
        new->hdr.Misc.VirtualSize = section_memsz;
        new->hdr.VirtualAddress = shdr->sh_addr;
        new->hdr.SizeOfRawData = section_filesz;
-- 
2.16.3



++++++ [email protected] ++++++
--- /var/tmp/diff_new_pack.qwJM5S/_old  2018-04-30 22:49:06.481982781 +0200
+++ /var/tmp/diff_new_pack.qwJM5S/_new  2018-04-30 22:49:06.489982489 +0200
@@ -9,3 +9,6 @@
 ExecStart=-/usr/bin/qemu-ga -p /dev/%I
 Restart=always
 RestartSec=0
+
+[Install]
+WantedBy=dev-%i.device


++++++ qemu.spec.in ++++++
--- /var/tmp/diff_new_pack.qwJM5S/_old  2018-04-30 22:49:06.577979279 +0200
+++ /var/tmp/diff_new_pack.qwJM5S/_new  2018-04-30 22:49:06.581979133 +0200
@@ -147,6 +147,7 @@
 # PATCH-FIX-OPENSUSE ipxe-stable-buildid.patch [email protected] -- 
reproducible builds
 Patch1200:      ipxe-stable-buildid.patch
 Patch1201:      ipxe-use-gcc6-for-more-compact-code.patch
+patch1202:      ipxe-efi-guard-strncpy-with-gcc-warning-ignore-pragma.patch
 
 # sgabios
 # PATCH-FIX-OPENSUSE sgabios-stable-buildid.patch [email protected] -- 
reproducible builds
@@ -652,7 +653,7 @@
 Provides:       qemu:%_bindir/qemu-ga
 Requires(pre):  shadow
 Requires(post): udev
-Supplements:    modalias(acpi*:QEMU0002:*)
+Supplements:    modalias(acpi*:QEMU0002%3A*)
 Supplements:    modalias(pci:v0000FFFDd00000101sv*sd*bc*sc*i*)
 Supplements:    modalias(pci:v00005853d00000001sv*sd*bc*sc*i*)
 %{?systemd_requires}
@@ -749,6 +750,7 @@
 %if 0%{?suse_version} <= 1320
 %patch1201 -p1
 %endif
+%patch1202 -p1
 popd
 
 pushd roms/sgabios
@@ -1131,7 +1133,7 @@
 %endif
 install -D -m 0644 %{SOURCE1} %{buildroot}%{_udevrulesdir}/80-kvm.rules
 %endif
-install -D -p -m 0644 %{SOURCE7} %{buildroot}%{_unitdir}/qemu-ga.service
+install -D -p -m 0644 %{SOURCE7} %{buildroot}%{_unitdir}/[email protected]
 %if 0%{?is_opensuse}
 install -D -p -m 0644 %{SOURCE6} %{buildroot}%{_unitdir}/ksm.service
 %endif
@@ -1185,19 +1187,19 @@
 
 %pre guest-agent
 %{_bindir}/getent group kvm >/dev/null || %{_sbindir}/groupadd -r kvm
-%service_add_pre qemu-ga.service
+%service_add_pre [email protected]
 
 %preun guest-agent
-%service_del_preun qemu-ga.service
+%service_del_preun [email protected]
 
 %post guest-agent
-%service_add_post qemu-ga.service
+%service_add_post [email protected]
 if [ -e /dev/virtio-ports/org.qemu.guest_agent.0 ]; then
-  /usr/bin/systemctl start qemu-ga.service || :
+  /usr/bin/systemctl start 
qemu-ga@virtio\\x2dports-org.qemu.guest_agent.0.service || :
 fi
 
 %postun guest-agent
-%service_del_postun qemu-ga.service
+%service_del_postun [email protected]
 
 %if 0%{?is_opensuse}
 %pre ksm
@@ -1446,7 +1448,7 @@
 %defattr(-, root, root)
 %_mandir/man8/qemu-ga.8.gz
 %attr(0755,root,kvm) %_bindir/qemu-ga
-%{_unitdir}/qemu-ga.service
+%{_unitdir}/[email protected]
 %{_udevrulesdir}/80-qemu-ga.rules
 
 %if 0%{?is_opensuse}


Reply via email to