From owner-freebsd-questions@FreeBSD.ORG Wed Dec 4 08:20:49 2013 Return-Path: Delivered-To: freebsd-questions@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 ESMTPS id 08D22840 for ; Wed, 4 Dec 2013 08:20:49 +0000 (UTC) Received: from mail-oa0-x233.google.com (mail-oa0-x233.google.com [IPv6:2607:f8b0:4003:c02::233]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id C6DA71D1F for ; Wed, 4 Dec 2013 08:20:48 +0000 (UTC) Received: by mail-oa0-f51.google.com with SMTP id i7so16395829oag.10 for ; Wed, 04 Dec 2013 00:20:47 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; bh=KNYr3kKM/wcooqdbd5uhPF0LiS8hzW63msI1H5pjmT0=; b=cztDcv3BsohD+NIJKsniVPla79nYlTp0Fb6xJ44B2Zd1WJfQumr/PPD/NHcibp2TJi /X/kHtQp1o4F8mI0ziRA1WFr/ANIYl7wBYqTL1Hk7bskXz5GOI0F6IIAn0KP9FC4eNvZ aeclX/Do9jszfwGrWUU9fXtBK6jBaePVTifESyHy9un8hQetjGGsVlv+wn7Mwg/KgCHM gXhcWVH3f4HTmPvxTa0DEhmX4QMP2DAZIFPs9X7HMFlW8KWcpcnW8q7Qgp797cz2AJ29 721OyfYCBSZyRpqC8XpYCgCxUn8w+E74XdGgkekhqPAEsSNkvvy5wHVFfib1gtZ96yj0 zISw== MIME-Version: 1.0 X-Received: by 10.60.65.101 with SMTP id w5mr20480240oes.0.1386145247555; Wed, 04 Dec 2013 00:20:47 -0800 (PST) Received: by 10.182.139.9 with HTTP; Wed, 4 Dec 2013 00:20:47 -0800 (PST) In-Reply-To: References: <44r49tg8uv.fsf@lowell-desk.lan> Date: Wed, 4 Dec 2013 17:20:47 +0900 Message-ID: Subject: Re: local ports collection From: till plewe To: FreeBSD-Questions Content-Type: text/plain; charset=UTF-8 X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.17 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 04 Dec 2013 08:20:49 -0000 Setting LDFCONFIG as well got a bit further but now I am stuck at ranlib complaining that it cannot open a ".a" file (when trying to install python2.7.6). The problem seems to be that files are installed using permissions 0444 rather than 0644 when used by a non-root user. Is there a simple method to work around this or rather to set this properly? On Wed, Dec 4, 2013 at 2:46 AM, till plewe wrote: > Thanks for the answer. DESTDIR was supposed to be DISTDIR (typo). > Setting SU_CMD was the hint I needed. Now it seems adjusting ldconfig > is the only thing left to do. pkg installed without problems. > > On Wed, Dec 4, 2013 at 2:08 AM, Lowell Gilbert > wrote: >> till plewe writes: >> >>> I would like to use the ports tree to install and manage packages inside my >>> home directory. I tried setting: >>> >>> PKG_DBDIR,PREFIX,PORTSDIR,LOCALBASE,PORT_DBDIR,DESTDIR >> >> Don't use DESTDIR; it doesn't do what you think it does. >> [What did you think it did anyway, and why?] >> >>> to directories within my home directory but then I get error messages like >>> >>> $ make build >>> ===> Creating some important subdirectories >>> mount_nullfs: Operation not permitted >>> >>> when trying to build/install ports. >>> >>> Any suggestions on how to use ports completely avoiding root? >>> (I rented space on a server and have permission to install binaries >>> but do not have root access) >> >> You'll probably have to change SU_CMD as well. >> Something like "su $USER -c" should do it. >> And you may need to bootstrap the pkg(8) command somehow. >> >> Good luck.