Date: Thu, 12 May 2005 04:12:33 +0000 (UTC) From: Greg Lewis <glewis@FreeBSD.org> To: ports-committers@FreeBSD.org, cvs-ports@FreeBSD.org, cvs-all@FreeBSD.org Subject: cvs commit: ports/java/jdk15/files patch-j2se-bin-java_md.c Message-ID: <200505120412.j4C4CXTO029727@repoman.freebsd.org>
index | next in thread | raw e-mail
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)
help
Want to link to this message? Use this
URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200505120412.j4C4CXTO029727>
