Hello community,

here is the log from the commit of package libqt5-qtbase for openSUSE:Factory 
checked in at 2018-12-27 00:22:30
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/libqt5-qtbase (Old)
 and      /work/SRC/openSUSE:Factory/.libqt5-qtbase.new.28833 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "libqt5-qtbase"

Thu Dec 27 00:22:30 2018 rev:91 rq:660518 version:5.12.0

Changes:
--------
--- /work/SRC/openSUSE:Factory/libqt5-qtbase/libqt5-qtbase.changes      
2018-12-14 20:54:47.252920143 +0100
+++ /work/SRC/openSUSE:Factory/.libqt5-qtbase.new.28833/libqt5-qtbase.changes   
2018-12-27 00:22:31.475999534 +0100
@@ -1,0 +2,9 @@
+Thu Dec 20 17:37:42 UTC 2018 - Antonio Larrosa <alarr...@suse.com>
+
+- Add 0001-Fix-qfloat16-methods-definition-without-declaration-.patch
+  (a slightly different version of workaround-qdoc-failure.patch in
+  libqt5-qtdoc, which was submitted upstream to fix libqt5-qtdoc
+  building also when qt modules other than qtbase include qfloat16.h
+  from the system qtbase package (boo#1092425, qtbug#72725)
+
+-------------------------------------------------------------------

New:
----
  0001-Fix-qfloat16-methods-definition-without-declaration-.patch

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

Other differences:
------------------
++++++ libqt5-qtbase.spec ++++++
--- /var/tmp/diff_new_pack.nYgDT3/_old  2018-12-27 00:22:33.235998102 +0100
+++ /var/tmp/diff_new_pack.nYgDT3/_new  2018-12-27 00:22:33.239998098 +0100
@@ -69,6 +69,8 @@
 Patch18:        0002-xcb-Use-the-screen-s-physical-DPI-as-logical-DPI-unl.patch
 # PATCH-FIX-UPSTREAM
 Patch19:        qapplication-emit-palettechanged.patch
+# PATCH-FIX-UPSTREAM
+Patch20:        0001-Fix-qfloat16-methods-definition-without-declaration-.patch
 # patches 1000-2000 and above from upstream 5.12 branch #
 # patches 2000-3000 and above from upstream 5.13/dev branch #
 BuildRequires:  alsa-devel

++++++ 0001-Fix-qfloat16-methods-definition-without-declaration-.patch ++++++
>From edc15323b4ef13a2a58ba4bebd46a78449b628ee Mon Sep 17 00:00:00 2001
From: Antonio Larrosa <alarr...@suse.com>
Date: Fri, 21 Dec 2018 12:33:39 +0100
Subject: [PATCH] Fix qfloat16 methods definition without declaration when
 using Q_QDOC

This fixes qtdoc failing to build on i586 because of an assertion in
libclang since Q_QDOC is defined and thus the declaration of the
qfloat16(float) constructor and operator float() are removed, thus
their definitions should be removed too, which is what this patch
does.

This patch was done together with Michal Srb <m...@suse.com>.

Fixes: QTBUG-72725

Change-Id: I6424873425d46345e09f411f9ce88f2520825da4
---
 src/corelib/global/qfloat16.h | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/src/corelib/global/qfloat16.h b/src/corelib/global/qfloat16.h
index a8befd7adb..3e50ad8467 100644
--- a/src/corelib/global/qfloat16.h
+++ b/src/corelib/global/qfloat16.h
@@ -123,6 +123,7 @@ Q_REQUIRED_RESULT inline bool qIsNull(qfloat16 f) 
Q_DECL_NOTHROW
 inline int qIntCast(qfloat16 f) Q_DECL_NOTHROW
 { return int(static_cast<float>(f)); }
 
+#ifndef Q_QDOC
 QT_WARNING_PUSH
 QT_WARNING_DISABLE_CLANG("-Wc99-extensions")
 QT_WARNING_DISABLE_GCC("-Wold-style-cast")
@@ -162,6 +163,7 @@ inline qfloat16::operator float() const Q_DECL_NOTHROW
     return f;
 #endif
 }
+#endif
 
 inline qfloat16 operator-(qfloat16 a) Q_DECL_NOTHROW
 {
-- 
2.19.2


Reply via email to