From owner-freebsd-questions@FreeBSD.ORG Fri Jun 1 02:27:23 2007 Return-Path: X-Original-To: questions@freebsd.org Delivered-To: freebsd-questions@FreeBSD.ORG Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 0E8FA16A400 for ; Fri, 1 Jun 2007 02:27:23 +0000 (UTC) (envelope-from dan@dan.emsphone.com) Received: from dan.emsphone.com (dan.emsphone.com [199.67.51.101]) by mx1.freebsd.org (Postfix) with ESMTP id C494313C457 for ; Fri, 1 Jun 2007 02:27:12 +0000 (UTC) (envelope-from dan@dan.emsphone.com) Received: (from dan@localhost) by dan.emsphone.com (8.14.1/8.13.8) id l512Qo4N080069; Thu, 31 May 2007 21:26:50 -0500 (CDT) (envelope-from dan) Date: Thu, 31 May 2007 21:26:50 -0500 From: Dan Nelson To: paul beard Message-ID: <20070601022650.GB3923@dan.emsphone.com> References: <441wgxp0k7.fsf@be-well.ilk.org> <200705311822.l4VIMw14062211@serene.no-ip.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-OS: FreeBSD 6.2-STABLE User-Agent: Mutt/1.5.15 (2007-04-06) Cc: "Conrad J. Sabatier" , questions@freebsd.org, freebsd-questions-local@be-well.ilk.org Subject: Re: what is pkg_create doing? X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 01 Jun 2007 02:27:23 -0000 In the last episode (May 31), paul beard said: > On May 31, 2007, at 11:22 AM, Conrad J. Sabatier wrote: > > No, by default, portupgrade runs pkg_create *before* installing the > > newly built port, to create a backup of the old version in case > > something goes wrong. Depending on the size of the old port > > (package), this can take an appreciable amount of time, even on a > > fast system. Packages are only built *after* installation if one > > explicitly tells portupgrade to do so, via the "-p" or "--package" > > switches. > > > > The man page lists several package-related ENVIRONMENT variables, > > which may or may not provide a means to disable some or all of this > > package creation; I don't know for sure, as I've never tried > > changing or unsetting them to see what may happen. If you're > > curious, though, it may be worth experimenting with, although I > > would certainly advise against disabling the precautionary backup > > package creation before the new port is successfully installed. > > Thanks. I'll take a look there. I wasn't sure if something changes > in how ports are done in the Moderne Age. Apply the patch in PR 112630. It fixes an inefficient dependency sorting algorithm that only became an issue after the xorg port update introduced an extra 100 dependencies to every X-using port. Took my pkg_create times down from 5 minutes to 5 seconds :) -- Dan Nelson dnelson@allantgroup.com