Subject: pkg/30706: swig should conflict with swig-build
To: None <,,>
From: None <>
List: pkgsrc-bugs
Date: 07/09/2005 15:33:01
>Number:         30706
>Category:       pkg
>Synopsis:       swig should conflict with swig-build
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Sat Jul 09 15:33:01 +0000 2005
>Release:        NetBSD 2.0_BETA
System: NetBSD pc.martani.n2.repy.czf 2.0_BETA NetBSD 2.0_BETA (ACPI_DEBUG) #2: Sat Aug 7 21:15:26 CEST 2004 pavel@pc.martani.n2.repy.czf:/home/pavel/kompilace/jadra/compile/ACPI_DEBUG i386
Architecture: i386
Machine: i386
I am using pkgsrc-2005Q2. I had previously installed swig-build-1.3.19
from autumn 2004. Now I was installing svk, and it installed swig as a
dependency. While installing it, the following was printed:

Installation complete
===> Registering installation for swig-1.3.24
pkg_create: Overwriting /usr/pkg/bin/swig - pkg swig-build-1.3.19 bogus/conflicting?


Mark swig as conflicting with swig-build?
More general fix would be to treat packages which install files already
installed by other packages (this could be determined from PLIST) as
conflicting, without having to have all such cases marked explicitely
(which is error-prone and there will always some case missed).
see the thread: "make install" owerwrites files without asking 
on tech-pkg@