gnu: kdeconnect: Fix build.

* gnu/packages/kde.scm (kdeconnect)[arguments]: Replace custom
'extend-CPLUS_INCLUDE_PATH with 'adjust-include-header to fix finding
all header files.
This commit is contained in:
Efraim Flashner 2021-08-10 09:37:28 +03:00
parent e7971cb430
commit 6ae59e7d79
No known key found for this signature in database
GPG key ID: 41AAE7DCCA3D8351

View file

@ -715,15 +715,13 @@ (define-public kdeconnect
(arguments (arguments
`(#:configure-flags '("-DBUILD_TESTING=ON" `(#:configure-flags '("-DBUILD_TESTING=ON"
"-DKDE_INSTALL_LIBEXECDIR=libexec") "-DKDE_INSTALL_LIBEXECDIR=libexec")
#:phases (modify-phases %standard-phases #:phases
(add-after 'set-paths 'extend-CPLUS_INCLUDE_PATH (modify-phases %standard-phases
(lambda* (#:key inputs #:allow-other-keys) (add-after 'unpack 'adjust-include-header
;; FIXME: <kcmutils_version.h> is not found during one (lambda _
;; of the compilation steps without this hack. (substitute* "plugins/runcommand/runcommandplugin.cpp"
(setenv "CPLUS_INCLUDE_PATH" (("<kcmutils_version.h>")
(string-append "<KF5/kcmutils_version.h>")))))
(search-input-directory inputs "include/KF5")
":" (or (getenv "CPLUS_INCLUDE_PATH") ""))))))
#:tests? #f)) ; tests fail hard in our build environment #:tests? #f)) ; tests fail hard in our build environment
(native-inputs (native-inputs
`(("extra-cmake-modules" ,extra-cmake-modules) `(("extra-cmake-modules" ,extra-cmake-modules)