From owner-freebsd-ports@FreeBSD.ORG Fri May 6 04:08:37 2005 Return-Path: Delivered-To: freebsd-ports@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id D3BFF16A4CE for ; Fri, 6 May 2005 04:08:37 +0000 (GMT) Received: from smtp812.mail.sc5.yahoo.com (smtp812.mail.sc5.yahoo.com [66.163.170.82]) by mx1.FreeBSD.org (Postfix) with SMTP id 68F4243D93 for ; Fri, 6 May 2005 04:08:37 +0000 (GMT) (envelope-from noackjr@alumni.rice.edu) Received: from unknown (HELO optimator.noacks.org) (noacks@swbell.net@70.240.205.64 with login) by smtp812.mail.sc5.yahoo.com with SMTP; 6 May 2005 04:08:37 -0000 Received: from localhost (localhost [127.0.0.1]) by optimator.noacks.org (Postfix) with ESMTP id E9E946141; Thu, 5 May 2005 23:08:34 -0500 (CDT) Received: from optimator.noacks.org ([127.0.0.1]) by localhost (optimator.noacks.org [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 58779-02; Thu, 5 May 2005 23:08:31 -0500 (CDT) Received: from compgeek.noacks.org (compgeek [192.168.1.10]) by optimator.noacks.org (Postfix) with ESMTP id 5EA9060F7; Thu, 5 May 2005 23:08:31 -0500 (CDT) Received: from [127.0.0.1] (localhost [127.0.0.1]) by compgeek.noacks.org (8.13.3/8.13.3) with ESMTP id j4648Ux9001154; Thu, 5 May 2005 23:08:30 -0500 (CDT) (envelope-from noackjr@alumni.rice.edu) Message-ID: <427AEDBE.6000600@alumni.rice.edu> Date: Thu, 05 May 2005 23:08:30 -0500 From: Jonathan Noack User-Agent: Mozilla Thunderbird 1.0.2 (X11/20050428) X-Accept-Language: en-us, en MIME-Version: 1.0 To: "Simon L. Nielsen" References: <42689D49.4050908@alumni.rice.edu> <20050422140619.GA785@zaphod.nitro.dk> <42694383.7090500@alumni.rice.edu> <20050429091043.GD16549@eddie.nitro.dk> <20050505134015.GG703@arthur.nitro.dk> In-Reply-To: <20050505134015.GG703@arthur.nitro.dk> X-Enigmail-Version: 0.91.0.0 OpenPGP: id=991D8195; url=http://www.noacks.org/cert/noackjr.asc Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="------------enigF93F54534BD422C0016A302D" X-Virus-Scanned: amavisd-new at noacks.org cc: ports@FreeBSD.org Subject: Re: portupgrade regression? X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: noackjr@alumni.rice.edu List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 06 May 2005 04:08:37 -0000 This is an OpenPGP/MIME signed message (RFC 2440 and 3156) --------------enigF93F54534BD422C0016A302D Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit On 05/05/05 08:40, Simon L. Nielsen wrote: > On 2005.04.29 11:10:43 +0200, Simon L. Nielsen wrote: > > [portupgrade regression in portupgrade-20041226_2] > >>I think I have found the way to fix this both so it works for >>non-root, make pkgdb.db not be updated all the time, and so it does >>not cause new security problems, but I need to work out a few quirks >>(my first version did not work correctly). Hopefully I will get it >>working this weekend, if not I will add a bandaid so you can make it >>work by setting an environment variable. > > OK, I think the attached patch should fix the issues so portversion > works again as non-root and the package database is only regenerated > when needed. > > I would appreciate if somebody could test the attached patch to > minimize the risk that I have broken something else. After applying the patch and updating, I set ENV['PKG_FIXME_FILE'] to point to a location that is accessible to my normal user account. After some basic testing I haven't noticed any poor behavior. Looks like this works as advertised... Thanks! -- Jonathan Noack | noackjr@alumni.rice.edu | OpenPGP: 0x991D8195 --------------enigF93F54534BD422C0016A302D Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.1 (FreeBSD) iD8DBQFCeu2+UFz01pkdgZURAh2QAKCO0qstMfActqH8CSS3aOyjQ072NQCgspgf pYrA9agXnRVdE2c+iMpFz1g= =EpX4 -----END PGP SIGNATURE----- --------------enigF93F54534BD422C0016A302D--