How to keep SuSEConfig from overwriting /usr/lib/java link?
I've installed jdk1.3.1 and created a new ln -s from /usr/lib/java to it, however each time I run SuSEConfig it reconfigures it to the old jdk1.1.8. Searching /etc for "jdk1.1.8" comes up empty, and I can't find any entry in yast for it. Can anyone tell me how to set this permanantly to the new jdk location (without doing ENABLE_SUSECONFIG="no")? I remember seeing a thread awhile back mentioning an entry in the SuSE 7.2 rc.config for this setting, but SuSE 7.1 doesn't have any such entry that I can find. Thanks, David A. Riggs
On September 21, 2001 09:05 am, David A. Riggs wrote:
I've installed jdk1.3.1 and created a new ln -s from /usr/lib/java to it, however each time I run SuSEConfig it reconfigures it to the old jdk1.1.8. Searching /etc for "jdk1.1.8" comes up empty, and I can't find any entry in yast for it.
Can anyone tell me how to set this permanantly to the new jdk location (without doing ENABLE_SUSECONFIG="no")?
In rc.config set CREATE_JAVALINK="no" then set the link manually. -- James Oakley Engineering - SolutionInc Ltd. joakley@solutioninc.com http://www.solutioninc.com
On Friday 21 September 2001 09:02 am, James Oakley wrote:
On September 21, 2001 09:05 am, David A. Riggs wrote:
I've installed jdk1.3.1 and created a new ln -s from /usr/lib/java to it, however each time I run SuSEConfig it reconfigures it to the old jdk1.1.8. Searching /etc for "jdk1.1.8" comes up empty, and I can't find any entry in yast for it.
Can anyone tell me how to set this permanantly to the new jdk location (without doing ENABLE_SUSECONFIG="no")?
In rc.config set CREATE_JAVALINK="no" then set the link manually.
No luck with the 'CREATE_JAVALINK' entry in rc.config, see below: Script started on Fri Sep 21 11:41:07 2001 mr-causey:~ # ls -l /usr/lib/java lrwxrwxrwx 1 root root 8 Sep 21 11:37 /usr/lib/java -> jdk1.1.8 mr-causey:~ # rm /usr/lib/java mr-causey:~ # ln -s /usr/java/jdk1.3.1/ /usr/lib/java mr-causey:~ # ls -l /usr/lib/java lrwxrwxrwx 1 root root 19 Sep 21 11:41 /usr/lib/java -> /usr/java/jdk1.3.1/ mr-causey:~ # cat /etc/rc.config | grep CREATE_JAVALINK CREATE_JAVALINK="no" mr-causey:~ # SuSEconfig Started the SuSE-Configuration Tool. Running in full featured mode. Reading /etc/rc.config and updating the system... Executing /sbin/conf.d/SuSEconfig.alljava... Executing /sbin/conf.d/SuSEconfig.alsa... Executing /sbin/conf.d/SuSEconfig.apache... Executing /sbin/conf.d/SuSEconfig.fonts... Updating fonts.scale for truetype Updating fonts.scale for CID Executing /sbin/conf.d/SuSEconfig.groff... Executing /sbin/conf.d/SuSEconfig.java... Unable to find /usr/lib/java/bin/.java_wrapper Executing /sbin/conf.d/SuSEconfig.kdm... Executing /sbin/conf.d/SuSEconfig.kdm2... Executing /sbin/conf.d/SuSEconfig.lisa... Executing /sbin/conf.d/SuSEconfig.pam... Executing /sbin/conf.d/SuSEconfig.pcmcia... Executing /sbin/conf.d/SuSEconfig.perl... Executing /sbin/conf.d/SuSEconfig.profiles... Executing /sbin/conf.d/SuSEconfig.rplay... Executing /sbin/conf.d/SuSEconfig.sendmail... ATTENTION: You have modified /etc/sendmail.cf. Leaving it untouched... You can find my version in /etc/sendmail.cf.SuSEconfig... Executing /sbin/conf.d/SuSEconfig.susehilf... Executing /sbin/conf.d/SuSEconfig.susewm... Executing /sbin/conf.d/SuSEconfig.ypclient... Processing index files of all manpages... Finished. mr-causey:~ # ls -l /usr/lib/java lrwxrwxrwx 1 root root 8 Sep 21 11:42 /usr/lib/java -> jdk1.1.8 mr-causey:~ # exit exit Script done on Fri Sep 21 11:43:09 2001 But after reviewing the script and digging around inside /sbin/conf.d/ I notice that SuSEconfig.alljava looks for the rpm called 'java' but not for the one called 'jdk'. I don't want to start hacking up these scripts, I'd much prefer to do this from rc.config. Script started on Fri Sep 21 12:07:59 2001 lukewarm@mr-causey:~ > rpm -q java java-1.1.8v1-6 lukewarm@mr-causey:~ > rpm -q jdk jdk-1.3.1-fcs lukewarm@mr-causey:~ > cat /sbin/conf.d/SuSEconfig.alljava | grep JAVALINKTO JAVALINKTO=`rpm -q java java2 ibmjava2 IBMJava2-SDK 2>/dev/null | cut -d- -f 1 | head -n 1` if ! test -z "$JAVALINKTO" ; then TARGETDIR=`rpm -ql $JAVALINKTO|grep ^/usr/lib/jdk[^/]|head -n 1|cut -d/ -f 4` lukewarm@mr-causey:~ > exit exit Script done on Fri Sep 21 12:09:16 2001 David A. Riggs
participants (2)
-
David A. Riggs
-
James Oakley