Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 852836 - sci-geosciences/gpsbabel-1.8.0: CMake Error at gui/CMakeLists.txt:27: Could NOT find Qt6SerialPort (missing: Qt6SerialPort_DIR)
Summary: sci-geosciences/gpsbabel-1.8.0: CMake Error at gui/CMakeLists.txt:27: Could N...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Sci-geo Project
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2022-06-17 20:11 UTC by Sam James
Modified: 2023-01-30 08:19 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
gpsbabel-1.8.0.ebuild (file_852836.txt,1.23 KB, text/plain)
2022-06-17 20:11 UTC, Sam James
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Sam James archtester Gentoo Infrastructure gentoo-dev Security 2022-06-17 20:11:12 UTC
I started working on an ebuild but couldn't get it to install and got bored.

Signed-off-by: Sam James <sam@gentoo.org>
Comment 1 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2022-06-17 20:11:30 UTC
Created attachment 786008 [details]
gpsbabel-1.8.0.ebuild
Comment 2 Andreas Sturmlechner gentoo-dev 2023-01-29 21:52:36 UTC
...apparently bumped in https://github.com/gentoo/gentoo/commit/2a3a85a81407a68676476346377bb9ba20e66e4c (based on https://github.com/gentoo/gentoo/pull/28324)

However:
> -- Could NOT find Qt6SerialPort (missing: Qt6SerialPort_DIR)
> CMake Error at gui/CMakeLists.txt:27 (find_package):
>   Found package configuration file:
> 
>     /usr/lib64/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 "SerialPort".
> 
>   Expected Config file at
>   "/usr/lib64/cmake/Qt6SerialPort/Qt6SerialPortConfig.cmake" does NOT exist

- I didn't select Qt6 nor does the ebuild specify any Qt6 deps.
- mycmakeargs (that should be local) needs pinning to Qt5 or the ebuild more work to support Qt6 in addition
Comment 3 Andreas Sturmlechner gentoo-dev 2023-01-29 22:10:16 UTC
Also, qtserialport is clearly required, be it Qt5 or Qt6, but is missing in the ebuild.
Comment 4 Larry the Git Cow gentoo-dev 2023-01-30 08:19:49 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=612ad41ff7c2e1766aa2e9e807f142fe256b1ce6

commit 612ad41ff7c2e1766aa2e9e807f142fe256b1ce6
Author:     Andrew Ammerlaan <andrewammerlaan@gentoo.org>
AuthorDate: 2023-01-30 08:12:52 +0000
Commit:     Andrew Ammerlaan <andrewammerlaan@gentoo.org>
CommitDate: 2023-01-30 08:19:39 +0000

    sci-geosciences/gpsbabel: drop use gui, add use qt6
    
    Though the build system provides separate targets for
    the gui and cli tools, the cmake configure files do not
    reflect this and they will search for qt unconditionally.
    Patching is non-trivial because the source files for the
    gui and for the cli are not completely separated.
    
    The package does support qt6 but the upstream cmake files
    do not provide a means of selecting which to use and will
    choose a version automagically. A simple patch is enough
    to fix this.
    
    Closes: https://bugs.gentoo.org/852836
    Closes: https://bugs.gentoo.org/892559
    Signed-off-by: Andrew Ammerlaan <andrewammerlaan@gentoo.org>

 .../gpsbabel-1.8.0-no-automagic-qt5-qt6.patch      | 34 +++++++++++++++
 ...babel-1.8.0.ebuild => gpsbabel-1.8.0-r1.ebuild} | 48 ++++++++++++++--------
 2 files changed, 64 insertions(+), 18 deletions(-)