Bug 470808

Summary: Failed to find required Qt component "TextToSpeech".
Product: [Developer tools] Qt/KDE Flatpak Runtime Reporter: Tim Gromeyer <tim.gromeyer>
Component: generalAssignee: Aleix Pol <aleixpol>
Status: RESOLVED FIXED    
Severity: wishlist CC: aacid
Priority: NOR    
Version First Reported In: unspecified   
Target Milestone: ---   
Platform: Flatpak   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:

Description Tim Gromeyer 2023-06-08 20:58:49 UTC
The title should say it all. My app fails to build because of the missing "TextToSpeech" module. Here my YAML file (not the final file but a first attempt):

```yml
app-id: com.github.tim_gromeyer.VoiceAssistant
runtime: org.kde.Platform
runtime-version: '6.5'
sdk: org.kde.Sdk
command: voiceassistant
finish-args:
  - --share=ipc
  - --socket=fallback-x11
  - --socket=wayland
  - --filesystem=host
  - --device=dri
modules:
  - name: voiceassistaant
    buildsystem: cmake-ninja
    config-opts:
      - -DCMAKE_BUILD_TYPE=Release -DBUILD_TESTING=OFF
    sources:
      - type: git
        url: https://github.com/tim-gromeyer/VoiceAssistant.git
        branch: main
```

STEPS TO REPRODUCE
1.  Use this file
2.  Run flatpak
3.  See error

OBSERVED RESULT:
```
CMake Error at CMakeLists.txt:35 (find_package):
  Found package configuration file:

    /usr/lib/x86_64-linux-gnu/cmake/Qt6/Qt6Config.cmake

  but it set Qt6_FOUND to FALSE so package "Qt6" is considered to be NOT
  FOUND.  Reason given by package:

  Failed to find required Qt component "TextToSpeech".

  Expected Config file at
  "/usr/lib/x86_64-linux-gnu/cmake/Qt6TextToSpeech/Qt6TextToSpeechConfig.cmake"
  does NOT exist
```

EXPECTED RESULT: Successful build


SOFTWARE/OS VERSIONS
Os: OpenSUSE Tumbleweed
Qt: 6.5.1
flatpak version: 1.2.3
Comment 1 Bug Janitor Service 2023-06-09 20:18:53 UTC
A possibly relevant merge request was started @ https://invent.kde.org/packaging/flatpak-kde-runtime/-/merge_requests/125
Comment 2 Aleix Pol 2023-06-11 14:58:32 UTC
Git commit b5aa032fb93f8c13e422c78badef36ff81d33301 by Aleix Pol.
Committed on 09/06/2023 at 20:17.
Pushed by apol into branch 'qt6.5'.

Add QtSpeech

M  +6    -0    org.kde.Sdk.json.in

https://invent.kde.org/packaging/flatpak-kde-runtime/-/commit/b5aa032fb93f8c13e422c78badef36ff81d33301