[asterisk-bugs] [JIRA] (DAHTOOL-70) Compilation fails on CentOS 7 (file version 5.11)

Xabier de Zuazo (JIRA) noreply at issues.asterisk.org
Sat Jan 16 13:08:32 CST 2016


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

Xabier de Zuazo updated DAHTOOL-70:
-----------------------------------

    Reference Notes: See here for more information: http://unix.stackexchange.com/a/255753/151187  (was: See here for more information: [Unable to install dahdi - /usr/bin/install: cannot stat ‘’: No such file or directory|http://unix.stackexchange.com/a/255753/151187])

> Compilation fails on CentOS 7 (file version 5.11)
> -------------------------------------------------
>
>                 Key: DAHTOOL-70
>                 URL: https://issues.asterisk.org/jira/browse/DAHTOOL-70
>             Project: DAHDI-Tools
>          Issue Type: Bug
>      Security Level: None
>         Environment: Version 2.11.0, CentOS Linux release 7.2.1511 (Core), Linux 3.10.0-327.4.4.el7.x86_64, file command 5.11-31.el7
>            Reporter: Xabier de Zuazo
>            Assignee: Wendell Thompson
>            Severity: Minor
>
> Compiling version **2.11.0** from sources seems to fail at least on CentOS 7.
> The error:
> {noformat}
> $ make
> [...]
> # make install
> [...]
> /usr/bin/install: cannot stat ‘./dahdi_registration.8’: No such file or directory
> /usr/bin/install: cannot stat ‘./xpp_sync.8’: No such file or directory
> /usr/bin/install: cannot stat ‘./lsdahdi.8’: No such file or directory
> /usr/bin/install: cannot stat ‘./xpp_blink.8’: No such file or directory
> /usr/bin/install: cannot stat ‘./dahdi_genconf.8’: No such file or directory
> /usr/bin/install: cannot stat ‘./dahdi_hardware.8’: No such file or directory
> /usr/bin/install: cannot stat ‘./twinstar.8’: No such file or directory
> {noformat}
> The issue is due to the description for Perl scripts reported by the `file` command version 5.11:
> {noformat}
> [root at centos-6.7 xpp]# file xpp_blink
> xpp_blink: a /usr/bin/perl -w script text executable
> [root at centos-6.7 xpp]# file --version
> file-5.04
> {noformat}
> {noformat}
> [root at centos-7.2 xpp]# file xpp_blink
> xpp_blink: Perl script, ASCII text executable
> [root at centos-7.2 xpp]# file -version
> file-5.11
> {noformat}
> Because of this man pages for perl scripts are not generated and `make install` fails.
> A possible patch:
> {code:patch}
> diff --git a/xpp/Makefile.am b/xpp/Makefile.am
> index d06fffe..1ee76d5 100644
> --- a/xpp/Makefile.am
> +++ b/xpp/Makefile.am
> @@ -24,7 +24,7 @@ if PERL
>  SUBDIRS                += perl_modules
>  
>  %.8: %
> -       @if file "$^" | cut -d: -f2 | grep -q perl; then \
> +       @if file "$^" | cut -d: -f2 | grep -i -q perl; then \
>                 if pod2man --section 8 $^ > $@; then \
>                         echo "  GEN      $@"; \
>                 else \
> {code}



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



More information about the asterisk-bugs mailing list