bigtop-packages/src/common/hadoop/do-component-build contains bash syntax but 
is executed by dash on Debian/Ubuntu
------------------------------------------------------------------------------------------------------------------

                 Key: BIGTOP-278
                 URL: https://issues.apache.org/jira/browse/BIGTOP-278
             Project: Bigtop
          Issue Type: Bug
          Components: Debian
    Affects Versions: 0.2.0
         Environment: Ubuntu Precise and Ubuntu Lucid
            Reporter: James Page
            Assignee: James Page
            Priority: Minor


Ubuntu does not use bash as its default shell; as a result 
bigtop-packages/src/common/hadoop/do-component-build gets executed by dash 
which does not correctly evaluate:

[...]
    if [[ $AUTOCONF_VERSION > 2.60 ]]; then
        DO_AUTORECONF="create-c++-configure"
    fi
fi

This generates a fleeting error message during the build process.

Switching the call to this script in bigtop-packages/src/deb/hadoop/rules to 
use bash instead of sh to execute this script resolves the issue (I will work 
on a patch).

However the do-component-build script itself uses #!/bin/sh which is not really 
correct either - it might make sense to change this and execute this script 
directly through debian/rules rather than force execution with bash - opinions 
invited.



--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: 
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Reply via email to