Skip to content

STORM-2858 1.x#2496

Merged
asfgit merged 1 commit intoapache:1.x-branchfrom
srdo:STORM-2858-1.x
Jan 4, 2018
Merged

STORM-2858 1.x#2496
asfgit merged 1 commit intoapache:1.x-branchfrom
srdo:STORM-2858-1.x

Conversation

@srdo
Copy link
Contributor

@srdo srdo commented Jan 3, 2018

1.x version of #2462

I didn't think we needed this initially since asprintf isn't used in 1.x, but it looks like the build is failing on 1.x after upgrading to the newest Travis image (e.g. https://travis-ci.org/apache/storm/builds/324620269).

This only contains the replacement of make-maven-plugin. Make-maven-plugin fails to run autoreconf on Travis. The error log is

[DEBUG] Executing: /bin/sh -l -c cd /home/travis/build/srdo/storm/storm-core/target/native/worker-launcher && autoreconf -i
[DEBUG] /bin/sh: 14: /opt/jdk_switcher/jdk_switcher.sh: [[: not found
[DEBUG] /bin/sh: 21: /opt/jdk_switcher/jdk_switcher.sh: [[: not found
[DEBUG] /bin/sh: 28: /opt/jdk_switcher/jdk_switcher.sh: [[: not found
[DEBUG] /bin/sh: 35: /opt/jdk_switcher/jdk_switcher.sh: [[: not found
[DEBUG] /bin/sh: 42: /opt/jdk_switcher/jdk_switcher.sh: [[: not found
[DEBUG] /bin/sh: 49: /opt/jdk_switcher/jdk_switcher.sh: [[: not found
[DEBUG] /bin/sh: 56: /opt/jdk_switcher/jdk_switcher.sh: [[: not found
[DEBUG] /bin/sh: 62: /opt/jdk_switcher/jdk_switcher.sh: [[: not found
[DEBUG] /bin/sh: 62: /opt/jdk_switcher/jdk_switcher.sh: [[: not found
[DEBUG] /bin/sh: 62: /opt/jdk_switcher/jdk_switcher.sh: [[: not found
[DEBUG] /bin/sh: 109: /opt/jdk_switcher/jdk_switcher.sh: Syntax error: "(" unexpected (expecting "fi")

Googling it leads to travis-ci/travis-cookbooks#964. Sounds like jdk_switcher isn't expecting to be called with a non-bash shell, and it gets called that way when opening sh as a login shell.

…ls to allocate memory. Replace make-maven-plugin with a build shell script.
Copy link
Contributor

@HeartSaVioR HeartSaVioR left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

+1
Great job!

@asfgit asfgit merged commit 5753913 into apache:1.x-branch Jan 4, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants