Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 30 Jun 2001 10:17:02 -0400
From:      Pete Fritchman <petef@databits.net>
To:        Cynic <cynic@mail.cz>
Cc:        ports@FreeBSD.org
Subject:   Re: a quirk in the ports framework
Message-ID:  <20010630101702.A20570@databits.net>
In-Reply-To: <5.1.0.14.2.20010630083531.02944a60@mail.cz>; from cynic@mail.cz on Sat, Jun 30, 2001 at 08:43:00AM %2B0200
References:  <5.1.0.14.2.20010630083531.02944a60@mail.cz>

next in thread | previous in thread | raw e-mail | index | archive | help
++ 30/06/01 08:43 +0200 - Cynic:
| The problem is simple: if an error occurrs during the install
| of a port, the files that have been istalled so far are nor
| deleted. And, because the install didn't finish, you can't 
| # make deinstall either. This is not so bad with small pieces
| of software, but is a real PITA when you install something 
| large.

Right -- how would the port know what's been installed so far?  I guess
the best way to handle this would be to just parse pkg-plist like a
pkg_delete, and assume it would fail (because all the files aren't
installed...).

| So my question is: is this on purpose, or is it a defficiency 
| in the framework? If it's by design, what is the reason?

I'd say it's just an oversight.  I think people try to focus their
efforts on having the port build/install flawlessly than cleaning up
after a broken half-install.  Though, you bring up a valid point (and I
ran into this once -- but never got around to bringing it up).

HTH,

-pete

--
Pete Fritchman <petef@databits.net>
Databits Network Services, Inc. <http://databits.net>;
finger petef@databits.net for PGP key


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-ports" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20010630101702.A20570>