From owner-soc-status@freebsd.org Tue Jun 18 19:29:31 2019 Return-Path: Delivered-To: soc-status@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 DCB5915C6839 for ; Tue, 18 Jun 2019 19:29:30 +0000 (UTC) (envelope-from therontarigo@gmail.com) Received: from mail-oi1-f171.google.com (mail-oi1-f171.google.com [209.85.167.171]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) server-signature RSA-PSS (4096 bits) client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "smtp.gmail.com", Issuer "GTS CA 1O1" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id EDE368AFB9 for ; Tue, 18 Jun 2019 19:29:29 +0000 (UTC) (envelope-from therontarigo@gmail.com) Received: by mail-oi1-f171.google.com with SMTP id e189so8594283oib.11 for ; Tue, 18 Jun 2019 12:29:29 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:to:from:subject:message-id:date:user-agent :mime-version:content-transfer-encoding:content-language; bh=dBbmLbrDnbkYEzdL95e0x9v57FcEBSIB4NOP4wlomDs=; b=JxFJYeU89/TdYtaSWqD0AA09Ybu8LW0OFHQF9ZvXoCsTcLv2C373V69spDMEo/an5T DgnNfP5x+807+q/EHB96e61wFzchQhw2uQLfKbUh1DZm+v2ZUfSf4Gb/QMNotoJlL/I+ sQwK87UbfScnx60ve6hPEW83a147BXm43WMX1coKbksOVhe+5wLoDGaYpP4m+rncdkzl +leWuQsfDSpCM2gbcg9L0yYpwF9NNdEdIm7Rd70SrreEVEkbWUspGq/HYX6E4Vv0VGcJ AWyRwtsoQbBHtyvJh/B6qO6Bst61DNznpvqRHYxf079dwlykgiPvnOOUHjhsKOiWeIBJ WfWw== X-Gm-Message-State: APjAAAVBkG12joazarXLoGo/1EhSM9oKY+iEzWH9fFIQo4HZVT6egSTd l1byQI64rtzqK3Zzf9Tnj3nnwaAa X-Google-Smtp-Source: APXvYqzZhF/ghqI2vvhhLa8NMD4QjSD898hUMwsPAhKxJxHC2jbzDntotUgykkVcBtsjExdhoXimBg== X-Received: by 2002:a63:a1f:: with SMTP id 31mr4079810pgk.66.1560885666006; Tue, 18 Jun 2019 12:21:06 -0700 (PDT) Received: from [10.1.10.31] (173-11-84-33-SFBA.hfc.comcastbusiness.net. [173.11.84.33]) by smtp.gmail.com with ESMTPSA id c124sm15982180pfa.115.2019.06.18.12.21.05 for (version=TLS1_3 cipher=AEAD-AES128-GCM-SHA256 bits=128/128); Tue, 18 Jun 2019 12:21:05 -0700 (PDT) To: soc-status@freebsd.org From: Theron Tarigo Subject: GSoC: Separation of Ports Build Process from Local Installation Message-ID: <4e83fb7b-da83-b833-e66c-7275fb26b4df@freebsd.org> Date: Tue, 18 Jun 2019 12:20:52 -0700 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:60.0) Gecko/20100101 Thunderbird/60.7.1 MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit Content-Language: en-US X-Rspamd-Queue-Id: EDE368AFB9 X-Spamd-Bar: ---- Authentication-Results: mx1.freebsd.org; spf=pass (mx1.freebsd.org: domain of therontarigo@gmail.com designates 209.85.167.171 as permitted sender) smtp.mailfrom=therontarigo@gmail.com X-Spamd-Result: default: False [-4.49 / 15.00]; RCVD_VIA_SMTP_AUTH(0.00)[]; R_SPF_ALLOW(-0.20)[+ip4:209.85.128.0/17]; TO_DN_NONE(0.00)[]; RCVD_COUNT_THREE(0.00)[3]; MX_GOOD(-0.01)[cached: alt3.gmail-smtp-in.l.google.com]; NEURAL_HAM_SHORT(-0.97)[-0.967,0]; FORGED_SENDER(0.30)[theron@freebsd.org,therontarigo@gmail.com]; MIME_TRACE(0.00)[0:+]; R_DKIM_NA(0.00)[]; FREEMAIL_ENVFROM(0.00)[gmail.com]; ASN(0.00)[asn:15169, ipnet:209.85.128.0/17, country:US]; FROM_NEQ_ENVFROM(0.00)[theron@freebsd.org,therontarigo@gmail.com]; TO_DOM_EQ_FROM_DOM(0.00)[]; ARC_NA(0.00)[]; NEURAL_HAM_MEDIUM(-1.00)[-1.000,0]; MID_RHS_MATCH_FROM(0.00)[]; FROM_HAS_DN(0.00)[]; TO_MATCH_ENVRCPT_ALL(0.00)[]; NEURAL_HAM_LONG(-1.00)[-1.000,0]; MIME_GOOD(-0.10)[text/plain]; PREVIOUSLY_DELIVERED(0.00)[soc-status@freebsd.org]; DMARC_NA(0.00)[freebsd.org]; RCPT_COUNT_ONE(0.00)[1]; IP_SCORE(-1.52)[ip: (-1.77), ipnet: 209.85.128.0/17(-3.44), asn: 15169(-2.32), country: US(-0.06)]; RCVD_IN_DNSWL_NONE(0.00)[171.167.85.209.list.dnswl.org : 127.0.5.0]; RCVD_TLS_LAST(0.00)[] X-BeenThere: soc-status@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Summer of Code Status Reports and Discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 18 Jun 2019 19:29:31 -0000 Hello all, This project aims to decouple the build process of the ports framework from the local installation. This past week, I have made the following progress: - Modified bsd.port.mk to behave as follows:   * All built dependencies of a port are installed to ${PORTBLDROOT} (=${PORTSDIR}/build on my test system).   * Ports resolve dependencies to ${PORTBLDROOT} instead of to local system.   * All port-building operations (configure, make, make install, etc.) are run in a chroot, in which ${LOCALBASE} is mapped to ${PORTBLDROOT}${LOCALBASE} and base system is mapped as-is. - Added hooks to several Mk/Uses/* and ports to allow switch to chroot where appropriate (far from complete). - Successfully compiled handful of ports (including C libraries, GNU build tools, perl modules, and python modules) under this modified system. The next goal is to replace the chroot with an equivalent solution in userspace (a BSD implementation similar to "fakechroot"), to eliminate requirement of superuser intervention. An overview of the progress and issues is kept at https://wiki.freebsd.org/SummerOfCode2019Projects/PortsSeparatedBuild. Theron Tarigo