Given following log snippets, their explanation, and nothing else, explain what failure, if any, occurred during build of this package.

  Snippets are in a format of [X] : [Y], where [X] is a log snippet, and [Y] is the explanation.

  Snippets are delimited with '================'.

  Drawing on information from all snippets, provide a concise explanation of the issue and recommend a solution.

  Explanation of the issue, and recommended solution, should take a handful of sentences.

  Snippets:

  [error: Bad exit status from /var/tmp/rpm-tmp.KjvJPM (%build)
RPM build errors:
    Bad exit status from /var/tmp/rpm-tmp.KjvJPM (%build)
Child return code was: 1]: [The build failed in `%build` phase.]
=============
[/builddir/build/BUILD/dtk6core-6.0.21-build/dtk6core-6.0.21/src/dconfig.cpp:91:1: warning: "/*" within comment [-Wcomment]
   91 | /*!
/builddir/build/BUILD/dtk6core-6.0.21-build/dtk6core-6.0.21/src/dconfig.cpp: In member function ‘virtual bool Dtk::Core::{anonymous}::FileBackend::load(const QString&)’:
/builddir/build/BUILD/dtk6core-6.0.21-build/dtk6core-6.0.21/src/dconfig.cpp:180:50: warning: ‘T* QScopedPointer<T, Cleanup>::take() [with T = Dtk::Core::DConfigFile; Cleanup = QScopedPointerDeleter<Dtk::Core::DConfigFile>]’ is deprecated: Use std::unique_ptr instead, and call release(). [-Wdeprecated-declarations]
  180 |                 genericConfigFile.reset(file.take());
      |                                         ~~~~~~~~~^~
In file included from /usr/include/qt6/QtCore/QScopedPointer:1,
                 from /builddir/build/BUILD/dtk6core-6.0.21-build/dtk6core-6.0.21/include/base/dobject.h:8,
                 from /builddir/build/BUILD/dtk6core-6.0.21-build/dtk6core-6.0.21/include/DtkCore/DObject:1,
                 from /builddir/build/BUILD/dtk6core-6.0.21-build/dtk6core-6.0.21/include/global/dconfig.h:9,
                 from /builddir/build/BUILD/dtk6core-6.0.21-build/dtk6core-6.0.21/src/dconfig.cpp:5:
/usr/include/qt6/QtCore/qscopedpointer.h:130:8: note: declared here
  130 |     T *take() noexcept
      |        ^~~~
/builddir/build/BUILD/dtk6core-6.0.21-build/dtk6core-6.0.21/src/dconfig.cpp:181:52: warning: ‘T* QScopedPointer<T, Cleanup>::take() [with T = Dtk::Core::DConfigCache; Cleanup = QScopedPointerDeleter<Dtk::Core::DConfigCache>]’ is deprecated: Use std::unique_ptr instead, and call release(). [-Wdeprecated-declarations]
  181 |                 genericConfigCache.reset(cache.take());
      |                                          ~~~~~~~~~~^~
/usr/include/qt6/QtCore/qscopedpointer.h:130:8: note: declared here
  130 |     T *take() noexcept
      |        ^~~~
/builddir/build/BUILD/dtk6core-6.0.21-build/dtk6core-6.0.21/src/dconfig.cpp: In static member function ‘static QVariant Dtk::Core::{anonymous}::DBusBackend::decodeQDBusArgument(const QVariant&)’:
/builddir/build/BUILD/dtk6core-6.0.21-build/dtk6core-6.0.21/src/dconfig.cpp:372:49: warning: ‘constexpr typename std::add_const<_Tp>::type& qAsConst(T&) [with T = QList<QVariant>; typename std::add_const<_Tp>::type = const QList<QVariant>]’ is deprecated: Use std::as_const() instead. [-Wdeprecated-declarations]
  372 |                 for (const auto &item : qAsConst(list)) {
      |                                         ~~~~~~~~^~~~~~
In file included from /usr/include/qt6/QtCore/qforeach.h:11,
                 from /usr/include/qt6/QtCore/qglobal.h:57,
                 from /builddir/build/BUILD/dtk6core-6.0.21-build/dtk6core-6.0.21/include/global/dtkcore_global.h:7,
                 from /builddir/build/BUILD/dtk6core-6.0.21-build/dtk6core-6.0.21/include/global/dconfig.h:8:
/usr/include/qt6/QtCore/qttypetraits.h:36:45: note: declared here
   36 | constexpr typename std::add_const<T>::type &qAsConst(T &t) noexcept { return t; }
      |                                             ^~~~~~~~
[60/80] /usr/bin/g++ -DDSYSINFO_PREFIX=\"\" -DLIBDTKCORE_LIBRARY -DPREFIX=\"/usr\" -DQT_CORE_LIB -DQT_DBUS_LIB -DQT_NO_DEBUG -DQT_XML_LIB -Ddtk6core_EXPORTS -I/builddir/build/BUILD/dtk6core-6.0.21-build/dtk6core-6.0.21/redhat-linux-build/src -I/builddir/build/BUILD/dtk6core-6.0.21-build/dtk6core-6.0.21/src -I/builddir/build/BUILD/dtk6core-6.0.21-build/dtk6core-6.0.21/redhat-linux-build/src/dtk6core_autogen/include -I/usr/include/uchardet -I/builddir/build/BUILD/dtk6core-6.0.21-build/dtk6core-6.0.21/include/util -I/builddir/build/BUILD/dtk6core-6.0.21-build/dtk6core-6.0.21/include/dci -I/builddir/build/BUILD/dtk6core-6.0.21-build/dtk6core-6.0.21/include/log -I/builddir/build/BUILD/dtk6core-6.0.21-build/dtk6core-6.0.21/include/base -I/builddir/build/BUILD/dtk6core-6.0.21-build/dtk6core-6.0.21/include/base/private -I/builddir/build/BUILD/dtk6core-6.0.21-build/dtk6core-6.0.21/include/global -I/builddir/build/BUILD/dtk6core-6.0.21-build/dtk6core-6.0.21/include/DtkCore -I/builddir/build/BUILD/dtk6core-6.0.21-build/dtk6core-6.0.21/include/settings -I/builddir/build/BUILD/dtk6core-6.0.21-build/dtk6core-6.0.21/include/filesystem -I/builddir/build/BUILD/dtk6core-6.0.21-build/dtk6core-6.0.21/include -isystem /usr/include/qt6/QtCore -isystem /usr/include/qt6 -isystem /usr/lib64/qt6/mkspecs/linux-g++ -isystem /usr/include/qt6/QtDBus -isystem /usr/include/qt6/QtXml -isystem /usr/include/dtk6/DLog -isystem /usr/include/qt6/QtCore/6.8.1 -isystem /usr/include/qt6/QtCore/6.8.1/QtCore -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1  -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -fPIC -Wall -Wextra -DNDEBUG -std=gnu++17 -fPIC -MD -MT src/CMakeFiles/dtk6core.dir/dsysinfo.cpp.o -MF src/CMakeFiles/dtk6core.dir/dsysinfo.cpp.o.d -o src/CMakeFiles/dtk6core.dir/dsysinfo.cpp.o -c /builddir/build/BUILD/dtk6core-6.0.21-build/dtk6core-6.0.21/src/dsysinfo.cpp
ninja: build stopped: subcommand failed.]: [Warning about the usage of deprecated calls.]


Answer: Issue: The build failed in `%build` phase because the code use deprecated calls. Compiler flags like `-Wcomments` and `-Wdeprecated-declarations` makes this fatal error.
Resolution: While you can suppress these flags temporarily, it's better to fix the issues they highlight.

You should contact upstream and replace the deprecated call with code that aligns with current practices.