From 93ea248baaae5e6540154215681b7d9edf2b913e Mon Sep 17 00:00:00 2001 From: Adam Burke Date: Wed, 24 Jul 2019 20:40:01 +0100 Subject: [PATCH] Hostname addon to fix openjdk7 buffer overflow (#2651, GH-145). --HG-- extra : amend_source : 3a9b9f7798e5c464ebbee9e311588d37bc62fe25 --- .travis.yml | 9 +++------ NEWS | 1 + 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/.travis.yml b/.travis.yml index 3e8910899..826ead357 100644 --- a/.travis.yml +++ b/.travis.yml @@ -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 diff --git a/NEWS b/NEWS index 1e89d6d27..c3c658642 100644 --- a/NEWS +++ b/NEWS @@ -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