From owner-freebsd-ports@FreeBSD.ORG Thu Sep 26 18:39:03 2013 Return-Path: Delivered-To: freebsd-ports@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTP id D7C0DCBB for ; Thu, 26 Sep 2013 18:39:03 +0000 (UTC) (envelope-from kpaasial@gmail.com) Received: from mail-qa0-x230.google.com (mail-qa0-x230.google.com [IPv6:2607:f8b0:400d:c00::230]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 9AEA62190 for ; Thu, 26 Sep 2013 18:39:03 +0000 (UTC) Received: by mail-qa0-f48.google.com with SMTP id hu16so1098416qab.14 for ; Thu, 26 Sep 2013 11:39:02 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=oTRbL8UttRKI0u9TBZbbcr0TLDYiMMXhYLlt1AfxRHE=; b=lbsfVObBUUpsCBVyhYt/BagXka/FfVRD+dkttTBVJZyDdsm+D5h7QCHlxNcKLQ7PpQ LhNXGTudetMJPbAyX9bSRakcy0KJ56x2WA07+8q7g4+NU2gdtbDIK2dWbi2mqhjaFvWI Vj3UbSiA6KVJq7fuWdsHvFCWFvSTn5A3tCa1Fs1wI/YqGOah31EhJaEBEtuqYwzhKNfm 5lRWA9xCGyQKGGQDURtmsATIjn9RIR57H+FQ5xfA3h6axO0lH59RsZCAwz8krhBT7Y48 lBYqBzDKjmcKeYa9eLfxMdajM19HQ+Pp90kwr7aOj/uswV3acv5cGQt7mGeVNqO2I4u+ Ql7A== MIME-Version: 1.0 X-Received: by 10.224.114.201 with SMTP id f9mr8750881qaq.4.1380220742725; Thu, 26 Sep 2013 11:39:02 -0700 (PDT) Received: by 10.224.88.197 with HTTP; Thu, 26 Sep 2013 11:39:02 -0700 (PDT) In-Reply-To: References: <5244625E.3070108@dreamchaser.org> Date: Thu, 26 Sep 2013 21:39:02 +0300 Message-ID: Subject: Re: portmaster -- preserving added files? From: Kimmo Paasiala To: Scot Hetzel Content-Type: text/plain; charset=UTF-8 Cc: freebsd@dreamchaser.org, FreeBSD Mailing List X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 26 Sep 2013 18:39:03 -0000 On Thu, Sep 26, 2013 at 9:25 PM, Scot Hetzel wrote: > On Thu, Sep 26, 2013 at 11:35 AM, Gary Aitken wrote: >> Is portmaster supposed to retain files which it did not install when updating / >> reinstalling a port? >> >> For example, jave extensions are normally installed by placing a jar file in >> /usr/local/openjdk6/jre/lib/ext/ >> >> When reinstalling, these are wiped out. >> At least I think that's what happened when I reinstalled. >> >> Seems like they should be (at least optionally) retained? >> > The problem is not with portmaster, as it runs the pkg or pkg_install > commands to remove the port. If you have files that are missing after > uninstalling a port, then you'll need to check what that port is > doing. Most likely the port has a @dirrm instead of an @dirrmtry for > that directory in it's pkg-plist file. > > I had a look at the java/openjdk6/Makefile, and it creates the list of > directories to remove with @dirrm instead of @dirrmtry. So it looks > like the issue is with java/openjdk6 removing that directory. > > Scot > It's a larger problem with no clear solution. What the programs that install additional files after the initial installation should do is to use /var/db/xyz for the additional files so that they are contained in a separate directory alltogether. -Kimmo