Recent bsd.port.mk changes
sem at ciam.ru
Sun Apr 20 07:51:10 PDT 2003
Joe Marcus Clarke wrote:
> On Fri, 2003-04-18 at 00:57, Kris Kennaway wrote:
> > In your case since the PREFIX is different they don't actually
> > conflict so one might argue that it should be allowed. I suppose
> > that's something that could be checked in bsd.port.mk by extracting
> > the prefix for the existing package from the contents file and
> > comparing to PREFIX.
Disagree. This case really dangerous for users. What happened if you try
install a port with other PREFIX than already installed port with the same
version? You'll lose port information in PKG_DBDIR. And when you'll
deinstall new installed port you'll have got orphan files.
That is user must understand the dangerous and use FORCE_PKG_REGISTER=yes
for his responsibility.
> This would be acceptable. However, the make deinstall would still
> remove both versions. What about keeping make deinstall the same as it
> was with one exception: if you type make deinstall in a port directory,
> and the version specified by that port's Makefile is not installed (but
> another version with the same origin is), then the other version would
> be deinstalled. However, if a package is found that matches the version
> specified in the port's Makefile, then only that version is removed. We
> could then add a make deinstall-all target to handle deinstalling all
> packages with the same origin. Something like what's attached.
Kris, what do you think about this new target? I don't see necessity of it.
I'd like to test this patch properly.
More information about the freebsd-ports