Bug#1117350: ktextaddons: FTBFS: /<<PKGBUILDDIR>>/texttranslator/translator/plugins/google/googleengineplugin.cpp:73:66: error: invalid use of incomplete type 'class QRegularExpression'
Package: src:ktextaddons
Version: 1.5.4-4
Severity: serious
Tags: ftbfs forky sid
Dear maintainer:
During a rebuild of all packages in unstable, this package failed to build.
Below you will find the last part of the build log (probably the most
relevant part, but not necessarily). If required, the full build log
is available here:
https://people.debian.org/~sanvila/build-logs/202510/
About the archive rebuild: The build was made on virtual machines from AWS,
using sbuild and a reduced chroot with only build-essential packages.
If you cannot reproduce the bug please contact me privately, as I
am willing to provide ssh access to a virtual machine where the bug is
fully reproducible.
If this is really a bug in one of the build-depends, please use
reassign and add an affects on src:ktextaddons, so that this is still
visible in the BTS web page for this package.
Thanks.
--------------------------------------------------------------------------------
[...]
[ 76%] Building CXX object texttranslator/translator/plugins/google/CMakeFiles/translator_google.dir/googleengineplugin.cpp.o
cd /<<PKGBUILDDIR>>/obj-x86_64-linux-gnu/texttranslator/tran [too-long-redacted] s/google/googleengineplugin.cpp
[ 77%] Building CXX object texttranslator/translator/plugins/deepl/CMakeFiles/translator_deepl.dir/deeplengineutil.cpp.o
cd /<<PKGBUILDDIR>>/obj-x86_64-linux-gnu/texttranslator/tran [too-long-redacted] ugins/deepl/deeplengineutil.cpp
/<<PKGBUILDDIR>>/texttranslator/translator/plugins/google/googleengineplugin.cpp: In member function â??void GoogleEnginePlugin::slotTranslateFinished(QNetworkReply*)â??:
/<<PKGBUILDDIR>>/texttranslator/translator/plugins/google/googleengineplugin.cpp:73:66: error: invalid use of incomplete type â??class QRegularExpressionâ??
73 | mJsonData.replace(QRegularExpression(QStringLiteral(",{3,3}")), QStringLiteral(",\"\",\"\","));
| ^
In file included from /usr/include/x86_64-linux-gnu/qt6/QtCore/qbytearrayview.h:9,
from /usr/include/x86_64-linux-gnu/qt6/QtCore/qbytearray.h:16,
from /usr/include/x86_64-linux-gnu/qt6/QtCore/qstringview.h:10,
from /usr/include/x86_64-linux-gnu/qt6/QtCore/qchar.h:728,
from /usr/include/x86_64-linux-gnu/qt6/QtCore/qstring.h:15,
from /usr/include/x86_64-linux-gnu/qt6/QtCore/qobject.h:11,
from /usr/include/x86_64-linux-gnu/qt6/QtCore/qiodevice.h:10,
from /usr/include/x86_64-linux-gnu/qt6/QtCore/QIODevice:1,
from /usr/include/x86_64-linux-gnu/qt6/QtNetwork/qnetworkreply.h:9,
from /usr/include/x86_64-linux-gnu/qt6/QtNetwork/QNetworkReply:1,
from /<<PKGBUILDDIR>>/obj-x86_64-linux-gnu/texttranslator/texttranslator/../../../texttranslator/translator/translatorengineplugin.h:10,
from /<<PKGBUILDDIR>>/obj-x86_64-linux-gnu/texttranslator/texttranslator/translatorengineplugin.h:1,
from /<<PKGBUILDDIR>>/obj-x86_64-linux-gnu/texttranslator/TextTranslator/TranslatorEnginePlugin:1,
from /<<PKGBUILDDIR>>/texttranslator/translator/plugins/google/googleengineplugin.h:9,
from /<<PKGBUILDDIR>>/texttranslator/translator/plugins/google/googleengineplugin.cpp:7:
/usr/include/x86_64-linux-gnu/qt6/QtCore/qstringfwd.h:44:7: note: forward declaration of â??class QRegularExpressionâ??
44 | class QRegularExpression;
| ^~~~~~~~~~~~~~~~~~
/<<PKGBUILDDIR>>/texttranslator/translator/plugins/google/googleengineplugin.cpp:74:66: error: invalid use of incomplete type â??class QRegularExpressionâ??
74 | mJsonData.replace(QRegularExpression(QStringLiteral(",{2,2}")), QStringLiteral(",\"\","));
| ^
/usr/include/x86_64-linux-gnu/qt6/QtCore/qstringfwd.h:44:7: note: forward declaration of â??class QRegularExpressionâ??
44 | class QRegularExpression;
| ^~~~~~~~~~~~~~~~~~
make[3]: *** [texttranslator/translator/plugins/google/CMakeFiles/translator_google.dir/build.make:130: texttranslator/translator/plugins/google/CMakeFiles/translator_google.dir/googleengineplugin.cpp.o] Error 1
make[3]: Leaving directory '/<<PKGBUILDDIR>>/obj-x86_64-linux-gnu'
make[2]: *** [CMakeFiles/Makefile2:1803: texttranslator/translator/plugins/google/CMakeFiles/translator_google.dir/all] Error 2
make[2]: *** Waiting for unfinished jobs....
[ 77%] Linking CXX shared module ../../../../bin/translator_deepl.so
cd /<<PKGBUILDDIR>>/obj-x86_64-linux-gnu/texttranslator/translator/plugins/deepl && /usr/bin/cmake -E cmake_link_script CMakeFiles/translator_deepl.dir/link.txt --verbose=1
/usr/bin/c++ -fPIC -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>> [too-long-redacted] 4-linux-gnu/libQt6Core.so.6.9.2
make[3]: Leaving directory '/<<PKGBUILDDIR>>/obj-x86_64-linux-gnu'
[ 78%] Built target translator_deepl
make[2]: Leaving directory '/<<PKGBUILDDIR>>/obj-x86_64-linux-gnu'
make[1]: *** [Makefile:139: all] Error 2
make[1]: Leaving directory '/<<PKGBUILDDIR>>/obj-x86_64-linux-gnu'
dh_auto_build: error: cd obj-x86_64-linux-gnu && make -j2 INSTALL="install --strip-program=true" VERBOSE=1 returned exit code 2
make: *** [debian/rules:6: binary] Error 25
dpkg-buildpackage: error: debian/rules binary subprocess returned exit status 2
--------------------------------------------------------------------------------
Reply to: