cvs commit: ports/java/jdk15/files patch-j2se-bin-java_md.c
Greg Lewis
glewis at FreeBSD.org
Wed May 11 21:12:33 PDT 2005
glewis 2005-05-12 04:12:33 UTC
FreeBSD ports repository
Added files:
java/jdk15/files patch-j2se-bin-java_md.c
Log:
. Using dladdr(3) to determine the path to the current executable, and
hence the path for the shared libraries doesn't always work on FreeBSD.
It definitely fails on FreeBSD 4.11 and FreeBSD 6-CURRENT under the
tested environments. In fact, the dladdr(3) man page even warns of
these problems. While there is work under way to fix this, it isn't
available yet.
Given that situation, switch to trying /proc/curproc/file, which is
similar to what Linux does, and if that fails, drop back to checking
argv[0] and iterating through $PATH as in jdk 1.4. Both these methods
work correctly in testing.
Reported by: das
Reviewed by: maintainer timeout
Revision Changes Path
1.1 +62 -0 ports/java/jdk15/files/patch-j2se-bin-java_md.c (new)
More information about the cvs-all
mailing list