[asterisk-bugs] [JIRA] (ASTERISK-27631) [patch] BuildSystem: Do not warn when bash is not installed.

Asterisk Team (JIRA) noreply at issues.asterisk.org
Wed Aug 8 10:13:01 CDT 2018


     [ https://issues.asterisk.org/jira/browse/ASTERISK-27631?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Asterisk Team updated ASTERISK-27631:
-------------------------------------

    Target Release Version/s: 16.0.0

> [patch] BuildSystem: Do not warn when bash is not installed.
> ------------------------------------------------------------
>
>                 Key: ASTERISK-27631
>                 URL: https://issues.asterisk.org/jira/browse/ASTERISK-27631
>             Project: Asterisk
>          Issue Type: Bug
>      Security Level: None
>          Components: Core/BuildSystem
>    Affects Versions: 13.19.0, 15.2.0
>         Environment: FreeBSD 11.1
>            Reporter: Alexander Traud
>            Assignee: Alexander Traud
>            Severity: Minor
>              Labels: patch
>      Target Release: 13.20.0, 15.3.0, 16.0.0
>
>         Attachments: ignore_list_external_result.patch
>
>
> The build system includes the script {{build_tools/list_valid_installed_externals}}, which collects all modules installed from Digium, like various audio-codecs and the Digium Phone Module for Asterisk (DPMA; res_digium_phone). Then, the Makefile double-checks the installed modules, whether an old module is still installed. If such an old module is found, {{make install}} prints a big warning.
> To be downloaded, those external modules required the shell _bash_. Therefore, it is okay that this script requires the shell _bash_ as well. However, when that shell is not installed, {{make install}} prints the following twice: {{env: bash: No such file or directory}}. This is because the script does not set the shell directly but finds _bash_ via the tool _env_. When the header of the script is changed to {{#!/bin/bash}}, the following is printed twice: {{gmake\[1\]: ./build_tools/list_valid_installed_externals: Command not found}}.
> To solve this, one approach is to avoid calling this script when the variable $\{BASH\} is not set. Another approach is to ignore any error of that script.
> This issue was introduced in August 2016 with commit [6caf6bc|https://github.com/asterisk/asterisk/commit/6caf6bcdad003237725bf458a26db8ff74120508]. Because that commit does not reference a Jira issue, I cannot link to a causing issue. Therefore, so the original author learns about this issue here, I have to invite him manually in the code review via Gerrit.



--
This message was sent by Atlassian JIRA
(v6.2#6252)



More information about the asterisk-bugs mailing list