[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
cmake-build-system: modify-phases picks up wrong %standard-phases
From: |
Hartmut Goebel |
Subject: |
cmake-build-system: modify-phases picks up wrong %standard-phases |
Date: |
Sat, 18 Jan 2020 13:02:55 +0100 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.4.1 |
Hi,
I experience a strange problem: The package below (stripped down to show
the issue) uses the `qt-build-system`.
When running as shown, the build fails, since the `configure` phase is
taken from gnu-build-system.
It works fine, when modifying `(@ (guix build cmake-build-system)
%standard-phases)` instad of just %standard-phases` but - as prepared in
the line above.
It also works fine when not setting `#:modules`. (Setting `#:modules` is
required since in the real package definition some phase uses
`get-string-all` from (ice-9 textual-ports), which needs to be added to
`#:modules`).
What might cause this issue?
Actual behavior: Running `guix build -f ...` on the package definition
below fails with error message ".../configure: No such file or directory
… command "…/configure" failed with status 127" - which means the phase
`configure is taken from gnu-build-system.
Expected behavior: Running `guix build -f ...` on the package definition
below fails with error message "Configuring incomplete, errors occurred
… command "cmake" … failed with status 1" - which means the phase
`configure is taken from cmake-build-system.
(use-modules (guix packages)
(guix build-system cmake)
(guix download))
;; This package definition is stripped down to show the bug
(package
(name "akonadi")
(version "19.08.3")
(source
(origin
(method url-fetch)
(uri (string-append "mirror://kde/stable/applications/" version
"/src/akonadi-" version ".tar.xz"))
(sha256
(base32 "0v7f1049wjnqxhwxr1443wc2cfbdqmf15xcwjz3j1m0vgdva9pyg"))))
(build-system cmake-build-system)
(arguments
`(;;#:modules (,@%cmake-build-system-modules)
#:phases
;;(modify-phases (@ (guix build cmake-build-system) %standard-phases)
(modify-phases %standard-phases
(add-after 'configure 'dummy
(lambda _
#t)))))
(home-page "")
(synopsis "")
(description "")
(license #f))
--
Regards
Hartmut Goebel
| Hartmut Goebel | address@hidden |
| www.crazy-compilers.com | compilers which you thought are impossible |
- cmake-build-system: modify-phases picks up wrong %standard-phases,
Hartmut Goebel <=