From owner-cvs-ports@FreeBSD.ORG Thu May 12 04:12:33 2005 Return-Path: Delivered-To: cvs-ports@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 7996B16A4CE; Thu, 12 May 2005 04:12:33 +0000 (GMT) Received: from repoman.freebsd.org (repoman.freebsd.org [216.136.204.115]) by mx1.FreeBSD.org (Postfix) with ESMTP id 6426043D8C; Thu, 12 May 2005 04:12:33 +0000 (GMT) (envelope-from glewis@FreeBSD.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.13.1/8.13.1) with ESMTP id j4C4CXSA029728; Thu, 12 May 2005 04:12:33 GMT (envelope-from glewis@repoman.freebsd.org) Received: (from glewis@localhost) by repoman.freebsd.org (8.13.1/8.13.1/Submit) id j4C4CXTO029727; Thu, 12 May 2005 04:12:33 GMT (envelope-from glewis) Message-Id: <200505120412.j4C4CXTO029727@repoman.freebsd.org> From: Greg Lewis Date: Thu, 12 May 2005 04:12:33 +0000 (UTC) To: ports-committers@FreeBSD.org, cvs-ports@FreeBSD.org, cvs-all@FreeBSD.org X-FreeBSD-CVS-Branch: HEAD Subject: cvs commit: ports/java/jdk15/files patch-j2se-bin-java_md.c X-BeenThere: cvs-ports@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: CVS commit messages for the ports tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 12 May 2005 04:12:33 -0000 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)