Skip to content

configure.ac:1: warning: AC_INIT: not a literal: m4_esyscmd(bash -c "echo -n $(cat ./.version)$VERSION_SUFFIX") #5832

@juhp

Description

@juhp

Describe the bug

I am trying to build nix on Fedora from source.

Steps To Reproduce

  1. Download 2.5.1 (or 2.5.0 or 2.4) from github tag
  2. Unpack tarball
  3. run autoreconf or ./bootstrap.sh
+ ./bootstrap.sh
autoreconf: Entering directory `.'
autoreconf: configure.ac: not using Gettext
autoreconf: running: aclocal --force 
configure.ac:1: warning: AC_INIT: not a literal: m4_esyscmd(bash -c "echo -n $(cat ./.version)$VERSION_SUFFIX")
configure.ac:1: warning: AC_INIT: not a literal: m4_esyscmd(bash -c "echo -n $(cat ./.version)$VERSION_SUFFIX")
autoreconf: configure.ac: tracing
configure.ac:1: warning: AC_INIT: not a literal: m4_esyscmd(bash -c "echo -n $(cat ./.version)$VERSION_SUFFIX")
autoreconf: configure.ac: not using Libtool
autoreconf: running: /usr/bin/autoconf --force
configure.ac:1: warning: AC_INIT: not a literal: m4_esyscmd(bash -c "echo -n $(cat ./.version)$VERSION_SUFFIX")
configure.ac:108: error: possibly undefined macro: AC_MSG_ERROR
      If this token and others are legitimate, please use m4_pattern_allow.
      See the Autoconf documentation.
autoreconf: /usr/bin/autoconf failed with exit status: 1

Expected behavior

configure script to be created without error.

Additional context

Call me old-fashioned, but I would really prefer to have a bootstrapped tarball as part of formal releases.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugbuild-problemNix fails to compile or test; also improvements to build process

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions