From owner-freebsd-ports@FreeBSD.ORG Thu Jul 3 19:52:35 2008 Return-Path: Delivered-To: freebsd-ports@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id E14FF1065682 for ; Thu, 3 Jul 2008 19:52:35 +0000 (UTC) (envelope-from sem@FreeBSD.org) Received: from mail.ciam.ru (ns.ciam.ru [213.247.195.75]) by mx1.freebsd.org (Postfix) with ESMTP id A543D8FC1F for ; Thu, 3 Jul 2008 19:52:35 +0000 (UTC) (envelope-from sem@FreeBSD.org) Received: from dhcp250-210.yandex.ru ([87.250.250.210]) by mail.ciam.ru with esmtpa (Exim 4.x) id 1KEUr4-000Lj2-Cz; Thu, 03 Jul 2008 23:52:34 +0400 Message-ID: <486D2DFB.4000901@FreeBSD.org> Date: Thu, 03 Jul 2008 23:52:27 +0400 From: Sergey Matveychuk User-Agent: Thunderbird 2.0.0.14 (Windows/20080421) MIME-Version: 1.0 To: Kostik Belousov References: <486A3E30.7080101@FreeBSD.org> <20080703191547.GA89709@nagual.pp.ru> <20080703194314.GT17123@deviant.kiev.zoral.com.ua> In-Reply-To: <20080703194314.GT17123@deviant.kiev.zoral.com.ua> Content-Type: text/plain; charset=windows-1251; format=flowed Content-Transfer-Encoding: 8bit Cc: Andrey Chernov , freebsd-ports@freebsd.org Subject: Re: portupgrade 2.4.4 X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 03 Jul 2008 19:52:36 -0000 Kostik Belousov пишет: > On Thu, Jul 03, 2008 at 11:15:47PM +0400, Andrey Chernov wrote: >> On Tue, Jul 01, 2008 at 06:24:48PM +0400, Sergey Matveychuk wrote: >>> Hi. >>> >>> After a long time when a new employment and real life(c) having eaten >>> all my time, a new version of portupgrade was released. >> The modifying _all_ packages +CONTENTS bug still present in this version >> (as in stable too): >> >> ---> Updating dependency info >> ---> Modifying /var/db/pkg/GeoIP-1.4.4/+CONTENTS >> .... >> ---> Modifying /var/db/pkg/xxkb-1.11/+CONTENTS >> ---> Modifying /var/db/pkg/zidrav-1.2.0/+CONTENTS >> ---> Modifying /var/db/pkg/zip-2.32/+CONTENTS >> > > Additional note: modification of /var/db/pkg/*/+CONTENTS (or any > non-trivial subset of it) is quite dangerous. Once, I had a machine > paniced during portupgrade doing the pass of +CONTENTS files, and > due to SU, lost almost all of them. It would be helpful if +CONTENTS > file were backed up (e.g., moved to +CONTENTS.bak) instead of removed and > created. portupgrade copy a work file in temp one, and move back with changes. I'm not sure /var/db/pkg/*/ is a good place for backups. -- Dixi. Sem.