From owner-freebsd-ports Mon May 29 3:24:19 2000 Delivered-To: freebsd-ports@freebsd.org Received: from radiac.mine.nu (h20n1fls21o974.telia.com [213.64.95.20]) by hub.freebsd.org (Postfix) with ESMTP id 9091537B558 for ; Mon, 29 May 2000 03:24:14 -0700 (PDT) (envelope-from ps@radiac.mine.nu) Received: (from ps@localhost) by radiac.mine.nu (8.9.3/8.9.3) id MAA87532; Mon, 29 May 2000 12:24:03 +0200 (CEST) (envelope-from ps) Date: Mon, 29 May 2000 12:24:03 +0200 From: Patrik Sundberg To: Clive Lin Cc: ports@FreeBSD.ORG Subject: Re: Feature request Message-ID: <20000529122403.A87267@radiac.mine.nu> References: <20000529095445.A86482@radiac.mine.nu> <20000529173145.A17004@host.cer.ntnu.edu.tw> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 1.0.1i In-Reply-To: <20000529173145.A17004@host.cer.ntnu.edu.tw>; from clive@CirX.ORG on Mon, May 29, 2000 at 05:31:45PM +0800 Sender: owner-freebsd-ports@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org On Mon, May 29, 2000 at 05:31:45PM +0800, Clive Lin wrote: > Hi, > > I think you're considering something like ``upgrade'' :-) yes - in a way, but that wasn't what I wrote, I talked about the problem of new versions using bogus @pkgdep's in their CONTENTS-files. But my proposed scheme with multilevel /var/db/pkg-entries could maybe fit into an upgrade scheme aswell - needs to know when to move the +REQUIRED_BY entries and other stuff too, upgrade is bigger than what I am talking about. > Actually, I usually do that manually, especially the gnome*. > > To do this by hand is easy. Install the new one, move the +REQUIRED_BY > into it. Check cvsweb if there's any difference in PLIST. Then simply > rm -rf the old one. Finally, do a script like this is mostly OK: > > #!/bin/sh > cd /var/db/pkg > for i in */+CONTENTS; do > { > sed -e 's,gtk-1.2.7,gtk-1.2.8,' $i > $i.t > mv $i.t $i > } > done > > > I don't know if these steps above is sufficient, or I'll try to > write a script to automate that. sure you could do this by hand - but you shouldn't have to - and it doesn't cover the case where you have several versions of the same package installed simultaniously (some API change and an old app keeps you from deleting an older version etc). this should be handeled by the pkg-system somehow. -- Patrik Sundberg - email: ps@raditex.se || ps@radiac.mine.nu ---> telefon: 013-178 567 - mobiltelefon: 070-760 22 40 <--- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-ports" in the body of the message