Bug 2373010

Summary: kvirc: FTBFS in Fedora Rawhide: /builddir/build/BUILD/kvirc-5.2.6-build/KVIrc-5.2.6/src/kvirc/ui/KviTextIconWindow.cpp:185:65: error: no matching function for call to ‘QChar::QChar(KviControlCodes::Control)’ and more
Product: [Fedora] Fedora Reporter: Karolina Surma <ksurma>
Component: kvircAssignee: nucleo <alekcejk>
Status: CLOSED RAWHIDE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: unspecified    
Version: rawhideCC: alekcejk
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Linux   
URL: https://koschei.fedoraproject.org/package/kvirc
Whiteboard:
Fixed In Version: kvirc-5.2.6-4.fc43 Doc Type: ---
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2025-06-17 07:51:36 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 2322407, 2339432    

Description Karolina Surma 2025-06-16 12:57:18 UTC
Description of problem:
Package kvirc fails to build from source in Fedora Rawhide.

Version-Release number of selected component (if applicable):
5.2.6-2.fc42

Steps to Reproduce:
koji build --scratch f43 kvirc-5.2.6-2.fc42.src.rpm

Additional info:
This package is tracked by Koschei. See:
https://koschei.fedoraproject.org/package/kvirc

Reproducible: Always

Actual Results:
/builddir/build/BUILD/kvirc-5.2.6-build/KVIrc-5.2.6/src/kvirc/ui/KviTextIconWindow.cpp:185:65: error: no matching function for call to ‘QChar::QChar(KviControlCodes::Control)’
  185 |         int idx = szText.lastIndexOf(QChar(KviControlCodes::Icon));
      |                                                                 ^
/builddir/build/BUILD/kvirc-5.2.6-build/KVIrc-5.2.6/src/kvirc/ui/KviTextIconWindow.cpp:185:65: note: there are 8 candidates
In file included from /usr/include/qt6/QtCore/qstring.h:15,
                 from /usr/include/qt6/QtCore/qhashfunctions.h:9,
                 from /usr/include/qt6/QtCore/qhash.h:10,
                 from /usr/include/qt6/QtCore/QMultiHash:1,
                 from /builddir/build/BUILD/kvirc-5.2.6-build/KVIrc-5.2.6/src/kvirc/../kvilib/ext/KviAnimatedPixmapCache.h:30,
                 from /builddir/build/BUILD/kvirc-5.2.6-build/KVIrc-5.2.6/src/kvirc/../kvilib/ext/KviAnimatedPixmap.h:28,
                 from /builddir/build/BUILD/kvirc-5.2.6-build/KVIrc-5.2.6/src/kvirc/../kvilib/irc/KviAvatar.h:34,
                 from /builddir/build/BUILD/kvirc-5.2.6-build/KVIrc-5.2.6/src/kvirc/kernel/KviIconManager.h:35:
/usr/include/qt6/QtCore/qchar.h:149:43: note: candidate 1: ‘template<class Char, typename std::enable_if<std::is_same<Char, unsigned char>::value, bool>::type <anonymous> > constexpr QChar::QChar(Char)’
  149 |     QT_ASCII_CAST_WARN constexpr explicit QChar(const Char c) noexcept : ucs(c) { }
      |                                           ^~~~~
/usr/include/qt6/QtCore/qchar.h:149:43: note: template argument deduction/substitution failed:
/usr/include/qt6/QtCore/qchar.h:148:66: error: no type named ‘type’ in ‘struct std::enable_if<false, bool>’
  148 |     template <typename Char, if_explicit_ascii_warn_char<Char> = true>
      |                                                                  ^~~~
/usr/include/qt6/QtCore/qchar.h:143:45: note: candidate 2: ‘template<class Char, typename std::enable_if<std::is_same<Char, char>::value, bool>::type <anonymous> > constexpr QChar::QChar(Char)’
  143 |     QT_ASCII_CAST_WARN constexpr Q_IMPLICIT QChar(const Char ch) noexcept : ucs(uchar(ch)) {}
      |                                             ^~~~~
/usr/include/qt6/QtCore/qchar.h:143:45: note: template argument deduction/substitution failed:
/usr/include/qt6/QtCore/qchar.h:142:66: error: no type named ‘type’ in ‘struct std::enable_if<false, bool>’
  142 |     template <typename Char, if_implicit_ascii_warn_char<Char> = true>
      |                                                                  ^~~~
/usr/include/qt6/QtCore/qchar.h:134:24: note: candidate 3: ‘template<class Char, typename std::enable_if<std::disjunction<std::is_same<Char, char32_t>, std::conjunction<std::is_same<Char, wchar_t>, std::integral_constant<bool, true> >, std::is_same<Char, int>, std::is_same<Char, unsigned int> >::value, bool>::type <anonymous> > constexpr QChar::QChar(Char)’
  134 |     constexpr explicit QChar(const Char ch) noexcept
      |                        ^~~~~
/usr/include/qt6/QtCore/qchar.h:134:24: note: template argument deduction/substitution failed:
/usr/include/qt6/QtCore/qchar.h:133:66: error: no type named ‘type’ in ‘struct std::enable_if<false, bool>’
  133 |     template <typename Char, if_explicit_conversion_char<Char> = true>
      |                                                                  ^~~~
/usr/include/qt6/QtCore/qchar.h:132:26: note: candidate 4: ‘template<class Char, typename std::enable_if<std::disjunction<std::is_same<Char, short unsigned int>, std::is_same<Char, short int>, std::is_same<Char, QChar::SpecialCharacter>, std::is_same<Char, QLatin1Char>, std::conjunction<std::is_same<Char, wchar_t>, std::negation<std::integral_constant<bool, true> > >, std::is_same<Char, char16_t> >::value, bool>::type <anonymous> > constexpr QChar::QChar(Char)’
  132 |     constexpr Q_IMPLICIT QChar(const Char ch) noexcept : ucs(char16_t(ch)) {}
      |                          ^~~~~
/usr/include/qt6/QtCore/qchar.h:132:26: note: template argument deduction/substitution failed:
/usr/include/qt6/QtCore/qchar.h:131:66: error: no type named ‘type’ in ‘struct std::enable_if<false, bool>’
  131 |     template <typename Char, if_implicit_conversion_char<Char> = true>
      |                                                                  ^~~~