From owner-freebsd-hackers@freebsd.org Wed May 29 03:28:55 2019 Return-Path: Delivered-To: freebsd-hackers@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 6807615B4D35; Wed, 29 May 2019 03:28:55 +0000 (UTC) (envelope-from freebsd-rwg@gndrsh.dnsmgr.net) Received: from gndrsh.dnsmgr.net (br1.CN84in.dnsmgr.net [69.59.192.140]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id CC62F7713D; Wed, 29 May 2019 03:28:54 +0000 (UTC) (envelope-from freebsd-rwg@gndrsh.dnsmgr.net) Received: from gndrsh.dnsmgr.net (localhost [127.0.0.1]) by gndrsh.dnsmgr.net (8.13.3/8.13.3) with ESMTP id x4T3SgeG018874; Tue, 28 May 2019 20:28:42 -0700 (PDT) (envelope-from freebsd-rwg@gndrsh.dnsmgr.net) Received: (from freebsd-rwg@localhost) by gndrsh.dnsmgr.net (8.13.3/8.13.3/Submit) id x4T3Sfep018873; Tue, 28 May 2019 20:28:41 -0700 (PDT) (envelope-from freebsd-rwg) From: "Rodney W. Grimes" Message-Id: <201905290328.x4T3Sfep018873@gndrsh.dnsmgr.net> Subject: Re: GSoC: Separation of Ports Build Process from Local Installation In-Reply-To: <5cdb1c0b-a2dd-c754-daa3-187330ad9ad6@gmail.com> To: Theron Date: Tue, 28 May 2019 20:28:41 -0700 (PDT) CC: soc-status@freebsd.org, Bakul Shah , freebsd-hackers@freebsd.org, freebsd-ports@freebsd.org X-Mailer: ELM [version 2.4ME+ PL121h (25)] MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset=US-ASCII X-Rspamd-Queue-Id: CC62F7713D X-Spamd-Bar: ------ Authentication-Results: mx1.freebsd.org X-Spamd-Result: default: False [-6.99 / 15.00]; TAGGED_RCPT(0.00)[]; NEURAL_HAM_MEDIUM(-1.00)[-1.000,0]; REPLY(-4.00)[]; NEURAL_HAM_SHORT(-0.99)[-0.988,0]; NEURAL_HAM_LONG(-1.00)[-1.000,0] X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 29 May 2019 03:28:55 -0000 [ Charset UTF-8 unsupported, converting... ] > Hello All, > > For Google Summer of Code 2019 I am working on FreeBSD's ports tree > makefiles towards eliminating the dependency of the ports building > process on the local system's installed packages.? Currently this level > of separation can only be accomplished in practice through chroot or > Jail.? The project will eliminate the need for cooperation of the root > user since /usr/local will not need to be touched. > > The major technical obstacle to be overcome is that ports expect to find > files of their dependencies installed in /usr/local.? To support this > without touching that location on the installed system, file accesses > will be redirected to a location controlled by the ports build process > through use of a library to intercept file accesses. Assumption of /usr/local was considered wrong long long ago and it should always be ${PREFIX}. Any place that actually assumes this value to be /usr/local should be fixed. Had this policy been properly maintained it would simply be a mater of changing ${PREFIX} to a new and empty place before starting a ports build and things should of just worked. Restoration to this ancient and functional behavior is desirable at least on my part. > Once I have that working (well enough to build one port at a time) I > will move on to modify bsd.port.mk itself (and related files) to utilize > this mechanism for virtual installation of port dependencies during builds. > > The full project proposal can be seen at > https://docs.google.com/document/d/1B30U9csgY299W59tNraSX1LYjzsba2i04OrYAUpdIZs/edit > . > > My goal is that this work can be integrated well enough into > /usr/ports/Mk so that unlike Jail, no set up work should be required for > using ports tree to build a set of installable packages. > > Please let me know if you are interested in this project; feedback is > appreciated.? If someone would like to provide ongoing feedback or > mentorship that would be especially helpful.? Bakul Shah is my mentor > officially for GSoC but I would be happy to have additional support from > someone who is experienced with internals of the port infrastructure > makefiles. > > Theron Tarigo Regards, -- Rod Grimes rgrimes@freebsd.org