From mboxrd@z Thu Jan 1 00:00:00 1970 From: HiPhish Subject: Re: Removing configure flags? Date: Wed, 12 Sep 2018 19:54:26 +0200 Message-ID: <1898629.R8dP4hcJhv@aleksandar-ixtreme-m5740> References: <3777480.LYsRssmo1O@aleksandar-ixtreme-m5740> <1614975.CsQVqhEBAj@aleksandar-ixtreme-m5740> <87d0ti7i0i.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:47460) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1g09LV-00044A-41 for guix-devel@gnu.org; Wed, 12 Sep 2018 13:54:33 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1g09LS-0000AL-DB for guix-devel@gnu.org; Wed, 12 Sep 2018 13:54:33 -0400 Received: from mout01.posteo.de ([185.67.36.65]:39767) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1g09LS-0000A6-3u for guix-devel@gnu.org; Wed, 12 Sep 2018 13:54:30 -0400 Received: from submission (posteo.de [89.146.220.130]) by mout01.posteo.de (Postfix) with ESMTPS id B592321077 for ; Wed, 12 Sep 2018 19:54:27 +0200 (CEST) Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 429Ttq0znrz6tmJ for ; Wed, 12 Sep 2018 19:54:27 +0200 (CEST) In-Reply-To: <87d0ti7i0i.fsf@gnu.org> 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: guix-devel@gnu.org I figured it out thanks to the people on IRC: (arguments `(;; Roundup has no check target (It does have a `test` target, but s= ome ;; of its tests fail intentionally, bringing the entire build proce= ss ;; down) #:tests? #f ;; Explicitly set the shell because otherwise this value will be em= pty #:make-flags '("SHELL=3Dbash") #:phases (modify-phases %standard-phases (add-before 'configure 'fix-configure ;; getconf will return a static path, which will not contain the ;; value adjusted by Guix (=CE=BB _ (substitute* "configure" (("getconf PATH") "echo $PAT= H")))) (replace 'configure ;; Roundup is using a hand-written configure script which will= =20 choke ;; on the default configure flags. Therefore we invoke it with = our ;; own flags. (lambda* (#:key outputs (configure-flags '()) #:allow-other-key= s) (let ((out (assoc-ref outputs "out"))) (apply invoke `("./configure" ,(string-append "--prefix=3D" out) "--sysconfdir=3D/etc" ,@configure-flags)))))))) Ludovic Court=C3=A8s wrote: > Indeed. Could it be that =E2=80=98configure=E2=80=99 overrides PATH, set= ting it to, > say, /bin:/usr/bin? (You mentioned =E2=80=98getconf PATH=E2=80=99 yester= day on IRC, > perhaps that=E2=80=99s related?) >=20 > HTH, > Ludo=E2=80=99.