incubator-bigtop-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "James Page (Commented) (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (BIGTOP-278) bigtop-packages/src/common/hadoop/do-component-build contains bash syntax but is executed by dash on Debian/Ubuntu
Date Mon, 28 Nov 2011 19:15:41 GMT

    [ https://issues.apache.org/jira/browse/BIGTOP-278?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13158652#comment-13158652
] 

James Page commented on BIGTOP-278:
-----------------------------------

Thanks Tom - that did the trick nicely.
                
> 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
>         Attachments: BIGTOP-278.patch
>
>
> 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

        

Mime
View raw message