LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
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, 04:13 AM   #1
Slackovado
Member
 
Registered: Mar 2005
Location: BC, Canada
Distribution: Slackware 14.2 x64
Posts: 308

Rep: Reputation: 70
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, 04:24 AM   #2
allend
LQ 5k Club
 
Registered: Oct 2003
Location: Melbourne
Distribution: Slackware64-15.0
Posts: 6,371

Rep: Reputation: 2750Reputation: 2750Reputation: 2750Reputation: 2750Reputation: 2750Reputation: 2750Reputation: 2750Reputation: 2750Reputation: 2750Reputation: 2750Reputation: 2750
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, 05:09 AM   #3
willysr
Senior Member
 
Registered: Jul 2004
Location: Jogja, Indonesia
Distribution: Slackware-Current
Posts: 4,661

Rep: Reputation: 1784Reputation: 1784Reputation: 1784Reputation: 1784Reputation: 1784Reputation: 1784Reputation: 1784Reputation: 1784Reputation: 1784Reputation: 1784Reputation: 1784
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, 05:24 AM   #4
ruario
Senior Member
 
Registered: Jan 2011
Location: Oslo, Norway
Distribution: Slackware
Posts: 2,557

Rep: Reputation: 1762Reputation: 1762Reputation: 1762Reputation: 1762Reputation: 1762Reputation: 1762Reputation: 1762Reputation: 1762Reputation: 1762Reputation: 1762Reputation: 1762
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 10: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, 05:43 AM   #5
red_fire
Member
 
Registered: Jan 2007
Location: Indonesia
Distribution: Slackware Linux
Posts: 67

Rep: Reputation: 11
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, 05:44 AM   #6
allend
LQ 5k Club
 
Registered: Oct 2003
Location: Melbourne
Distribution: Slackware64-15.0
Posts: 6,371

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

Rep: Reputation: 1762Reputation: 1762Reputation: 1762Reputation: 1762Reputation: 1762Reputation: 1762Reputation: 1762Reputation: 1762Reputation: 1762Reputation: 1762Reputation: 1762
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, 05:43 PM   #8
CTM
Member
 
Registered: Apr 2004
Distribution: Slackware
Posts: 308

Rep: Reputation: 287Reputation: 287Reputation: 287
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



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 03:30 PM
Sun JRE versus GNU JRE frznchckn Linux - Software 3 05-19-2009 12:18 PM
Java Runtime Environment (JRE) 5.0 Update 16 cccc Debian 1 11-06-2008 09:58 AM
AMD64 JRE 1.5.0 Update 2 not containing mozilla plugin? ParticleHunter Linux - Software 3 04-17-2005 03:31 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 11:29 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
Open Source Consulting | Domain Registration