Bug 491761

Summary: FTBFS with Qt 6.8 beta 3
Product: [Applications] Arianna Reporter: Antonio Rojas <arojas>
Component: generalAssignee: Carl Schwan <carl>
Status: RESOLVED FIXED    
Severity: normal    
Priority: NOR    
Version First Reported In: 24.07.90   
Target Milestone: ---   
Platform: Other   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description Antonio Rojas 2024-08-15 18:50:25 UTC
Due to API removals in QHttpServer
https://code.qt.io/cgit/qt/qthttpserver.git/commit/?h=6.8&id=f1a03fd0ad8f6e1c5364a770bfe6f2f34b766806
https://code.qt.io/cgit/qt/qthttpserver.git/commit/?h=6.8&id=f1a03fd0ad8f6e1c5364a770bfe6f2f34b766806

/build/arianna/src/arianna-24.07.90/src/bookserver.cpp: In lambda function:
/build/arianna/src/arianna-24.07.90/src/bookserver.cpp:19:14: error: ‘class QHttpServerResponse’ has no member named ‘setHeader’; did you mean ‘setHeaders’?
   19 |         resp.setHeader("Access-Control-Allow-Origin", "*");
      |              ^~~~~~~~~
      |              setHeaders
/build/arianna/src/arianna-24.07.90/src/bookserver.cpp: In constructor ‘BookServer::BookServer()’:
/build/arianna/src/arianna-24.07.90/src/bookserver.cpp:23:30: error: ‘class QHttpServer’ has no member named ‘listen’
   23 |     const auto port = server.listen(QHostAddress::Any, 45961);
      |                              ^~~~~~
Comment 1 Antonio Rojas 2024-08-15 19:18:23 UTC
Sorry, posted the same link twice. The second relevant commit is https://code.qt.io/cgit/qt/qthttpserver.git/commit/?h=6.8&id=6b04e16ae73e66c0f7388583ed5c6434b393f05d
Comment 2 Carl Schwan 2024-08-18 21:29:06 UTC
Git commit 39799aee4d720a0baeefd983b17d74e1791f08d5 by Carl Schwan.
Committed on 18/08/2024 at 21:30.
Pushed by carlschwan into branch 'release/24.08'.

Fix build with Qt 6.8

M  +18   -0    src/bookserver.cpp

https://invent.kde.org/graphics/arianna/-/commit/39799aee4d720a0baeefd983b17d74e1791f08d5