Uploaded image for project: 'Flume'
  1. Flume
  2. FLUME-1840

here-doc syntax of saveVersion.sh breaks on FreeBSD

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Minor
    • Resolution: Unresolved
    • 1.3.1
    • None
    • Build
    • FreeBSD 8

    Description

      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

      Attachments

        1. flume.diff
          0.7 kB
          Jeff Bachtel

        Activity

          People

            Unassigned Unassigned
            fetch Jeff Bachtel
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated: