LinuxQuestions.org
Go Job Hunting at the LQ Job Marketplace
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices



Reply
 
Search this Thread
Old 04-20-2012, 05:13 AM   #1
Slackovado
Member
 
Registered: Mar 2005
Location: Burnaby, BC, Canada
Distribution: Slackware 14 32bit, Debian, Arch
Posts: 220

Rep: Reputation: 27
jre update?


Isn't the one year old jre included in Slackware 13.37 vulnerable?
Why has it not been updated?
Jre is no at version .31
 
Click here to see the post LQ members have rated as the most helpful post in this thread.
Old 04-20-2012, 05:24 AM   #2
allend
Senior Member
 
Registered: Oct 2003
Location: Melbourne
Distribution: Slackware-current
Posts: 3,524

Rep: Reputation: 876Reputation: 876Reputation: 876Reputation: 876Reputation: 876Reputation: 876Reputation: 876
Vulnerable? - Yes, to the point that Firefox now checks the version and will disable Java.
Why? - Because Oracle now forbids redistribution by third parties.
Options - http://alien.slackbook.org/blog/open...ackware-13-37/
 
Old 04-20-2012, 06:09 AM   #3
willysr
Senior Member
 
Registered: Jul 2004
Location: Jogja, Indonesia
Distribution: Slackware-Current
Posts: 2,638

Rep: Reputation: 451Reputation: 451Reputation: 451Reputation: 451Reputation: 451
Or...... you can download the latest version of JRE/JDK and apply the same SlackBuild script found in Slackware-13.37 to build a tgz package
 
Old 04-20-2012, 06:24 AM   #4
ruario
Senior Member
 
Registered: Jan 2011
Location: Oslo, Norway
Distribution: Slackware
Posts: 1,902

Rep: Reputation: 963Reputation: 963Reputation: 963Reputation: 963Reputation: 963Reputation: 963Reputation: 963Reputation: 963
The change in licensing is probably what prevents the team from updating it. Basically they aren't allowed.

You have two options. Either use Alien Bob's OpenJDK/OpenJRE packages, or you can update the Oracle/Sun version yourself.

By coincidence I just did this on a machine a moment ago, so I'll make it really easy for you.

Grab PatV's jre SlackBuild and the latest Oracle/Sun binary (currently 11.6.0_31 as I write this post) for your architecture.

If Slackware, then:
Code:
$ wget -r -np -nH -Rbin --cut-dirs=5 ftp://ftp.osuosl.org/pub/slackware/slackware-13.37/source/l/jre/
$ cd jre/
$ wget 'http://javadl.sun.com/webapps/download/AutoDL?BundleId=59621' -O jre-6u31-linux-i586.bin
If Slackware64, then:
Code:
$ wget -r -np -nH -Rbin --cut-dirs=5 ftp://ftp.osuosl.org/pub/slackware/slackware64-13.37/source/l/jre/
$ cd jre/
$ wget 'http://javadl.sun.com/webapps/download/AutoDL?BundleId=59623' -O jre-6u31-linux-x64.bin
Now you can update the SlackBuild version information, make it executable, run and install it and finally add it to the slackpkg blacklist (so that it doesn't get downgraded):
Code:
$ sed -i 's/^\(VERSION=\).*/\16u31/;s/^\(DVER=\).*/\11.6.0_31/' jre.SlackBuild
$ chmod +x jre.SlackBuild
$ su
# ./jre.SlackBuild
# upgradepkg /tmp/jre-6u31-*-1.txz
# slackpkg blacklist jre

Last edited by ruario; 04-20-2012 at 11:46 AM. Reason: s/slackpg/slackpkg/ ; also realised the x86_64 Slackbuild is slightly different ; spelling
 
3 members found this post helpful.
Old 04-20-2012, 06:43 AM   #5
red_fire
Member
 
Registered: Jan 2007
Location: Indonesia
Distribution: Slackware Linux
Posts: 51

Rep: Reputation: 8
Yes, to be specific jre is not allowed to be RE-distributed,,
but we, as end users, are allowed to download it directly from the website
 
Old 04-20-2012, 06:44 AM   #6
allend
Senior Member
 
Registered: Oct 2003
Location: Melbourne
Distribution: Slackware-current
Posts: 3,524

Rep: Reputation: 876Reputation: 876Reputation: 876Reputation: 876Reputation: 876Reputation: 876Reputation: 876
Apparently this is the Debian solution; supply a script that automatically downloads the binary, builds and installs a package.
 
Old 04-20-2012, 06:55 AM   #7
ruario
Senior Member
 
Registered: Jan 2011
Location: Oslo, Norway
Distribution: Slackware
Posts: 1,902

Rep: Reputation: 963Reputation: 963Reputation: 963Reputation: 963Reputation: 963Reputation: 963Reputation: 963Reputation: 963
Actually (whilst I haven't checked) I suspect it works the same way as with their Flash and MS Core Fonts packages. They have no real contents just meta data. Their pre-install scripts download the files extract them and put them in place. Their post-remove do the actual uninstall of the files. No building of packages. Building packages would be needed to do something similar on Slack due to the lack of uninstall scripts. Not that I think we need that.

I'm guessing that the next Slackware release will have openJDK/JRE based on AlienBOB's work and the Oracle/Sun stuff will be moved to extra as SlackBuild scripts only.
 
Old 04-20-2012, 06:43 PM   #8
CTM
Member
 
Registered: Apr 2004
Distribution: Slackware64 14.0 / 14.1
Posts: 131

Rep: Reputation: 50
Quote:
Originally Posted by ruario View Post
I'm guessing that the next Slackware release will have openJDK/JRE based on AlienBOB's work and the Oracle/Sun stuff will be moved to extra as SlackBuild scripts only.
For what it's worth, this is also the official advice being given to redistributors by Oracle. I think we'll see most distros doing this for future releases.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
JRE 1.6.0_07 required , please update merajmca Red Hat 3 03-03-2010 04:30 PM
Sun JRE versus GNU JRE frznchckn Linux - Software 3 05-19-2009 01:18 PM
Java Runtime Environment (JRE) 5.0 Update 16 cccc Debian 1 11-06-2008 10:58 AM
AMD64 JRE 1.5.0 Update 2 not containing mozilla plugin? ParticleHunter Linux - Software 3 04-17-2005 04:31 PM


All times are GMT -5. The time now is 04:04 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration