From owner-freebsd-ports@FreeBSD.ORG Sat Jan 28 22:04:00 2006 Return-Path: X-Original-To: ports@freebsd.org 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 5F33316A420 for ; Sat, 28 Jan 2006 22:04:00 +0000 (GMT) (envelope-from infofarmer@gmail.com) Received: from zproxy.gmail.com (zproxy.gmail.com [64.233.162.205]) by mx1.FreeBSD.org (Postfix) with ESMTP id 7827A43D48 for ; Sat, 28 Jan 2006 22:03:58 +0000 (GMT) (envelope-from infofarmer@gmail.com) Received: by zproxy.gmail.com with SMTP id 8so839749nzo for ; Sat, 28 Jan 2006 14:03:58 -0800 (PST) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=ljE6b0AcePPXibLQBNTPTszdNdhyPcHhe6LGy17KvwOilXF2wgtMyVPNzjQYdXHbWFlL/pp1024HAajY6vV2YxnivYvfEbKkKKKb1HfRGXfF+9JZU3aKWSLn/7LjAGcP2UZhtSwgKjo2x8afUm827NxRXcDujgV5sd744NqDfek= Received: by 10.36.148.13 with SMTP id v13mr3671475nzd; Sat, 28 Jan 2006 14:03:57 -0800 (PST) Received: by 10.37.20.67 with HTTP; Sat, 28 Jan 2006 14:03:57 -0800 (PST) Message-ID: Date: Sun, 29 Jan 2006 01:03:57 +0300 From: Andrew Pantyukhin To: Kris Kennaway In-Reply-To: <20060128215142.GA37639@xor.obsecurity.org> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline References: <20060128215142.GA37639@xor.obsecurity.org> Cc: FreeBSD Ports , Pav Lucistnik Subject: Re: pkg_delete and modified files 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: Sat, 28 Jan 2006 22:04:00 -0000 On 1/29/06, Kris Kennaway wrote: > On Sun, Jan 29, 2006 at 12:44:50AM +0300, Andrew Pantyukhin wrote: > > Looking for a solution to the problem we stumbled upon, > > [which was keeping many modified files without the > > cmp trick described in the porter's handbook] > > I gave pkg_install/* sources a glance and now I'm > > thinking about a quick fix. The -f flag causes files to be > > deleted even in case of a checksum mismatch. In fact > > the -f flag is meant for something slightly else: > > > > Force removal of the package, even if a dependency > > is recorded or the deinstall or require script fails. > > > > So I'm thinking about another flag (like -F or a second > > -f) to control the behavior with modified files. I think that > > keeping them should be a default. I can't think of a > > thing that it will break, maybe you can. The cmp trick > > will still work. And it only takes a couple of lines to > > implement. > > We can't do this by default for all ports because a lot of ports > install files that are *supposed* to be modified by other ports > (e.g. gettext), so those files would never get removed. > > I think you'd need to have some more fine-grained method to control > this on a per-file basis. Yes, I see. I might get into pkg_install development some time later. Anyway, thanks for your kind input, guys!