From owner-freebsd-ports@freebsd.org Fri Oct 2 19:42:25 2015 Return-Path: Delivered-To: freebsd-ports@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 5CB01A0D611 for ; Fri, 2 Oct 2015 19:42:25 +0000 (UTC) (envelope-from kpaasial@gmail.com) Received: from mail-io0-x229.google.com (mail-io0-x229.google.com [IPv6:2607:f8b0:4001:c06::229]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 2A4C51E44 for ; Fri, 2 Oct 2015 19:42:25 +0000 (UTC) (envelope-from kpaasial@gmail.com) Received: by ioiz6 with SMTP id z6so131146432ioi.2 for ; Fri, 02 Oct 2015 12:42:24 -0700 (PDT) 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 :cc:content-type; bh=9lp1wvIQOGO9/AF+9TjR5XWPo35jW2WYQ6Ti1D2Jxkk=; b=m0VkYUGpxnT0JMl+1Z9Ykiho4tfxzuu4NoT+lm2f6YB8X3PixYeYtPdN+osfsDFrse gDb+DaypRtM6NGuWxLV6BY6PDhWBCJm6VP1lyi1qVYWpg/47s4rbpf5mNvwYeFcy3Chu TDSEnHvcoabqcJdNE+OzxCyyYDKOoiK/gkp/chcsvuqt2IRddZjNEeCgqr+W+/GxPRtr 2GwVf37yhRYeq6poN+LnPVNmPZWHYrwwDmApKlYebAsly9knrZabC5bZPjkwGiKZjom0 xxihPiE5sHAE8qBNekFz3vBjeadfjHKWo6/sgVvooRzjjTlKYzKU8lHwJftafsn1xEWE /Bfg== MIME-Version: 1.0 X-Received: by 10.107.155.146 with SMTP id d140mr22410596ioe.43.1443814944522; Fri, 02 Oct 2015 12:42:24 -0700 (PDT) Received: by 10.107.200.66 with HTTP; Fri, 2 Oct 2015 12:42:24 -0700 (PDT) In-Reply-To: <560ED943.4060106@erdgeist.org> References: <560ED943.4060106@erdgeist.org> Date: Fri, 2 Oct 2015 22:42:24 +0300 Message-ID: Subject: Re: change ports default work directory prefix From: Kimmo Paasiala To: Dirk Engling Cc: freebsd-ports Content-Type: text/plain; charset=UTF-8 X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 02 Oct 2015 19:42:25 -0000 On Fri, Oct 2, 2015 at 10:21 PM, Dirk Engling wrote: > Today in EuroBSDCon's jail working group we discussed changing the > default for WRKDIRPREFIX to /usr/obj/ports. This has the advantage of > being able to share the ports tree between host system and jails. > Another plus is that cleaning all work directories is much faster than a > recursive make clean. > > With the current default, exposing the ports tree to jails potentially > leaks information about installed programs, configured options or host > specific generated secrets (thinking of LocalSettings.php). > > On the down side, developers can't by default just copy the port, hack > away and be sure to only modify files in their respective home directories. > > bapt@ asked me to discuss this here, also looking for potential other > pitfalls I have not thought about. > > Regards, > > erdgeist What about DISTDIR (/usr/ports/distfiles) and PACKAGES (/usr/ports/packages)? Those are now kinda stuck under /usr/ports as well forcing the ports tree to be read-write unless overridden to some other directories. For the distfiles I've used /var/cache/distfiles and I think that would follow hier(7) nicely if it was changed that way. -Kimmo