From owner-freebsd-arch@FreeBSD.ORG Thu Sep 5 07:41:30 2013 Return-Path: Delivered-To: freebsd-arch@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTP id 2732ED34 for ; Thu, 5 Sep 2013 07:41:30 +0000 (UTC) (envelope-from jonathan.robert.anderson@gmail.com) Received: from mail-oa0-x230.google.com (mail-oa0-x230.google.com [IPv6:2607:f8b0:4003:c02::230]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id E66F02378 for ; Thu, 5 Sep 2013 07:41:29 +0000 (UTC) Received: by mail-oa0-f48.google.com with SMTP id o17so1759638oag.21 for ; Thu, 05 Sep 2013 00:41:29 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:in-reply-to:references:date:message-id:subject :from:to:cc:content-type; bh=XgiGoR8S8KSE9X5/Tw7FRoo4yzsMRY4pB/kS/w5J1yo=; b=OScD8QkGRiJZ2HWQDGTAKQqIQDM0ecZws7GO3R98RONCRE84lo9ryCpeQ8Pz7P8Iwk BVZGridxE8WBOphduM0H4JOmUoXSioWa0sqREH0ezCQ62PLcihzxDjHj6L+DEXanyzRv aZ6gk71eN1FZQIVCEiDE3DHRDSkQhacdcEi5oR5YD02gKxoSMoIXCeMR/eZxSXhlFyaI drL6SRswQ75dR3FGUuzNuYvD34vpzwOmbpxrG8itpy4XRoixoTOOp+VTk3kQVs+MQbxP C9O4idK8Z02OwVi5pT0qQ1xAI6wyaDRETm8NgcI5xTG1aJ6hqwPvW+9rAvMRlh1Nj0Fc Xhpw== MIME-Version: 1.0 X-Received: by 10.182.45.195 with SMTP id p3mr5396796obm.29.1378366889252; Thu, 05 Sep 2013 00:41:29 -0700 (PDT) Sender: jonathan.robert.anderson@gmail.com Received: by 10.182.33.197 with HTTP; Thu, 5 Sep 2013 00:41:29 -0700 (PDT) In-Reply-To: <20130905023703.GN41229@kib.kiev.ua> References: <86zjrut4an.fsf@nine.des.no> <20130905023703.GN41229@kib.kiev.ua> Date: Thu, 5 Sep 2013 08:41:29 +0100 X-Google-Sender-Auth: Q160NOe8_SUczL_bKnCjlmwpCPM Message-ID: Subject: Re: /usr/lib/private From: Jonathan Anderson To: Konstantin Belousov Content-Type: text/plain; charset=UTF-8 X-Content-Filtered-By: Mailman/MimeDel 2.1.14 Cc: Dag-Erling Sm??rgrav , "freebsd-arch@freebsd.org" X-BeenThere: freebsd-arch@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Discussion related to FreeBSD architecture List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 05 Sep 2013 07:41:30 -0000 Is there any reason not to make it /private/usr/lib (or /private/usr/lib/platform)? I could see us wanting a /private/usr/include in the future for e.g. LLVM/Clang headers that things in base (e.g. lldb) might use but whose stability we don't want to be responsible for. Jon On Thursday, 5 September 2013, Konstantin Belousov wrote: > On Tue, Sep 03, 2013 at 03:37:04PM +0200, Dag-Erling Sm??rgrav wrote: > > The attached patch introduces a mechanism for installing libraries into > > /usr/lib/private, which is not in the standard rtld search path, and > > setting -rpath accordingly for programs and libraries that need one of > > those libraries. Private libraries are meant for internal use only and > > need to be kept out of the way so they don't conflict with similarly- > > named libraries installed by ports. The first to go is libssh (which > > shouldn't even exist, but that's another story). > > > > There is one issue this patch does not address: 32-bit binaries which > > reference private libraries on a 64-bit system won't find them. This > > can be fixed by having rtld automagically translate /usr/lib/private to > > /usr/lib32/private when appropriate, which is rather gross. > > You could consider using the $PLATFORM token in the rpath, so that > you use /usr/lib/private- as the installation target. > -- Jonathan Anderson jonathan.anderson@ieee.org