From owner-freebsd-ports@FreeBSD.ORG Sat Oct 12 05:59:55 2013 Return-Path: Delivered-To: freebsd-ports@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 9A21A966 for ; Sat, 12 Oct 2013 05:59:55 +0000 (UTC) (envelope-from jdc@koitsu.org) Received: from qmta13.emeryville.ca.mail.comcast.net (qmta13.emeryville.ca.mail.comcast.net [IPv6:2001:558:fe2d:44:76:96:27:243]) by mx1.freebsd.org (Postfix) with ESMTP id 7391D2B76 for ; Sat, 12 Oct 2013 05:59:55 +0000 (UTC) Received: from omta19.emeryville.ca.mail.comcast.net ([76.96.30.76]) by qmta13.emeryville.ca.mail.comcast.net with comcast id c5zp1m0011eYJf8AD5zuTi; Sat, 12 Oct 2013 05:59:54 +0000 Received: from jdc.koitsu.org ([76.102.14.35]) by omta19.emeryville.ca.mail.comcast.net with comcast id c5zt1m00K0lNtxY015zupo; Sat, 12 Oct 2013 05:59:54 +0000 Received: by icarus.home.lan (Postfix, from userid 1000) id 880E773A1B; Fri, 11 Oct 2013 22:59:53 -0700 (PDT) Date: Fri, 11 Oct 2013 22:59:53 -0700 From: Jeremy Chadwick To: freebsd-ports@freebsd.org Subject: How to disable staging support in ports tree universally? Message-ID: <20131012055953.GA4352@icarus.home.lan> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.5.21 (2010-09-15) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=comcast.net; s=q20121106; t=1381557594; bh=BWeN8TyJYDNIBRamPD6eZXwD2GJnwz5awO0YoYCo+Ig=; h=Received:Received:Received:Date:From:To:Subject:Message-ID: MIME-Version:Content-Type; b=FrbW3MyEl6rcpY3pV3xeMA/oPPhQgZuaIWS5uSdnZ6BA6YHmOPd9iOfme6myNzSSG RRWxw6uLuyRiOp9K/9na0099P+L1N8x/MZJh61sxKMuUHvSVeFOFH5sVmscYssfKtD a4L8VMkPw8mRXbkT7FZM4V5IZXB50oxhAMc42tFuKbVcfMSnYWWaLG+ecnhK5X6V9+ w335M3vG+zwMZz6TM4Nt8M0H6iE2NeQvGNsnAmtvwFg769+UZ377sskgywtvPd7wx3 xwzofNoe4uuHhBn3uL2GxRyj2dWPf10h7gzpTnsRi+DdckuI6sCpwuDLHtaIqT6h87 coUmo+dddgmPg== X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 12 Oct 2013 05:59:55 -0000 (Please keep me CC'd, as I am not subscribed to any FreeBSD lists) Plain, simple, obvious question: how do I disable staging support in the latest ports tree? Today I rebuilt a port (which had been upgraded to remove NO_STAGE=yes from it Makefile) as follows: # make deinstall # make clean install ...and proceeded to watch my /usr/ports filesystem I/O go through the roof with unnecessary crap, starting about here: ===> Staging for sudo-1.8.8 ===> Generating temporary packing list ...which is normal, except I suddenly start tons of disk I/O involving $WRKDIR/stage, proceeded by this: ===> Building package for sudo-1.8.8 Creating package /usr/ports/security/sudo/work/sudo-1.8.8.tbz Registering depends:. Creating bzip'd tar ball in '/usr/ports/security/sudo/work/sudo-1.8.8.tbz' All of this comes from Mk/bsd.port.mk, per _STAGE_SEQ, which is preceded by a plain and simple .if !defined(NO_STAGE). I thought "okay, so just put NO_STAGE=yes in /etc/make.conf" but make.conf(5) had no mention of this so I was wary. Then I found these two posts clearly stating "this is not a make.conf variable and things will bust if you do that": http://lists.freebsd.org/pipermail/freebsd-ports/2013-October/086692.html http://lists.freebsd.org/pipermail/freebsd-ports/2013-October/086697.html I tried it anyway (in a VM) -- yup, it sure does leave quite a mess laying around if you set it globally, so definitely don't do that. So I read /usr/ports/UPDATING, and /usr/ports/CHANGES, and this: https://wiki.freebsd.org/ports/StageDir ...to no avail. So how do I stop this staging nonsense when it doesn't apply to any of my systems/environments? I install third-party software directly from the ports tree, I DO NOT USE pkg, nor do I ever plan on using pkg given that I customise ports individually (through "make config" and some make.conf knobs) quite heavily. I want to know how to stop this excess waste of disk I/O when it doesn't apply to my environments/systems, and I'm sure many others do as well. -- | Jeremy Chadwick jdc@koitsu.org | | UNIX Systems Administrator http://jdc.koitsu.org/ | | Making life hard for others since 1977. PGP 4BD6C0CB |