Bugzilla will be upgraded to version 5.0. The upgrade date is tentatively scheduled for 2 December 2018, pending final testing and feedback.
Bug 535012 - (RHQ-1752) on Solaris and HP-UX (and AIX?), we can try to work around the missing readlink problem
on Solaris and HP-UX (and AIX?), we can try to work around the missing readli...
Product: RHQ Project
Classification: Other
Component: Launch Scripts (Show other bugs)
All All
low Severity medium (vote)
: ---
: ---
Assigned To: RHQ Project Maintainer
: FutureFeature, Improvement
Depends On: jon30-bugs
Blocks: 1088032
  Show dependency treegraph
Reported: 2009-03-10 09:01 EDT by John Mazzitelli
Modified: 2014-05-05 11:22 EDT (History)
1 user (show)

See Also:
Fixed In Version:
Doc Type: Enhancement
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2014-05-05 11:21:24 EDT
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)

  None (edit)
Description John Mazzitelli 2009-03-10 09:01:00 EDT
If readlink does not exist, we could recursively parse the output of ls -ld which, for symlinks, has the form "name ->  target".

Note that we don't want to assume /usr/bin - I would just leave those full paths out and assume that $PATH points to ls, expr, and dirname (since there might be those people that have those in /bin or /usr/local/bin or wherever).

# Resolve symlinks.
while [ -h "$PRG" ]; do
     ls=`/usr/bin/ls -ld "$PRG"`
     link=`/usr/bin/expr "$ls" : '^.*->  \(.*\)$'`
     if /usr/bin/expr "$link" : '^/'>  /dev/null; then
       prg="`/usr/bin/dirname $PRG`/$link"
     PRG=`whence "$prg"`>  /dev/null 2>&1
     APPHOME=`/usr/bin/dirname "$PRG"`

(found this here: http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=4789162 )

Comment 1 Red Hat Bugzilla 2009-11-10 15:45:55 EST
This bug was previously known as http://jira.rhq-project.org/browse/RHQ-1752
This bug is related to RHQ-1391
This bug relates to RHQ-1520
Comment 2 wes hayutin 2010-02-16 12:08:11 EST
mass add of key word FutureFeature to help track
Comment 3 Charles Crouch 2010-11-29 11:50:55 EST
Similar suggestion has been done in JBAS:


Note You need to log in before you can comment on or make changes to this bug.