Skip to content

Commit

Permalink
Hostname addon to fix openjdk7 buffer overflow (#2651, GH-145).
Browse files Browse the repository at this point in the history
--HG--
extra : amend_source : 3a9b9f7798e5c464ebbee9e311588d37bc62fe25
  • Loading branch information
adamburkegh committed Jul 24, 2019
1 parent a1f6815 commit 93ea248
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 6 deletions.
9 changes: 3 additions & 6 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,13 +28,10 @@ matrix:
- os: linux
env: CUSTOM_JDK="default"

addons:
hostname: jyshort

before_install:
# Patch for buffer overflow bug, see https://github.com/travis-ci/travis-ci/issues/5227
- hostname
- cat /etc/hosts # optionally check the content *before*
- sudo hostname "$(hostname | cut -c1-63)"
- sed -e "s/^\\(127\\.0\\.0\\.1.*\\)/\\1 $(hostname | cut -c1-63)/" /etc/hosts | sudo tee /etc/hosts
- hostname
- cat /etc/hosts # optionally check the content *after*
- if [ "$TRAVIS_OS_NAME" == "osx" ]; then export JAVA_HOME=$(/usr/libexec/java_home); fi
- if [ "$TRAVIS_OS_NAME" == "osx" ]; then brew update; fi
Expand Down
1 change: 1 addition & 0 deletions NEWS
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ https://github.com/jythontools/jython

Development tip
Bugs fixed
- [ 2651 ] Travis builds failing with *** buffer overflow detected ***
- [ 2703 ] JycompileAntTask cannot find ...ant.taskdefs.MatchingTask
- [ 2708 ] test_urllib2net fails (on Travis CI)
- [ 2764 ] Readme is not displayed when using the GUI installer
Expand Down

0 comments on commit 93ea248

Please sign in to comment.