Subject: pkg/17963: wrong CONFLICTS lines in devel/autoconf and devel/autoconf-devel
To: None <gnats-bugs@gnats.netbsd.org>
From: Lubomir Sedlacik <salo@Xtrmntr.org>
List: netbsd-bugs
Date: 08/17/2002 15:52:44
>Number:         17963
>Category:       pkg
>Synopsis:       wrong CONFLICTS lines in devel/autoconf and devel/autoconf-devel
>Confidential:   no
>Severity:       critical
>Priority:       medium
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Sat Aug 17 06:53:00 PDT 2002
>Closed-Date:
>Last-Modified:
>Originator:     Lubomir Sedlacik
>Release:        NetBSD 1.6_BETA5
>Organization:
>Environment:
>Description:

since devel/autoconf-devel package install itself as autoconf-[version] only
and autoconf-devel package is never installed anymore but devel/autoconf and
even devel/autoconf-devel still conflict with autoconf-devel-[0-9]* only.
this is obviously wrong and installing one of these packages if the other one
is already installed in the system will overwrite files and corrupt pkg
database (overlapping PLISTs).

>How-To-Repeat:

install devel/autoconf and try to install devel/autoconf-devel or vice versa.

>Fix:

Index: autoconf/Makefile
===================================================================
RCS file: /cvsroot/pkgsrc/devel/autoconf/Makefile,v
retrieving revision 1.32
diff -u -r1.32 Makefile
--- autoconf/Makefile	2002/02/18 15:14:07	1.32
+++ autoconf/Makefile	2002/08/17 13:37:17
@@ -12,7 +12,7 @@
 
 DEPENDS=	m4-1.4:../../devel/m4
 
-CONFLICTS=		autoconf-devel-[0-9]*
+CONFLICTS=		autoconf-[0-9]*
 
 USE_BUILDLINK_ONLY=	YES
 
Index: autoconf-devel/Makefile
===================================================================
RCS file: /cvsroot/pkgsrc/devel/autoconf-devel/Makefile,v
retrieving revision 1.6
diff -u -r1.6 Makefile
--- autoconf-devel/Makefile	2002/08/08 11:34:36	1.6
+++ autoconf-devel/Makefile	2002/08/17 13:37:17
@@ -11,7 +11,7 @@
 
 DEPENDS=		m4-1.4:../../devel/m4
 
-CONFLICTS=		autoconf-devel-[0-9]*
+CONFLICTS=		autoconf-[0-9]*
 
 USE_BUILDLINK_ONLY=	YES
 
>Release-Note:
>Audit-Trail:
>Unformatted: