From owner-freebsd-ports Sun Feb 7 15:46:39 1999 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id PAA05795 for freebsd-ports-outgoing; Sun, 7 Feb 1999 15:46:39 -0800 (PST) (envelope-from owner-freebsd-ports@FreeBSD.ORG) Received: from khavrinen.lcs.mit.edu (khavrinen.lcs.mit.edu [18.24.4.193]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id PAA05756; Sun, 7 Feb 1999 15:46:29 -0800 (PST) (envelope-from wollman@khavrinen.lcs.mit.edu) Received: (from wollman@localhost) by khavrinen.lcs.mit.edu (8.9.1/8.9.1) id SAA09731; Sun, 7 Feb 1999 18:46:03 -0500 (EST) (envelope-from wollman) Date: Sun, 7 Feb 1999 18:46:03 -0500 (EST) From: Garrett Wollman Message-Id: <199902072346.SAA09731@khavrinen.lcs.mit.edu> To: The Hermit Hacker Cc: cvs-committers@FreeBSD.ORG, ports@FreeBSD.ORG Subject: Re: cvs commit: ports/audio/kdemultimedia11 Makefile [...] In-Reply-To: References: Sender: owner-freebsd-ports@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org < said: > I've got a question here...how does one upgrade kde properly from ports? Actually, the ports/packages system does not usefully deal with upgrades AT ALL. It should only take a few hours of Perl hacking to come up with a small program (call it pkg_upgrade) which would perform the following functions: 1) Before building a port, look at /var/db/pkg and pkg/UPGRADE to figure out if a previous version of the port is installed. If one is, use some method encoded in pkg/UPGRADE to figure out whether the existing version of the port can be upgraded. If not, tell the user that he has to remove and reinstall the port and everything that depends on it. 2) After building a port, but before installing it, run the upgrade script to perform any necessary setup which requires the old version (e.g., dumping databases). 3) After installation, run the upgrade script one more time to finish the process. If it succeeds, move the +REQUIRED_BY file to its new home. (There doesn't seem to be any +REQUIRES, which makes me wonder how pkg_delete finds the +REQUIRED_BY files to edit them itself.) I almost did this a few days ago, but didn't remain sufficiently irritated for long enough to finish it. -GAWollman -- Garrett A. Wollman | O Siem / We are all family / O Siem / We're all the same wollman@lcs.mit.edu | O Siem / The fires of freedom Opinions not those of| Dance in the burning flame MIT, LCS, CRS, or NSA| - Susan Aglukark and Chad Irschick To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-ports" in the body of the message