unofficial mirror of help-guix@gnu.org 
 help / color / mirror / Atom feed
* Issues updating the definition of qtserialport
@ 2022-10-11  2:08 Cairn
  2022-10-12  4:05 ` Cairn
  0 siblings, 1 reply; 2+ messages in thread
From: Cairn @ 2022-10-11  2:08 UTC (permalink / raw)
  To: help guix


[-- Attachment #1.1: Type: text/plain, Size: 1289 bytes --]

Hey! I'm trying to update `qtserialport` to 6.3.1 for use with another package (and so it's up-to-date with other Qt modules). I'll make sure to rename the current package to "qtserialport-5" as well.

I'm having trouble getting it to recognize udev, which it requires. The current package definition has a patching phase which makes the path to udev absolute. I can't find any issues with this phase, and yet building with 6.3.1 throws an error:

    CMake Error at /gnu/store/...-qtbase-6.3.1/lib/cmake/Qt6Core/Qt6CoreMacros.cmake:2440 (add_library):
      Target "SerialPort" links to target "PkgConfig::Libudev" but the target was
      not found.  Perhaps a find_package() call is missing for an IMPORTED
      target, or an ALIAS target is missing?
    Call Stack (most recent call first):
      /gnu/store/...-qtbase-6.3.1/lib/cmake/Qt6/QtModuleHelpers.cmake:128 (_qt_internal_add_library)
      src/serialport/CMakeLists.txt:6 (qt_internal_add_module)

I'm pretty sure this is easy to reproduce. All I did was replace the version number, update dependencies and (after some testing) replaced the modify phases line with "#~(modify-phases #$phases". I'd love to know if there's anything I've obviously missed. If this is an easy fix, feel free to send a patch before me.

[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 855 bytes --]

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: Issues updating the definition of qtserialport
  2022-10-11  2:08 Issues updating the definition of qtserialport Cairn
@ 2022-10-12  4:05 ` Cairn
  0 siblings, 0 replies; 2+ messages in thread
From: Cairn @ 2022-10-12  4:05 UTC (permalink / raw)
  To: help guix


[-- Attachment #1.1: Type: text/plain, Size: 101 bytes --]

Looks like I just needed to add `pkg-config` as an input. Oh well, at least it was a simple solution.

[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 855 bytes --]

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2022-10-12  4:06 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-10-11  2:08 Issues updating the definition of qtserialport Cairn
2022-10-12  4:05 ` Cairn

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).