From mboxrd@z Thu Jan 1 00:00:00 1970 From: HiPhish Subject: Re: Removing configure flags? Date: Tue, 11 Sep 2018 12:59:49 +0200 Message-ID: <1614975.CsQVqhEBAj@aleksandar-ixtreme-m5740> References: <3777480.LYsRssmo1O@aleksandar-ixtreme-m5740> <20180910115729.71291465@scratchpost.org> <87musoucfz.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([208.118.235.92]:36303) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fzgU8-0002kY-Ie for guix-devel@gnu.org; Tue, 11 Sep 2018 07:05:38 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fzgOh-0003oz-TJ for guix-devel@gnu.org; Tue, 11 Sep 2018 07:00:30 -0400 Received: from mout01.posteo.de ([185.67.36.65]:47892) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1fzgOh-0003kp-F8 for guix-devel@gnu.org; Tue, 11 Sep 2018 06:59:55 -0400 Received: from submission (posteo.de [89.146.220.130]) by mout01.posteo.de (Postfix) with ESMTPS id D891C210FA for ; Tue, 11 Sep 2018 12:59:52 +0200 (CEST) In-Reply-To: <87musoucfz.fsf@gmail.com> 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.org@gnu.org Sender: "Guix-devel" To: Alex Vong Cc: guix-devel@gnu.org Thanks to both of you I can now at least get the configure script to run, b= ut=20 it stops because it cannot find `cat`: starting phase `configure' building for Linux on localhost at Tue Sep 11 10:46:19 UTC 2018 looking for /bin/sh./configure: line 89: expr: command not found (nope) looking for bash./configure: line 89: expr: command not found =2E/configure: line 89: expr: command not found =2E/configure: line 89: expr: command not found (nope) looking for dash./configure: line 89: expr: command not found =2E/configure: line 89: expr: command not found =2E/configure: line 89: expr: command not found (nope) looking for xdg-open./configure: line 89: expr: command not found (nope) looking for firefox./configure: line 89: expr: command not found (nope) looking for git./configure: line 89: expr: command not found (nope) looking for ronn./configure: line 89: expr: command not found =2E/configure: line 89: expr: command not found (nope) looking for shocco./configure: line 89: expr: command not found (nope) warn: ronn is not installed. cannot rebuild manpages. no biggie. warn: shocco is not installed. cannot rebuild manpages. no biggie. okay, looks like you have everything we need. generating config files. writing config.mk... =2E/configure: line 210: cat: command not found Backtrace: 4 (primitive-load "/gnu/store/1ilwn4mr3nb7pi6n0w4a6nkavdf=E2=80= =A6") In ice-9/eval.scm: 191:35 3 (_ #f) In srfi/srfi-1.scm: 640:9 2 (for-each # =E2=80=A6) In /gnu/store/f95ghy8mx00fc22nrvswvnpqlfdkf2nk-module-import/guix/build/gnu- build-system.scm: 799:31 1 (_ _) In /gnu/store/f95ghy8mx00fc22nrvswvnpqlfdkf2nk-module-import/guix/build/ utils.scm: 616:6 0 (invoke _ . _) Here is my package definition (irrelevant parts omitted): (package (name "roundup") (build-system gnu-build-system) (arguments `(#:phases (modify-phases %standard-phases (replace 'configure (lambda* (#:key inputs outputs (configure-flags '()) #:allow-othe= r- keys) (let ((out (assoc-ref outputs "out"))) (apply invoke `("./configure" ,(string-append "--prefix=3D" out) ,(string-append "--sysconfdir=3D/etc") ,@configure-flags))))))))) =46rom my understanding, `cat` is part of coreutils, which is already an=20 implicit input of the GNU build system. So the configure script should have= =20 it, shouldn't it? On a related tangent: it looks like a phase is just a function which takes= =20 arbitrary keyword-arguments, right? Is this documented somewhere or is it=20 "read the source code"? And what exactly are `outputs` and `inputs`? It loo= ks=20 like they are association lists where the keys are names and the values are= =20 directories.