Script 'mail_helper' called by obssrc
Hello community,

here is the log from the commit of package qt-creator for openSUSE:Factory 
checked in at 2025-06-12 15:53:52
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/qt-creator (Old)
 and      /work/SRC/openSUSE:Factory/.qt-creator.new.19631 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "qt-creator"

Thu Jun 12 15:53:52 2025 rev:47 rq:1285039 version:16.0.2

Changes:
--------
--- /work/SRC/openSUSE:Factory/qt-creator/qt-creator.changes    2025-05-15 
17:00:46.124672317 +0200
+++ /work/SRC/openSUSE:Factory/.qt-creator.new.19631/qt-creator.changes 
2025-06-12 15:55:40.635195768 +0200
@@ -1,0 +2,6 @@
+Thu Jun 12 06:48:19 UTC 2025 - Jiri Slaby <jsl...@suse.cz>
+
+- add 0001-Debugger-Pass-unsigned-int-instead-of-size_t-to-ioct.patch
+  (QTCREATORBUG-33049)
+
+-------------------------------------------------------------------

New:
----
  0001-Debugger-Pass-unsigned-int-instead-of-size_t-to-ioct.patch

BETA DEBUG BEGIN:
  New:
- add 0001-Debugger-Pass-unsigned-int-instead-of-size_t-to-ioct.patch
  (QTCREATORBUG-33049)
BETA DEBUG END:

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

Other differences:
------------------
++++++ qt-creator.spec ++++++
--- /var/tmp/diff_new_pack.7wFmdO/_old  2025-06-12 15:55:41.431228710 +0200
+++ /var/tmp/diff_new_pack.7wFmdO/_new  2025-06-12 15:55:41.431228710 +0200
@@ -60,6 +60,7 @@
 Source:         
https://download.qt.io/official_releases/qtcreator/%{short_version}/%{real_version}%{tar_suffix}/%{tar_name}-%{real_version}%{tar_suffix}.tar.xz
 Source1:        qt-creator-rpmlintrc
 # Patches 0-10 are upstream changes
+Patch0:         0001-Debugger-Pass-unsigned-int-instead-of-size_t-to-ioct.patch
 # Patches 11-20 are openSUSE changes
 Patch11:        fix-application-output.patch
 Patch12:        0001-Disable-some-plugins.patch
@@ -130,9 +131,9 @@
 Recommends:     qt6-base-docs-qch
 # Shows examples when starting qt-creator (related: boo#1218403)
 Recommends:     qt6-base-examples
-Recommends:     qt6-declarative-examples
 Recommends:     qt6-declarative-devel
 Recommends:     qt6-declarative-docs-qch
+Recommends:     qt6-declarative-examples
 Recommends:     qt6-translations
 # Generic name recommended by the KDE pattern
 Provides:       qt-creator = %{version}

++++++ 0001-Debugger-Pass-unsigned-int-instead-of-size_t-to-ioct.patch ++++++
From: hjk <h...@qt.io>
Date: Tue, 10 Jun 2025 09:36:04 +0200
Subject: Debugger: Pass unsigned int * instead of size_t * to ioctl(...,
 FIONREAD, ...)
References: https://bugreports.qt.io/browse/QTCREATORBUG-33049
Git-repo: https://github.com/qt-creator/qt-creator#17.0
Git-commit: 1de4e638b9447827e04b91395da6f421eb2a99df

While the documention for FIONREAD e.g. on [1] mentions a (signed) int *,
the actual implementation [2] on Linux uses an unsigned int *.

[1] https://man7.org/linux/man-pages/man2/FIONREAD.2const.html
[2] 
https://github.com/torvalds/linux/blob/f09079bd04a924c72d555cd97942d5f8d7eca98c/drivers/tty/n_tty.c#L2507

Done-by: Jiri Slaby
Fixes: QTCREATORBUG-33049
Change-Id: I020242ff43c5b0c6b206edb7d9cd227680456769
Reviewed-by: Christian Stenger <christian.sten...@qt.io>
Signed-off-by: Jiri Slaby <jsl...@suse.cz>
---
 src/plugins/debugger/outputcollector.cpp | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/src/plugins/debugger/outputcollector.cpp 
b/src/plugins/debugger/outputcollector.cpp
index c8b363da72a9..129ae2f57ea0 100644
--- a/src/plugins/debugger/outputcollector.cpp
+++ b/src/plugins/debugger/outputcollector.cpp
@@ -138,9 +138,11 @@ void OutputCollector::bytesAvailable()
     if (m_socket)
         emit byteDelivery(m_socket->readAll());
 #else
-    size_t nbytes = 0;
+    unsigned int nbytes = 0;
     if (::ioctl(m_serverFd, FIONREAD, (char *) &nbytes) < 0)
         return;
+    if (!nbytes)
+        return;
     QVarLengthArray<char, 8192> buff(nbytes);
     if (::read(m_serverFd, buff.data(), nbytes) != (int)nbytes)
         return;
-- 
2.49.0

Reply via email to