Received: from mail.netbsd.org (mail.netbsd.org [149.20.53.66]) by www.NetBSD.org (Postfix) with ESMTP id DAF3563EA15 for ; Thu, 14 Mar 2013 14:29:52 +0000 (UTC) Received: by mail.netbsd.org (Postfix, from userid 605) id B895314A367; Thu, 14 Mar 2013 14:29:52 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by mail.netbsd.org (Postfix) with ESMTP id 6BFCD14A365 for ; Thu, 14 Mar 2013 14:29:50 +0000 (UTC) X-Virus-Scanned: amavisd-new at NetBSD.org Received: from mail.netbsd.org ([127.0.0.1]) by localhost (mail.NetBSD.org [127.0.0.1]) (amavisd-new, port 10025) with ESMTP id xxdytZWZ1sWW for ; Thu, 14 Mar 2013 14:29:49 +0000 (UTC) Received: from cvs.netbsd.org (cvs.NetBSD.org [IPv6:2001:4f8:3:7:2e0:81ff:fe30:95bd]) by mail.netbsd.org (Postfix) with ESMTP id D34FF14A362 for ; Thu, 14 Mar 2013 14:29:49 +0000 (UTC) Received: by cvs.netbsd.org (Postfix, from userid 500) id CA21D175DD; Thu, 14 Mar 2013 14:29:49 +0000 (UTC) Content-Disposition: inline Content-Transfer-Encoding: 8bit Content-Type: text/plain; charset="US-ASCII" MIME-Version: 1.0 Date: Thu, 14 Mar 2013 14:29:49 +0000 From: "Ignatios Souvatzis" Subject: CVS commit: pkgsrc/lang/ocaml To: pkgsrc-changes@NetBSD.org Reply-To: is@netbsd.org X-Mailer: log_accum Message-Id: <20130314142949.CA21D175DD@cvs.netbsd.org> Sender: pkgsrc-changes-owner@NetBSD.org List-Id: pkgsrc-changes.NetBSD.org Precedence: bulk Module Name: pkgsrc Committed By: is Date: Thu Mar 14 14:29:49 UTC 2013 Modified Files: pkgsrc/lang/ocaml: Makefile distinfo Added Files: pkgsrc/lang/ocaml/patches: patch-tools_ocamlmklib Log Message: ocamlmklib adds absolute directories (that is, such starting with '/') given to -L to run-time library search path passed to the lower linker using -Wl,-rpath= This is a problem, because even if we add the right directory with -Wl,-rpath= or variants thereof, the wrong path still is in the RPATH on the resulting binary. This might lead to the wrong library being found at run-time. To build clean packages when using ocamlmklib, '-elfmode' will switch this behaviour off; when using '-elfmode', all following -L parameters won't augment the RPATH, and it has to be updated seperately with -dllpath, -Wl,-rpath= etc. (This is a local pkgsrc stopgap addition, needed to proceed with fixes to xentools41. The issue has been raised with upstream; hopefully this patch can be reverted with a future ocaml package version.) To generate a diff of this commit: cvs rdiff -u -r1.82 -r1.83 pkgsrc/lang/ocaml/Makefile cvs rdiff -u -r1.69 -r1.70 pkgsrc/lang/ocaml/distinfo cvs rdiff -u -r0 -r1.1 pkgsrc/lang/ocaml/patches/patch-tools_ocamlmklib Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.