From mboxrd@z Thu Jan 1 00:00:00 1970 From: Hartmut Goebel Subject: cmake-build-system: modify-phases picks up wrong %standard-phases Date: Sat, 18 Jan 2020 13:02:55 +0100 Message-ID: <284cb228-6878-b078-957d-e6bd7d62d66b@crazy-compilers.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([2001:470:142:3::10]:34038) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ismol-0005w2-D3 for guix-devel@gnu.org; Sat, 18 Jan 2020 07:03:08 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ismok-0004ft-3E for guix-devel@gnu.org; Sat, 18 Jan 2020 07:03:07 -0500 Received: from mail-out.m-online.net ([212.18.0.9]:43799) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1ismoj-0004cm-QF for guix-devel@gnu.org; Sat, 18 Jan 2020 07:03:06 -0500 Received: from frontend01.mail.m-online.net (unknown [192.168.8.182]) by mail-out.m-online.net (Postfix) with ESMTP id 480Glp3FtJz1qqkh for ; Sat, 18 Jan 2020 13:03:02 +0100 (CET) Received: from localhost (dynscan1.mnet-online.de [192.168.6.70]) by mail.m-online.net (Postfix) with ESMTP id 480Glp379pz1qtfY for ; Sat, 18 Jan 2020 13:03:02 +0100 (CET) Received: from mail.mnet-online.de ([192.168.8.182]) by localhost (dynscan1.mail.m-online.net [192.168.6.70]) (amavisd-new, port 10024) with ESMTP id 8r7kQGojAzXo for ; Sat, 18 Jan 2020 13:02:58 +0100 (CET) Received: from hermia.goebel-consult.de (ppp-188-174-51-12.dynamic.mnet-online.de [188.174.51.12]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.mnet-online.de (Postfix) with ESMTPS for ; Sat, 18 Jan 2020 13:02:58 +0100 (CET) Received: from thisbe.goebel-consult.de (hermia.goebel-consult.de [192.168.110.7]) by hermia.goebel-consult.de (Postfix) with ESMTP id BCCCD602C5 for ; Sat, 18 Jan 2020 13:02:58 +0100 (CET) Content-Language: en-US List-Id: "Development of GNU Guix and the GNU System distribution." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-devel-bounces+gcggd-guix-devel=m.gmane-mx.org@gnu.org Sender: "Guix-devel" To: Guix-devel 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 =E2=80=A6 command "=E2=80=A6/configure" failed with status 127" - which m= eans 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 =E2=80=A6 command "cmake" =E2=80=A6 failed with status 1" - which means t= he phase `configure is taken from cmake-build-system. (use-modules (guix packages) =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 (guix build-system cmake= ) =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 (guix download)) ;; This package definition is stripped down to show the bug (package =C2=A0 (name "akonadi") =C2=A0 (version "19.08.3") =C2=A0 (source =C2=A0=C2=A0 (origin =C2=A0=C2=A0=C2=A0=C2=A0 (method url-fetch) =C2=A0=C2=A0=C2=A0=C2=A0 (uri (string-append "mirror://kde/stable/applica= tions/" version =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 = "/src/akonadi-" version ".tar.xz")) =C2=A0=C2=A0=C2=A0=C2=A0 (sha256 =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 (base32 "0v7f1049wjnqxhwxr1443wc2cfbdqmf15= xcwjz3j1m0vgdva9pyg")))) =C2=A0 (build-system cmake-build-system) =C2=A0 (arguments =C2=A0=C2=A0 `(;;#:modules (,@%cmake-build-system-modules) =C2=A0=C2=A0=C2=A0=C2=A0 #:phases =C2=A0=C2=A0=C2=A0=C2=A0 ;;(modify-phases (@ (guix build cmake-build-syst= em) %standard-phases) =C2=A0=C2=A0=C2=A0=C2=A0 (modify-phases %standard-phases =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 (add-after 'configure 'dummy =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 (lambda _ =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 #t))))) =C2=A0 (home-page "") =C2=A0 (synopsis "") =C2=A0 (description "") =C2=A0 (license #f)) --=20 Regards Hartmut Goebel | Hartmut Goebel | h.goebel@crazy-compilers.com | | www.crazy-compilers.com | compilers which you thought are impossible |