unofficial mirror of guix-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: HiPhish <hiphish@posteo.de>
To: Alex Vong <alexvong1995@gmail.com>
Cc: guix-devel@gnu.org
Subject: Re: Removing configure flags?
Date: Tue, 11 Sep 2018 12:59:49 +0200	[thread overview]
Message-ID: <1614975.CsQVqhEBAj@aleksandar-ixtreme-m5740> (raw)
In-Reply-To: <87musoucfz.fsf@gmail.com>

Thanks to both of you I can now at least get the configure script to run, but 
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
./configure: line 89: expr: command not found
./configure: line 89: expr: command not found
 (nope)
looking for dash./configure: line 89: expr: command not found
./configure: line 89: expr: command not found
./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
./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...
./configure: line 210: cat: command not found
Backtrace:
           4 (primitive-load "/gnu/store/1ilwn4mr3nb7pi6n0w4a6nkavdf…")
In ice-9/eval.scm:
   191:35  3 (_ #f)
In srfi/srfi-1.scm:
    640:9  2 (for-each #<procedure 958500 at /gnu/store/f95ghy8mx00…> …)
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-other-
keys)
            (let ((out (assoc-ref outputs "out")))
              (apply invoke
                `("./configure"
                  ,(string-append "--prefix=" out)
                  ,(string-append "--sysconfdir=/etc")
                  ,@configure-flags)))))))))

From my understanding, `cat` is part of coreutils, which is already an 
implicit input of the GNU build system. So the configure script should have 
it, shouldn't it?

On a related tangent: it looks like a phase is just a function which takes 
arbitrary keyword-arguments, right? Is this documented somewhere or is it 
"read the source code"? And what exactly are `outputs` and `inputs`? It looks 
like they are association lists where the keys are names and the values are 
directories.

  reply	other threads:[~2018-09-11 11:05 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-09-10  9:27 Removing configure flags? HiPhish
2018-09-10  9:57 ` Danny Milosavljevic
2018-09-11  0:04   ` Alex Vong
2018-09-11 10:59     ` HiPhish [this message]
2018-09-12 17:17       ` Ludovic Courtès
2018-09-12 17:54         ` HiPhish

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://guix.gnu.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1614975.CsQVqhEBAj@aleksandar-ixtreme-m5740 \
    --to=hiphish@posteo.de \
    --cc=alexvong1995@gmail.com \
    --cc=guix-devel@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/guix.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).