[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Building Package and autoreconf not found

From: Jesse Millwood
Subject: Re: Building Package and autoreconf not found
Date: Thu, 26 Oct 2023 10:29:41 -0400
User-agent: Mozilla Thunderbird

Thanks Tomas,

That worked. I also had to add a phase before configure to patch the packages' gen-version-info script because it was in a location that the built-in bootstrap phase couldn't detect. Then I could drop my bootstrap phase too.


On 10/26/23 10:21, Tomas Volf wrote:
On 2023-10-23 15:12:59 -0400, Jesse Millwood wrote:

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:

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

  (name "crosstool-ng")
  (version "1.26.0")
  (source (origin
           (method git-fetch)
           (uri (git-reference
                 (url "";)
                 (commit (string-append "crosstool-ng-" version))))
  (build-system gnu-build-system)
   '(#:phases (modify-phases %standard-phases
                             (add-before 'configure 'bootstrap
                                         (lambda* (#:key outputs
                                                  (invoke "./bootstrap"))))))
  (synopsis "A versatile (cross-)toolchain generator.")
  (description "A versatile (cross-)toolchain generator.")
  (home-page "";)
  (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?
I believe autoreconf is not usually required for building packages from a
distribution archive.  Try to add autoconf into a native-inputs.

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.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]