unofficial mirror of help-guix@gnu.org 
 help / color / mirror / Atom feed
From: Jesse Millwood <dev@millwood.earth>
To: help-guix@gnu.org
Subject: Building Package and autoreconf not found
Date: Mon, 23 Oct 2023 15:12:59 -0400	[thread overview]
Message-ID: <0ed3246b-a67b-427d-b5e1-af2217f95990@millwood.earth> (raw)

Hello,

I am trying to write a Guix package but I have to add a build phase to 
the gnu build system.

I have the following package scm:

(use-modules
  (guix packages)
  (guix git-download)
  (guix licenses)
  (guix profiles)
  (guix build-system gnu)
  (guix build-system python)
  (guix build utils))


(package
  (name "crosstool-ng")
  (version "1.26.0")
  (source (origin
           (method git-fetch)
           (uri (git-reference
                 (url "https://github.com/crosstool-ng/crosstool-ng.git")
                 (commit (string-append "crosstool-ng-" version))))
           (sha256
            (base32
"04z7zwhxfbjqrd4j16lviilppsd8phwi8zv2rs4jpkmqni6856j1")
            )
           ))
  (build-system gnu-build-system)
  (arguments
   '(#:phases (modify-phases %standard-phases
                             (add-before 'configure 'bootstrap
                                         (lambda* (#:key outputs 
#:allow-other-keys)
                                                  (invoke 
"./bootstrap"))))))
  (synopsis "A versatile (cross-)toolchain generator.")
  (description "A versatile (cross-)toolchain generator.")
  (home-page "https://crosstool-ng.github.io/docs/")
  (license gpl3+)
  )


I need to call the "bootstrap" script before the configure phase. From 
what I can tell from the log the bootstrap script is called, however I 
get the following error:

INFO  :: *** Gathering the list of data files to install
INFO  :: *** Running autoreconf
./bootstrap: line 835: autoreconf: command not found
INFO  :: *** Done!
phase `bootstrap' succeeded after 105.5 seconds

My understanding that the autotools tools were included in the "guix 
build-system gnu" module. Is there some way I have to provide my 
bootstrap phase with the autotools packages?


For some background, this is my first time using guix and guile so I'm 
am kind of banging my head through the manual but I got a little stuck 
here.

Thanks.



             reply	other threads:[~2023-10-26 13:58 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-10-23 19:12 Jesse Millwood [this message]
2023-10-26 14:21 ` Building Package and autoreconf not found Tomas Volf
2023-10-26 14:29   ` Jesse Millwood

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=0ed3246b-a67b-427d-b5e1-af2217f95990@millwood.earth \
    --to=dev@millwood.earth \
    --cc=help-guix@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.
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).