[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:06:33 CST 2016


Xabier de Zuazo created DAHTOOL-70:
--------------------------------------

             Summary: 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: {noformat}
# lsb_release -d
Description:    CentOS Linux release 7.2.1511 (Core) 
# uname -a
Linux default-centos-72 3.10.0-327.4.4.el7.x86_64 #1 SMP Tue Jan 5 16:07:00 UTC 2016 x86_64 x86_64 x86_64 GNU/Linux
# yum list file
5.11-31.el7                                              @base
# pwd
/usr/src/dahdi-linux-complete-2.11.0+2.11.0
{noformat}
            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