From owner-freebsd-ports@FreeBSD.ORG Thu May 24 16:16:30 2007 Return-Path: X-Original-To: ports@freebsd.org Delivered-To: freebsd-ports@FreeBSD.ORG Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id E647F16A46C for ; Thu, 24 May 2007 16:16:30 +0000 (UTC) (envelope-from jhein@timing.com) Received: from Daffy.timing.com (ns2.timing.com [206.168.13.218]) by mx1.freebsd.org (Postfix) with ESMTP id AEE1513C4B0 for ; Thu, 24 May 2007 16:16:30 +0000 (UTC) (envelope-from jhein@timing.com) Received: from gromit.timing.com (gromit.timing.com [206.168.13.209]) by Daffy.timing.com (8.13.1/8.13.1) with ESMTP id l4OFqRD8027017; Thu, 24 May 2007 09:52:27 -0600 (MDT) (envelope-from jhein@timing.com) Received: from gromit.timing.com (localhost [127.0.0.1]) by gromit.timing.com (8.13.8/8.13.8) with ESMTP id l4OFqLDZ066014; Thu, 24 May 2007 09:52:21 -0600 (MDT) (envelope-from jhein@gromit.timing.com) Received: (from jhein@localhost) by gromit.timing.com (8.14.1/8.14.1/Submit) id l4OFqLRw066011; Thu, 24 May 2007 09:52:21 -0600 (MDT) (envelope-from jhein) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable Message-ID: <18005.46260.893312.898544@gromit.timing.com> Date: Thu, 24 May 2007 09:52:20 -0600 From: John E Hein To: emulation@freebsd.org To: ports@freebsd.org X-Mailer: VM 7.19 under Emacs 22.0.99.1 X-Spam-Status: No, score=-1.0 required=5.0 tests=AWL,BAYES_00, DK_POLICY_SIGNSOME autolearn=disabled version=3.1.8 X-Spam-Checker-Version: SpamAssassin 3.1.8 (2007-02-13) on Daffy.timing.com Cc: Subject: USE_LDCONFIG & linux ports X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 24 May 2007 16:16:31 -0000 Careful about using USE_LDCONFIG with linux ports. With the current ports infrastructure you may wind up running ldconfig on the native ldconfig database (i.e., without -r /compat/linux). As an example, try replacing INSTALLS_SHLIB=3Dyes with USE_LDCONFIG=3Dyes= in x11/linux-xorg-libs/Makefile. Then run make install. It will do this: =2E =2E =3D=3D=3D> Running ldconfig /sbin/ldconfig -m /compat/linux/lib =2E =2E (note the lack of '-r /compat/linux') If you try it, I recommend you do this in a chroot, just in case ;). The root of the cause is that the old way (INSTALLS_SHLIB) uses LDCONFIG_CMD. The new way (USE_LDCONFIG) uses LDCONFIG. Having USE_LINUX_PREFIX causes bsd.port.mk to add -r /compat/linux to LDCONFIG_CMD (and not LDCONFIG). I don't have a patch at the moment, but I would probably start by trying to use LDCONFIG instead of LDCONFIG_CMD in the USE_LINUX stuff in bsd.port.mk.