From owner-freebsd-ports@FreeBSD.ORG Mon Mar 6 20:33:07 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 DC07216A420 for ; Mon, 6 Mar 2006 20:33:07 +0000 (GMT) (envelope-from itetcu@people.tecnik93.com) Received: from it.buh.tecnik93.com (it.buh.tecnik93.com [81.196.204.98]) by mx1.FreeBSD.org (Postfix) with ESMTP id 147FF43D5A for ; Mon, 6 Mar 2006 20:33:05 +0000 (GMT) (envelope-from itetcu@people.tecnik93.com) Received: from it.buh.tecnik93.com (localhost [127.0.0.1]) by it.buh.tecnik93.com (Postfix) with ESMTP id CD9D3174A1; Mon, 6 Mar 2006 22:32:59 +0200 (EET) Date: Mon, 6 Mar 2006 22:32:59 +0200 From: Ion-Mihai Tetcu To: Boris Samorodov Message-ID: <20060306223259.3f2c6253@it.buh.tecnik93.com> In-Reply-To: <61474466@srv.sem.ipt.ru> References: <61474466@srv.sem.ipt.ru> X-Mailer: Sylpheed-Claws 2.0.0 (GTK+ 2.8.12; i386-portbld-freebsd6.1) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Cc: ports@FreeBSD.org Subject: Re: dirrmtry: shared directories and can, should or must use 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: Mon, 06 Mar 2006 20:33:08 -0000 On Mon, 06 Mar 2006 17:40:45 +0300 Boris Samorodov wrote: > Hi! > > > At The Porters Handbook 7.2.1 Cleaning up empty directories we read > http://www.freebsd.org/doc/en_US.ISO8859-1/books/porters-handbook/plist-cleaning.html#PLIST-DIR-CLEANING > > "However, sometimes @dirrm will give you errors because other ports > share the same directory. You can use @dirrmtry to remove only empty > directories without warning." > > I don't quite understand the term "can" here. Is it supposed may, > should or must use @dirrmtry? Should. > And what about non-empty but shared directories? May, should or must > we use @dirrmtry? Should. From what I understand from your phrasing all 3 sentences are equivalent. The idea is that different ports install files in the same directories (that are not part of mtree). The ONLY reason to use @dirrmtry is to avoid "Unable to completely delete dir/x " type of warnings from pkg-delete. Of course, using @dirrmtry instead of properly removing own installed files is wrong. > Is this command supposed to work only when building packages > (i.e. at pointyhat) or is it intended to be useful at other > servers/workstations (i.e. not to disturb administrators when > upgrading their systems)? In all cases, when either pkg-delete or make deinstall are used. -- IOnut - Unregistered ;) FreeBSD "user" "Intellectual Property" is nowhere near as valuable as "Intellect" BOFH excuse #258: That's easy to fix, but I can't be bothered