You are not logged in.

#1 2019-02-19 17:51:12

badbob
Member
Registered: 2019-02-07
Posts: 2

[Solved]makepkg can't find bash

i'm trying to build the esp-open-sdk but it says my bash is outdated:

checking for bash >= 3.1... no
configure: error: could not find bash >= 3.1
make[1]: *** [../Makefile:143: _ct-ng] Error 1
make[1]: Leaving directory '/home/badbob/esp8266/esp-open-sdk-git/src/esp-open-sdk/crosstool-NG'
make: *** [Makefile:139: crosstool-NG/ct-ng] Error 2
==> ERROR: A failure occurred in build().
    Aborting...

obviously i have bash and is newer that 3.1:

100% 12:44 ~ > which bash
/usr/bin/bash
100% 12:45 ~ > bash --version
GNU bash, version 5.0.0(1)-release (x86_64-pc-linux-gnu)
Copyright (C) 2019 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>

This is free software; you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.

i've done this before on this same computer running arch without this problem... i'm stumped

Last edited by badbob (2019-02-19 19:29:43)

Offline

#2 2019-02-19 17:53:54

loqs
Member
Registered: 2014-03-06
Posts: 17,369

Re: [Solved]makepkg can't find bash

Welcome to the arch linux forums badbob.  What is the contents of config.log probably in /home/badbob/esp8266/esp-open-sdk-git/src/esp-open-sdk/crosstool-NG ?
Edit:
https://github.com/jcmvbkbc/crosstool-N … 9c6cf10ae5

Last edited by loqs (2019-02-19 18:01:09)

Offline

#3 2019-02-19 19:27:40

badbob
Member
Registered: 2019-02-07
Posts: 2

Re: [Solved]makepkg can't find bash

thanks for having me.  can't remeber the last time i posted on the internet; i can always find someone else asking the same question i have.

anyway it's working now smile. i simply added the 5 to this line in configure.ac:

[[_BASH_ver=$($ac_path__BASH --version 2>&1 \
                     |$EGREP '^GNU bash, version (3\.[1-9]|4)')

thanks a bunch!

Offline

#4 2019-02-19 20:44:40

loqs
Member
Registered: 2014-03-06
Posts: 17,369

Re: [Solved]makepkg can't find bash

Please consider leaving a message on the AUR package page about the issue and reporting it upstream at https://github.com/pfalcon/esp-open-sdk/issues

Offline

#5 2019-02-20 18:40:35

eschwartz
Fellow
Registered: 2014-08-08
Posts: 4,097

Re: [Solved]makepkg can't find bash

The crosstool-ng project's configure.ac will try to search for bash "at least 3.1" using the following rule:

bash --version | egrep '^GNU bash, version (3\.[1-9]|4)'

This inaccurate heuristic match misses bash 5. It was recently (14 days ago) amended to match "5" as well: https://github.com/jcmvbkbc/crosstool-NG/pull/56

The package you are trying to build, includes a submodule for crosstool-ng that is from 2017.

I'll leave you to draw your own conclusions on where the problem lies, and also about how reliable this package is.

I'm nevertheless baffled why crosstool-ng does not use pkg-config instead of grep. Or even do proper arithmetic:

BVER="$(bash -c 'echo "${BASH_VERSION%%.*}"')"
[ "${BVER%%.*" -gt 3 ]

Managing AUR repos The Right Way -- aurpublish (now a standalone tool)

Offline

Board footer

Powered by FluxBB