Skip to content

Commit

Permalink
sun-jdk: remove circular dependency
Browse files Browse the repository at this point in the history
  • Loading branch information
v4hn committed Jul 28, 2012
1 parent db0fd1b commit ddda679
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
3 changes: 0 additions & 3 deletions compilers/sun-jdk/DEPENDS
@@ -1,4 +1 @@
depends unzip
# the download location redirects to HTTPS protocol
# and we need to make sure wget verifies the certificate
depends ca-certificates
4 changes: 4 additions & 0 deletions compilers/sun-jdk/PRE_BUILD
Expand Up @@ -10,6 +10,10 @@ fi &&
JDK_ARCHIVE=jdk-$VERSION-linux-$bits.tar.gz &&
JDK_POLICY=UnlimitedJCEPolicyJDK7.zip &&

if ! module_installed ca-certificates; then
message "${PROBLEM_COLOR}If the following downloads fail, please make sure you build wget with SSL support and and got ca-certificates installed${DEFAULT_COLOR}"
fi

wget -c --header "Cookie: gpw_e24=a" http://download.oracle.com/otn-pub/java/jdk/$FVERSION/$JDK_ARCHIVE &&
wget -c --header "Cookie: gpw_e24=a" http://download.oracle.com/otn-pub/java/jce/7/$JDK_POLICY &&

Expand Down

0 comments on commit ddda679

Please sign in to comment.