Bug 428295 - KWaylandServerTargets.cmake contains non-existing path - kwin fails to build
Summary: KWaylandServerTargets.cmake contains non-existing path - kwin fails to build
Status: REPORTED
Alias: None
Product: kwayland
Classification: Frameworks and Libraries
Component: server (other bugs)
Version First Reported In: unspecified
Platform: Other Linux
: NOR normal
Target Milestone: ---
Assignee: Martin Flöser
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-10-26 19:31 UTC by h.goebel
Modified: 2020-10-26 19:31 UTC (History)
1 user (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description h.goebel 2020-10-26 19:31:30 UTC
kwayland-server-5.19.5 (sorry if this is not the correct product, didn't find another one)

Building packages depending on kwayland-server (e.g. kwin) fails on a system where each package resides in its own $PREFIX:

  CMake Error in CMakeLists.txt:
    Imported target "Plasma::KWaylandServer" includes non-existent path

      "/gnu/store/…-kwayland-server-5.19.5/include/KF5"

    in its INTERFACE_INCLUDE_DIRECTORIES.  Possible reasons include:
    …


"/gnu/store/…-kwayland-server-5.19.5" is the of PREFIX of kwayland-server, and indeed there is no "include/KF5" directory in this prefix. The can easily be verfied by inspecting the filelist of the respoective Debian package:
https://packages.debian.org/bullseye/amd64/libkwaylandserver-dev/filelist
https://packages.debian.org/bullseye/amd64/libkwaylandserver5/filelist

This error only shows up if packages reside in PREFIXes of their own. Otherwise the directory will be provided by another package, sharing the same prefix.