Project

General

Profile

Actions

Bug #8382

closed

/hipster: openjdk 1.8.0 delivers wrong sym-link

Added by Predrag Zečević about 5 years ago. Updated about 5 years ago.

Status:
Rejected
Priority:
Normal
Category:
-
Target version:
-
Start date:
2017-06-13
Due date:
% Done:

0%

Estimated time:
Difficulty:
Medium
Tags:
needs-triage

Description

Hi,

$ uname -rosv
SunOS 5.11 illumos-7c4ab494ff Solaris

$ cd /usr/jdk/
$ ls -al latest 
lrwxrwxrwx 1 root root 12 Aug 15  2016 latest -> openjdk1.8.0

$ ls -la latest/
ls: cannot access 'latest/': No such file or directory

$ ls -la
total 8,0K
drwxr-xr-x  4 root sys   6 Jun 13 10:34 .
drwxr-xr-x 52 root sys  68 Jun  8 08:31 ..
drwxr-xr-x  6 root sys   6 May  9 15:22 instances
lrwxrwxrwx  1 root root 12 Aug 15  2016 latest -> openjdk1.8.0

$ ls -dal instances/openjdk1.*
drwxr-xr-x 8 root bin 13 Mar  9 08:57 instances/openjdk1.7.0
drwxr-xr-x 8 root bin 13 May 23 08:13 instances/openjdk1.8.0

So, "latest" should point to "instances/openjdk1.8.0"
$ pkg search -l /usr/jdk/latest
INDEX      ACTION VALUE          PACKAGE
path       link   usr/jdk/latest pkg:/runtime/java/openjdk8@1.8.131-2017.0.0.0

Regards.

Actions #1

Updated by Alexander Pyhalov about 5 years ago

Try pkg fix runtime/java/openjdk8

$ pkg contents -rm runtime/java/openjdk8 |grep ^link 
...
link path=usr/jdk/openjdk1.8.0 target=instances/openjdk1.8.0
link path=usr/jdk/latest pkg.linted.userland.action002.0=true target=openjdk1.8.0
...
Actions #2

Updated by Predrag Zečević about 5 years ago

Hi ALP,

Note that I have created sym-link manually before, because I needed working JDK):

$ pfexec pkg fix runtime/java/openjdk8
               Packages to fix:   1
       Create boot environment:  No
Create backup boot environment: Yes

Repairing: pkg://openindiana.org/runtime/java/openjdk8@1.8.131,5.11-2017.0.0.0:20170518T124916Z
PACKAGE                                                                 STATUS
pkg://openindiana.org/runtime/java/openjdk8                              ERROR
    link: usr/jdk/openjdk1.8.0
        ERROR: Missing: symbolic link does not exist
    link: usr/jdk/latest
        ERROR: Target: 'instances/openjdk1.8.0' should be 'openjdk1.8.0'
PHASE                                          ITEMS
Updating modified actions                        2/2
Updating package state database                 Done 
Updating package cache                           0/0 
Updating image state                            Done 
Creating fast lookup database                   Done 
Updating package cache                           3/3 

Check result:
$ ls -l /usr/jdk/
total 3,5K
drwxr-xr-x 6 root sys   6 May  9 15:22 instances
lrwxrwxrwx 1 root root 12 Jun 13 11:47 latest -> openjdk1.8.0
lrwxrwxrwx 1 root root 22 Jun 13 11:47 openjdk1.8.0 -> instances/openjdk1.8.0
drwxr-xr-x 4 root sys   4 Jan  8  2016 packages

So, it was error on my box, and guess case is solved :-)

Thanks (I should try it myself first, before bothering people)
Regards.

Actions #3

Updated by Alexander Pyhalov about 5 years ago

  • Status changed from New to Rejected
  • Assignee set to Alexander Pyhalov
Actions

Also available in: Atom PDF