Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 732088

Summary: dev-util/qdevicemonitor-1.0.1-r2 : main.cpp: error: QTextStream& QTextStreamFunctions::endl(QTextStream&) is deprecated: Use Qt::e
Product: Gentoo Linux Reporter: Toralf Förster <toralf>
Component: Current packagesAssignee: Alexander Lopatin <alopatindev>
Status: RESOLVED FIXED    
Severity: normal CC: proxy-maint
Priority: Normal Keywords: PullRequest
Version: unspecified   
Hardware: All   
OS: Linux   
See Also: https://github.com/gentoo/gentoo/pull/16664
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on:    
Bug Blocks: 260867, 726178    
Attachments: emerge-info.txt
dev-util:qdevicemonitor-1.0.1-r2:20200710-105446.log
emerge-history.txt
environment
etc.portage.tbz2

Description Toralf Förster gentoo-dev 2020-07-10 11:28:29 UTC
x86_64-pc-linux-gnu-g++ -c -O2 -pipe -march=native -fno-diagnostics-color -Werror -Wfatal-errors -pedantic-errors -pedantic -Wextra -Wall -O3 -std=gnu++11 -Wall -Wextra -D_REENTRANT -fPIC -DQT_DEBUG -DVERSION=\"1.0.1\" -DQT_NO_DEBUG -DQT_WIDGETS_LIB -DQT_GUI_LIB -DQT_CORE_LIB -I. -isystem /usr/include/qt5 -isystem /usr/include/qt5/QtWidgets -isystem /usr/include/qt5/QtGui -isystem /usr/include/qt5/QtCore -I. -I. -I/usr/lib64/qt5/mkspecs/linux-g++ -o main.o main.cpp
main.cpp: In function ‘void logOutput(QtMsgType, const QMessageLogContext&, const QString&)’:
main.cpp:46:12: error: ‘QTextStream& QTextStreamFunctions::endl(QTextStream&)’ is deprecated: Use Qt::endl [-Werror=deprecated-declarations]
   46 |     out << endl;
      |            ^~~~
compilation terminated due to -Wfatal-errors.

  -------------------------------------------------------------------

  This is an unstable amd64 chroot image at a tinderbox (==build bot)
  name: 17.1_desktop-libressl-20200704-061915

  -------------------------------------------------------------------

gcc-config -l:
 [1] x86_64-pc-linux-gnu-10.1.0 *
clang version 10.0.0 
Target: x86_64-pc-linux-gnu
Thread model: posix
InstalledDir: /usr/lib/llvm/10/bin
/usr/lib/llvm/10
10.0.0
Available Python interpreters, in order of preference:
  [1]   python3.7
  [2]   python3.9 (fallback)
  [3]   python3.8 (fallback)
  [4]   python2.7 (fallback)
Available Ruby profiles:
  [1]   ruby25 (with Rubygems) *
Available Rust versions:
  [1]   rust-bin-1.41.1
  [2]   rust-1.44.1 *
The following VMs are available for generation-2:
*)	IcedTea JDK 3.16.0 [icedtea-bin-8]
Available Java Virtual Machines:
  [1]   icedtea-bin-8  system-vm

The Glorious Glasgow Haskell Compilation System, version 8.0.2

  timestamp(s) of HEAD at this tinderbox image:
/var/db/repos/gentoo	Fri 10 Jul 2020 10:05:30 AM UTC
/var/db/repos/libressl	Wed 08 Jul 2020 06:35:15 AM UTC

emerge -qpvO dev-util/qdevicemonitor
[ebuild  N    ] dev-util/qdevicemonitor-1.0.1-r2
Comment 1 Toralf Förster gentoo-dev 2020-07-10 11:28:32 UTC
Created attachment 648776 [details]
emerge-info.txt
Comment 2 Toralf Förster gentoo-dev 2020-07-10 11:28:35 UTC
Created attachment 648778 [details]
dev-util:qdevicemonitor-1.0.1-r2:20200710-105446.log
Comment 3 Toralf Förster gentoo-dev 2020-07-10 11:28:39 UTC
Created attachment 648780 [details]
emerge-history.txt
Comment 4 Toralf Förster gentoo-dev 2020-07-10 11:28:42 UTC
Created attachment 648782 [details]
environment
Comment 5 Toralf Förster gentoo-dev 2020-07-10 11:28:48 UTC
Created attachment 648784 [details]
etc.portage.tbz2
Comment 6 Larry the Git Cow gentoo-dev 2020-07-11 16:21:50 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=20fec9d5384f9cb3108768fa481350ba9c463ad8

commit 20fec9d5384f9cb3108768fa481350ba9c463ad8
Author:     Alexander Lopatin <alopatindev@gmail.com>
AuthorDate: 2020-07-11 14:48:51 +0000
Commit:     Andreas Sturmlechner <asturm@gentoo.org>
CommitDate: 2020-07-11 16:21:32 +0000

    dev-util/qdevicemonitor: fix build with Qt 5.15
    
    Closes: https://bugs.gentoo.org/732088
    Package-Manager: Portage-2.3.99, Repoman-2.3.22
    Signed-off-by: Alexander Lopatin <alopatindev@gmail.com>
    Closes: https://github.com/gentoo/gentoo/pull/16664
    Signed-off-by: Andreas Sturmlechner <asturm@gentoo.org>

 .../qdevicemonitor-1.0.1-endl-is-deprecated.patch  | 27 ++++++++++++++++++++++
 .../qdevicemonitor/qdevicemonitor-1.0.1-r2.ebuild  |  1 +
 2 files changed, 28 insertions(+)