From 56c233b0b70320c0d5534d736d2bebc83e379fd3 Mon Sep 17 00:00:00 2001 From: Oliver Breitwieser Date: Fri, 19 Apr 2019 23:43:45 +0200 Subject: jdk package: Fix fetching with curl 7.64.0+ (#11108) Starting with version 7.64.0, curl skips cookies specified with "-H" (generic custom header specification) when following redirects, which causes the "accept-license"-cookie for jdk to disappear. The result is that jdk fails to download. This uses the "-b" option (which is used specifically for configuring cookies) instead, which is more permissive. --- var/spack/repos/builtin/packages/jdk/package.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/var/spack/repos/builtin/packages/jdk/package.py b/var/spack/repos/builtin/packages/jdk/package.py index e44e2b5950..2c56b9b8a3 100644 --- a/var/spack/repos/builtin/packages/jdk/package.py +++ b/var/spack/repos/builtin/packages/jdk/package.py @@ -26,8 +26,8 @@ class Jdk(Package): # http://stackoverflow.com/questions/10268583/how-to-automate-download-and-installation-of-java-jdk-on-linux curl_options = [ '-j', # junk cookies - '-H', # specify required License Agreement cookie - 'Cookie: oraclelicense=accept-securebackup-cookie' + '-b', # specify required License Agreement cookie + 'oraclelicense=accept-securebackup-cookie' ] # To add the latest version, go to the homepage listed above, -- cgit v1.2.3-70-g09d2