You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@flume.apache.org by "Jeff Bachtel (JIRA)" <ji...@apache.org> on 2013/01/14 23:08:13 UTC
[jira] [Updated] (FLUME-1840) here-doc syntax of saveVersion.sh
breaks on FreeBSD
[ https://issues.apache.org/jira/browse/FLUME-1840?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Jeff Bachtel updated FLUME-1840:
--------------------------------
Attachment: flume.diff
Diff of file in question
> here-doc syntax of saveVersion.sh breaks on FreeBSD
> ---------------------------------------------------
>
> Key: FLUME-1840
> URL: https://issues.apache.org/jira/browse/FLUME-1840
> Project: Flume
> Issue Type: Bug
> Components: Build
> Affects Versions: v1.3.1
> Environment: FreeBSD 8
> Reporter: Jeff Bachtel
> Priority: Minor
> Labels: patch
> Attachments: flume.diff
>
> Original Estimate: 0h
> Remaining Estimate: 0h
>
> Building FLUME as retrieved from git, failed during compile on FreeBSD 8. The cause turned out to be the here-doc syntax being slightly off on saveVersion.sh . Possibly the BSD shell is being more strict on syntax.
> Throwing the trivial patch in here, vice a pull req:
> diff --git a/flume-ng-core/scripts/saveVersion.sh b/flume-ng-core/scripts/saveVersion.sh
> index ad3f8b1..82666cd 100755
> --- a/flume-ng-core/scripts/saveVersion.sh
> +++ b/flume-ng-core/scripts/saveVersion.sh
> @@ -54,7 +54,7 @@ else
> fi
>
> mkdir -p $buildDirectory/generated-sources/java/org/apache/flume/
> -cat << EOF | \
> +cat <<EOF | \
> sed -e "s/VERSION/$version/" -e "s/USER/$user/" -e "s/DATE/$date/" \
> -e "s|URL|$url|" -e "s/REV/$revision/" \
> -e "s|BRANCH|$branch|" -e "s/SRCCHECKSUM/$srcChecksum/" \
> @@ -66,4 +66,4 @@ cat << EOF | \
> user="USER", date="DATE", url="URL",
> srcChecksum="SRCCHECKSUM")
> package org.apache.flume;
> -EOF
> \ No newline at end of file
> +EOF
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira