question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[bug] conf_info 'tools.microsoft.bash:subsystem' from msys2 is not used by Autotools in test_package

See original GitHub issue

Environment Details (include every applicable attribute)

  • Operating System+version: Windows 11
  • Compiler+version: MSVC 17
  • Conan version: 1.51.3
  • Python version: 3.10.4

Steps to reproduce (Include if Applicable)

Trying to modernize the autoconf recipe of the conan-center-index I get the error

ERROR: autoconf/2.71 (test package): Error in build() method, line 34
        autotools.configure()
        ConanException: The config 'tools.microsoft.bash:subsystem' is needed to run commands in a Windows subsystem

while a log output shows that the conf is set and available:

autoconf/2.71 (test package): tools.microsoft.bash:subsystem: msys2

See https://github.com/Ultimaker/conan-center-index/commit/d33196a921cda81a1f435866bf5ff93e16533485 for the full change

conanfile.py

from pathlib import Path

from conan import ConanFile
from conan.tools.files import get, AutoPackager
from conan.tools.layout import basic_layout
from conan.tools.microsoft import is_msvc
from conan.tools.gnu import Autotools

required_conan_version = ">=1.50.0"


class AutoconfConan(ConanFile):
    name = "autoconf"
    url = "https://github.com/conan-io/conan-center-index"
    homepage = "https://www.gnu.org/software/autoconf/"
    description = "Autoconf is an extensible package of M4 macros that produce shell scripts to automatically configure software source code packages"
    topics = ("autoconf", "configure", "build")
    license = ("GPL-2.0-or-later", "GPL-3.0-or-later")
    settings = "os", "arch", "compiler", "build_type"
    generators = "AutotoolsDeps", "AutotoolsToolchain"
    win_bash = True

    exports_sources = "patches/*"

    def build_requirements(self):
        # TODO: check if this is is a correct way to check if msys2 is needed
        if self.settings.get_safe("os") == "Windows" and is_msvc(self) and self.win_bash:
            self.tool_requires("msys2/cci.latest")

    def requirements(self):
        self.requires("m4/1.4.19")

    def generate(self):
        self.output.info(f"tools.microsoft.bash:subsystem: {self.conf.get('tools.microsoft.bash:subsystem')}")

    def layout(self):
        basic_layout(self, src_folder="source")

    def source(self):
        get(self, **self.conan_data["sources"][self.version], strip_root=True)

    def build(self):
        autotool = Autotools(self)
        autotool.configure()
        autotool.make()

    def package(self):
        packager = AutoPackager(self)
        packager.run()

    def package_info(self):
        bin_path = Path(self.package_folder, "bin")
        self.output.info(f"Appending PATH env var with : {bin_path}")
        self.buildenv_info.append_path("PATH", str(bin_path))

        ac_macrodir = self._autoconf_datarootdir
        self.output.info(f"Setting AC_MACRODIR to {ac_macrodir}")
        self.buildenv_info.define_path("AC_MACRODIR", str(ac_macrodir))

        autoconf = Path(self.package_folder, "bin", "autoconf")
        self.output.info(f"Setting AUTOCONF to {autoconf}")
        self.buildenv_info.define_path("AUTOCONF", str(autoconf))

        autoreconf = Path(self.package_folder, "bin", "autoreconf")
        self.output.info(f"Setting AUTORECONF to {autoreconf}")
        self.buildenv_info.define_path("AUTORECONF", str(autoreconf))

        autoheader = Path(self.package_folder, "bin", "autoheader")
        self.output.info(f"Setting AUTOHEADER to {autoheader}")
        self.buildenv_info.define_path("AUTOHEADER", str(autoheader))

        autom4te = Path(self.package_folder, "bin", "autom4te")
        self.output.info(f"Setting AUTOM4TE to {autom4te}")
        self.buildenv_info.define_path("AUTOM4TE", str(autom4te))

        autom4te_perllibdir = self._autoconf_datarootdir
        self.output.info(f"Setting AUTOM4TE_PERLLIBDIR to {autom4te_perllibdir}")
        self.buildenv_info.define_path("AUTOM4TE_PERLLIBDIR", str(autom4te_perllibdir))

    @property
    def _datarootdir(self):
        return Path(self.package_folder, "bin", "share")

    @property
    def _autoconf_datarootdir(self):
        return Path(self._datarootdir, "autoconf")

test_package conanfile.py



from conan import ConanFile
from conan.tools.layout import basic_layout
from conan.tools.microsoft import is_msvc
from conan.tools.gnu import Autotools
from conan.tools.build import cross_building

required_conan_version = ">=1.45.0"


class TestPackageConan(ConanFile):
    settings = "os", "arch", "compiler", "build_type"
    generators = "AutotoolsDeps", "AutotoolsToolchain"
    test_type = "explicit"
    win_bash = True

    def build_requirements(self):
        self.tool_requires(self.tested_reference_str)
        if self.settings.get_safe("os") == "Windows" and is_msvc(self) and self.win_bash:
            self.tool_requires("msys2/cci.latest")

    def requirements(self):
        self.requires(self.tested_reference_str)

    def generate(self):
        self.output.info(f"tools.microsoft.bash:subsystem: {self.conf.get('tools.microsoft.bash:subsystem')}")

    def layout(self):
        basic_layout(self, src_folder="source")

    def build(self):
        autotools = Autotools(self)
        autotools.configure()
        autotools.make()

    def test(self):
        pass

Logs (Executed commands with output) (Include/Attach if Applicable)

Log file
> conan create . autoconf/2.71@_/_ --build=missing --update
Exporting package recipe
autoconf/2.71 exports: File 'conandata.yml' found. Exporting it...
autoconf/2.71 exports: Copied 1 '.yml' file: conandata.yml
autoconf/2.71 exports_sources: Copied 10 '.patch' files
autoconf/2.71: A new conanfile.py version was exported
autoconf/2.71: Folder: C:\Users\j.spijker\.conan\data\autoconf\2.71\_\_\export
autoconf/2.71: Using the exported files summary hash as the recipe revision: d6f0919ae5b9dfdf6d5d55695cdd778a 
autoconf/2.71: Exported revision: d6f0919ae5b9dfdf6d5d55695cdd778a
Configuration (profile_host):
[settings]
arch=x86_64
arch_build=x86_64
build_type=Release
compiler=Visual Studio
compiler.cppstd=17
compiler.runtime=MD
compiler.version=17
os=Windows
os_build=Windows
curaengine:compiler.cppstd=20
[options]
[build_requires]
[env]
[conf]
tools.cmake.cmaketoolchain:generator=Ninja
tools.env.virtualenv:auto_use=True
tools.gnu:define_libcxx11_abi=True

Configuration (profile_build):
[settings]
arch=x86_64
arch_build=x86_64
build_type=Release
compiler=Visual Studio
compiler.cppstd=17
compiler.runtime=MD
compiler.version=17
os=Windows
os_build=Windows
[options]
[build_requires]
[env]
[conf]
tools.cmake.cmaketoolchain:generator=Ninja
tools.env.virtualenv:auto_use=True
tools.gnu:define_libcxx11_abi=True

autoconf/2.71 (test package): Installing package
Requirements
    autoconf/2.71 from local cache - No remote
    m4/1.4.19 from 'cura' - Cache
Packages
    autoconf/2.71:68c64d29067c2918a71ef22db8bbf3d9b385e87e - Build
    m4/1.4.19:0a420ff5c47119e668867cdb51baff0eca1fdb68 - Cache
Build requirements
    autoconf/2.71 from local cache - No remote
    m4/1.4.19 from 'cura' - Cache
    msys2/cci.latest from 'cura' - Cache
Build requirements packages
    autoconf/2.71:68c64d29067c2918a71ef22db8bbf3d9b385e87e - Build
    m4/1.4.19:0a420ff5c47119e668867cdb51baff0eca1fdb68 - Cache
    msys2/cci.latest:eee3fba89db6d777329de604625af8c30d46f080 - Cache

Installing (downloading, building) binaries...
m4/1.4.19: Already installed!
m4/1.4.19: Appending PATH environment variable: C:\.conan\bc0586\1\bin
m4/1.4.19: Setting M4 environment variable: C:/.conan/bc0586/1/bin/m4.exe
m4/1.4.19: Appending PATH environment variable: C:\.conan\bc0586\1\bin
m4/1.4.19: Setting M4 environment variable: C:/.conan/bc0586/1/bin/m4.exe
msys2/cci.latest: Already installed!
msys2/cci.latest: Creating MSYS_ROOT env var : C:\.conan\7c3916\1\bin\msys64
msys2/cci.latest: Creating MSYS_BIN env var : C:\.conan\7c3916\1\bin\msys64\usr\bin
msys2/cci.latest: Appending PATH env var with : C:\.conan\7c3916\1\bin\msys64\usr\bin
msys2/cci.latest: Creating MSYS_ROOT env var : C:\.conan\7c3916\1\bin\msys64
msys2/cci.latest: Creating MSYS_BIN env var : C:\.conan\7c3916\1\bin\msys64\usr\bin
msys2/cci.latest: Appending PATH env var with : C:\.conan\7c3916\1\bin\msys64\usr\bin
msys2/cci.latest: Creating MSYS_ROOT env var : C:\.conan\7c3916\1\bin\msys64
msys2/cci.latest: Creating MSYS_BIN env var : C:\.conan\7c3916\1\bin\msys64\usr\bin
msys2/cci.latest: Appending PATH env var with : C:\.conan\7c3916\1\bin\msys64\usr\bin
autoconf/2.71: Applying build-requirement: msys2/cci.latest
autoconf/2.71: Configuring sources in C:\.conan\51e45b\1\source
Downloading autoconf-2.71.tar.gz completed [1956.82k]                                    autoconf/2.71: oconf/2.71: 
autoconf/2.71:
autoconf/2.71: Copying sources to build folder
autoconf/2.71: Building your package in C:\.conan\814771\1
autoconf/2.71: Generator 'AutotoolsToolchain' calling 'generate()'
autoconf/2.71: Generator 'AutotoolsDeps' calling 'generate()'
autoconf/2.71: Calling generate()
autoconf/2.71: tools.microsoft.bash:subsystem: msys2
autoconf/2.71: Aggregating env generators
autoconf/2.71: Calling build()
autoconf/2.71: Calling:
 > "/c/.conan/814771/1/source/configure" --prefix=/ --bindir=${prefix}/bin --sbindir=${prefix}/bin --libdir=${prefix}/lib --includedir=${prefix}/include --oldincludedir=${prefix}/include

----Running------
> "C:\.conan\814771\1\build-release\conan\conanbuild.bat" && "C:\.conan\814771\1\build-release\conan\msys2_mode.bat" && C:\.conan\7c3916\1\bin\msys64\usr\bin\bash.exe -c ^". \^"C:\.conan\814771\1\build-release\conan\conanbuild.sh\^" ^&^& \^"/c/.conan/814771/1/source/configure\^" --prefix=/ --bindir=${prefix}/bin --sbindir=${prefix}/bin --libdir=${prefix}/lib --includedir=${prefix}/include --oldincludedir=${prefix}/include ^"
-----------------
**********************************************************************
** Visual Studio 2022 Developer Command Prompt v17.1.6
** Copyright (c) 2022 Microsoft Corporation
**********************************************************************
[vcvarsall.bat] Environment initialized for: 'x64'
Capturing current environment in C:\.conan\814771\1\build-release\conan\deactivate_msys2_mode.bat
Configuring environment variables
Capturing current environment in C:\.conan\814771\1\build-release\conan\deactivate_conanautotoolstoolchain.sh
Configuring environment variables
Capturing current environment in C:\.conan\814771\1\build-release\conan\deactivate_conanautotoolsdeps.sh
Configuring environment variables
Capturing current environment in C:\.conan\814771\1\build-release\conan\deactivate_conanbuildenv-release-x86_64.sh
Configuring environment variables
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a race-free mkdir -p... /usr/bin/mkdir -p
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking whether make supports nested variables... yes
checking build system type... x86_64-pc-mingw64
checking host system type... x86_64-pc-mingw64
configure: autobuild project... GNU Autoconf
configure: autobuild revision... 2.71
configure: autobuild hostname... R912PK51
configure: autobuild timestamp... 20220828T131239Z
checking for a shell whose -n mode is known to work... /bin/sh
checking for characters that cannot appear in file names... \\
checking whether directories can have trailing spaces... yes
checking for expr... /usr/bin/expr
checking for GNU M4 that supports accurate traces... /usr/bin/m4
checking whether /usr/bin/m4 accepts --gnu... yes
checking how m4 supports trace files... --debugfile
checking for perl... /usr/bin/perl
checking whether /usr/bin/perl Fcntl::flock is implemented... yes
checking for emacs... no
checking for xemacs... no
checking for emacs... no
checking where .elc files should go... ${datadir}/emacs/site-lisp
checking for grep that handles long lines and -e... /usr/bin/grep
checking for egrep... /usr/bin/grep -E
checking for a sed that does not truncate output... /usr/bin/sed
checking whether make is case sensitive... yes
checking that generated files are newer than configure... done
configure: creating ./config.status
config.status: creating tests/atlocal
config.status: creating Makefile
config.status: linking /c/.conan/814771/1/source/GNUmakefile to GNUmakefile
config.status: executing tests/atconfig commands

----Running------
> "C:\.conan\814771\1\build-release\conan\conanbuild.bat" && "C:\.conan\814771\1\build-release\conan\msys2_mode.bat" && C:\.conan\7c3916\1\bin\msys64\usr\bin\bash.exe -c ^". \^"C:\.conan\814771\1\build-release\conan\conanbuild.sh\^" ^&^& make -j12^"
-----------------
**********************************************************************
** Visual Studio 2022 Developer Command Prompt v17.1.6
** Copyright (c) 2022 Microsoft Corporation
**********************************************************************
[vcvarsall.bat] Environment initialized for: 'x64'
Capturing current environment in C:\.conan\814771\1\build-release\conan\deactivate_msys2_mode.bat
Configuring environment variables
Capturing current environment in C:\.conan\814771\1\build-release\conan\deactivate_conanautotoolstoolchain.sh
Configuring environment variables
Capturing current environment in C:\.conan\814771\1\build-release\conan\deactivate_conanautotoolsdeps.sh
Configuring environment variables
Capturing current environment in C:\.conan\814771\1\build-release\conan\deactivate_conanbuildenv-release-x86_64.sh
Configuring environment variables
make  all-am
make[1]: Entering directory '/c/.conan/814771/1/build-release'
rm -f bin/autom4te bin/autom4te.tmp
rm -f lib/autom4te.cfg lib/autom4te.cfg-t
/usr/bin/mkdir -p bin
/usr/bin/mkdir -p lib/m4sugar
srcdir=''; \
  test -f ./bin/autom4te.in || srcdir=/c/.conan/814771/1/source/; \
  sed -e 's|@SHELL[@]|/bin/sh|g' -e 's|@PERL[@]|/usr/bin/perl|g' -e 's|@PERL_FLOCK[@]|yes|g' -e 's|@bindir[@]|/bin|g' -e 's|@pkgdatadir[@]|//share/autoconf|g' -e 's|@prefix[@]|/|g' -e 's|@autoconf-name[@]|'`echo autoconf | sed 's,x,x,'`'|g' -e 's|@autoheader-n
ame[@]|'`echo autoheader | sed 's,x,x,'`'|g' -e 's|@autom4te-name[@]|'`echo autom4te | sed 's,x,x,'`'|g' -e 's|@M4[@]|/usr/bin/m4|g' -e 's|@M4_DEBUGFILE[@]|--debugfile|g' -e 's|@M4_GNU[@]|--gnu|g' -e 's|@AWK[@]|gawk|g' -e 's|@RELEASE_YEAR[@]|2021|g' -e 's|@VERSION[@]|2.71|g' -e 's|@PACKAGE_NAME[@]|GNU Autoconf|g' -e 's|@configure_input[@]|Generated from bin/autom4te.in; do not edit by hand.|g' ${srcdir}bin/autom4te.in >bin/autom4te.tmp
/usr/bin/mkdir -p lib
:;{ \
  echo '# This file is part of -*- Autoconf -*-.' && \
  echo '# Version of Autoconf.' && \
  echo '# Copyright (C) 1999, 2000, 2001, 2002, 2006, 2007, 2009' && \
  echo '# Free Software Foundation, Inc.' && \
  echo  &&\
  echo 'm4_define([m4_PACKAGE_NAME],      [GNU Autoconf])' && \
  echo 'm4_define([m4_PACKAGE_TARNAME],   [autoconf])' && \
  echo 'm4_define([m4_PACKAGE_VERSION],   [2.71])' && \
  echo 'm4_define([m4_PACKAGE_STRING],    [GNU Autoconf 2.71])' && \
  echo 'm4_define([m4_PACKAGE_BUGREPORT], [bug-autoconf@gnu.org])' && \
  echo 'm4_define([m4_PACKAGE_URL],       [https://www.gnu.org/software/autoconf/])' && \
  echo 'm4_define([m4_PACKAGE_YEAR],      [2021])'; \
} > lib/m4sugar/version.m4-t
rm -f bin/autoheader bin/autoheader.tmp
sed -e 's|@SHELL[@]|/bin/sh|g' -e 's|@PERL[@]|/usr/bin/perl|g' -e 's|@PERL_FLOCK[@]|yes|g' -e 's|@bindir[@]|/bin|g' -e 's|@pkgdatadir[@]|//share/autoconf|g' -e 's|@prefix[@]|/|g' -e 's|@autoconf-name[@]|'`echo autoconf | sed 's,x,x,'`'|g' -e 's|@autoheader-nam
e[@]|'`echo autoheader | sed 's,x,x,'`'|g' -e 's|@autom4te-name[@]|'`echo autom4te | sed 's,x,x,'`'|g' -e 's|@M4[@]|/usr/bin/m4|g' -e 's|@M4_DEBUGFILE[@]|--debugfile|g' -e 's|@M4_GNU[@]|--gnu|g' -e 's|@AWK[@]|gawk|g' -e 's|@RELEASE_YEAR[@]|2021|g' -e 's|@VERSION[@]|2.71|g' -e 's|@PACKAGE_NAME[@]|GNU Autoconf|g' -e 's|@configure_input[@]|Generated from lib/autom4te.cfg.in; do not edit by hand.|g' /c/.conan/814771/1/source/lib/autom4te.in >lib/autom4te.cfg-t
mv lib/m4sugar/version.m4-t lib/m4sugar/version.m4
rm -f bin/autoreconf bin/autoreconf.tmp
/usr/bin/mkdir -p bin
rm -f bin/autoscan bin/autoscan.tmp
srcdir=''; \
  test -f ./bin/autoheader.in || srcdir=/c/.conan/814771/1/source/; \
  sed -e 's|@SHELL[@]|/bin/sh|g' -e 's|@PERL[@]|/usr/bin/perl|g' -e 's|@PERL_FLOCK[@]|yes|g' -e 's|@bindir[@]|/bin|g' -e 's|@pkgdatadir[@]|//share/autoconf|g' -e 's|@prefix[@]|/|g' -e 's|@autoconf-name[@]|'`echo autoconf | sed 's,x,x,'`'|g' -e 's|@autoheader-n
ame[@]|'`echo autoheader | sed 's,x,x,'`'|g' -e 's|@autom4te-name[@]|'`echo autom4te | sed 's,x,x,'`'|g' -e 's|@M4[@]|/usr/bin/m4|g' -e 's|@M4_DEBUGFILE[@]|--debugfile|g' -e 's|@M4_GNU[@]|--gnu|g' -e 's|@AWK[@]|gawk|g' -e 's|@RELEASE_YEAR[@]|2021|g' -e 's|@VERSION[@]|2.71|g' -e 's|@PACKAGE_NAME[@]|GNU Autoconf|g' -e 's|@configure_input[@]|Generated from bin/autoheader.in; do not edit by hand.|g' ${srcdir}bin/autoheader.in >bin/autoheader.tmp
/usr/bin/mkdir -p bin
rm -f bin/autoupdate bin/autoupdate.tmp
/usr/bin/mkdir -p bin
chmod +x bin/autom4te.tmp
srcdir=''; \
  test -f ./bin/autoreconf.in || srcdir=/c/.conan/814771/1/source/; \
  sed -e 's|@SHELL[@]|/bin/sh|g' -e 's|@PERL[@]|/usr/bin/perl|g' -e 's|@PERL_FLOCK[@]|yes|g' -e 's|@bindir[@]|/bin|g' -e 's|@pkgdatadir[@]|//share/autoconf|g' -e 's|@prefix[@]|/|g' -e 's|@autoconf-name[@]|'`echo autoconf | sed 's,x,x,'`'|g' -e 's|@autoheader-n
ame[@]|'`echo autoheader | sed 's,x,x,'`'|g' -e 's|@autom4te-name[@]|'`echo autom4te | sed 's,x,x,'`'|g' -e 's|@M4[@]|/usr/bin/m4|g' -e 's|@M4_DEBUGFILE[@]|--debugfile|g' -e 's|@M4_GNU[@]|--gnu|g' -e 's|@AWK[@]|gawk|g' -e 's|@RELEASE_YEAR[@]|2021|g' -e 's|@VERSION[@]|2.71|g' -e 's|@PACKAGE_NAME[@]|GNU Autoconf|g' -e 's|@configure_input[@]|Generated from bin/autoreconf.in; do not edit by hand.|g' ${srcdir}bin/autoreconf.in >bin/autoreconf.tmp
srcdir=''; \
  test -f ./bin/autoscan.in || srcdir=/c/.conan/814771/1/source/; \
  sed -e 's|@SHELL[@]|/bin/sh|g' -e 's|@PERL[@]|/usr/bin/perl|g' -e 's|@PERL_FLOCK[@]|yes|g' -e 's|@bindir[@]|/bin|g' -e 's|@pkgdatadir[@]|//share/autoconf|g' -e 's|@prefix[@]|/|g' -e 's|@autoconf-name[@]|'`echo autoconf | sed 's,x,x,'`'|g' -e 's|@autoheader-n
ame[@]|'`echo autoheader | sed 's,x,x,'`'|g' -e 's|@autom4te-name[@]|'`echo autom4te | sed 's,x,x,'`'|g' -e 's|@M4[@]|/usr/bin/m4|g' -e 's|@M4_DEBUGFILE[@]|--debugfile|g' -e 's|@M4_GNU[@]|--gnu|g' -e 's|@AWK[@]|gawk|g' -e 's|@RELEASE_YEAR[@]|2021|g' -e 's|@VERSION[@]|2.71|g' -e 's|@PACKAGE_NAME[@]|GNU Autoconf|g' -e 's|@configure_input[@]|Generated from bin/autoscan.in; do not edit by hand.|g' ${srcdir}bin/autoscan.in >bin/autoscan.tmp
/usr/bin/mkdir -p bin
chmod a-w bin/autom4te.tmp
rm -f bin/ifnames bin/ifnames.tmp
srcdir=''; \
  test -f ./bin/autoupdate.in || srcdir=/c/.conan/814771/1/source/; \
  sed -e 's|@SHELL[@]|/bin/sh|g' -e 's|@PERL[@]|/usr/bin/perl|g' -e 's|@PERL_FLOCK[@]|yes|g' -e 's|@bindir[@]|/bin|g' -e 's|@pkgdatadir[@]|//share/autoconf|g' -e 's|@prefix[@]|/|g' -e 's|@autoconf-name[@]|'`echo autoconf | sed 's,x,x,'`'|g' -e 's|@autoheader-n
ame[@]|'`echo autoheader | sed 's,x,x,'`'|g' -e 's|@autom4te-name[@]|'`echo autom4te | sed 's,x,x,'`'|g' -e 's|@M4[@]|/usr/bin/m4|g' -e 's|@M4_DEBUGFILE[@]|--debugfile|g' -e 's|@M4_GNU[@]|--gnu|g' -e 's|@AWK[@]|gawk|g' -e 's|@RELEASE_YEAR[@]|2021|g' -e 's|@VERSION[@]|2.71|g' -e 's|@PACKAGE_NAME[@]|GNU Autoconf|g' -e 's|@configure_input[@]|Generated from bin/autoupdate.in; do not edit by hand.|g' ${srcdir}bin/autoupdate.in >bin/autoupdate.tmp
mv bin/autom4te.tmp bin/autom4te
if test 'no' != no; then \
  am__dir=. am__subdir_includes=''; \
  case lib/emacs/autoconf-mode.elc in */*) \
    am__dir=`echo 'lib/emacs/autoconf-mode.elc' | sed 's,/[^/]*$,,'`; \
    am__subdir_includes="-L $am__dir -L /c/.conan/814771/1/source/$am__dir"; \
  esac; \
  test -d "$am__dir" || /usr/bin/mkdir -p "$am__dir" || exit 1; \
  no --batch \
      \
    $am__subdir_includes -L . -L /c/.conan/814771/1/source \
    --eval '(if (boundp (quote byte-compile-dest-file-function)) (setq byte-compile-dest-file-function (lambda (_) "lib/emacs/autoconf-mode.elc")) (defun byte-compile-dest-file (_) "lib/emacs/autoconf-mode.elc") )' \
    -f batch-byte-compile '/c/.conan/814771/1/source/lib/emacs/autoconf-mode.el'; \
else :; fi
chmod a-w lib/autom4te.cfg-t
/usr/bin/mkdir -p bin
if test 'no' != no; then \
  am__dir=. am__subdir_includes=''; \
  case lib/emacs/autotest-mode.elc in */*) \
    am__dir=`echo 'lib/emacs/autotest-mode.elc' | sed 's,/[^/]*$,,'`; \
    am__subdir_includes="-L $am__dir -L /c/.conan/814771/1/source/$am__dir"; \
  esac; \
  test -d "$am__dir" || /usr/bin/mkdir -p "$am__dir" || exit 1; \
  no --batch \
      \
    $am__subdir_includes -L . -L /c/.conan/814771/1/source \
    --eval '(if (boundp (quote byte-compile-dest-file-function)) (setq byte-compile-dest-file-function (lambda (_) "lib/emacs/autotest-mode.elc")) (defun byte-compile-dest-file (_) "lib/emacs/autotest-mode.elc") )' \
    -f batch-byte-compile '/c/.conan/814771/1/source/lib/emacs/autotest-mode.el'; \
else :; fi
mv -f lib/autom4te.cfg-t lib/autom4te.cfg
chmod +x bin/autoscan.tmp
srcdir=''; \
  test -f ./bin/ifnames.in || srcdir=/c/.conan/814771/1/source/; \
  sed -e 's|@SHELL[@]|/bin/sh|g' -e 's|@PERL[@]|/usr/bin/perl|g' -e 's|@PERL_FLOCK[@]|yes|g' -e 's|@bindir[@]|/bin|g' -e 's|@pkgdatadir[@]|//share/autoconf|g' -e 's|@prefix[@]|/|g' -e 's|@autoconf-name[@]|'`echo autoconf | sed 's,x,x,'`'|g' -e 's|@autoheader-n
ame[@]|'`echo autoheader | sed 's,x,x,'`'|g' -e 's|@autom4te-name[@]|'`echo autom4te | sed 's,x,x,'`'|g' -e 's|@M4[@]|/usr/bin/m4|g' -e 's|@M4_DEBUGFILE[@]|--debugfile|g' -e 's|@M4_GNU[@]|--gnu|g' -e 's|@AWK[@]|gawk|g' -e 's|@RELEASE_YEAR[@]|2021|g' -e 's|@VERSION[@]|2.71|g' -e 's|@PACKAGE_NAME[@]|GNU Autoconf|g' -e 's|@configure_input[@]|Generated from bin/ifnames.in; do not edit by hand.|g' ${srcdir}bin/ifnames.in >bin/ifnames.tmp
chmod +x bin/autoheader.tmp
chmod +x bin/autoreconf.tmp
chmod a-w bin/autoscan.tmp
autom4te_perllibdir='/c/.conan/814771/1/source'/lib AUTOM4TE_CFG='lib/autom4te.cfg'         bin/autom4te -B ''lib -B '/c/.conan/814771/1/source'/lib         --language M4sh --cache '' \
  --melt /c/.conan/814771/1/source/bin/autoconf.as -o bin/autoconf.in
chmod a-w bin/autoreconf.tmp
chmod a-w bin/autoheader.tmp
chmod +x bin/autoupdate.tmp
mv bin/autoreconf.tmp bin/autoreconf
mv bin/autoscan.tmp bin/autoscan
mv bin/autoheader.tmp bin/autoheader
chmod a-w bin/autoupdate.tmp
autom4te_perllibdir='/c/.conan/814771/1/source'/lib AUTOM4TE_CFG='lib/autom4te.cfg'         bin/autom4te -B ''lib -B '/c/.conan/814771/1/source'/lib         --language=M4sh /c/.conan/814771/1/source/tests/wrapper.as -o tests/wrapper.in
mv bin/autoupdate.tmp bin/autoupdate
/usr/bin/mkdir -p lib/autoconf
/usr/bin/mkdir -p lib/autoscan
lang=`echo 'lib/autoconf/autoconf' | sed 's,.*/,,'` \
  && if test $lang = autoconf; then \
       lang=autoconf-without-aclocal-m4; \
     else :; fi \
  && autom4te_perllibdir='/c/.conan/814771/1/source'/lib AUTOM4TE_CFG='lib/autom4te.cfg'         bin/autom4te -B ''lib -B '/c/.conan/814771/1/source'/lib         \
        --language=$lang \
        --freeze \
        --output=lib/autoconf/autoconf.m4f
/usr/bin/mkdir -p lib/autotest
chmod +x bin/ifnames.tmp
echo '# Automatically Generated: do not edit this file' >lib/autoscan/autoscan.list
/usr/bin/mkdir -p lib/m4sugar
chmod a-w bin/ifnames.tmp
lang=`echo 'lib/autotest/autotest' | sed 's,.*/,,'` \
  && if test $lang = autoconf; then \
       lang=autoconf-without-aclocal-m4; \
     else :; fi \
  && autom4te_perllibdir='/c/.conan/814771/1/source'/lib AUTOM4TE_CFG='lib/autom4te.cfg'         bin/autom4te -B ''lib -B '/c/.conan/814771/1/source'/lib         \
        --language=$lang \
        --freeze \
        --output=lib/autotest/autotest.m4f
sed '/^[#]/!q' /c/.conan/814771/1/source/lib/autoscan/autoscan.pre >>lib/autoscan/autoscan.list
mv bin/ifnames.tmp bin/ifnames
lang=`echo 'lib/m4sugar/m4sugar' | sed 's,.*/,,'` \
  && if test $lang = autoconf; then \
       lang=autoconf-without-aclocal-m4; \
     else :; fi \
  && autom4te_perllibdir='/c/.conan/814771/1/source'/lib AUTOM4TE_CFG='lib/autom4te.cfg'         bin/autom4te -B ''lib -B '/c/.conan/814771/1/source'/lib         \
        --language=$lang \
        --freeze \
        --output=lib/m4sugar/m4sugar.m4f
/usr/bin/mkdir -p lib/m4sugar
lang=`echo 'lib/m4sugar/m4sh' | sed 's,.*/,,'` \
  && if test $lang = autoconf; then \
       lang=autoconf-without-aclocal-m4; \
     else :; fi \
  && autom4te_perllibdir='/c/.conan/814771/1/source'/lib AUTOM4TE_CFG='lib/autom4te.cfg'         bin/autom4te -B ''lib -B '/c/.conan/814771/1/source'/lib         \
        --language=$lang \
        --freeze \
        --output=lib/m4sugar/m4sh.m4f
( \
  sed -n '/^[^#]/p' /c/.conan/814771/1/source/lib/autoscan/autoscan.pre; \
  autom4te_perllibdir='/c/.conan/814771/1/source'/lib AUTOM4TE_CFG='lib/autom4te.cfg'         bin/autom4te -B ''lib -B '/c/.conan/814771/1/source'/lib         --cache '' -M -l autoconf-without-aclocal-m4 \
    -t'AN_OUTPUT:$1: $2         $3' \
) | LC_ALL=C sort >>lib/autoscan/autoscan.list
rm -f bin/autoconf bin/autoconf.tmp
rm -f tests/autoconf tests/autoconf.tmp
/usr/bin/mkdir -p bin
rm -f tests/autoheader tests/autoheader.tmp
srcdir=''; \
  test -f ./bin/autoconf.in || srcdir=/c/.conan/814771/1/source/; \
  sed -e 's|@SHELL[@]|/bin/sh|g' -e 's|@PERL[@]|/usr/bin/perl|g' -e 's|@PERL_FLOCK[@]|yes|g' -e 's|@bindir[@]|/bin|g' -e 's|@pkgdatadir[@]|//share/autoconf|g' -e 's|@prefix[@]|/|g' -e 's|@autoconf-name[@]|'`echo autoconf | sed 's,x,x,'`'|g' -e 's|@autoheader-n
ame[@]|'`echo autoheader | sed 's,x,x,'`'|g' -e 's|@autom4te-name[@]|'`echo autom4te | sed 's,x,x,'`'|g' -e 's|@M4[@]|/usr/bin/m4|g' -e 's|@M4_DEBUGFILE[@]|--debugfile|g' -e 's|@M4_GNU[@]|--gnu|g' -e 's|@AWK[@]|gawk|g' -e 's|@RELEASE_YEAR[@]|2021|g' -e 's|@VERSION[@]|2.71|g' -e 's|@PACKAGE_NAME[@]|GNU Autoconf|g' -e 's|@configure_input[@]|Generated from bin/autoconf.in; do not edit by hand.|g' ${srcdir}bin/autoconf.in >bin/autoconf.tmp
input=tests/wrapper.in \
  && sed -e 's|@wrap_program[@]|autoconf|g' -e 's|@abs_top_srcdir[@]|/c/.conan/814771/1/source|g' -e 's|@abs_top_builddir[@]|/c/.conan/814771/1/build-release|g' -e "s|@configure_input[@]|Generated from $input.|g" tests/wrapper.in >tests/autoconf.tmp
rm -f tests/autom4te tests/autom4te.tmp
input=tests/wrapper.in \
  && sed -e 's|@wrap_program[@]|autoheader|g' -e 's|@abs_top_srcdir[@]|/c/.conan/814771/1/source|g' -e 's|@abs_top_builddir[@]|/c/.conan/814771/1/build-release|g' -e "s|@configure_input[@]|Generated from $input.|g" tests/wrapper.in >tests/autoheader.tmp
rm -f tests/autoreconf tests/autoreconf.tmp
chmod +x tests/autoconf.tmp
input=tests/wrapper.in \
  && sed -e 's|@wrap_program[@]|autom4te|g' -e 's|@abs_top_srcdir[@]|/c/.conan/814771/1/source|g' -e 's|@abs_top_builddir[@]|/c/.conan/814771/1/build-release|g' -e "s|@configure_input[@]|Generated from $input.|g" tests/wrapper.in >tests/autom4te.tmp
rm -f tests/autoscan tests/autoscan.tmp
chmod a-w tests/autoconf.tmp
chmod +x tests/autoheader.tmp
input=tests/wrapper.in \
  && sed -e 's|@wrap_program[@]|autoreconf|g' -e 's|@abs_top_srcdir[@]|/c/.conan/814771/1/source|g' -e 's|@abs_top_builddir[@]|/c/.conan/814771/1/build-release|g' -e "s|@configure_input[@]|Generated from $input.|g" tests/wrapper.in >tests/autoreconf.tmp       
mv -f tests/autoconf.tmp tests/autoconf
input=tests/wrapper.in \
  && sed -e 's|@wrap_program[@]|autoscan|g' -e 's|@abs_top_srcdir[@]|/c/.conan/814771/1/source|g' -e 's|@abs_top_builddir[@]|/c/.conan/814771/1/build-release|g' -e "s|@configure_input[@]|Generated from $input.|g" tests/wrapper.in >tests/autoscan.tmp
chmod a-w tests/autoheader.tmp
chmod +x tests/autom4te.tmp
rm -f tests/autoupdate tests/autoupdate.tmp
chmod a-w tests/autom4te.tmp
mv -f tests/autoheader.tmp tests/autoheader
chmod +x tests/autoreconf.tmp
mv -f tests/autom4te.tmp tests/autom4te
input=tests/wrapper.in \
  && sed -e 's|@wrap_program[@]|autoupdate|g' -e 's|@abs_top_srcdir[@]|/c/.conan/814771/1/source|g' -e 's|@abs_top_builddir[@]|/c/.conan/814771/1/build-release|g' -e "s|@configure_input[@]|Generated from $input.|g" tests/wrapper.in >tests/autoupdate.tmp       
chmod +x tests/autoscan.tmp
chmod a-w tests/autoreconf.tmp
rm -f tests/ifnames tests/ifnames.tmp
chmod a-w tests/autoscan.tmp
mv -f tests/autoreconf.tmp tests/autoreconf
chmod +x bin/autoconf.tmp
mv -f tests/autoscan.tmp tests/autoscan
input=tests/wrapper.in \
  && sed -e 's|@wrap_program[@]|ifnames|g' -e 's|@abs_top_srcdir[@]|/c/.conan/814771/1/source|g' -e 's|@abs_top_builddir[@]|/c/.conan/814771/1/build-release|g' -e "s|@configure_input[@]|Generated from $input.|g" tests/wrapper.in >tests/ifnames.tmp
chmod +x tests/autoupdate.tmp
chmod a-w bin/autoconf.tmp
chmod a-w tests/autoupdate.tmp
mv bin/autoconf.tmp bin/autoconf
mv -f tests/autoupdate.tmp tests/autoupdate
chmod +x tests/ifnames.tmp
chmod a-w tests/ifnames.tmp
mv -f tests/ifnames.tmp tests/ifnames
make[1]: Leaving directory '/c/.conan/814771/1/build-release'
autoconf/2.71: Package '68c64d29067c2918a71ef22db8bbf3d9b385e87e' built
autoconf/2.71: Build folder C:\.conan\814771\1\build-release
autoconf/2.71: Generated conaninfo.txt
autoconf/2.71: Generated conanbuildinfo.txt
autoconf/2.71: Generating the package
autoconf/2.71: Package folder C:\.conan\4fb779\1
autoconf/2.71: Calling package()
autoconf/2.71 package(): WARN: No files in this package!
autoconf/2.71: Package '68c64d29067c2918a71ef22db8bbf3d9b385e87e' created
autoconf/2.71: Created package revision efc4b056fa79ac3f5ffafe231f578d0a
autoconf/2.71: Appending PATH env var with : C:\.conan\4fb779\1\bin
autoconf/2.71: Setting AC_MACRODIR to C:\.conan\4fb779\1\bin\share\autoconf
autoconf/2.71: Setting AUTOCONF to C:\.conan\4fb779\1\bin\autoconf
autoconf/2.71: Setting AUTORECONF to C:\.conan\4fb779\1\bin\autoreconf
autoconf/2.71: Setting AUTOHEADER to C:\.conan\4fb779\1\bin\autoheader
autoconf/2.71: Setting AUTOM4TE to C:\.conan\4fb779\1\bin\autom4te
autoconf/2.71: Setting AUTOM4TE_PERLLIBDIR to C:\.conan\4fb779\1\bin\share\autoconf
autoconf/2.71: Applying build-requirement: msys2/cci.latest
autoconf/2.71: Appending PATH env var with : C:\.conan\4fb779\1\bin
autoconf/2.71: Setting AC_MACRODIR to C:\.conan\4fb779\1\bin\share\autoconf
autoconf/2.71: Setting AUTOCONF to C:\.conan\4fb779\1\bin\autoconf
autoconf/2.71: Setting AUTORECONF to C:\.conan\4fb779\1\bin\autoreconf
autoconf/2.71: Setting AUTOHEADER to C:\.conan\4fb779\1\bin\autoheader
autoconf/2.71: Setting AUTOM4TE to C:\.conan\4fb779\1\bin\autom4te
autoconf/2.71: Setting AUTOM4TE_PERLLIBDIR to C:\.conan\4fb779\1\bin\share\autoconf
autoconf/2.71 (test package): Applying build-requirement: autoconf/2.71
autoconf/2.71 (test package): Applying build-requirement: msys2/cci.latest
autoconf/2.71 (test package): Applying build-requirement: m4/1.4.19
autoconf/2.71 (test package): Generator 'AutotoolsToolchain' calling 'generate()'
autoconf/2.71 (test package): Generator 'AutotoolsDeps' calling 'generate()'
autoconf/2.71 (test package): Generator txt created conanbuildinfo.txt
autoconf/2.71 (test package): Calling generate()
autoconf/2.71 (test package): tools.microsoft.bash:subsystem: msys2
autoconf/2.71 (test package): Aggregating env generators
autoconf/2.71 (test package): Generated conaninfo.txt
autoconf/2.71 (test package): Generated graphinfo
Using lockfile: 'C:\cura_wp\conan-center-index\recipes\autoconf\all\test_package/conan.lock'
Using cached profile from lockfile
autoconf/2.71 (test package): Calling build()
ERROR: autoconf/2.71 (test package): Error in build() method, line 34
        autotools.configure()
        ConanException: The config 'tools.microsoft.bash:subsystem' is needed to run commands in a Windows subsystem

Issue Analytics

  • State:closed
  • Created a year ago
  • Comments:9 (9 by maintainers)

github_iconTop GitHub Comments

1reaction
lasotecommented, Sep 12, 2022

Would the below code be acceptable until the issue is fixed?

That is something I cannot answer. I would say skipping the test won’t be accepted by the community.

1reaction
lasotecommented, Sep 12, 2022

I’m taking a look.

Read more comments on GitHub >

github_iconTop Results From Across the Web

[bug] Autotools in Conan with MSYS2 · Issue #8476 - GitHub
Open MSYS2 MINGW32 console and install Python, Autotools, CMake, GCC, ... ranlib configure: WARNING: using cross tools not prefixed with ...
Read more >
Autotools - MSYS2
MSYS2 ships with multiple versions of autotools related tools such as autoconf and automake. To make things easier for developers we provide meta...
Read more >
Porting - MSYS2
If you are building purely msys2 software, you can ignore the Windows filesystem namespace entirely, however, when building native software using MSYS2's ......
Read more >
mingw-w64-x86_64-autotools - MSYS2 Packages
A meta package for the GNU autotools build system (mingw-w64). Source Files · View Changes · Bug Reports · Add New Bug. Base...
Read more >
autotools - MSYS2 Packages
Package: autotools. A meta package for the GNU autotools build system. Source Files · View Changes · Bug Reports · Add New Bug....
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found