Bug 491761 - FTBFS with Qt 6.8 beta 3
Summary: FTBFS with Qt 6.8 beta 3
Status: RESOLVED FIXED
Alias: None
Product: Arianna
Classification: Applications
Component: general (other bugs)
Version First Reported In: 24.07.90
Platform: Other Linux
: NOR normal
Target Milestone: ---
Assignee: Carl Schwan
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-08-15 18:50 UTC by Antonio Rojas
Modified: 2024-08-18 21:29 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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